Releases: zksync-sdk/zksync2-go
Releases · zksync-sdk/zksync2-go
v0.4.0
0.4.0 (2024-02-23)
Bug Fixes
- accounts:
FullRequiredDepositFee
use default bridge address when missingmsg.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
v0.3.2
v0.3.1
v0.3.0
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
, orcontext.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 fromcommon.Hash
to*types.Transaction
. - The return type of
Wallet.Transfer
has been changed fromcommon.Hash
to*types.Transaction
. - The return type of
Wallet.Withdraw
has been changed fromcommon.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 toEthSigner.Address
. - The method
EthSigner.GetDomain
has been renamed toEthSigner.Domain
. - The methods in
eip712.TypedData
no longer have theGet
prefix. eip712.DefaultEip712Domain
has been renamed toZkSyncEraEIP712Domain
.types.MessengerAddress
has been renamed toL1MessengerAddress
.- The method
utils.ComputeL2Create2Address
has been renamed toCreate2Address
. - The method
utils.ComputeL2CreateAddress
has been renamed toCreateAddress
.
Deprecations:
EthereumProvider
has been deprecated in favor of theAdapterL1
interface and its implementation,WalletL1
.Provider
is deprecated in favor of theClient
interface and its implementation,BaseClient
.EthSigner
is deprecated in favor ofSigner
and its implementation,BaseSigner
.
v0.2.0
- 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
v0.1.0
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
Initial release
v0.0.1 Add license