Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Releases: 0xSpaceShard/starknet-devnet

v0.4.1

24 Nov 15:55
Compare
Choose a tag to compare

Usage related changes

  • Adapt to StarkNet / cairo-lang 0.10.2:
    • Add /estimate_fee_bulk support
  • JSON-RPC: fix pending block behavior

Merged PRs

Full Changelog: v0.4.0...v0.4.1

v0.4.0

17 Nov 17:22
Compare
Choose a tag to compare

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
  • 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

Full Changelog: v0.3.5...v0.4.0

v0.3.5

27 Oct 12:45
Compare
Choose a tag to compare

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 as latest)

Development related changes

  • Update hardhat to 2.12.1
  • Change dev depencencies specification in pyproject.toml

Merged PRs

Full Changelog: v0.3.4...v0.3.5

v0.3.4

19 Oct 08:31
Compare
Choose a tag to compare

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 and starknet_addInvokeTransaction RPC methods

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

New Contributors

Full Changelog: v0.3.3...v0.3.4

v0.3.3

06 Oct 12:49
Compare
Choose a tag to compare

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

Full Changelog: v0.3.2...v0.3.3

v0.3.2

29 Sep 11:29
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

15 Sep 11:07
Compare
Choose a tag to compare

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
  • 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 and test/util.py
  • Restore skipped tests

Merged PRs

New Contributors

Full Changelog: v0.3.0...v0.3.1

v0.3.0

07 Sep 21:03
Compare
Choose a tag to compare

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 and simulate_transaction
      • Not yet supported: estimate_message_fee
    • RPC method starknet_getStateUpdate not guaranteed to work
  • --lite-mode only affects block hash calculation (uses numbering instead of actual hash)
  • Removed result from invoke 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

Full Changelog: v0.2.11...v0.3.0

v0.2.11

26 Aug 16:36
Compare
Choose a tag to compare

Usage related changes

  • Now supporting JSON-RPC API v0.1.0
    • except methods starknet_protocolVersion, starknet_getEvents and starknet_getNonce
  • 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

Full Changelog: v0.2.10...v0.2.11

v0.2.10

16 Aug 11:36
Compare
Choose a tag to compare

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

Full Changelog: v0.2.9...v0.2.10