Skip to content

Releases: software-mansion/starknet.py

0.3.3-alpha

22 Jun 14:30
Compare
Choose a tag to compare

This versions improves estimate_fee behavior by adding a default block_number="pending" parameter that should result in more accurate fee estimations. It also fixes AccountClient behavior when used with account contracts that are using proxies.

What's Changed

Full Changelog: 0.3.2-alpha...0.3.3-alpha

0.3.2-alpha

15 Jun 15:11
Compare
Choose a tag to compare

This version brings support for new declare method, as well as fixes related to typing in the whole library. It also brings initial work on separation of AccountClient from message Signer.

What's Changed

Full Changelog: 0.3.1-alpha...0.3.2-alpha

0.3.1-alpha

10 Jun 09:31
Compare
Choose a tag to compare

What's changed

0.3.0-alpha

09 Jun 10:36
Compare
Choose a tag to compare

What's Changed

  • Use pending instead of latest as a default block parameter
  • Add is_account_contract parameter to compiler
  • Add deploy transaction version parameters
  • Enable warnings if max fee is set to zero
  • Bump cairo-lang to 0.9.0

Full Changelog: 0.2.5-alpha...0.3.0-alpha

0.2.5-alpha

03 Jun 11:58
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.4-alpha...0.2.5-alpha

0.2.4-alpha

25 May 09:58
Compare
Choose a tag to compare

This release brings long awaited updates to the documentation as well as improvements and fixes to APIs including:

  • fix for fee estimation in AccountClient
  • proxy support in Contract.from_address
  • support for checking balance in starknet token bridge using AccountClient
  • improved quick-start guide

Proxy support

Contract.from_address now support resolving proxies, with out of the box support for Argent and OpenZeppelin proxy format (see docs on how to add custom proxies). Just pass a proxy_config=True to use default proxy resolving:

await contract = Contract.from_address("0x1234", client=client, proxy_config=True)

or use with custom proxies:

class CustomProxy(ProxyConfig):
    async def is_proxy(self, contract: "Contract") -> bool:
        ...

    async def implementation_address(self, contract: "Contract") -> int:
        ...


proxy = CustomProxy()
await contract = Contract.from_address("0x1234", client=client, proxy_config={"proxy_checks": [proxy]})

What's Changed

New Contributors

Full Changelog: 0.2.3-alpha...0.2.4-alpha

0.2.3-alpha

12 May 09:28
Compare
Choose a tag to compare

StarkNet 0.8.2

This version adds initial support for Starknet 0.8.2. Package dependencies has been updated to support cairo-lang 0.8.2.1, and support for new feeder_gateway parameters added by this version is coming in a later release.

Also added in this release is a new starknet compiler module, and improvements to transaction error messages.

We've also updated examples in our documentation to reflect changes in recent StarkNet.py versions (πŸ™ @war-in)

What's Changed

New Contributors

Full Changelog: 0.2.0-alpha...0.2.3-alpha

0.2.2-alpha

14 Apr 15:37
Compare
Choose a tag to compare

StarkNet 0.8.1

New version of StarkNet.py is out bringing support for StarkNet 0.8.1 and minor upgrades to the library including:

  • Exposed public_key property on AccountClient
  • Custom transaction failure exceptions
  • Restored support for python versions 3.9

What's Changed

  • Add note about max_fee on mainnet by @cptartur in #111
  • Expose public key in AccountClient by @unparalleled-js in #107
  • Support cairo-lang 0.8.1 by @cptartur in #118
  • Fix devnet dependency, restore python 3.9 support by @cptartur in #120
  • Add custom exceptions for transaction failures by @cptartur in #115

Full Changelog: 0.2.0-alpha...0.2.2-alpha

0.2.0-alpha

28 Mar 13:15
Compare
Choose a tag to compare

StarkNet 0.8.0

New version of StarkNet.py is out, bringing support for StarkNet 0.8.0 and several changes to the API:

  • Fee mechanism support including fee estimation
  • Cairo-lang named tuples
  • Changed account contract
  • Removal of tx_id param from get_transaction_status, get_transaction and get_transaction_receipt
  • Other improvements, see "What's Changed" below

Your code will need to be updated to work with this version of StarkNet.py as it contains breaking changes.

See migration guide for more in depth instructions.

What's Changed

  • Expose search paths when compiling contracts by @cptartur in #97
  • docs: show how to import AccountClient by @unparalleled-js in #99
  • fix: correct the type of Multicall.calls by @unparalleled-js in #101
  • Support starknet 0.8.0 by @cptartur in #109

Full Changelog: 0.1.8-alpha...0.2.0-alpha

0.1.8-alpha

07 Mar 18:14
Compare
Choose a tag to compare

What's Changed

  • Update documentation by @cptartur in #98
  • chore: upgrade web.py and adjust supported python 3.7 range by @unparalleled-js in #92
  • Starknet 0.7.1 changes, support for new OpenZeppelin Account by @MaksymilianDemitraszek in #88
  • Fix false-positive test results by @Arcticae in #96

New Contributors

Full Changelog: 0.1.7-alpha...0.1.8-alpha

Special thanks to @unparalleled-js for her 2nd contribution, much appreciated πŸ‘