Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Dec 04:20
· 88 commits to master since this release
49b25f9

This release introduces a breaking change of moving away from JSON-RPC v0.4.0 to v0.6.0. This is needed to properly support Starknet v0.13.0, as both JSON-RPC v0.4.1 and v0.5.0 fail to properly represent v3 transactions introduced in the new version.

Note

At the moment, each Starkli version only works with one JSON-RPC spec version. You're advised to use JSON-RPC v0.6.0 at this point, but if you have to use JSON-RPC v0.4.0, you'll need to downgrade Starkli to an older version.

A new built-in compiler version v2.4.0 has been added and is now used by default for networks running v0.13.0. Additionally, the network goerli-2 has been removed, and two new networks sepolia and sepolia-integration have been added.

A new --parse flag has been added to the class-at and class-by-hash commands to attempt to recover the original contract class artifacts from JSON-RPC provider responses. This is to solve the issue of not being able to re-declare classes due to the discrepancy in structures of a raw contract artifact from compiler output, and that of JSON-RPC. Using the new flag results in output that's formatted the same as raw compiler output.

Note

An alternative to supporting contract artifact recovery is to support declaring from raw JSON-RPC responses. However, the former is considered superior, as this recovered artifact can also be used outside of Starkli.

However, contract artifacts may not be recoverable under all cases, specifically when the ABI isn't valid JSON. These edge cases call for the latter approach (i.e. declaring directly from JSON-RPC response), which will be implemented in a future version.

Features

  • e196118: add sepolia-integration network
  • 89bab93: switch to jsonrpc v0.6.0
  • 7ddb0fd: add sepolia network
  • 426ef54: use compiler v2.4.0 for goerli and integration
  • d44ed7e: add 2.4.0 compiler version (#51)
  • 08b9571: parse fetched classes into original artifacts
  • e35c105: remove goerli-2 network

Misc

Full Changelog: v0.1.20...v0.2.0