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 signer
which 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
getOrder
renamed tosignOrder
. The method was used for signing and the name of the method was inconsistent.getLimitOrder
was renamed tosignLimitOrder
. The method was used for signing and the name of the method was inconsistent.- All methods whose name started with
get
for examplegetTransfer
were 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.
-
RestProvider
class, that is used for querying REST API v0.2. -
SyncProvider
interface: common interface for API v0.2RestProvider
and JSON RPCProvider
. -
Types for REST API v0.2.
-
RestProvider
class, that is used for queriing REST API v0.2. -
SyncProvider
interface: common interface for API v0.2RestProvider
and JSON RPCProvider
. -
Types for REST API v0.2.
- Changed type of
provider
field inWallet
class fromProvider
toSyncProvider
. ForcedExit
fee type is used forForcedExit
transactions instead ofWithdraw
fee type.zksync-crypto
to support atomic swaps/limit orders functionality.- Changed type of
provider
field inWallet
class fromProvider
toSyncProvider
. ForcedExit
fee type is used forForcedExit
transactions instead ofWithdraw
fee type.
- Exported classes:
ETHOperation
,Transaction
,ZKSyncTxError
- Exported types:
TotalFee
- (
BatchBuilder
) Make it possible to add signedChangePubKey
transaction to the batch.
- Method for calculation of transaction hash.
- Support for environments without WebAssembly.
- Hardcode gas limit for
depositERC20
for each token.
Signer.transferSignBytes
methodSigner.withdrawSignBytes
methodSigner.forcedExitSignBytes
methodSigner.changePubKeySignBytes
method
- Support of the new contracts upgrade functionality.
- BatchBuilder class for convenient batches creating.
zksync-crypto
release 0.4.5.
- WebSocket provider.
updateTokenSet
function that updates thetokenSet
stored in theProvider
.newMockProvider
andDummyTransport
. Tests for the library.closestGreaterOrEqPackableTransactionAmount
andclosestGreaterOrEqPackableTransactionFee
functions. Tests for them.- Checks for ERC-1271 wallets for whether the messages should be prefixed
- HTTP provider is now the default one.
- Bug with
integerToFloat
function. Now, it really rounds to the closest less or equal float number.
Version 0.8.3 is released.