This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
Releases: 0xSpaceShard/starknet-devnet
Releases Β· 0xSpaceShard/starknet-devnet
v0.2.9
Usage related changes
- Fixed handling of running requests exchanging big payloads, e.g. get_code
- Fixed off-by-one offset in
get_block_number
syscall response
Development related changes
- Using gunicorn instead of meinheld (abandoned, lacking documentation)
What's Changed
- Replace meinheld with gunicorn by @Solpatium in #207
- Fix block number off-by-one by @FabijanC in #214
Full Changelog: v0.2.8...v0.2.9
v0.2.8
Usage related changes
- Fixed fee estimation weights - should result in estimations more similar to those on alpha-goerli
- Fixed
block_hash
property ofget_transaction_status
response to be hex string - Fixed
get_transaction_trace
for declare transactions - Block improvements:
- Fixed response of
get_block_number
cairo syscall - Now shipping with a genesis block (block number 0)
- Introduced an endpoint for generating an empty block:
POST /create_block
- Fixed response of
- Slightly improved performance
Development related changes
- Refactored Account and FeeToken
- Added parallel testing script
- Replaced unnecessary async with sync methods
Merged PRs
- Fix/get transaction status by @tabaktoni in #201
- Fix step weight by @FabijanC in #206
- feat: test script [skip ci] by @tabaktoni in #205
- Fix: Fee token and Account improvements by @tabaktoni in #203
- genesis block, create block endpoint, performace optimizations, initial boot optimization, fix 188 by @tabaktoni in #189
- Fix block number in block info by @FabijanC in #212
- Fix get_trace for declare transactions by @FabijanC in #209
Full Changelog: v0.2.7...v0.2.8
v0.2.7
Usage related changes
- Flushing stdout
- Introduced endpoint for fetching fee token info (
GET /fee_token
) - Fixed balance checking and minting after loading dumped Devnet
- RPC updates:
- Fixed declare and deploy parameters (hexing ints)
- Supported RPC write API (invoke, deploy, declare)
Development related changes
- Refactored FeeToken
Merged PRs
- Support JSON-RPC write API by @drknzz in #186
- Flush all prints in stdout by @Nathan-SL in #192
- Add endpoint to get fee token address by @amanusk in #193
- Fix rpc declare and deploy parameters by @cptartur in #197
- Fix/load by @FabijanC in #202
New Contributors
Full Changelog: v0.2.6...v0.2.7
v0.2.6
Usage related changes
- Adapted to cairo-lang and Starknet 0.9.1
- Added path check on when dumping
- Using OpenZeppelin 0.2.1 for predeployed accounts
- Accounts predeployed with
--seed
now set not to change with new Devnet releases - Token contract:
- Address set not to change with new Devnet releases
- Token symbol changed to ETH
- Supported non-decimal float as
amount
of minting (like1e21
or1000.0
) - Added support for
geth --dev
being used as the L1 of L1<>L2 Postman communication - Introduced the
/api
endpoint which returns a map of all URL endpoints provided by Devnet - Introduced Docker image tag
shardlabs/starknet-devnet:<VERSION>-seed0
which predeploys accounts with--seed 0
Development related changes
- Refactored tests to reduce file size
- Predeploy 0 accounts in tests
- Support local parallel testing (
poetry run pytest -n auto --dist loadscope test/
)
Merged PRs
- Zero pre deployed account as default in tests by @Nathan-SL in #157
- β‘οΈ Implement xdist for parallel testing by @tabaktoni in #165
- support non-decimal float ex. scientific 1000e18 by @tabaktoni in #171
- /api endpoint to get existing endpoints by @tabaktoni in #166
- Make fee token address fixed and symbol ETH, recompiled contract by @tabaktoni in #176
- Refactor JSON-RPC tests by @drknzz in #177
- Fix linting by @FabijanC in #179
- Fix geth --dev support in postman by @FabijanC in #180
- Add dump path check by @FabijanC in #182
- Predeploy OpenZeppelin account v0.2.1 by @FabijanC in #187
- Build and push docker image with --seed 0 by @FabijanC in #184
- Adapt to starknet/cairo-lang 0.9.1 by @FabijanC in #181
New Contributors
Full Changelog: v0.2.5...v0.2.6
v0.2.5
Usage related changes
- Introduced an endpoint for fetching predeployed account information: docs
- Introduced local faucet for adding funds (minting tokens) to accounts: docs
- Partial update to JSON RPC API v0.15.0
Development related changes
- Fixed test splitting
- Introduced debug mode script
- Improved GitHub PR and bug report templates.
Merged PRs
- Feature/predeployed accounts endpoint by @tabaktoni in #138
- OpenZeppelin HASH changed fix on compute_class_hash by @tabaktoni in #139
- π β‘οΈ Fix circleci test split by @tabaktoni in #140
- Partially update rpc endpoint to version 0.15.0 by @cptartur in #142
- Feature/erc20 mintable local faucet by @tabaktoni in #143
- Feature/fee token name by @tabaktoni in #148
- Mint improve by @FabijanC in #149
Full Changelog: v0.2.4...v0.2.5
v0.2.4
Usage related changes
- Fixed deployment done with the
deploy
syscall. - Added an endpoint for loading dumped Devnet instances:
/load
. - Updated the OpenZeppelin implementation used by predeployed accounts.
- Added support for JSON-RPC calls: docs.
- Redeploying the same contract with the same salt is reintroduced (it was removed, but shouldn't have been as this is a feature of alpha-goerli).
- The
crypto-cpp-py
dependency was updated to have wheels for more macos versions.
Development related changes
- Improved dev docs.
- Added a script for running in debug mode.
- Improved background running of Devnet in tests (replaced fixed-time sleeping with sleep-checking in a loop).
Merged PRs
- Fix deploy through syscall by @FabijanC in #126
- Feat/rpc support by @cptartur in #101
- Add more macos wheels for crypto-cpp by @THenry14 in #132
- Add RPC docs by @FabijanC in #131
- Allow redeploying with same salt by @FabijanC in #133
- feature: added
/load
endpoint to the REST API by @RedFox20 in #134 - create script for easy run live code reload, update readme by @tabaktoni in #136
- Improve background running of Devnet in tests by @FabijanC in #135
- Update oz account by @badurinantun in #137
New Contributors
- @cptartur made their first contribution in #101
- @RedFox20 made their first contribution in #134
- @tabaktoni made their first contribution in #136
Full Changelog: v0.2.3...v0.2.4
v0.2.3
Usage related changes
- Supported starknet/cairo-lang v0.9.0 features:
declare
- Contract class declarationget_class_hash_at
get_class_by_hash
- Now predeploying a set of prefunded accounts:
- Docs
- New CLI options:
--accounts
,--initial-balance
,--gas-price
,--seed
- Transactions with max_fee set to 0 are still allowed.
- Using C++ implementation of pedersen hash for better performance.
- Fixed events property of transaction receipts (was missing when used through accounts).
Development related changes
- Using cloudpickle instead of dill for serialization (dill started throwing this error: uqfoundation/dill#332).
- Improved developer docs.
Merged PRs
- Patch pedersen hash with cpp native implementation by @THenry14 in #110
- Fix state update by @badurinantun in #112
- Update crypto-cpp-pym to newest version by @THenry14 in #113
- Predeploy token fee and account contracts by @FabijanC in #115
- Add m1 mac crypto-cpp-py wheels to lock file by @THenry14 in #116
- Fix events by @badurinantun in #118
- Adapt to cairo-lang 0.9.0 by @FabijanC in #120
- Add 0.9.0 endpoints by @FabijanC in #121
- Add class declaration by @FabijanC in #124
- Release v0.2.3 by @FabijanC in #125
New Contributors
Full Changelog: v0.2.2...v0.2.3
v0.2.2
Usage related changes
- Introduce timestamp management endpoints (for setting time and increasing time offset: read more)
- Fix timestamp support in lite-mode
- Include
max_fee
inget_transaction
response - Include failure reason in
tx_status
andget_transaction
response.
Development related changes
- Use call_raw for making calls (introduced with cairo-lang 0.8.2)
- Improve typing by relying on starknet's types
- Improve testing (test with min and max python version)
Merged PRs
- Call raw by @badurinantun in #99
- Timestamp management by @badurinantun in #96
- Transaction max fee by @badurinantun in #102
- Fix failure reason in transaction and tx_status by @FabijanC in #103
- Use types by @badurinantun in #104
- Fix --lite-mode-block-hash behavior by @FabijanC in #105
- Fix type of address param in contracts methods by @FabijanC in #107
- Bump Python max version by @ca11ab1e in #108
- Update dependencies by @ca11ab1e in #109
New Contributors
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Usage related changes
- Adapted to cairo-lang 0.8.2:
- Pending block support will be added in future versions.
- Introduced speed-up troubleshooting
Merged PRs
- Add speed-up troubleshooting [skip ci] by @FabijanC in #97
- Cairo 0.8.2 by @badurinantun in #98
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Usage related changes
- Changed default host and port to 127.0.0.1:5050
- This is a BREAKING change
- Rationale: issues with docker and mac integration
- Reduced deployment time
- Introduced ARM Docker images:
- Append
-arm
to image tag to use the ARM counterpart (e.g.shardlabs/starknet-devnet:0.2.0-arm
)
- Append
Development related changes
- Fixed test splitting
- Reduced deployment time by skipping address precalculation.
What's Changed
- Build docker image for arm by @FabijanC in #90
- Fix test splitting by @FabijanC in #91
- Skip address precalculation on successful deployment by @FabijanC in #92
- Change default host to 127.0.0.1 and port to 5050 by @badurinantun in #76
Full Changelog: v0.1.23...v0.2.0