@matterlabs/zksync-js 0.0.10 → 0.0.11
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 +632 -649
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +5 -5
- package/dist/adapters/ethers/index.cjs +670 -662
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +7 -7
- package/dist/adapters/ethers/sdk.cjs +669 -661
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +5 -5
- package/dist/adapters/viem/client.js +5 -5
- package/dist/adapters/viem/index.js +7 -7
- package/dist/adapters/viem/sdk.js +5 -5
- package/dist/{chunk-IYEDEUXG.js → chunk-6IT5PEEN.js} +1 -1
- package/dist/{chunk-ZBGQQ63V.js → chunk-CCUAGJ6K.js} +3 -3
- package/dist/{chunk-VKUTFNZA.js → chunk-EWBYKU4G.js} +3 -3
- package/dist/{chunk-HOZTREW6.js → chunk-FXSFLZ6D.js} +4 -4
- package/dist/{chunk-SRPKTXIF.js → chunk-H3BPVVMN.js} +1 -1
- package/dist/{chunk-AIFHAPJC.js → chunk-IQVH7YZT.js} +1 -1
- package/dist/{chunk-QDJOEVGJ.js → chunk-N4PR5SVB.js} +2 -2
- package/dist/{chunk-FBKBF7YM.js → chunk-QFEYV4O3.js} +669 -661
- package/dist/{chunk-N3FVEFOK.js → chunk-QUI3J42E.js} +2 -2
- package/dist/{chunk-MBEMIFYS.js → chunk-TL26ZONW.js} +6 -6
- package/dist/{chunk-UIXU35ZU.js → chunk-USXSAFYA.js} +1 -1
- package/dist/core/abi.d.ts +2 -2
- package/dist/core/index.cjs +668 -660
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -3
- package/dist/core/internal/abis/IInteropCenter.d.ts +425 -121
- package/dist/core/internal/abis/IInteropHandler.d.ts +121 -69
- package/dist/core/internal/abis/IInteropRootStorage.d.ts +40 -0
- package/dist/index.cjs +668 -660
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/core/internal/abis/InteropCenter.d.ts +0 -578
- package/dist/core/internal/abis/InteropRootStorage.d.ts +0 -20
|
@@ -1,166 +1,218 @@
|
|
|
1
1
|
declare const IInteropHandlerABI: readonly [{
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly name: "
|
|
7
|
-
readonly type: "
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "L1_CHAIN_ID";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "uint256";
|
|
8
|
+
readonly internalType: "uint256";
|
|
8
9
|
}];
|
|
9
|
-
readonly
|
|
10
|
-
readonly type: "event";
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
11
|
}, {
|
|
12
|
-
readonly
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "bundleStatus";
|
|
13
14
|
readonly inputs: readonly [{
|
|
14
|
-
readonly indexed: true;
|
|
15
|
-
readonly internalType: "bytes32";
|
|
16
15
|
readonly name: "bundleHash";
|
|
17
16
|
readonly type: "bytes32";
|
|
18
|
-
}];
|
|
19
|
-
readonly name: "BundleUnbundled";
|
|
20
|
-
readonly type: "event";
|
|
21
|
-
}, {
|
|
22
|
-
readonly anonymous: false;
|
|
23
|
-
readonly inputs: readonly [{
|
|
24
|
-
readonly indexed: true;
|
|
25
17
|
readonly internalType: "bytes32";
|
|
26
|
-
readonly name: "bundleHash";
|
|
27
|
-
readonly type: "bytes32";
|
|
28
18
|
}];
|
|
29
|
-
readonly
|
|
30
|
-
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "uint8";
|
|
22
|
+
readonly internalType: "enum BundleStatus";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
31
25
|
}, {
|
|
32
|
-
readonly
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "callStatus";
|
|
33
28
|
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: true;
|
|
35
|
-
readonly internalType: "bytes32";
|
|
36
29
|
readonly name: "bundleHash";
|
|
37
30
|
readonly type: "bytes32";
|
|
31
|
+
readonly internalType: "bytes32";
|
|
38
32
|
}, {
|
|
39
|
-
readonly indexed: true;
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
33
|
readonly name: "callIndex";
|
|
42
34
|
readonly type: "uint256";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
readonly name: "
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly name: "";
|
|
47
39
|
readonly type: "uint8";
|
|
40
|
+
readonly internalType: "enum CallStatus";
|
|
48
41
|
}];
|
|
49
|
-
readonly
|
|
50
|
-
readonly type: "event";
|
|
42
|
+
readonly stateMutability: "view";
|
|
51
43
|
}, {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly name: "executeBundle";
|
|
52
46
|
readonly inputs: readonly [{
|
|
53
|
-
readonly internalType: "bytes";
|
|
54
47
|
readonly name: "_bundle";
|
|
55
48
|
readonly type: "bytes";
|
|
49
|
+
readonly internalType: "bytes";
|
|
56
50
|
}, {
|
|
51
|
+
readonly name: "_proof";
|
|
52
|
+
readonly type: "tuple";
|
|
53
|
+
readonly internalType: "struct MessageInclusionProof";
|
|
57
54
|
readonly components: readonly [{
|
|
58
|
-
readonly internalType: "uint256";
|
|
59
55
|
readonly name: "chainId";
|
|
60
56
|
readonly type: "uint256";
|
|
61
|
-
}, {
|
|
62
57
|
readonly internalType: "uint256";
|
|
58
|
+
}, {
|
|
63
59
|
readonly name: "l1BatchNumber";
|
|
64
60
|
readonly type: "uint256";
|
|
65
|
-
}, {
|
|
66
61
|
readonly internalType: "uint256";
|
|
62
|
+
}, {
|
|
67
63
|
readonly name: "l2MessageIndex";
|
|
68
64
|
readonly type: "uint256";
|
|
65
|
+
readonly internalType: "uint256";
|
|
69
66
|
}, {
|
|
67
|
+
readonly name: "message";
|
|
68
|
+
readonly type: "tuple";
|
|
69
|
+
readonly internalType: "struct L2Message";
|
|
70
70
|
readonly components: readonly [{
|
|
71
|
-
readonly internalType: "uint16";
|
|
72
71
|
readonly name: "txNumberInBatch";
|
|
73
72
|
readonly type: "uint16";
|
|
73
|
+
readonly internalType: "uint16";
|
|
74
74
|
}, {
|
|
75
|
-
readonly internalType: "address";
|
|
76
75
|
readonly name: "sender";
|
|
77
76
|
readonly type: "address";
|
|
77
|
+
readonly internalType: "address";
|
|
78
78
|
}, {
|
|
79
|
-
readonly internalType: "bytes";
|
|
80
79
|
readonly name: "data";
|
|
81
80
|
readonly type: "bytes";
|
|
81
|
+
readonly internalType: "bytes";
|
|
82
82
|
}];
|
|
83
|
-
readonly internalType: "struct L2Message";
|
|
84
|
-
readonly name: "message";
|
|
85
|
-
readonly type: "tuple";
|
|
86
83
|
}, {
|
|
87
|
-
readonly internalType: "bytes32[]";
|
|
88
84
|
readonly name: "proof";
|
|
89
85
|
readonly type: "bytes32[]";
|
|
86
|
+
readonly internalType: "bytes32[]";
|
|
90
87
|
}];
|
|
91
|
-
readonly internalType: "struct MessageInclusionProof";
|
|
92
|
-
readonly name: "_proof";
|
|
93
|
-
readonly type: "tuple";
|
|
94
88
|
}];
|
|
95
|
-
readonly name: "executeBundle";
|
|
96
89
|
readonly outputs: readonly [];
|
|
97
90
|
readonly stateMutability: "nonpayable";
|
|
98
|
-
readonly type: "function";
|
|
99
91
|
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "initL2";
|
|
100
94
|
readonly inputs: readonly [{
|
|
95
|
+
readonly name: "_l1ChainId";
|
|
96
|
+
readonly type: "uint256";
|
|
101
97
|
readonly internalType: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
readonly outputs: readonly [];
|
|
100
|
+
readonly stateMutability: "nonpayable";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly name: "unbundleBundle";
|
|
104
|
+
readonly inputs: readonly [{
|
|
102
105
|
readonly name: "_sourceChainId";
|
|
103
106
|
readonly type: "uint256";
|
|
107
|
+
readonly internalType: "uint256";
|
|
104
108
|
}, {
|
|
105
|
-
readonly internalType: "bytes";
|
|
106
109
|
readonly name: "_bundle";
|
|
107
110
|
readonly type: "bytes";
|
|
111
|
+
readonly internalType: "bytes";
|
|
108
112
|
}, {
|
|
109
|
-
readonly internalType: "enum CallStatus[]";
|
|
110
113
|
readonly name: "_callStatus";
|
|
111
114
|
readonly type: "uint8[]";
|
|
115
|
+
readonly internalType: "enum CallStatus[]";
|
|
112
116
|
}];
|
|
113
|
-
readonly name: "unbundleBundle";
|
|
114
117
|
readonly outputs: readonly [];
|
|
115
118
|
readonly stateMutability: "nonpayable";
|
|
116
|
-
readonly type: "function";
|
|
117
119
|
}, {
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
readonly name: "verifyBundle";
|
|
118
122
|
readonly inputs: readonly [{
|
|
119
|
-
readonly internalType: "bytes";
|
|
120
123
|
readonly name: "_bundle";
|
|
121
124
|
readonly type: "bytes";
|
|
125
|
+
readonly internalType: "bytes";
|
|
122
126
|
}, {
|
|
127
|
+
readonly name: "_proof";
|
|
128
|
+
readonly type: "tuple";
|
|
129
|
+
readonly internalType: "struct MessageInclusionProof";
|
|
123
130
|
readonly components: readonly [{
|
|
124
|
-
readonly internalType: "uint256";
|
|
125
131
|
readonly name: "chainId";
|
|
126
132
|
readonly type: "uint256";
|
|
127
|
-
}, {
|
|
128
133
|
readonly internalType: "uint256";
|
|
134
|
+
}, {
|
|
129
135
|
readonly name: "l1BatchNumber";
|
|
130
136
|
readonly type: "uint256";
|
|
131
|
-
}, {
|
|
132
137
|
readonly internalType: "uint256";
|
|
138
|
+
}, {
|
|
133
139
|
readonly name: "l2MessageIndex";
|
|
134
140
|
readonly type: "uint256";
|
|
141
|
+
readonly internalType: "uint256";
|
|
135
142
|
}, {
|
|
143
|
+
readonly name: "message";
|
|
144
|
+
readonly type: "tuple";
|
|
145
|
+
readonly internalType: "struct L2Message";
|
|
136
146
|
readonly components: readonly [{
|
|
137
|
-
readonly internalType: "uint16";
|
|
138
147
|
readonly name: "txNumberInBatch";
|
|
139
148
|
readonly type: "uint16";
|
|
149
|
+
readonly internalType: "uint16";
|
|
140
150
|
}, {
|
|
141
|
-
readonly internalType: "address";
|
|
142
151
|
readonly name: "sender";
|
|
143
152
|
readonly type: "address";
|
|
153
|
+
readonly internalType: "address";
|
|
144
154
|
}, {
|
|
145
|
-
readonly internalType: "bytes";
|
|
146
155
|
readonly name: "data";
|
|
147
156
|
readonly type: "bytes";
|
|
157
|
+
readonly internalType: "bytes";
|
|
148
158
|
}];
|
|
149
|
-
readonly internalType: "struct L2Message";
|
|
150
|
-
readonly name: "message";
|
|
151
|
-
readonly type: "tuple";
|
|
152
159
|
}, {
|
|
153
|
-
readonly internalType: "bytes32[]";
|
|
154
160
|
readonly name: "proof";
|
|
155
161
|
readonly type: "bytes32[]";
|
|
162
|
+
readonly internalType: "bytes32[]";
|
|
156
163
|
}];
|
|
157
|
-
readonly internalType: "struct MessageInclusionProof";
|
|
158
|
-
readonly name: "_proof";
|
|
159
|
-
readonly type: "tuple";
|
|
160
164
|
}];
|
|
161
|
-
readonly name: "verifyBundle";
|
|
162
165
|
readonly outputs: readonly [];
|
|
163
166
|
readonly stateMutability: "nonpayable";
|
|
164
|
-
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "event";
|
|
169
|
+
readonly name: "BundleExecuted";
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly name: "bundleHash";
|
|
172
|
+
readonly type: "bytes32";
|
|
173
|
+
readonly indexed: true;
|
|
174
|
+
readonly internalType: "bytes32";
|
|
175
|
+
}];
|
|
176
|
+
readonly anonymous: false;
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "event";
|
|
179
|
+
readonly name: "BundleUnbundled";
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly name: "bundleHash";
|
|
182
|
+
readonly type: "bytes32";
|
|
183
|
+
readonly indexed: true;
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
}];
|
|
186
|
+
readonly anonymous: false;
|
|
187
|
+
}, {
|
|
188
|
+
readonly type: "event";
|
|
189
|
+
readonly name: "BundleVerified";
|
|
190
|
+
readonly inputs: readonly [{
|
|
191
|
+
readonly name: "bundleHash";
|
|
192
|
+
readonly type: "bytes32";
|
|
193
|
+
readonly indexed: true;
|
|
194
|
+
readonly internalType: "bytes32";
|
|
195
|
+
}];
|
|
196
|
+
readonly anonymous: false;
|
|
197
|
+
}, {
|
|
198
|
+
readonly type: "event";
|
|
199
|
+
readonly name: "CallProcessed";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "bundleHash";
|
|
202
|
+
readonly type: "bytes32";
|
|
203
|
+
readonly indexed: true;
|
|
204
|
+
readonly internalType: "bytes32";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "callIndex";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
readonly indexed: true;
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "status";
|
|
212
|
+
readonly type: "uint8";
|
|
213
|
+
readonly indexed: false;
|
|
214
|
+
readonly internalType: "enum CallStatus";
|
|
215
|
+
}];
|
|
216
|
+
readonly anonymous: false;
|
|
165
217
|
}];
|
|
166
218
|
export default IInteropHandlerABI;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const InteropRootStorageABI: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "interopRoots";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "chainId";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "blockOrBatchNumber";
|
|
10
|
+
readonly type: "uint256";
|
|
11
|
+
readonly internalType: "uint256";
|
|
12
|
+
}];
|
|
13
|
+
readonly outputs: readonly [{
|
|
14
|
+
readonly name: "";
|
|
15
|
+
readonly type: "bytes32";
|
|
16
|
+
readonly internalType: "bytes32";
|
|
17
|
+
}];
|
|
18
|
+
readonly stateMutability: "view";
|
|
19
|
+
}, {
|
|
20
|
+
readonly type: "event";
|
|
21
|
+
readonly name: "InteropRootAdded";
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly name: "chainId";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "blockNumber";
|
|
29
|
+
readonly type: "uint256";
|
|
30
|
+
readonly indexed: true;
|
|
31
|
+
readonly internalType: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "sides";
|
|
34
|
+
readonly type: "bytes32[]";
|
|
35
|
+
readonly indexed: false;
|
|
36
|
+
readonly internalType: "bytes32[]";
|
|
37
|
+
}];
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
}];
|
|
40
|
+
export default InteropRootStorageABI;
|