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:
python3
await contract = Contract.from_address("0x1234", client=client, proxy_config=True)
or use with custom proxies:
python3
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 https://github.com/software-mansion/starknet.py/pull/140
* Contract.from_address proxy support by cptartur in https://github.com/software-mansion/starknet.py/pull/135
* Add parameter for changing between testnet and devnet in e2e tests by cptartur in https://github.com/software-mansion/starknet.py/pull/143
* Fix parallel tests by cptartur in https://github.com/software-mansion/starknet.py/pull/151
* Move crypto-cpp to separate package by THenry14 in https://github.com/software-mansion/starknet.py/pull/153
* get_balance for account_client by war-in in https://github.com/software-mansion/starknet.py/pull/150
* Update the way of creating account client in tests by war-in in https://github.com/software-mansion/starknet.py/pull/157
* Fail checks if documentation fails by war-in in https://github.com/software-mansion/starknet.py/pull/162
* Bug/estimate fee for account client by war-in in https://github.com/software-mansion/starknet.py/pull/164
New Contributors
* THenry14 made their first contribution in https://github.com/software-mansion/starknet.py/pull/153
**Full Changelog**: https://github.com/software-mansion/starknet.py/compare/0.2.3-alpha...0.2.4-alpha