Releases: zksync-sdk/zksync2-python
Releases · zksync-sdk/zksync2-python
v2.0.0
This release is also available on:
v2.0.0
2.0.0 (2024-11-08)
Bug Fixes
estimate_default_bridge_deposit_l2_gas
use correct token (a173430)- wallet: fix custom bridge support (a095d5a)
- wallet: use
l2BridgeAddress
in_get_l2_gas_limit_from_custom_bridge
(b94636a)
Features
LegacyContractFactory
addcreateAccount
andcreate2Account
(2daa365)- add
SmartAccount
feature (15eb303) - improve
provider
typing (215168c) - provider: add
is_l2_bridge_legacy
(5cb4eb8) - provider: add
zks_get_confirmed_tokens
(fc72cf9) - provider: add
zks_get_fee_params
(82848dc) - provider: add
zks_get_protocol_version
(5005ef1) - provider: add
zks_send_raw_transaction_with_detailed_output
(b306242) - update
web3
to the latest version (cd0c34c) - wallet: add
l1_token_address
(b6c49d3)
BREAKING CHANGES
- update to
web3
v7
v1.2.0
v1.1.0
v1.0.0
This release is also available on:
v1.0.0
1.0.0 (2024-01-19)
Bug Fixes
withdraw
bridge address (6334874)withdraw
token bridge address (6d5b45c)withdraw
token bridge address (279bfd8)- relax web3 version restriction (5d50182)
- resolve issue relate to
wETH
bridge (48ac8cd)
Features
BREAKING CHANGES
- remove all deprications
v0.6.0
Add support for account abstraction and paymaster features:
- Add smart account deployment with create opcode.
- Add smart account deployment with create2 opcode.
- Support Paymaster parameters in EIP712 Transactions. Paymaster features can be used with EIP712 Transactions.
v0.6.0-beta.1
Add support for account abstraction and paymaster features:
- Add smart account deployment with create opcode.
- Add smart account deployment with create2 opcode.
- Support Paymaster parameters in EIP712 Transactions. Paymaster features can be used with EIP712 Transactions.
v0.5.0
- Fix
get_l2_hash_from_priority_queue
method. - Fix deposit workflow.
ContractEncoder.fromJson()
returns list of contracts that are found incombined.json
file generated byzksolc
compiler.- Update examples
v0.4.0
Breaking Changes
- moved to new web3 py == 6.0.0
- Split Transaction712 with ordinary transaction builders TxFunctionCall, TxCreateContract, TxCreate2Contract and new one TxWithdraw
- ZkSync main contract almost all methods are changes
- BridgeAddresses now contains only 2 addresses of contracts, all methods related to this type are also changed
- ZkSync module added some new methods for the new Withdrawal logic, new one
wait_finalized
. Signature is similar to wait_for_transaction_receipt ContractDeployer
is renamed toPrecomputeContractDeployer
. Its purpose is only precomputingContractEncoder
now can be directly built from JSON files of compiled contract- Changed methods of
L1Bridge
&L2Bridge
classes - Added
LegacyContractFactory
for simplification of deploying contract and use Legacy Eth transaction to interact with it - Added examples for the base functionality
v0.2.0
Changes
- Added PaymasterFlowEncoder for encoding paymaster parameters
- Added integration tests for custom paymaster case
- Update documentation relate to the paymaster subject
- Added integration test of deposit non-native tokens
Fixes:
- ERC20Contract methods moved to web3 py call
v0.1.0
Changes
- Simplification of transaction building interface
- added transaction builder helpers:
TxFunctionCall
,TxCreateContract
,TxCreate2Contract
Transaction712
object is constructed automatically by helpers by using onlyestimated_gas
value
- added transaction builder helpers:
- Updated documentation and example relate to the new API
Fixes:
eth_estimate_gas
method must accept full transaction to correct fee estimation.
For this must be usedtx
attribute of Tx builder helpers