@matterlabs/zksync-js 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
_TypeScript SDK for deposits, withdrawals, and RPC access across the Elastic Network_
|
|
6
6
|
|
|
7
|
-
**Note**: This repository is a successor to the original ZKsync SDK, which can be found at **[dutterbutter/zksync-sdk](https://github.com/dutterbutter/zksync-sdk)**.
|
|
8
|
-
|
|
9
7
|
[](https://github.com/matter-labs/zksync-js/actions/workflows/ci-check.yaml)
|
|
10
8
|
[](https://github.com/matter-labs/zksync-js/releases/latest)
|
|
11
9
|
[](LICENSE)
|
|
@@ -107,7 +105,7 @@ await sdk.deposits.wait(handle, { for: 'l2' });
|
|
|
107
105
|
console.log('Deposit complete ✅');
|
|
108
106
|
```
|
|
109
107
|
|
|
110
|
-
> See [Quickstart docs](https://matter-labs.github.io/zksync-js/quickstart/) for full examples.
|
|
108
|
+
> See [Quickstart docs](https://matter-labs.github.io/zksync-js/latest/quickstart/index.html) for full examples.
|
|
111
109
|
|
|
112
110
|
## 📚 Documentation
|
|
113
111
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createEthersClient } from '../../chunk-3MRGU4HV.js';
|
|
2
2
|
import '../../chunk-XRE7H466.js';
|
|
3
|
-
import '../../chunk-6K6VJQAL.js';
|
|
4
3
|
import '../../chunk-NCAIVYBR.js';
|
|
4
|
+
import '../../chunk-6K6VJQAL.js';
|
|
5
5
|
import '../../chunk-M5J2MM2U.js';
|
|
6
6
|
import '../../chunk-F2ENUV3A.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { buildDirectRequestStruct, createDepositsResource, createEthersSdk, createFinalizationServices, createTokensResource, createWithdrawalsResource, encodeNativeTokenVaultTransferData, encodeSecondBridgeArgs, encodeSecondBridgeDataV1, encodeSecondBridgeErc20Args, encodeSecondBridgeEthArgs } from '../../chunk-5YWP4CZP.js';
|
|
2
|
-
import '../../chunk-LL3WKCFJ.js';
|
|
3
|
-
import '../../chunk-NEC2ZKHI.js';
|
|
4
1
|
export { createEthersClient as createClient, createEthersClient } from '../../chunk-3MRGU4HV.js';
|
|
2
|
+
export { buildDirectRequestStruct, createDepositsResource, createEthersSdk, createFinalizationServices, createTokensResource, createWithdrawalsResource, encodeNativeTokenVaultTransferData, encodeSecondBridgeArgs, encodeSecondBridgeDataV1, encodeSecondBridgeErc20Args, encodeSecondBridgeEthArgs } from '../../chunk-NBJEQAOE.js';
|
|
5
3
|
export { classifyReadinessFromRevert, createErrorHandlers, decodeRevert, registerErrorAbi, toZKsyncError } from '../../chunk-XRE7H466.js';
|
|
6
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-LL3WKCFJ.js';
|
|
5
|
+
import '../../chunk-NEC2ZKHI.js';
|
|
7
6
|
import '../../chunk-NCAIVYBR.js';
|
|
7
|
+
import '../../chunk-6K6VJQAL.js';
|
|
8
8
|
import '../../chunk-M5J2MM2U.js';
|
|
9
9
|
import '../../chunk-F2ENUV3A.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createEthersSdk } from '../../chunk-
|
|
1
|
+
export { createEthersSdk } from '../../chunk-NBJEQAOE.js';
|
|
2
|
+
import '../../chunk-XRE7H466.js';
|
|
2
3
|
import '../../chunk-LL3WKCFJ.js';
|
|
3
4
|
import '../../chunk-NEC2ZKHI.js';
|
|
4
|
-
import '../../chunk-XRE7H466.js';
|
|
5
5
|
import '../../chunk-NCAIVYBR.js';
|
|
6
6
|
import '../../chunk-M5J2MM2U.js';
|
|
7
7
|
import '../../chunk-F2ENUV3A.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createViemClient as createClient, createViemClient } from '../../chunk-YUK547UF.js';
|
|
2
1
|
export { buildDirectRequestStruct, classifyReadinessFromRevert, createContractsResource, createDepositsResource, createErrorHandlers, createFinalizationServices, createTokensResource, createViemSdk, createWithdrawalsResource, decodeRevert, encodeNativeTokenVaultTransferData, encodeSecondBridgeArgs, encodeSecondBridgeDataV1, encodeSecondBridgeErc20Args, encodeSecondBridgeEthArgs, registerErrorAbi, toZKsyncError } from '../../chunk-JXUFGIJG.js';
|
|
3
2
|
import '../../chunk-LL3WKCFJ.js';
|
|
4
3
|
import '../../chunk-NEC2ZKHI.js';
|
|
5
|
-
import '../../chunk-6K6VJQAL.js';
|
|
6
4
|
import '../../chunk-NCAIVYBR.js';
|
|
5
|
+
export { createViemClient as createClient, createViemClient } from '../../chunk-YUK547UF.js';
|
|
6
|
+
import '../../chunk-6K6VJQAL.js';
|
|
7
7
|
import '../../chunk-M5J2MM2U.js';
|
|
8
8
|
import '../../chunk-F2ENUV3A.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { createErrorHandlers, toZKsyncError, classifyReadinessFromRevert } from './chunk-XRE7H466.js';
|
|
1
2
|
import { createNTVCodec, buildFeeBreakdown, quoteL2Gas, quoteL2BaseCost, quoteL1Gas, quoteL2Gas2 } from './chunk-LL3WKCFJ.js';
|
|
2
3
|
import { findL1MessageSentLog, messengerLogIndex, normalizeL1Token, isAddressEq, hexEq, isHash66, isETH, normalizeAddrEq, pickWithdrawRoute } from './chunk-NEC2ZKHI.js';
|
|
3
|
-
import { createErrorHandlers, toZKsyncError, classifyReadinessFromRevert } from './chunk-XRE7H466.js';
|
|
4
4
|
import { OP_WITHDRAWALS, IL1Nullifier_default, createError, OP_DEPOSITS, IERC20_default, isZKsyncError, isReceiptNotFound } from './chunk-M5J2MM2U.js';
|
|
5
5
|
import { ETH_ADDRESS, L1_MESSENGER_ADDRESS, L2_ASSET_ROUTER_ADDRESS, L2_BASE_TOKEN_ADDRESS, L2_NATIVE_TOKEN_VAULT_ADDRESS, TOPIC_CANONICAL_ASSIGNED, TOPIC_CANONICAL_SUCCESS, SAFE_L1_BRIDGE_GAS } from './chunk-F2ENUV3A.js';
|
|
6
6
|
import { Interface, AbiCoder, ethers, Contract, NonceManager } from 'ethers';
|