Releases: software-mansion/starknet.py
0.3.3-alpha
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
- Rollback pylint to 2.13.5, remove duplicate-code warning by @cptartur in #209
- estimate_fee updated by @war-in in #205
- Hot fix for using "get_code" in add_transaction by @war-in in #211
- migration guide deleted and guide updated by @war-in in #210
- v0.3.3-alpha by @war-in in #214
Full Changelog: 0.3.2-alpha...0.3.3-alpha
0.3.2-alpha
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
- Change dependency source by @Arcticae in #196
- Remove errors in whole codebase by @cptartur in #185
- Use BaseSigner in AccountClient, add default KeypairSigner by @cptartur in #182
- Use pylint 2.14.1 by @cptartur in #202
- New declare method by @war-in in #178
- Add new methods by @cptartur in #183
- v0.3.2-alpha by @cptartur in #206
Full Changelog: 0.3.1-alpha...0.3.2-alpha
0.3.1-alpha
What's changed
- Provide a fix for the security issue OpenZeppelin/cairo-contracts#344 within our
AccountClient
contract
0.3.0-alpha
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
What's Changed
- Remove wheel packaging by @THenry14 in #168
- Add checklist for releasing new starknet.py versions by @cptartur in #167
- Two more tests for estimate fee by @war-in in #166
- Update crypto-cpp-py by @THenry14 in #172
- Add mac wheels for crypto-cpp-py to lock file by @THenry14 in #184
- v0.2.5-alpha by @Arcticae in #186
Full Changelog: 0.2.4-alpha...0.2.5-alpha
0.2.4-alpha
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
- Quickstart and guide update by @war-in in #140
- Contract.from_address proxy support by @cptartur in #135
- Add parameter for changing between testnet and devnet in e2e tests by @cptartur in #143
- Fix parallel tests by @cptartur in #151
- Move crypto-cpp to separate package by @THenry14 in #153
- get_balance for account_client by @war-in in #150
- Update the way of creating account client in tests by @war-in in #157
- Fail checks if documentation fails by @war-in in #162
- Bug/estimate fee for account client by @war-in in #164
New Contributors
Full Changelog: 0.2.3-alpha...0.2.4-alpha
0.2.3-alpha
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
- Parallelize e2e tests by @cptartur in #136
- Add Compiler module by @cptartur in #102
- Improve transaction error messages by @cptartur in #131
- Documentation update for Contract and AccountClient by @war-in in #141
- Support starknet 0.8.2 by @cptartur in #144
New Contributors
Full Changelog: 0.2.0-alpha...0.2.3-alpha
0.2.2-alpha
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 onAccountClient
- 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
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 fromget_transaction_status
,get_transaction
andget_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
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 π