Skip to content

Releases: zksync-sdk/zksync2-go

v0.4.0

23 Feb 11:20
Compare
Choose a tag to compare

0.4.0 (2024-02-23)

Bug Fixes

  • accounts: FullRequiredDepositFee use default bridge address when missing msg.BridgeAddress (840c653)
  • accounts: WalletL2.SignTransaction populates transaction before signing (13f8d7f)
  • accounts: change default priority fee to 0 for zksync tx (37dbd47)
  • accounts: resolve error in formating string (6be5c6b)
  • clients: allow requestExecute transactions in block without signatrues (1744ee7)
  • clients: deprecate client.ConfirmedTokens (33372c4)
  • clients: deprecate client.TokenPrice (d5acec3)
  • clients: patch to work with geth:1.13.13 version #27 (8ee9d08)
  • resolve colision among dependencies #29 (dc8ad7a)
  • types: aligned types with zksync-core v18 (191cc74)
  • types: extend bridge contracts with WETH bridges (a21f294)
  • utils: pass bytes to GetGeneralPaymasterInput function #30 (8e62183)

Features

  • accounts: add WalletL2.DeploymentNonce for fetching deployment nonce (8099778)
  • clients: add BaseClient.Proof method for fetching storage proofs (9e06517)
  • update contracts to align with version v20.4.0 (463a6f3)
  • utils: add NonceHolderAddress variable (0365a37)

v0.3.2

10 Nov 17:43
Compare
Choose a tag to compare

0.3.2 (2023-11-10)

Bug Fixes

  • accounts,types: resolve errors in error messages (167cf5b)

v0.3.1

21 Aug 17:21
Compare
Choose a tag to compare

0.3.1 (2023-08-21)

Bug Fixes

  • accounts: ensure the Context if it's nil in WalletL2.Balance (e0d6064)
  • accounts: use correct Context and block number in WalletL1.BalanceL1 (2af4513), closes #22

v0.3.0

11 Aug 15:54
Compare
Choose a tag to compare

The design of the SDK is intended to align with the structure of the geth library, making migration easier. To achieve this, certain breakable changes and deprecations were necessary.

Breakable changes

  • All abstractions (Client, AdapterL1, AdapterL2, Deployer, Adapter) now have context-aware methods through: bind.CallOpts, bind.TransactOpts, accounts.CallOpts, accounts.TransactOpts, or context.Context.
  • Method parameters have been organized into structures to provide clearer functions and facilitate easier usage.
  • The return type of Wallet.ClaimFailedDeposit has been changed from common.Hash to *types.Transaction.
  • The return type of Wallet.Transfer has been changed from common.Hash to *types.Transaction.
  • The return type of Wallet.Withdraw has been changed from common.Hash to *types.Transaction.
  • The method Wallet.EstimateAndSend has been removed.
  • The method Wallet.GetProvider has been removed.
  • The method EthSigner.GetAddress has been renamed to EthSigner.Address.
  • The method EthSigner.GetDomain has been renamed to EthSigner.Domain.
  • The methods in eip712.TypedData no longer have the Get prefix.
  • eip712.DefaultEip712Domain has been renamed to ZkSyncEraEIP712Domain.
  • types.MessengerAddress has been renamed to L1MessengerAddress.
  • The method utils.ComputeL2Create2Address has been renamed to Create2Address.
  • The method utils.ComputeL2CreateAddress has been renamed to CreateAddress.

Deprecations:

  • EthereumProvider has been deprecated in favor of the AdapterL1 interface and its implementation, WalletL1.
  • Provider is deprecated in favor of the Client interface and its implementation, BaseClient.
  • EthSigner is deprecated in favor of Signer and its implementation, BaseSigner.

v0.2.0

23 Jun 15:07
Compare
Choose a tag to compare
  • Add support for account abstraction and paymaster.
  • Eliminated the need to specify bind.TransactOpts.GasTipCap value (maxPriorityFeePerGas) when performing write operation on a smart contract.

Breakable changes

The source code is organized to several packages and because of that import statements needs to be updated.

v0.1.1

12 Apr 12:42
Compare
Choose a tag to compare

v0.1.1 (2023-04-12)

Few fixes and enhacements:

  • use SuggestGasPrice by default
  • add optional Tx value parameter to Execute method

v0.1.0

04 Apr 17:22
Compare
Choose a tag to compare

v0.1.0 (2023-04-04)

Breaking changes of zkSync Era

SDK was totally updated according to general breaking changes of many aspects of zkSync ecosystem (zkSync Era public release).

There is a rough list of changed things:

  • renamed ergs to gas everywhere
  • updated Deposit method
  • added ClaimFailedDeposit method with all its dependencies
  • updated initial Withdraw method
  • added FinalizeWithdrawal method with all its dependencies
  • added IsWithdrawalFinalized method with all its dependencies
  • ZksGetL2ToL1LogProof, ZksGetBlockDetails, ZksL1BatchNumber and other custom methods was added
  • implemented custom GetTransaction and GetTransactionReceipt methods
  • implemented few queries to get enhanced blocks, logs - GetBlockByNumber, GetBlockByHash, GetLogs
  • added GetL2HashFromPriorityOp helper method
  • added WaitMined and WaitFinalized helpers
  • added few handy getters
  • added and updated smart contracts ABI's wrappers

and so on...

v0.0.2

21 Nov 15:43
2bf4bac
Compare
Choose a tag to compare

v0.0.2 (2022-11-21)

Bug Fixes

  • Updated ABI of the ContractDeployer system factory contract
  • Updated generating hash from bytecode to support codehash version

Initial release

24 Oct 10:30
Compare
Choose a tag to compare
v0.0.1

Add license