All notable changes to zksync.js will be documented in this file.
! Important, version 0.12.0 contains breaking changes, please make fixes before upgrading this npm package.
- We've added
remote json rpc signerwhich means you could add support of zkSync L2 Wallets such as Argent zkSync or other applications into your dapp. Read more here http://docs.zksync.io/api/sdk/js/accounts.html#creating-wallet-from-l2-wallets
getOrderrenamed tosignOrder. The method was used for signing and the name of the method was inconsistent.getLimitOrderwas renamed tosignLimitOrder. The method was used for signing and the name of the method was inconsistent.- All methods whose name started with
getfor examplegetTransferwere deleted. Now for this purpose, you could useBatchBuilder.
-
Methods for working with NFTs. You can read more here.
-
Methods for working with atomic swaps/limit orders. You can read more here.
-
RestProviderclass, that is used for querying REST API v0.2. -
SyncProviderinterface: common interface for API v0.2RestProviderand JSON RPCProvider. -
Types for REST API v0.2.
-
RestProviderclass, that is used for queriing REST API v0.2. -
SyncProviderinterface: common interface for API v0.2RestProviderand JSON RPCProvider. -
Types for REST API v0.2.
- Changed type of
providerfield inWalletclass fromProvidertoSyncProvider. ForcedExitfee type is used forForcedExittransactions instead ofWithdrawfee type.zksync-cryptoto support atomic swaps/limit orders functionality.- Changed type of
providerfield inWalletclass fromProvidertoSyncProvider. ForcedExitfee type is used forForcedExittransactions instead ofWithdrawfee type.
- Exported classes:
ETHOperation,Transaction,ZKSyncTxError - Exported types:
TotalFee
- (
BatchBuilder) Make it possible to add signedChangePubKeytransaction to the batch.
- Method for calculation of transaction hash.
- Support for environments without WebAssembly.
- Hardcode gas limit for
depositERC20for each token.
Signer.transferSignBytesmethodSigner.withdrawSignBytesmethodSigner.forcedExitSignBytesmethodSigner.changePubKeySignBytesmethod
- Support of the new contracts upgrade functionality.
- BatchBuilder class for convenient batches creating.
zksync-cryptorelease 0.4.5.
- WebSocket provider.
updateTokenSetfunction that updates thetokenSetstored in theProvider.newMockProviderandDummyTransport. Tests for the library.closestGreaterOrEqPackableTransactionAmountandclosestGreaterOrEqPackableTransactionFeefunctions. Tests for them.- Checks for ERC-1271 wallets for whether the messages should be prefixed
- HTTP provider is now the default one.
- Bug with
integerToFloatfunction. Now, it really rounds to the closest less or equal float number.
Version 0.8.3 is released.