Skip to content

Releases: zksync-sdk/zksync2-python

v2.0.0

08 Nov 10:18
Compare
Choose a tag to compare

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 add createAccount and create2Account (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

07 Jun 11:52
Compare
Choose a tag to compare

This release is also available on:

  • v1.2.0

1.2.0 (2024-06-07)

Bug Fixes

  • fix abi contract cache (81b9e4c)
  • non zero gas limit in options breaks transfer function (d739a60)
  • zks_l1_chain_id not returning int type (0ebd1b8)

Features

  • provide support for Bridgehub (dabbfc0)

v1.1.0

18 Feb 21:20
Compare
Choose a tag to compare

This release is also available on:

  • v1.1.0

1.1.0 (2024-02-18)

Features

  • paymster withdraw and transfer support (66f7761)
  • provider: add zks_logProof (6d48dff)

v1.0.0

19 Jan 18:08
Compare
Choose a tag to compare

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

  • add WalletL1, WalletL2 and Wallet (b189068)
  • remove deprications (d2f2ce7)

BREAKING CHANGES

  • remove all deprications

v0.6.0

07 Jul 11:36
Compare
Choose a tag to compare

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

30 Jun 00:42
Compare
Choose a tag to compare
v0.6.0-beta.1 Pre-release
Pre-release

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

25 May 10:30
Compare
Choose a tag to compare
  • Fix get_l2_hash_from_priority_queue method.
  • Fix deposit workflow.
  • ContractEncoder.fromJson() returns list of contracts that are found in combined.json file generated by zksolc compiler.
  • Update examples

v0.4.0

02 Apr 15:47
Compare
Choose a tag to compare

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 to PrecomputeContractDeployer. Its purpose is only precomputing
  • ContractEncoder 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

11 Jan 22:22
Compare
Choose a tag to compare

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

15 Dec 15:13
e93a25d
Compare
Choose a tag to compare

Changes

  • Simplification of transaction building interface
    • added transaction builder helpers: TxFunctionCall, TxCreateContract, TxCreate2Contract
    • Transaction712 object is constructed automatically by helpers by using only estimated_gas value
  • 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 used tx attribute of Tx builder helpers