@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
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { pickDepositRoute } from '../chunk-
|
|
1
|
+
export { pickDepositRoute } from '../chunk-6IT5PEEN.js';
|
|
2
2
|
export { findL1MessageSentLog, isL1MessageSentLog, messengerLogIndex, pickWithdrawRoute } from '../chunk-ZVHFVUDE.js';
|
|
3
|
-
export { makeTransportFromEthers, makeTransportFromViem, zks_exports as zksRpc } from '../chunk-
|
|
4
|
-
export { abi_exports as abi, factory_exports as errors, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isETH, isHash, isHash66, isHash66Array, isHashArray, normalizeAddrEq, normalizeL1Token } from '../chunk-
|
|
3
|
+
export { makeTransportFromEthers, makeTransportFromViem, zks_exports as zksRpc } from '../chunk-USXSAFYA.js';
|
|
4
|
+
export { abi_exports as abi, factory_exports as errors, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isETH, isHash, isHash66, isHash66Array, isHashArray, normalizeAddrEq, normalizeL1Token } from '../chunk-QFEYV4O3.js';
|
|
5
5
|
export { ETH_ADDRESS, FORMAL_ETH_ADDRESS, L1_MESSENGER_ADDRESS, L1_SOPH_TOKEN_ADDRESS, L2_ASSET_ROUTER_ADDRESS, L2_BASE_TOKEN_ADDRESS, L2_NATIVE_TOKEN_VAULT_ADDRESS } from '../chunk-C3AGOEHR.js';
|
|
@@ -1,211 +1,515 @@
|
|
|
1
1
|
declare const IInteropCenterABI: readonly [{
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly name: "
|
|
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";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "ZK_INTEROP_FEE";
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "ZK_TOKEN_ASSET_ID";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
7
27
|
readonly type: "bytes32";
|
|
8
|
-
}, {
|
|
9
|
-
readonly indexed: false;
|
|
10
28
|
readonly internalType: "bytes32";
|
|
11
|
-
readonly name: "interopBundleHash";
|
|
12
|
-
readonly type: "bytes32";
|
|
13
|
-
}, {
|
|
14
|
-
readonly components: readonly [{
|
|
15
|
-
readonly internalType: "bytes1";
|
|
16
|
-
readonly name: "version";
|
|
17
|
-
readonly type: "bytes1";
|
|
18
|
-
}, {
|
|
19
|
-
readonly internalType: "uint256";
|
|
20
|
-
readonly name: "sourceChainId";
|
|
21
|
-
readonly type: "uint256";
|
|
22
|
-
}, {
|
|
23
|
-
readonly internalType: "uint256";
|
|
24
|
-
readonly name: "destinationChainId";
|
|
25
|
-
readonly type: "uint256";
|
|
26
|
-
}, {
|
|
27
|
-
readonly internalType: "bytes32";
|
|
28
|
-
readonly name: "interopBundleSalt";
|
|
29
|
-
readonly type: "bytes32";
|
|
30
|
-
}, {
|
|
31
|
-
readonly components: readonly [{
|
|
32
|
-
readonly internalType: "bytes1";
|
|
33
|
-
readonly name: "version";
|
|
34
|
-
readonly type: "bytes1";
|
|
35
|
-
}, {
|
|
36
|
-
readonly internalType: "bool";
|
|
37
|
-
readonly name: "shadowAccount";
|
|
38
|
-
readonly type: "bool";
|
|
39
|
-
}, {
|
|
40
|
-
readonly internalType: "address";
|
|
41
|
-
readonly name: "to";
|
|
42
|
-
readonly type: "address";
|
|
43
|
-
}, {
|
|
44
|
-
readonly internalType: "address";
|
|
45
|
-
readonly name: "from";
|
|
46
|
-
readonly type: "address";
|
|
47
|
-
}, {
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
|
-
readonly name: "value";
|
|
50
|
-
readonly type: "uint256";
|
|
51
|
-
}, {
|
|
52
|
-
readonly internalType: "bytes";
|
|
53
|
-
readonly name: "data";
|
|
54
|
-
readonly type: "bytes";
|
|
55
|
-
}];
|
|
56
|
-
readonly internalType: "struct InteropCall[]";
|
|
57
|
-
readonly name: "calls";
|
|
58
|
-
readonly type: "tuple[]";
|
|
59
|
-
}, {
|
|
60
|
-
readonly components: readonly [{
|
|
61
|
-
readonly internalType: "bytes";
|
|
62
|
-
readonly name: "executionAddress";
|
|
63
|
-
readonly type: "bytes";
|
|
64
|
-
}, {
|
|
65
|
-
readonly internalType: "bytes";
|
|
66
|
-
readonly name: "unbundlerAddress";
|
|
67
|
-
readonly type: "bytes";
|
|
68
|
-
}];
|
|
69
|
-
readonly internalType: "struct BundleAttributes";
|
|
70
|
-
readonly name: "bundleAttributes";
|
|
71
|
-
readonly type: "tuple";
|
|
72
|
-
}];
|
|
73
|
-
readonly indexed: false;
|
|
74
|
-
readonly internalType: "struct InteropBundle";
|
|
75
|
-
readonly name: "interopBundle";
|
|
76
|
-
readonly type: "tuple";
|
|
77
29
|
}];
|
|
78
|
-
readonly
|
|
79
|
-
readonly type: "event";
|
|
30
|
+
readonly stateMutability: "view";
|
|
80
31
|
}, {
|
|
81
|
-
readonly
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "accumulatedProtocolFees";
|
|
82
34
|
readonly inputs: readonly [{
|
|
83
|
-
readonly
|
|
84
|
-
readonly internalType: "address";
|
|
85
|
-
readonly name: "oldAssetRouter";
|
|
35
|
+
readonly name: "coinbase";
|
|
86
36
|
readonly type: "address";
|
|
87
|
-
}, {
|
|
88
|
-
readonly indexed: true;
|
|
89
37
|
readonly internalType: "address";
|
|
90
|
-
readonly name: "newAssetRouter";
|
|
91
|
-
readonly type: "address";
|
|
92
38
|
}];
|
|
93
|
-
readonly
|
|
94
|
-
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly stateMutability: "view";
|
|
95
45
|
}, {
|
|
96
|
-
readonly
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "accumulatedZKFees";
|
|
97
48
|
readonly inputs: readonly [{
|
|
98
|
-
readonly
|
|
49
|
+
readonly name: "coinbase";
|
|
50
|
+
readonly type: "address";
|
|
99
51
|
readonly internalType: "address";
|
|
100
|
-
|
|
52
|
+
}];
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly name: "";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
readonly name: "claimProtocolFees";
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly name: "_receiver";
|
|
101
64
|
readonly type: "address";
|
|
102
|
-
}, {
|
|
103
|
-
readonly indexed: true;
|
|
104
65
|
readonly internalType: "address";
|
|
105
|
-
|
|
66
|
+
}];
|
|
67
|
+
readonly outputs: readonly [];
|
|
68
|
+
readonly stateMutability: "nonpayable";
|
|
69
|
+
}, {
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
readonly name: "claimZKFees";
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly name: "_receiver";
|
|
106
74
|
readonly type: "address";
|
|
75
|
+
readonly internalType: "address";
|
|
107
76
|
}];
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
77
|
+
readonly outputs: readonly [];
|
|
78
|
+
readonly stateMutability: "nonpayable";
|
|
110
79
|
}, {
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
readonly name: "forwardTransactionOnGatewayWithBalanceChange";
|
|
111
82
|
readonly inputs: readonly [{
|
|
112
|
-
readonly internalType: "uint256";
|
|
113
83
|
readonly name: "_chainId";
|
|
114
84
|
readonly type: "uint256";
|
|
85
|
+
readonly internalType: "uint256";
|
|
115
86
|
}, {
|
|
116
|
-
readonly internalType: "bytes32";
|
|
117
87
|
readonly name: "_canonicalTxHash";
|
|
118
88
|
readonly type: "bytes32";
|
|
89
|
+
readonly internalType: "bytes32";
|
|
119
90
|
}, {
|
|
120
|
-
readonly internalType: "uint64";
|
|
121
91
|
readonly name: "_expirationTimestamp";
|
|
122
92
|
readonly type: "uint64";
|
|
93
|
+
readonly internalType: "uint64";
|
|
123
94
|
}, {
|
|
95
|
+
readonly name: "_balanceChange";
|
|
96
|
+
readonly type: "tuple";
|
|
97
|
+
readonly internalType: "struct BalanceChange";
|
|
124
98
|
readonly components: readonly [{
|
|
125
|
-
readonly internalType: "bytes1";
|
|
126
99
|
readonly name: "version";
|
|
127
100
|
readonly type: "bytes1";
|
|
101
|
+
readonly internalType: "bytes1";
|
|
128
102
|
}, {
|
|
129
|
-
readonly internalType: "address";
|
|
130
103
|
readonly name: "originToken";
|
|
131
104
|
readonly type: "address";
|
|
105
|
+
readonly internalType: "address";
|
|
132
106
|
}, {
|
|
133
|
-
readonly internalType: "bytes32";
|
|
134
107
|
readonly name: "baseTokenAssetId";
|
|
135
108
|
readonly type: "bytes32";
|
|
109
|
+
readonly internalType: "bytes32";
|
|
136
110
|
}, {
|
|
137
|
-
readonly internalType: "uint256";
|
|
138
111
|
readonly name: "baseTokenAmount";
|
|
139
112
|
readonly type: "uint256";
|
|
113
|
+
readonly internalType: "uint256";
|
|
140
114
|
}, {
|
|
141
|
-
readonly internalType: "bytes32";
|
|
142
115
|
readonly name: "assetId";
|
|
143
116
|
readonly type: "bytes32";
|
|
117
|
+
readonly internalType: "bytes32";
|
|
144
118
|
}, {
|
|
145
|
-
readonly internalType: "uint256";
|
|
146
119
|
readonly name: "amount";
|
|
147
120
|
readonly type: "uint256";
|
|
148
|
-
}, {
|
|
149
121
|
readonly internalType: "uint256";
|
|
122
|
+
}, {
|
|
150
123
|
readonly name: "tokenOriginChainId";
|
|
151
124
|
readonly type: "uint256";
|
|
125
|
+
readonly internalType: "uint256";
|
|
152
126
|
}];
|
|
153
|
-
readonly internalType: "struct BalanceChange";
|
|
154
|
-
readonly name: "_balanceChange";
|
|
155
|
-
readonly type: "tuple";
|
|
156
127
|
}];
|
|
157
|
-
readonly name: "forwardTransactionOnGatewayWithBalanceChange";
|
|
158
128
|
readonly outputs: readonly [];
|
|
159
129
|
readonly stateMutability: "nonpayable";
|
|
130
|
+
}, {
|
|
160
131
|
readonly type: "function";
|
|
132
|
+
readonly name: "getZKTokenAddress";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
161
140
|
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly name: "initL2";
|
|
162
143
|
readonly inputs: readonly [{
|
|
163
|
-
readonly internalType: "uint256";
|
|
164
144
|
readonly name: "_l1ChainId";
|
|
165
145
|
readonly type: "uint256";
|
|
146
|
+
readonly internalType: "uint256";
|
|
166
147
|
}, {
|
|
167
|
-
readonly internalType: "address";
|
|
168
148
|
readonly name: "_owner";
|
|
169
149
|
readonly type: "address";
|
|
150
|
+
readonly internalType: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "_zkTokenAssetId";
|
|
153
|
+
readonly type: "bytes32";
|
|
154
|
+
readonly internalType: "bytes32";
|
|
170
155
|
}];
|
|
171
|
-
readonly name: "initL2";
|
|
172
156
|
readonly outputs: readonly [];
|
|
173
157
|
readonly stateMutability: "nonpayable";
|
|
158
|
+
}, {
|
|
174
159
|
readonly type: "function";
|
|
160
|
+
readonly name: "interopBundleNonce";
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly name: "sender";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
}];
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly name: "";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
readonly name: "interopProtocolFee";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
175
182
|
}, {
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly name: "parseAttributes";
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly name: "_attributes";
|
|
187
|
+
readonly type: "bytes[]";
|
|
188
|
+
readonly internalType: "bytes[]";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "_restriction";
|
|
191
|
+
readonly type: "uint8";
|
|
192
|
+
readonly internalType: "enum IInteropCenter.AttributeParsingRestrictions";
|
|
193
|
+
}];
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly name: "callAttributes";
|
|
196
|
+
readonly type: "tuple";
|
|
197
|
+
readonly internalType: "struct CallAttributes";
|
|
198
|
+
readonly components: readonly [{
|
|
199
|
+
readonly name: "interopCallValue";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
readonly internalType: "uint256";
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "indirectCall";
|
|
204
|
+
readonly type: "bool";
|
|
205
|
+
readonly internalType: "bool";
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "indirectCallMessageValue";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}];
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "bundleAttributes";
|
|
213
|
+
readonly type: "tuple";
|
|
214
|
+
readonly internalType: "struct BundleAttributes";
|
|
215
|
+
readonly components: readonly [{
|
|
216
|
+
readonly name: "executionAddress";
|
|
217
|
+
readonly type: "bytes";
|
|
218
|
+
readonly internalType: "bytes";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "unbundlerAddress";
|
|
221
|
+
readonly type: "bytes";
|
|
222
|
+
readonly internalType: "bytes";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "useFixedFee";
|
|
225
|
+
readonly type: "bool";
|
|
226
|
+
readonly internalType: "bool";
|
|
227
|
+
}];
|
|
228
|
+
}];
|
|
229
|
+
readonly stateMutability: "pure";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly name: "pause";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly outputs: readonly [];
|
|
235
|
+
readonly stateMutability: "nonpayable";
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
readonly name: "sendBundle";
|
|
176
239
|
readonly inputs: readonly [{
|
|
177
|
-
readonly internalType: "bytes";
|
|
178
240
|
readonly name: "_destinationChainId";
|
|
179
241
|
readonly type: "bytes";
|
|
242
|
+
readonly internalType: "bytes";
|
|
180
243
|
}, {
|
|
244
|
+
readonly name: "_callStarters";
|
|
245
|
+
readonly type: "tuple[]";
|
|
246
|
+
readonly internalType: "struct InteropCallStarter[]";
|
|
181
247
|
readonly components: readonly [{
|
|
182
|
-
readonly internalType: "bytes";
|
|
183
248
|
readonly name: "to";
|
|
184
249
|
readonly type: "bytes";
|
|
185
|
-
}, {
|
|
186
250
|
readonly internalType: "bytes";
|
|
251
|
+
}, {
|
|
187
252
|
readonly name: "data";
|
|
188
253
|
readonly type: "bytes";
|
|
254
|
+
readonly internalType: "bytes";
|
|
189
255
|
}, {
|
|
190
|
-
readonly internalType: "bytes[]";
|
|
191
256
|
readonly name: "callAttributes";
|
|
192
257
|
readonly type: "bytes[]";
|
|
258
|
+
readonly internalType: "bytes[]";
|
|
193
259
|
}];
|
|
194
|
-
readonly internalType: "struct InteropCallStarter[]";
|
|
195
|
-
readonly name: "_callStarters";
|
|
196
|
-
readonly type: "tuple[]";
|
|
197
260
|
}, {
|
|
198
|
-
readonly internalType: "bytes[]";
|
|
199
261
|
readonly name: "_bundleAttributes";
|
|
200
262
|
readonly type: "bytes[]";
|
|
263
|
+
readonly internalType: "bytes[]";
|
|
201
264
|
}];
|
|
202
|
-
readonly name: "sendBundle";
|
|
203
265
|
readonly outputs: readonly [{
|
|
204
|
-
readonly
|
|
205
|
-
readonly name: "";
|
|
266
|
+
readonly name: "bundleHash";
|
|
206
267
|
readonly type: "bytes32";
|
|
268
|
+
readonly internalType: "bytes32";
|
|
207
269
|
}];
|
|
208
270
|
readonly stateMutability: "payable";
|
|
271
|
+
}, {
|
|
209
272
|
readonly type: "function";
|
|
273
|
+
readonly name: "setInteropFee";
|
|
274
|
+
readonly inputs: readonly [{
|
|
275
|
+
readonly name: "_fee";
|
|
276
|
+
readonly type: "uint256";
|
|
277
|
+
readonly internalType: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
readonly outputs: readonly [];
|
|
280
|
+
readonly stateMutability: "nonpayable";
|
|
281
|
+
}, {
|
|
282
|
+
readonly type: "function";
|
|
283
|
+
readonly name: "unpause";
|
|
284
|
+
readonly inputs: readonly [];
|
|
285
|
+
readonly outputs: readonly [];
|
|
286
|
+
readonly stateMutability: "nonpayable";
|
|
287
|
+
}, {
|
|
288
|
+
readonly type: "function";
|
|
289
|
+
readonly name: "updateL2";
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly name: "_l1ChainId";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "_owner";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
readonly internalType: "address";
|
|
298
|
+
}];
|
|
299
|
+
readonly outputs: readonly [];
|
|
300
|
+
readonly stateMutability: "nonpayable";
|
|
301
|
+
}, {
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
readonly name: "zkToken";
|
|
304
|
+
readonly inputs: readonly [];
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly name: "";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
readonly internalType: "contract IERC20";
|
|
309
|
+
}];
|
|
310
|
+
readonly stateMutability: "view";
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "event";
|
|
313
|
+
readonly name: "FixedZKFeesAccumulated";
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly name: "payer";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
readonly indexed: true;
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "coinbase";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
readonly indexed: true;
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "amount";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
readonly indexed: false;
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
}];
|
|
330
|
+
readonly anonymous: false;
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "event";
|
|
333
|
+
readonly name: "InteropBundleSent";
|
|
334
|
+
readonly inputs: readonly [{
|
|
335
|
+
readonly name: "l2l1MsgHash";
|
|
336
|
+
readonly type: "bytes32";
|
|
337
|
+
readonly indexed: false;
|
|
338
|
+
readonly internalType: "bytes32";
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "interopBundleHash";
|
|
341
|
+
readonly type: "bytes32";
|
|
342
|
+
readonly indexed: false;
|
|
343
|
+
readonly internalType: "bytes32";
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "interopBundle";
|
|
346
|
+
readonly type: "tuple";
|
|
347
|
+
readonly indexed: false;
|
|
348
|
+
readonly internalType: "struct InteropBundle";
|
|
349
|
+
readonly components: readonly [{
|
|
350
|
+
readonly name: "version";
|
|
351
|
+
readonly type: "bytes1";
|
|
352
|
+
readonly internalType: "bytes1";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "sourceChainId";
|
|
355
|
+
readonly type: "uint256";
|
|
356
|
+
readonly internalType: "uint256";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "destinationChainId";
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "interopBundleSalt";
|
|
363
|
+
readonly type: "bytes32";
|
|
364
|
+
readonly internalType: "bytes32";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "calls";
|
|
367
|
+
readonly type: "tuple[]";
|
|
368
|
+
readonly internalType: "struct InteropCall[]";
|
|
369
|
+
readonly components: readonly [{
|
|
370
|
+
readonly name: "version";
|
|
371
|
+
readonly type: "bytes1";
|
|
372
|
+
readonly internalType: "bytes1";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "shadowAccount";
|
|
375
|
+
readonly type: "bool";
|
|
376
|
+
readonly internalType: "bool";
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "to";
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
readonly internalType: "address";
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "from";
|
|
383
|
+
readonly type: "address";
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "value";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
readonly internalType: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "data";
|
|
391
|
+
readonly type: "bytes";
|
|
392
|
+
readonly internalType: "bytes";
|
|
393
|
+
}];
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "bundleAttributes";
|
|
396
|
+
readonly type: "tuple";
|
|
397
|
+
readonly internalType: "struct BundleAttributes";
|
|
398
|
+
readonly components: readonly [{
|
|
399
|
+
readonly name: "executionAddress";
|
|
400
|
+
readonly type: "bytes";
|
|
401
|
+
readonly internalType: "bytes";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "unbundlerAddress";
|
|
404
|
+
readonly type: "bytes";
|
|
405
|
+
readonly internalType: "bytes";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "useFixedFee";
|
|
408
|
+
readonly type: "bool";
|
|
409
|
+
readonly internalType: "bool";
|
|
410
|
+
}];
|
|
411
|
+
}];
|
|
412
|
+
}];
|
|
413
|
+
readonly anonymous: false;
|
|
414
|
+
}, {
|
|
415
|
+
readonly type: "event";
|
|
416
|
+
readonly name: "InteropFeeUpdated";
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly name: "oldFee";
|
|
419
|
+
readonly type: "uint256";
|
|
420
|
+
readonly indexed: true;
|
|
421
|
+
readonly internalType: "uint256";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "newFee";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
readonly indexed: true;
|
|
426
|
+
readonly internalType: "uint256";
|
|
427
|
+
}];
|
|
428
|
+
readonly anonymous: false;
|
|
429
|
+
}, {
|
|
430
|
+
readonly type: "event";
|
|
431
|
+
readonly name: "NewAssetRouter";
|
|
432
|
+
readonly inputs: readonly [{
|
|
433
|
+
readonly name: "oldAssetRouter";
|
|
434
|
+
readonly type: "address";
|
|
435
|
+
readonly indexed: true;
|
|
436
|
+
readonly internalType: "address";
|
|
437
|
+
}, {
|
|
438
|
+
readonly name: "newAssetRouter";
|
|
439
|
+
readonly type: "address";
|
|
440
|
+
readonly indexed: true;
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
}];
|
|
443
|
+
readonly anonymous: false;
|
|
444
|
+
}, {
|
|
445
|
+
readonly type: "event";
|
|
446
|
+
readonly name: "NewAssetTracker";
|
|
447
|
+
readonly inputs: readonly [{
|
|
448
|
+
readonly name: "oldAssetTracker";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
readonly indexed: true;
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
}, {
|
|
453
|
+
readonly name: "newAssetTracker";
|
|
454
|
+
readonly type: "address";
|
|
455
|
+
readonly indexed: true;
|
|
456
|
+
readonly internalType: "address";
|
|
457
|
+
}];
|
|
458
|
+
readonly anonymous: false;
|
|
459
|
+
}, {
|
|
460
|
+
readonly type: "event";
|
|
461
|
+
readonly name: "ProtocolFeesAccumulated";
|
|
462
|
+
readonly inputs: readonly [{
|
|
463
|
+
readonly name: "coinbase";
|
|
464
|
+
readonly type: "address";
|
|
465
|
+
readonly indexed: true;
|
|
466
|
+
readonly internalType: "address";
|
|
467
|
+
}, {
|
|
468
|
+
readonly name: "amount";
|
|
469
|
+
readonly type: "uint256";
|
|
470
|
+
readonly indexed: false;
|
|
471
|
+
readonly internalType: "uint256";
|
|
472
|
+
}];
|
|
473
|
+
readonly anonymous: false;
|
|
474
|
+
}, {
|
|
475
|
+
readonly type: "event";
|
|
476
|
+
readonly name: "ProtocolFeesClaimed";
|
|
477
|
+
readonly inputs: readonly [{
|
|
478
|
+
readonly name: "coinbase";
|
|
479
|
+
readonly type: "address";
|
|
480
|
+
readonly indexed: true;
|
|
481
|
+
readonly internalType: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "receiver";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
readonly indexed: true;
|
|
486
|
+
readonly internalType: "address";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "amount";
|
|
489
|
+
readonly type: "uint256";
|
|
490
|
+
readonly indexed: false;
|
|
491
|
+
readonly internalType: "uint256";
|
|
492
|
+
}];
|
|
493
|
+
readonly anonymous: false;
|
|
494
|
+
}, {
|
|
495
|
+
readonly type: "event";
|
|
496
|
+
readonly name: "ZKFeesClaimed";
|
|
497
|
+
readonly inputs: readonly [{
|
|
498
|
+
readonly name: "coinbase";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
readonly indexed: true;
|
|
501
|
+
readonly internalType: "address";
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "receiver";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
readonly indexed: true;
|
|
506
|
+
readonly internalType: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "amount";
|
|
509
|
+
readonly type: "uint256";
|
|
510
|
+
readonly indexed: false;
|
|
511
|
+
readonly internalType: "uint256";
|
|
512
|
+
}];
|
|
513
|
+
readonly anonymous: false;
|
|
210
514
|
}];
|
|
211
515
|
export default IInteropCenterABI;
|