@matterlabs/zksync-js 0.0.21 → 0.0.23
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/dist/adapters/ethers/client.cjs +31 -8
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.d.ts +11 -0
- package/dist/adapters/ethers/client.js +6 -5
- package/dist/adapters/ethers/index.cjs +1194 -364
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.d.ts +2 -1
- package/dist/adapters/ethers/index.js +10 -8
- package/dist/adapters/ethers/resources/deposits/context.d.ts +2 -0
- package/dist/adapters/ethers/resources/deposits/services/gas.d.ts +3 -0
- package/dist/adapters/ethers/resources/withdrawals/context.d.ts +12 -1
- package/dist/adapters/ethers/resources/withdrawals/index.d.ts +17 -1
- package/dist/adapters/ethers/resources/withdrawals/routes/interop-bundle.d.ts +2 -0
- package/dist/adapters/ethers/resources/withdrawals/services/finalization.d.ts +35 -17
- package/dist/adapters/ethers/resources/withdrawals/services/protocol.d.ts +11 -0
- package/dist/adapters/ethers/sdk.cjs +1166 -370
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.d.ts +3 -1
- package/dist/adapters/ethers/sdk.js +8 -7
- package/dist/adapters/viem/client.cjs +44 -7
- package/dist/adapters/viem/client.cjs.map +1 -1
- package/dist/adapters/viem/client.d.ts +11 -0
- package/dist/adapters/viem/client.js +6 -5
- package/dist/adapters/viem/index.cjs +1237 -383
- package/dist/adapters/viem/index.cjs.map +1 -1
- package/dist/adapters/viem/index.d.ts +2 -1
- package/dist/adapters/viem/index.js +10 -8
- package/dist/adapters/viem/resources/deposits/context.d.ts +2 -0
- package/dist/adapters/viem/resources/deposits/services/gas.d.ts +3 -0
- package/dist/adapters/viem/resources/withdrawals/context.d.ts +12 -1
- package/dist/adapters/viem/resources/withdrawals/index.d.ts +17 -1
- package/dist/adapters/viem/resources/withdrawals/routes/interop-bundle.d.ts +2 -0
- package/dist/adapters/viem/resources/withdrawals/services/finalization.d.ts +36 -18
- package/dist/adapters/viem/resources/withdrawals/services/protocol.d.ts +11 -0
- package/dist/adapters/viem/sdk.cjs +1191 -385
- package/dist/adapters/viem/sdk.cjs.map +1 -1
- package/dist/adapters/viem/sdk.d.ts +3 -1
- package/dist/adapters/viem/sdk.js +8 -7
- package/dist/{chunk-UEKFQAOS.js → chunk-2DDJFHHD.js} +304 -9
- package/dist/{chunk-MT4X5FEO.js → chunk-3IPSDGHO.js} +19 -1
- package/dist/{chunk-JSBMIT4S.js → chunk-4GPIHYVF.js} +1 -1
- package/dist/{chunk-SBGBYZJM.js → chunk-4M7VNYGC.js} +2 -2
- package/dist/{chunk-CK5UFAZK.js → chunk-6WIAMFIW.js} +37 -3
- package/dist/chunk-JJ523MOL.js +157 -0
- package/dist/{chunk-7GZDTLHX.js → chunk-NVOFHV3A.js} +666 -304
- package/dist/{chunk-LGTYM5XP.js → chunk-OEUDZFXH.js} +1 -1
- package/dist/{chunk-NJK325XV.js → chunk-TUN6NH5D.js} +2 -2
- package/dist/chunk-UMPAKZCQ.js +19 -0
- package/dist/{chunk-24TE2NNJ.js → chunk-URHDNDFN.js} +24 -4
- package/dist/{chunk-2CGBLD5H.js → chunk-V2TDNGI5.js} +642 -288
- package/dist/{chunk-IDXSGCGF.js → chunk-WPCZNITC.js} +63 -50
- package/dist/{chunk-TYYUG5GA.js → chunk-X2JJDQ4O.js} +1 -1
- package/dist/core/abi.d.ts +1 -0
- package/dist/core/adapters/interfaces.d.ts +2 -0
- package/dist/core/constants.cjs +18 -0
- package/dist/core/constants.cjs.map +1 -1
- package/dist/core/constants.d.ts +17 -0
- package/dist/core/constants.js +1 -1
- package/dist/core/index.cjs +504 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/core/index.js +6 -4
- package/dist/core/internal/abis/IERC7786Attributes.d.ts +10 -0
- package/dist/core/internal/abis/IL1NullifierV32.d.ts +221 -0
- package/dist/core/internal/abis/IL2AssetRouter.d.ts +0 -14
- package/dist/core/resources/deposits/priority.d.ts +30 -0
- package/dist/core/resources/interop/attributes/bundle.d.ts +1 -0
- package/dist/core/resources/interop/attributes/resource.d.ts +1 -0
- package/dist/core/resources/protocol/semver.d.ts +18 -0
- package/dist/core/resources/withdrawals/bundle.d.ts +80 -0
- package/dist/core/resources/withdrawals/finalization.d.ts +142 -0
- package/dist/core/resources/withdrawals/protocol.d.ts +55 -0
- package/dist/core/types/flows/withdrawals.d.ts +30 -0
- package/dist/index.cjs +320 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { WithdrawalFeeBreakdown, TxOverrides } from '../fees';
|
|
2
2
|
import type { Address, Hex } from '../primitives';
|
|
3
3
|
import type { ApprovalNeed, Plan, Handle } from './base';
|
|
4
|
+
import type { WithdrawalBundleFinalization } from '../../resources/withdrawals/finalization';
|
|
4
5
|
/** Input */
|
|
5
6
|
export interface WithdrawParams {
|
|
6
7
|
token: Address;
|
|
@@ -52,7 +53,36 @@ export type WithdrawalKey = {
|
|
|
52
53
|
chainIdL2: bigint;
|
|
53
54
|
l2BatchNumber: bigint;
|
|
54
55
|
l2MessageIndex: bigint;
|
|
56
|
+
/**
|
|
57
|
+
* Hash of the withdrawal's interop bundle. Only present on protocol v32+ chains, where it — not
|
|
58
|
+
* `(chainId, batch, messageIndex)` — is what identifies the withdrawal on L1.
|
|
59
|
+
*/
|
|
60
|
+
bundleHash?: Hex;
|
|
55
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Protocol-tagged finalization arguments.
|
|
64
|
+
*
|
|
65
|
+
* v31 and v32 finalize withdrawals on different contracts with entirely different arguments, so the
|
|
66
|
+
* derived parameters are a discriminated union rather than one widened shape:
|
|
67
|
+
*
|
|
68
|
+
* - `legacy-withdrawal` — `L1Nullifier.finalizeDeposit(FinalizeL1DepositParams)`
|
|
69
|
+
* - `interop-bundle` — `L1InteropHandler.executeBundle(bundle, MessageInclusionProof)`
|
|
70
|
+
*/
|
|
71
|
+
export type WithdrawalFinalization = {
|
|
72
|
+
protocol: 'legacy-withdrawal';
|
|
73
|
+
params: FinalizeDepositParams;
|
|
74
|
+
} | {
|
|
75
|
+
protocol: 'interop-bundle';
|
|
76
|
+
params: WithdrawalBundleFinalization;
|
|
77
|
+
};
|
|
78
|
+
/** Resolved finalization arguments together with the L1 contract they target. */
|
|
79
|
+
export interface ResolvedWithdrawalFinalization {
|
|
80
|
+
/** The L1 contract to send the finalization to. */
|
|
81
|
+
target: Address;
|
|
82
|
+
finalization: WithdrawalFinalization;
|
|
83
|
+
/** Identifying key, for status reporting. */
|
|
84
|
+
key: WithdrawalKey;
|
|
85
|
+
}
|
|
56
86
|
export type WithdrawalPhase = 'L2_PENDING' | 'L2_INCLUDED' | 'PENDING' | 'READY_TO_FINALIZE' | 'FINALIZING' | 'FINALIZED' | 'FINALIZE_FAILED' | 'UNFINALIZABLE' | 'UNKNOWN';
|
|
57
87
|
export type WithdrawalStatus = {
|
|
58
88
|
phase: WithdrawalPhase;
|
package/dist/index.cjs
CHANGED
|
@@ -22,20 +22,28 @@ __export(constants_exports, {
|
|
|
22
22
|
L1_FEE_ESTIMATION_COEF_NUMERATOR: () => L1_FEE_ESTIMATION_COEF_NUMERATOR,
|
|
23
23
|
L1_MESSENGER_ADDRESS: () => L1_MESSENGER_ADDRESS,
|
|
24
24
|
L1_SOPH_TOKEN_ADDRESS: () => L1_SOPH_TOKEN_ADDRESS,
|
|
25
|
+
L1_TX_CALLDATA_FLOOR_PRICE_L2_GAS_ZKSYNC_OS: () => L1_TX_CALLDATA_FLOOR_PRICE_L2_GAS_ZKSYNC_OS,
|
|
25
26
|
L1_TX_DELTA_544_ENCODING_BYTES: () => L1_TX_DELTA_544_ENCODING_BYTES,
|
|
26
27
|
L1_TX_DELTA_FACTORY_DEPS_L2_GAS: () => L1_TX_DELTA_FACTORY_DEPS_L2_GAS,
|
|
27
28
|
L1_TX_DELTA_FACTORY_DEPS_PUBDATA: () => L1_TX_DELTA_FACTORY_DEPS_PUBDATA,
|
|
28
29
|
L1_TX_INTRINSIC_L2_GAS: () => L1_TX_INTRINSIC_L2_GAS,
|
|
30
|
+
L1_TX_INTRINSIC_L2_GAS_ZKSYNC_OS: () => L1_TX_INTRINSIC_L2_GAS_ZKSYNC_OS,
|
|
29
31
|
L1_TX_INTRINSIC_PUBDATA: () => L1_TX_INTRINSIC_PUBDATA,
|
|
32
|
+
L1_TX_INTRINSIC_PUBDATA_ZKSYNC_OS: () => L1_TX_INTRINSIC_PUBDATA_ZKSYNC_OS,
|
|
30
33
|
L1_TX_MIN_L2_GAS_BASE: () => L1_TX_MIN_L2_GAS_BASE,
|
|
34
|
+
L1_TX_NATIVE_PER_GAS: () => L1_TX_NATIVE_PER_GAS,
|
|
31
35
|
L2_ASSET_ROUTER_ADDRESS: () => L2_ASSET_ROUTER_ADDRESS,
|
|
32
36
|
L2_BASE_TOKEN_ADDRESS: () => L2_BASE_TOKEN_ADDRESS,
|
|
37
|
+
L2_INTEROP_ATTRIBUTE_PARSER_ADDRESS: () => L2_INTEROP_ATTRIBUTE_PARSER_ADDRESS,
|
|
33
38
|
L2_INTEROP_CENTER_ADDRESS: () => L2_INTEROP_CENTER_ADDRESS,
|
|
34
39
|
L2_INTEROP_HANDLER_ADDRESS: () => L2_INTEROP_HANDLER_ADDRESS,
|
|
35
40
|
L2_INTEROP_ROOT_STORAGE_ADDRESS: () => L2_INTEROP_ROOT_STORAGE_ADDRESS,
|
|
36
41
|
L2_MESSAGE_VERIFICATION_ADDRESS: () => L2_MESSAGE_VERIFICATION_ADDRESS,
|
|
37
42
|
L2_NATIVE_TOKEN_VAULT_ADDRESS: () => L2_NATIVE_TOKEN_VAULT_ADDRESS,
|
|
43
|
+
MAX_NATIVE_COMPUTATIONAL_ZKSYNC_OS: () => MAX_NATIVE_COMPUTATIONAL_ZKSYNC_OS,
|
|
38
44
|
PRIORITY_TX_MAX_GAS_LIMIT: () => PRIORITY_TX_MAX_GAS_LIMIT,
|
|
45
|
+
REGISTERED_TOKEN_BRIDGE_MINT_EXECUTION_GAS: () => REGISTERED_TOKEN_BRIDGE_MINT_EXECUTION_GAS,
|
|
46
|
+
REGISTERED_TOKEN_BRIDGE_MINT_PUBDATA_BYTES: () => REGISTERED_TOKEN_BRIDGE_MINT_PUBDATA_BYTES,
|
|
39
47
|
SAFE_L1_BRIDGE_GAS: () => SAFE_L1_BRIDGE_GAS,
|
|
40
48
|
TOPIC_CANONICAL_ASSIGNED: () => TOPIC_CANONICAL_ASSIGNED,
|
|
41
49
|
TOPIC_CANONICAL_SUCCESS: () => TOPIC_CANONICAL_SUCCESS,
|
|
@@ -45,6 +53,7 @@ __export(constants_exports, {
|
|
|
45
53
|
TX_MEMORY_OVERHEAD_GAS: () => TX_MEMORY_OVERHEAD_GAS,
|
|
46
54
|
TX_OVERHEAD_GAS: () => TX_OVERHEAD_GAS,
|
|
47
55
|
TX_SLOT_OVERHEAD_L2_GAS: () => TX_SLOT_OVERHEAD_L2_GAS,
|
|
56
|
+
ZKSYNC_OS_PRIORITY_TX_TYPE: () => ZKSYNC_OS_PRIORITY_TX_TYPE,
|
|
48
57
|
k256hex: () => k256hex
|
|
49
58
|
});
|
|
50
59
|
var k256hex = (s) => `0x${utils.bytesToHex(sha3.keccak_256(utils.utf8ToBytes(s)))}`.toLowerCase();
|
|
@@ -57,6 +66,7 @@ var L2_BASE_TOKEN_ADDRESS = "0x000000000000000000000000000000000000800A";
|
|
|
57
66
|
var L2_INTEROP_CENTER_ADDRESS = "0x000000000000000000000000000000000001000d";
|
|
58
67
|
var L2_INTEROP_HANDLER_ADDRESS = "0x000000000000000000000000000000000001000e";
|
|
59
68
|
var L2_INTEROP_ROOT_STORAGE_ADDRESS = "0x0000000000000000000000000000000000010008";
|
|
69
|
+
var L2_INTEROP_ATTRIBUTE_PARSER_ADDRESS = "0x0000000000000000000000000000000000010015";
|
|
60
70
|
var L2_MESSAGE_VERIFICATION_ADDRESS = "0x0000000000000000000000000000000000010009";
|
|
61
71
|
var L1_SOPH_TOKEN_ADDRESS = "0xa9544a49d4aEa4c8E074431c89C79fA9592049d8";
|
|
62
72
|
var BUNDLE_IDENTIFIER = "0x01";
|
|
@@ -79,6 +89,14 @@ var L1_TX_DELTA_FACTORY_DEPS_L2_GAS = 2473n;
|
|
|
79
89
|
var L1_TX_DELTA_FACTORY_DEPS_PUBDATA = 64n;
|
|
80
90
|
var TX_SLOT_OVERHEAD_L2_GAS = 10000n;
|
|
81
91
|
var PRIORITY_TX_MAX_GAS_LIMIT = 72000000n;
|
|
92
|
+
var L1_TX_INTRINSIC_L2_GAS_ZKSYNC_OS = 21000n;
|
|
93
|
+
var L1_TX_CALLDATA_FLOOR_PRICE_L2_GAS_ZKSYNC_OS = 40n;
|
|
94
|
+
var L1_TX_INTRINSIC_PUBDATA_ZKSYNC_OS = 351n;
|
|
95
|
+
var MAX_NATIVE_COMPUTATIONAL_ZKSYNC_OS = 1n << 35n;
|
|
96
|
+
var L1_TX_NATIVE_PER_GAS = 100000000n;
|
|
97
|
+
var ZKSYNC_OS_PRIORITY_TX_TYPE = "0x7f";
|
|
98
|
+
var REGISTERED_TOKEN_BRIDGE_MINT_EXECUTION_GAS = 140000n;
|
|
99
|
+
var REGISTERED_TOKEN_BRIDGE_MINT_PUBDATA_BYTES = 300n;
|
|
82
100
|
var L1_FEE_ESTIMATION_COEF_NUMERATOR = 12;
|
|
83
101
|
var L1_FEE_ESTIMATION_COEF_DENOMINATOR = 10;
|
|
84
102
|
|
|
@@ -96,6 +114,7 @@ __export(abi_exports, {
|
|
|
96
114
|
IL1AssetRouterABI: () => IL1AssetRouter_default,
|
|
97
115
|
IL1ContractErrorsABI: () => IL1ContractErrors_default,
|
|
98
116
|
IL1NullifierABI: () => IL1Nullifier_default,
|
|
117
|
+
IL1NullifierV32ABI: () => IL1NullifierV32_default,
|
|
99
118
|
IL2AssetRouterABI: () => IL2AssetRouter_default,
|
|
100
119
|
L1NativeTokenVaultABI: () => L1NativeTokenVault_default,
|
|
101
120
|
L2MessageVerificationABI: () => L2MessageVerification_default,
|
|
@@ -2723,6 +2742,294 @@ var IL1NullifierABI = [
|
|
|
2723
2742
|
];
|
|
2724
2743
|
var IL1Nullifier_default = IL1NullifierABI;
|
|
2725
2744
|
|
|
2745
|
+
// src/core/internal/abis/IL1NullifierV32.ts
|
|
2746
|
+
var IL1NullifierV32ABI = [
|
|
2747
|
+
{
|
|
2748
|
+
anonymous: false,
|
|
2749
|
+
inputs: [
|
|
2750
|
+
{
|
|
2751
|
+
indexed: true,
|
|
2752
|
+
internalType: "uint256",
|
|
2753
|
+
name: "chainId",
|
|
2754
|
+
type: "uint256"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
indexed: true,
|
|
2758
|
+
internalType: "bytes32",
|
|
2759
|
+
name: "txDataHash",
|
|
2760
|
+
type: "bytes32"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
indexed: true,
|
|
2764
|
+
internalType: "bytes32",
|
|
2765
|
+
name: "l2DepositTxHash",
|
|
2766
|
+
type: "bytes32"
|
|
2767
|
+
}
|
|
2768
|
+
],
|
|
2769
|
+
name: "BridgehubDepositFinalized",
|
|
2770
|
+
type: "event"
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
inputs: [],
|
|
2774
|
+
name: "BRIDGE_HUB",
|
|
2775
|
+
outputs: [
|
|
2776
|
+
{
|
|
2777
|
+
internalType: "contract IL1Bridgehub",
|
|
2778
|
+
name: "",
|
|
2779
|
+
type: "address"
|
|
2780
|
+
}
|
|
2781
|
+
],
|
|
2782
|
+
stateMutability: "view",
|
|
2783
|
+
type: "function"
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
inputs: [],
|
|
2787
|
+
name: "l1AssetRouter",
|
|
2788
|
+
outputs: [
|
|
2789
|
+
{
|
|
2790
|
+
internalType: "contract IL1AssetRouter",
|
|
2791
|
+
name: "",
|
|
2792
|
+
type: "address"
|
|
2793
|
+
}
|
|
2794
|
+
],
|
|
2795
|
+
stateMutability: "view",
|
|
2796
|
+
type: "function"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
// The contract that took over withdrawal finalization from the nullifier's own (removed)
|
|
2800
|
+
// `finalizeDeposit`.
|
|
2801
|
+
inputs: [],
|
|
2802
|
+
name: "l1InteropHandler",
|
|
2803
|
+
outputs: [
|
|
2804
|
+
{
|
|
2805
|
+
internalType: "address",
|
|
2806
|
+
name: "",
|
|
2807
|
+
type: "address"
|
|
2808
|
+
}
|
|
2809
|
+
],
|
|
2810
|
+
stateMutability: "view",
|
|
2811
|
+
type: "function"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
inputs: [],
|
|
2815
|
+
name: "l1NativeTokenVault",
|
|
2816
|
+
outputs: [
|
|
2817
|
+
{
|
|
2818
|
+
internalType: "contract IL1NativeTokenVault",
|
|
2819
|
+
name: "",
|
|
2820
|
+
type: "address"
|
|
2821
|
+
}
|
|
2822
|
+
],
|
|
2823
|
+
stateMutability: "view",
|
|
2824
|
+
type: "function"
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
inputs: [
|
|
2828
|
+
{
|
|
2829
|
+
internalType: "uint256",
|
|
2830
|
+
name: "_chainId",
|
|
2831
|
+
type: "uint256"
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
internalType: "bytes32",
|
|
2835
|
+
name: "_l2TxHash",
|
|
2836
|
+
type: "bytes32"
|
|
2837
|
+
}
|
|
2838
|
+
],
|
|
2839
|
+
name: "depositHappened",
|
|
2840
|
+
outputs: [
|
|
2841
|
+
{
|
|
2842
|
+
internalType: "bytes32",
|
|
2843
|
+
name: "",
|
|
2844
|
+
type: "bytes32"
|
|
2845
|
+
}
|
|
2846
|
+
],
|
|
2847
|
+
stateMutability: "view",
|
|
2848
|
+
type: "function"
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
inputs: [
|
|
2852
|
+
{
|
|
2853
|
+
internalType: "uint256",
|
|
2854
|
+
name: "_chainId",
|
|
2855
|
+
type: "uint256"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
internalType: "bytes32",
|
|
2859
|
+
name: "_txDataHash",
|
|
2860
|
+
type: "bytes32"
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
internalType: "bytes32",
|
|
2864
|
+
name: "_txHash",
|
|
2865
|
+
type: "bytes32"
|
|
2866
|
+
}
|
|
2867
|
+
],
|
|
2868
|
+
name: "bridgehubConfirmL2TransactionForwarded",
|
|
2869
|
+
outputs: [],
|
|
2870
|
+
stateMutability: "nonpayable",
|
|
2871
|
+
type: "function"
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
inputs: [
|
|
2875
|
+
{
|
|
2876
|
+
components: [
|
|
2877
|
+
{
|
|
2878
|
+
internalType: "uint256",
|
|
2879
|
+
name: "_chainId",
|
|
2880
|
+
type: "uint256"
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
internalType: "address",
|
|
2884
|
+
name: "_depositSender",
|
|
2885
|
+
type: "address"
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
internalType: "uint16",
|
|
2889
|
+
name: "_l2TxNumberInBatch",
|
|
2890
|
+
type: "uint16"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
internalType: "enum TxStatus",
|
|
2894
|
+
name: "_txStatus",
|
|
2895
|
+
type: "uint8"
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
internalType: "bytes32",
|
|
2899
|
+
name: "_assetId",
|
|
2900
|
+
type: "bytes32"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
internalType: "bytes",
|
|
2904
|
+
name: "_assetData",
|
|
2905
|
+
type: "bytes"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
internalType: "bytes32",
|
|
2909
|
+
name: "_l2TxHash",
|
|
2910
|
+
type: "bytes32"
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
internalType: "uint256",
|
|
2914
|
+
name: "_l2BatchNumber",
|
|
2915
|
+
type: "uint256"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
internalType: "uint256",
|
|
2919
|
+
name: "_l2MessageIndex",
|
|
2920
|
+
type: "uint256"
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
internalType: "bytes32[]",
|
|
2924
|
+
name: "_merkleProof",
|
|
2925
|
+
type: "bytes32[]"
|
|
2926
|
+
}
|
|
2927
|
+
],
|
|
2928
|
+
internalType: "struct ConfirmTransferResultData",
|
|
2929
|
+
name: "_confirmTransferResultData",
|
|
2930
|
+
type: "tuple"
|
|
2931
|
+
}
|
|
2932
|
+
],
|
|
2933
|
+
name: "bridgeConfirmTransferResult",
|
|
2934
|
+
outputs: [],
|
|
2935
|
+
stateMutability: "nonpayable",
|
|
2936
|
+
type: "function"
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
inputs: [
|
|
2940
|
+
{
|
|
2941
|
+
internalType: "uint256",
|
|
2942
|
+
name: "_chainId",
|
|
2943
|
+
type: "uint256"
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
internalType: "address",
|
|
2947
|
+
name: "_depositSender",
|
|
2948
|
+
type: "address"
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
internalType: "bytes32",
|
|
2952
|
+
name: "_assetId",
|
|
2953
|
+
type: "bytes32"
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
internalType: "bytes",
|
|
2957
|
+
name: "_assetData",
|
|
2958
|
+
type: "bytes"
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
internalType: "bytes32",
|
|
2962
|
+
name: "_l2TxHash",
|
|
2963
|
+
type: "bytes32"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
internalType: "uint256",
|
|
2967
|
+
name: "_l2BatchNumber",
|
|
2968
|
+
type: "uint256"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
internalType: "uint256",
|
|
2972
|
+
name: "_l2MessageIndex",
|
|
2973
|
+
type: "uint256"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
internalType: "uint16",
|
|
2977
|
+
name: "_l2TxNumberInBatch",
|
|
2978
|
+
type: "uint16"
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
internalType: "bytes32[]",
|
|
2982
|
+
name: "_merkleProof",
|
|
2983
|
+
type: "bytes32[]"
|
|
2984
|
+
}
|
|
2985
|
+
],
|
|
2986
|
+
name: "bridgeRecoverFailedTransfer",
|
|
2987
|
+
outputs: [],
|
|
2988
|
+
stateMutability: "nonpayable",
|
|
2989
|
+
type: "function"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
inputs: [
|
|
2993
|
+
{
|
|
2994
|
+
internalType: "contract IL1NativeTokenVault",
|
|
2995
|
+
name: "_nativeTokenVault",
|
|
2996
|
+
type: "address"
|
|
2997
|
+
}
|
|
2998
|
+
],
|
|
2999
|
+
name: "setL1NativeTokenVault",
|
|
3000
|
+
outputs: [],
|
|
3001
|
+
stateMutability: "nonpayable",
|
|
3002
|
+
type: "function"
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
inputs: [
|
|
3006
|
+
{
|
|
3007
|
+
internalType: "address",
|
|
3008
|
+
name: "_l1AssetRouter",
|
|
3009
|
+
type: "address"
|
|
3010
|
+
}
|
|
3011
|
+
],
|
|
3012
|
+
name: "setL1AssetRouter",
|
|
3013
|
+
outputs: [],
|
|
3014
|
+
stateMutability: "nonpayable",
|
|
3015
|
+
type: "function"
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
inputs: [
|
|
3019
|
+
{
|
|
3020
|
+
internalType: "address",
|
|
3021
|
+
name: "_l1InteropHandler",
|
|
3022
|
+
type: "address"
|
|
3023
|
+
}
|
|
3024
|
+
],
|
|
3025
|
+
name: "setL1InteropHandler",
|
|
3026
|
+
outputs: [],
|
|
3027
|
+
stateMutability: "nonpayable",
|
|
3028
|
+
type: "function"
|
|
3029
|
+
}
|
|
3030
|
+
];
|
|
3031
|
+
var IL1NullifierV32_default = IL1NullifierV32ABI;
|
|
3032
|
+
|
|
2726
3033
|
// src/core/internal/abis/IL2AssetRouter.ts
|
|
2727
3034
|
var IL2AssetRouterABI = [
|
|
2728
3035
|
{
|
|
@@ -2846,13 +3153,6 @@ var IL2AssetRouterABI = [
|
|
|
2846
3153
|
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
2847
3154
|
stateMutability: "view"
|
|
2848
3155
|
},
|
|
2849
|
-
{
|
|
2850
|
-
type: "function",
|
|
2851
|
-
name: "l1TokenAddress",
|
|
2852
|
-
inputs: [{ name: "_l2Token", type: "address", internalType: "address" }],
|
|
2853
|
-
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
2854
|
-
stateMutability: "view"
|
|
2855
|
-
},
|
|
2856
3156
|
{
|
|
2857
3157
|
type: "function",
|
|
2858
3158
|
name: "l2TokenAddress",
|
|
@@ -4256,6 +4556,19 @@ var IERC7786AttributesABI = [
|
|
|
4256
4556
|
outputs: [],
|
|
4257
4557
|
stateMutability: "pure"
|
|
4258
4558
|
},
|
|
4559
|
+
{
|
|
4560
|
+
type: "function",
|
|
4561
|
+
name: "interopBundleSalt",
|
|
4562
|
+
inputs: [
|
|
4563
|
+
{
|
|
4564
|
+
name: "_salt",
|
|
4565
|
+
type: "bytes32",
|
|
4566
|
+
internalType: "bytes32"
|
|
4567
|
+
}
|
|
4568
|
+
],
|
|
4569
|
+
outputs: [],
|
|
4570
|
+
stateMutability: "pure"
|
|
4571
|
+
},
|
|
4259
4572
|
{
|
|
4260
4573
|
type: "function",
|
|
4261
4574
|
name: "unbundlerAddress",
|