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.4.1
v0.4.0
Usage related changes
- Introduce forking (docs):
starknet-devnet --fork-network <NAME|URL> --fork-block <NUMBER>
- The fork uses testnet ID for all networks (should be configurable in the future)
- Internal contracts now at the same addresses as on mainnet/testnet:
- UDC:
0x41a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf
- Fee token contract:
0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
- Breaking change
- UDC:
- Lite mode no longer uses sequential deployment tx hashing
- Performed slower deployment than regular mode
- Suggestion: reconsider if your use-case benefits from lite mode
- Fix missing L2 to L1 messages
- Fix state dumping on exit
- JSON-RPC:
- Support v0.2.1
- Fee estimation for declare txs
getEvents
: fix continuation token when no events
Development changes
- Output of testing is clearer - suppressed deprecation warnings
- Bodies of some tests extracted for easier testing of forking
Merged PRs
- RPC
estimate_fee
for Declare transactions by @drknzz in #327 - Fix for missing l2 to l1 messages by @mikiw in #330
- Bugifx for continuation_token when there are no events by @mikiw in #331
- Fix for custom_int's in feeder gateway by @mikiw in #335
- Support RPC v0.2.1 by @drknzz in #332
- Fix udc address by @FabijanC in #336
- Fix dumping on exit by @mikiw in #337
- Introduce forking by @FabijanC in #328
Full Changelog: v0.3.5...v0.4.0
v0.3.5
Usage related changes
- Predeploy universal deployer contract (UDC): docs
- Update predeployed account default implementation (OZ 0.5.0)
- Fix error format:
- Use the same scheme as alpha network (status_code -> code)
- Fix
get_transaction_trace
response for rejected txs
- Correctly store accounts deployed with DeployAccount tx
- L1_HANDLER txs stored correctly
- RPC improvements:
- Adapt to JSON-RPC v0.2.0
- Adapt to tx v1
- Allow block ID to be
pending
(same behavior aslatest
)
Development related changes
- Update hardhat to 2.12.1
- Change dev depencencies specification in pyproject.toml
Merged PRs
- Fix error format by @FabijanC in #312
- Store contract on deploy_account tx by @FabijanC in #314
- Allow RPC calls using block hash or number of latest block by @cptartur in #313
- Adapt to json RPC v0.2.0 by @drknzz in #292
- Fix CI image_build by @drknzz in #316
- chore: starknet typo [skip ci] by @ivpavici in #320
- Adapt to OZ 0.5.0 account by @FabijanC in #321
- Update get_events.py by @mikiw in #322
- Store L1L2 handle transactions by @mikiw in #319
- Predeploy UDC by @FabijanC in #324
Full Changelog: v0.3.4...v0.3.5
v0.3.4
Usage related changes
- Support for Starknet 0.10.1
- Predeployed accounts can now use a custom implementation; specified via
--account-class
(docs) - Docs now available at https://shard-labs.github.io/starknet-devnet/
- RPC updates:
- Support for
starknet_getEvents
- Updated
starknet_getNonce
andstarknet_addInvokeTransaction
RPC methods
- Support for
Development related changes
- Refactored
starknet_wrapper.py
to reuse common tx functionality - Remove
DummyExecutionInfo
- In tests, no longer deploying via Starknet CLI, now combining custom HTTP call and gateway classes
Merged PRs
- GitHub pages by @Hug0x0 in #300
- Synced docs and removed from readme.md [skip ci] by @ivpavici in #302
- Typo rectified by @remedcu in #305
- getNonce and addInvokeTransaction TxV1 on RPC v0.1 by @gregoryguillou in #303
- Starknet get events rpc by @mikiw in #295
- Support predeploying custom accounts by @FabijanC in #294
- Adapt to cairo-lang 0.10.1 by @FabijanC in #307
New Contributors
Full Changelog: v0.3.3...v0.3.4
v0.3.3
Usage related changes
- Increase of performance
- improved deploy (~150% gain)
- change of deepcopy in
ContractClass
(~300% gain)
- New flag --hide-predeployed-accounts added
Merged PRs
- Hide predeployed accounts details by @LucasLvy in #277
- Speed up deepcopy by @Solpatium in #293
- Feat/faster deploy by @Solpatium in #299
Full Changelog: v0.3.2...v0.3.3
v0.3.2
Usage related changes
- Lite mode fix for transaction hashes
- Support estimate_message_fee
- Fix positional args for addInvokeTransaction (JSON-RPC)
Development related changes
- Parametrize test_deploy
- Improved version checking in CI
Merged PRs
- Fixes transaction hash calculation problem in lite-mode by @mikiw in #274
- Fix lite mode import by @mikiw in #279
- Parametrize test_deploy by @mikiw in #276
- Update CI; fix seed logging by @FabijanC in #281
- GitHub pages by @Hug0x0 in #265
- Fix positional args for addInvokeTransaction by @gregoryguillou in #283
- Update README.md - version release by @mikiw in #289
- Update readme by @mikiw in #291
- Support estimate_message_fee by @FabijanC in #287
New Contributors
- @Hug0x0 made their first contribution in #265
- @gregoryguillou made their first contribution in #283
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Usage related changes
- The predeployed/prefunded accounts adapted to the new tx version 1:
- Using OZ 0.4.0b with a minor modification to allow tx simulation
- Logging from dockerized Devnet enabled by default
- By using
PYTHONUNBUFFERED=1
as the default, no need to provide it manually
- By using
- Fixed account replication seed being displayed as None
- Allowing fee estimation for tx versions 0 and 1
- Fixed state root being empty
- JSON-RPC fixes:
- Fixed call return value
- Allowing requests without
params
where possible - Improved error handling; error codes more in line with specification
Development related changes
- In tests, replace using Starknet CLI wallet/account with predeployed OZ
- Refactor
test/account.py
andtest/util.py
- Restore skipped tests
Merged PRs
- Fix unappropriate rpc call return value by @war-in in #261
- Rpc/constructor calldata by @FabijanC in #262
- Correct gateway error message when contract not found by @war-in in #263
- Fix seed being None by @FabijanC in #264
- Allow fee estimation for version 0 and 1 by @FabijanC in #268
- Fix rpc default param and error handling by @FabijanC in #244
- Fix state root being empty by @FabijanC in #270
- PYTHONUNBUFFERED=1 as default behavior by @LucasLvy in #271
- Use forked OpenZeppelin account 0.4.0b by @FabijanC in #272
New Contributors
Full Changelog: v0.3.0...v0.3.1
v0.3.0
Usage related changes
- Partially adapted to Starknet / cairo-lang 0.10.0
- Dropped support for Python 3.7
- Tested with Starknet CLI account:
- Predeployed OZ accounts not guaranteed to work
- Block state root not calculated
- Transactions with version 1 not guaranteed to work
- API changes:
- Supported:
get_nonce
andsimulate_transaction
- Not yet supported:
estimate_message_fee
- Supported:
- RPC method
starknet_getStateUpdate
not guaranteed to work
--lite-mode
only affects block hash calculation (uses numbering instead of actual hash)- Removed
result
frominvoke
response. - Introduced modifying server timeout with
--timeout
parameter (can help with big contracts or slower machines)
Development related changes
- Skip incompatible tests
- Add formatting with
black
(./scripts/format.sh
)
Merged PRs
- Add formatting by @FabijanC in #237
- Parametrize block number test by @mikiw in #238
- 248 lite mode by @mikiw in #249
- Unification of test_general_workflow test by @mikiw in #255
- Add timeout argument to Devnet by @Nathan-SL in #256
- Adapt to cairo-lang 0.10.0 by @FabijanC in #246
Full Changelog: v0.2.11...v0.3.0
v0.2.11
Usage related changes
- Now supporting JSON-RPC API v0.1.0
- except methods
starknet_protocolVersion
,starknet_getEvents
andstarknet_getNonce
- except methods
- Updated predeployed accounts implementation to OpenZeppelin v0.3.1 (previously was OpenZeppelin v0.2.1)
- Now every commit to master is available as a Docker image:
shardlabs/starknet-devnet:<COMMIT_HASH>
- last commit also available as
shardlabs/starknet-devnet:next
Development related changes
- Refactored empty block creation
- Docker image building done in parallel
Merged PRs
- Support for RPC API Specification v0.1.0 by @drknzz in #220
- Update account contract implementation to OpenZeppelin 0.3.1 by @FabijanC in #229
- Build docker images in parallel with testing, push later by @FabijanC in #230
- Update of readme by @mikiw in #235
- Refactor/1 empty block creation by @internnos in #233
New Contributors
- @mikiw made their first contribution in #235
- @internnos made their first contribution in #233
Full Changelog: v0.2.10...v0.2.11
v0.2.10
Usage related changes
- Fixed dump/load and restart functionalities.
- Now waiting for dump to finish (letting it run in parallel was causing potential read-write race conditions)
- Improved CLI parameter handling
Development related changes
- Fix not running of all tests in CI/CD
- Improved testing
Merged PRs
- Enable shopt globstar in CI/CD to run tests in subdirectories by @FabijanC in #217
- Isolate devnet config, move parsing, dump synchronously by @FabijanC in #219
- Improve restart tests by @FabijanC in #222
- Improve non-negative action by @FabijanC in #224
Full Changelog: v0.2.9...v0.2.10