github NethermindEth/starknet.go v0.17.0

14 hours ago

This release implements Starknet RPC v0.9.0

Key changes:

  • New paymaster pkg for interacting with paymaster services via the SNIP-29 API (see the examples/paymaster folder to learn how to use it).
  • Now, all the account.BuildAndSend* methods will automatically estimate and set the tip to be used in the transaction
    based on the average tip of all transactions in the latest block. The user can set a custom tip by setting the CustomTip
    field in the opts *TxnOptions parameter to override the automatic estimation.
  • The rpc.NewProvider function now returns an error if the node RPC version is different from the version
    implemented by the starknet.go provider. The returned Provider instance is still valid, but there might be
    unexpected behaviour due to the spec differences.
  • New rpc.EstimateTip and rpc.IsCompatible utility functions.
  • Two bug fixes in utilities related to fee calculation.

For more details, see the CHANGELOG file.

What's Changed

  • chore(deps): bump vite from 6.3.6 to 6.4.1 in /docs in the npm_and_yarn group across 1 directory by @dependabot[bot] in #803
  • refactor: update RPC provider initialization to use context by @thiagodeev in #804
  • chore(deps): bump hono from 4.9.10 to 4.10.2 in /docs in the npm_and_yarn group across 1 directory by @dependabot[bot] in #806
  • Thiagodeev: new provider.IsCompatible method + error returned by Provider by @thiagodeev in #807
  • feat: implement SNIP-29 (issue #745) by @Salonii02 in #768
  • refactor: rename typedata package to typeddata by @thiagodeev in #811
  • chore(deps): bump hono from 4.10.2 to 4.10.3 in /docs in the npm_and_yarn group across 1 directory by @dependabot[bot] in #814
  • Thiagodeev/fix-fee-limit by @thiagodeev in #819
  • fix: Overall Fee calculation by @thiagodeev in #820
  • feat: tip estimation utility + automatically tip estimation for account methods by @thiagodeev in #812

New Contributors

Full Changelog: v0.16.0...v0.17.0

Don't miss a new starknet.go release

NewReleases is sending notifications on new releases.