@matterlabs/zksync-js 0.0.1

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.
Files changed (139) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/dist/adapters/ethers/client.cjs +4548 -0
  4. package/dist/adapters/ethers/client.cjs.map +1 -0
  5. package/dist/adapters/ethers/client.d.ts +61 -0
  6. package/dist/adapters/ethers/client.js +5 -0
  7. package/dist/adapters/ethers/errors/error-ops.d.ts +20 -0
  8. package/dist/adapters/ethers/errors/revert.d.ts +28 -0
  9. package/dist/adapters/ethers/index.cjs +7537 -0
  10. package/dist/adapters/ethers/index.cjs.map +1 -0
  11. package/dist/adapters/ethers/index.d.ts +12 -0
  12. package/dist/adapters/ethers/index.js +8 -0
  13. package/dist/adapters/ethers/resources/deposits/context.d.ts +27 -0
  14. package/dist/adapters/ethers/resources/deposits/index.d.ts +46 -0
  15. package/dist/adapters/ethers/resources/deposits/routes/erc20-base.d.ts +2 -0
  16. package/dist/adapters/ethers/resources/deposits/routes/erc20-nonbase.d.ts +2 -0
  17. package/dist/adapters/ethers/resources/deposits/routes/eth-nonbase.d.ts +2 -0
  18. package/dist/adapters/ethers/resources/deposits/routes/eth.d.ts +2 -0
  19. package/dist/adapters/ethers/resources/deposits/routes/types.d.ts +10 -0
  20. package/dist/adapters/ethers/resources/deposits/services/verification.d.ts +9 -0
  21. package/dist/adapters/ethers/resources/token-info.d.ts +31 -0
  22. package/dist/adapters/ethers/resources/utils.d.ts +39 -0
  23. package/dist/adapters/ethers/resources/withdrawals/context.d.ts +19 -0
  24. package/dist/adapters/ethers/resources/withdrawals/index.d.ts +56 -0
  25. package/dist/adapters/ethers/resources/withdrawals/routes/erc20-nonbase.d.ts +2 -0
  26. package/dist/adapters/ethers/resources/withdrawals/routes/eth-nonbase.d.ts +2 -0
  27. package/dist/adapters/ethers/resources/withdrawals/routes/eth.d.ts +2 -0
  28. package/dist/adapters/ethers/resources/withdrawals/routes/types.d.ts +18 -0
  29. package/dist/adapters/ethers/resources/withdrawals/services/finalization.d.ts +33 -0
  30. package/dist/adapters/ethers/rpc.d.ts +4 -0
  31. package/dist/adapters/ethers/sdk.cjs +6245 -0
  32. package/dist/adapters/ethers/sdk.cjs.map +1 -0
  33. package/dist/adapters/ethers/sdk.d.ts +29 -0
  34. package/dist/adapters/ethers/sdk.js +6 -0
  35. package/dist/adapters/ethers/typechain/IAssetRouterBase.d.ts +198 -0
  36. package/dist/adapters/ethers/typechain/IBridgehub.d.ts +731 -0
  37. package/dist/adapters/ethers/typechain/IERC20.d.ts +108 -0
  38. package/dist/adapters/ethers/typechain/IL1AssetRouter.d.ts +570 -0
  39. package/dist/adapters/ethers/typechain/IL1NativeTokenVault.d.ts +154 -0
  40. package/dist/adapters/ethers/typechain/IL1Nullifier.d.ts +305 -0
  41. package/dist/adapters/ethers/typechain/IL2AssetRouter.d.ts +288 -0
  42. package/dist/adapters/ethers/typechain/IL2NativeTokenVault.d.ts +380 -0
  43. package/dist/adapters/ethers/typechain/common.d.ts +46 -0
  44. package/dist/adapters/ethers/typechain/factories/IAssetRouterBase__factory.d.ts +203 -0
  45. package/dist/adapters/ethers/typechain/factories/IBridgehub__factory.d.ts +998 -0
  46. package/dist/adapters/ethers/typechain/factories/IERC20__factory.d.ts +177 -0
  47. package/dist/adapters/ethers/typechain/factories/IL1AssetRouter__factory.d.ts +666 -0
  48. package/dist/adapters/ethers/typechain/factories/IL1NativeTokenVault__factory.d.ts +234 -0
  49. package/dist/adapters/ethers/typechain/factories/IL1Nullifier__factory.d.ts +382 -0
  50. package/dist/adapters/ethers/typechain/factories/IL2AssetRouter__factory.d.ts +327 -0
  51. package/dist/adapters/ethers/typechain/factories/IL2NativeTokenVault__factory.d.ts +696 -0
  52. package/dist/adapters/ethers/typechain/factories/index.d.ts +8 -0
  53. package/dist/adapters/ethers/typechain/index.d.ts +17 -0
  54. package/dist/adapters/viem/client.cjs +4534 -0
  55. package/dist/adapters/viem/client.cjs.map +1 -0
  56. package/dist/adapters/viem/client.d.ts +44 -0
  57. package/dist/adapters/viem/client.js +5 -0
  58. package/dist/adapters/viem/errors/error-ops.d.ts +20 -0
  59. package/dist/adapters/viem/errors/revert.d.ts +25 -0
  60. package/dist/adapters/viem/index.cjs +7772 -0
  61. package/dist/adapters/viem/index.cjs.map +1 -0
  62. package/dist/adapters/viem/index.d.ts +11 -0
  63. package/dist/adapters/viem/index.js +8 -0
  64. package/dist/adapters/viem/resources/deposits/context.d.ts +27 -0
  65. package/dist/adapters/viem/resources/deposits/index.d.ts +46 -0
  66. package/dist/adapters/viem/resources/deposits/routes/erc20-base.d.ts +2 -0
  67. package/dist/adapters/viem/resources/deposits/routes/erc20-nonbase.d.ts +2 -0
  68. package/dist/adapters/viem/resources/deposits/routes/eth-nonbase.d.ts +2 -0
  69. package/dist/adapters/viem/resources/deposits/routes/eth.d.ts +2 -0
  70. package/dist/adapters/viem/resources/deposits/routes/types.d.ts +20 -0
  71. package/dist/adapters/viem/resources/deposits/services/verification.d.ts +7 -0
  72. package/dist/adapters/viem/resources/token-info.d.ts +34 -0
  73. package/dist/adapters/viem/resources/utils.d.ts +42 -0
  74. package/dist/adapters/viem/resources/withdrawals/context.d.ts +22 -0
  75. package/dist/adapters/viem/resources/withdrawals/index.d.ts +56 -0
  76. package/dist/adapters/viem/resources/withdrawals/routes/erc20-nonbase.d.ts +2 -0
  77. package/dist/adapters/viem/resources/withdrawals/routes/eth-nonbase.d.ts +2 -0
  78. package/dist/adapters/viem/resources/withdrawals/routes/eth.d.ts +2 -0
  79. package/dist/adapters/viem/resources/withdrawals/routes/types.d.ts +19 -0
  80. package/dist/adapters/viem/resources/withdrawals/services/finalization.d.ts +33 -0
  81. package/dist/adapters/viem/rpc.d.ts +2 -0
  82. package/dist/adapters/viem/sdk.cjs +6481 -0
  83. package/dist/adapters/viem/sdk.cjs.map +1 -0
  84. package/dist/adapters/viem/sdk.d.ts +32 -0
  85. package/dist/adapters/viem/sdk.js +6 -0
  86. package/dist/chunk-263G6636.js +36 -0
  87. package/dist/chunk-3LALBFFE.js +138 -0
  88. package/dist/chunk-4HLJJKIY.js +262 -0
  89. package/dist/chunk-6GCT6TLS.js +45 -0
  90. package/dist/chunk-7M4V3FMT.js +2444 -0
  91. package/dist/chunk-B77GWPO5.js +339 -0
  92. package/dist/chunk-BD2LUO5T.js +123 -0
  93. package/dist/chunk-CGO27P7F.js +2187 -0
  94. package/dist/chunk-DI2CJDPZ.js +76 -0
  95. package/dist/chunk-Y75OMFK6.js +4489 -0
  96. package/dist/core/constants.cjs +39 -0
  97. package/dist/core/constants.cjs.map +1 -0
  98. package/dist/core/constants.d.ts +36 -0
  99. package/dist/core/constants.js +1 -0
  100. package/dist/core/errors/factory.d.ts +10 -0
  101. package/dist/core/errors/formatter.d.ts +2 -0
  102. package/dist/core/errors/rpc.d.ts +4 -0
  103. package/dist/core/errors/withdrawal-revert-map.d.ts +3 -0
  104. package/dist/core/index.cjs +552 -0
  105. package/dist/core/index.cjs.map +1 -0
  106. package/dist/core/index.d.ts +18 -0
  107. package/dist/core/index.js +4 -0
  108. package/dist/core/internal/abi-registry.d.ts +9 -0
  109. package/dist/core/internal/abis/IAssetRouterBase.d.ts +198 -0
  110. package/dist/core/internal/abis/IBaseToken.d.ts +162 -0
  111. package/dist/core/internal/abis/IBridgehub.d.ts +994 -0
  112. package/dist/core/internal/abis/IERC20.d.ts +224 -0
  113. package/dist/core/internal/abis/IL1AssetRouter.d.ts +661 -0
  114. package/dist/core/internal/abis/IL1Nullifier.d.ts +377 -0
  115. package/dist/core/internal/abis/IL2AssetRouter.d.ts +690 -0
  116. package/dist/core/internal/abis/L1NativeTokenVault.d.ts +719 -0
  117. package/dist/core/internal/abis/L2NativeTokenVault.d.ts +735 -0
  118. package/dist/core/internal/abis/Mailbox.d.ts +779 -0
  119. package/dist/core/resources/deposits/route.d.ts +6 -0
  120. package/dist/core/resources/withdrawals/events.d.ts +9 -0
  121. package/dist/core/resources/withdrawals/logs.d.ts +5 -0
  122. package/dist/core/resources/withdrawals/route.d.ts +6 -0
  123. package/dist/core/rpc/transport.d.ts +10 -0
  124. package/dist/core/rpc/types.d.ts +40 -0
  125. package/dist/core/rpc/zks.d.ts +12 -0
  126. package/dist/core/types/errors.d.ts +177 -0
  127. package/dist/core/types/flows/base.d.ts +51 -0
  128. package/dist/core/types/flows/deposits.d.ts +43 -0
  129. package/dist/core/types/flows/route.d.ts +12 -0
  130. package/dist/core/types/flows/withdrawals.d.ts +83 -0
  131. package/dist/core/types/index.d.ts +2 -0
  132. package/dist/core/types/primitives.d.ts +3 -0
  133. package/dist/core/utils/addr.d.ts +5 -0
  134. package/dist/core/utils/gas.d.ts +13 -0
  135. package/dist/index.cjs +571 -0
  136. package/dist/index.cjs.map +1 -0
  137. package/dist/index.d.ts +18 -0
  138. package/dist/index.js +4 -0
  139. package/package.json +177 -0
@@ -0,0 +1,4489 @@
1
+ // src/core/internal/abis/IBridgehub.ts
2
+ var IBridgehubABI = [
3
+ {
4
+ anonymous: false,
5
+ inputs: [
6
+ {
7
+ indexed: true,
8
+ internalType: "bytes32",
9
+ name: "assetInfo",
10
+ type: "bytes32"
11
+ },
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "_assetAddress",
16
+ type: "address"
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "bytes32",
21
+ name: "additionalData",
22
+ type: "bytes32"
23
+ },
24
+ {
25
+ indexed: false,
26
+ internalType: "address",
27
+ name: "sender",
28
+ type: "address"
29
+ }
30
+ ],
31
+ name: "AssetRegistered",
32
+ type: "event"
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: true,
39
+ internalType: "bytes32",
40
+ name: "assetId",
41
+ type: "bytes32"
42
+ }
43
+ ],
44
+ name: "BaseTokenAssetIdRegistered",
45
+ type: "event"
46
+ },
47
+ {
48
+ anonymous: false,
49
+ inputs: [
50
+ {
51
+ indexed: true,
52
+ internalType: "uint256",
53
+ name: "chainId",
54
+ type: "uint256"
55
+ },
56
+ {
57
+ indexed: true,
58
+ internalType: "bytes32",
59
+ name: "assetId",
60
+ type: "bytes32"
61
+ },
62
+ {
63
+ indexed: true,
64
+ internalType: "address",
65
+ name: "sender",
66
+ type: "address"
67
+ },
68
+ {
69
+ indexed: false,
70
+ internalType: "address",
71
+ name: "receiver",
72
+ type: "address"
73
+ },
74
+ {
75
+ indexed: false,
76
+ internalType: "uint256",
77
+ name: "amount",
78
+ type: "uint256"
79
+ }
80
+ ],
81
+ name: "BridgeBurn",
82
+ type: "event"
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: true,
89
+ internalType: "uint256",
90
+ name: "chainId",
91
+ type: "uint256"
92
+ },
93
+ {
94
+ indexed: true,
95
+ internalType: "bytes32",
96
+ name: "assetId",
97
+ type: "bytes32"
98
+ },
99
+ {
100
+ indexed: false,
101
+ internalType: "address",
102
+ name: "receiver",
103
+ type: "address"
104
+ },
105
+ {
106
+ indexed: false,
107
+ internalType: "uint256",
108
+ name: "amount",
109
+ type: "uint256"
110
+ }
111
+ ],
112
+ name: "BridgeMint",
113
+ type: "event"
114
+ },
115
+ {
116
+ anonymous: false,
117
+ inputs: [
118
+ {
119
+ indexed: true,
120
+ internalType: "address",
121
+ name: "chainTypeManager",
122
+ type: "address"
123
+ }
124
+ ],
125
+ name: "ChainTypeManagerAdded",
126
+ type: "event"
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: true,
133
+ internalType: "address",
134
+ name: "chainTypeManager",
135
+ type: "address"
136
+ }
137
+ ],
138
+ name: "ChainTypeManagerRemoved",
139
+ type: "event"
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
144
+ {
145
+ indexed: true,
146
+ internalType: "uint256",
147
+ name: "chainId",
148
+ type: "uint256"
149
+ },
150
+ {
151
+ indexed: true,
152
+ internalType: "bytes32",
153
+ name: "assetId",
154
+ type: "bytes32"
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: "address",
159
+ name: "zkChain",
160
+ type: "address"
161
+ }
162
+ ],
163
+ name: "MigrationFinalized",
164
+ type: "event"
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ {
170
+ indexed: true,
171
+ internalType: "uint256",
172
+ name: "chainId",
173
+ type: "uint256"
174
+ },
175
+ {
176
+ indexed: true,
177
+ internalType: "bytes32",
178
+ name: "assetId",
179
+ type: "bytes32"
180
+ },
181
+ {
182
+ indexed: true,
183
+ internalType: "uint256",
184
+ name: "settlementLayerChainId",
185
+ type: "uint256"
186
+ }
187
+ ],
188
+ name: "MigrationStarted",
189
+ type: "event"
190
+ },
191
+ {
192
+ anonymous: false,
193
+ inputs: [
194
+ {
195
+ indexed: true,
196
+ internalType: "address",
197
+ name: "oldAdmin",
198
+ type: "address"
199
+ },
200
+ {
201
+ indexed: true,
202
+ internalType: "address",
203
+ name: "newAdmin",
204
+ type: "address"
205
+ }
206
+ ],
207
+ name: "NewAdmin",
208
+ type: "event"
209
+ },
210
+ {
211
+ anonymous: false,
212
+ inputs: [
213
+ {
214
+ indexed: true,
215
+ internalType: "uint256",
216
+ name: "chainId",
217
+ type: "uint256"
218
+ },
219
+ {
220
+ indexed: false,
221
+ internalType: "address",
222
+ name: "chainTypeManager",
223
+ type: "address"
224
+ },
225
+ {
226
+ indexed: true,
227
+ internalType: "address",
228
+ name: "chainGovernance",
229
+ type: "address"
230
+ }
231
+ ],
232
+ name: "NewChain",
233
+ type: "event"
234
+ },
235
+ {
236
+ anonymous: false,
237
+ inputs: [
238
+ {
239
+ indexed: true,
240
+ internalType: "address",
241
+ name: "oldPendingAdmin",
242
+ type: "address"
243
+ },
244
+ {
245
+ indexed: true,
246
+ internalType: "address",
247
+ name: "newPendingAdmin",
248
+ type: "address"
249
+ }
250
+ ],
251
+ name: "NewPendingAdmin",
252
+ type: "event"
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: true,
259
+ internalType: "uint256",
260
+ name: "chainId",
261
+ type: "uint256"
262
+ },
263
+ {
264
+ indexed: true,
265
+ internalType: "bool",
266
+ name: "isWhitelisted",
267
+ type: "bool"
268
+ }
269
+ ],
270
+ name: "SettlementLayerRegistered",
271
+ type: "event"
272
+ },
273
+ {
274
+ inputs: [],
275
+ name: "L1_CHAIN_ID",
276
+ outputs: [
277
+ {
278
+ internalType: "uint256",
279
+ name: "",
280
+ type: "uint256"
281
+ }
282
+ ],
283
+ stateMutability: "view",
284
+ type: "function"
285
+ },
286
+ {
287
+ inputs: [],
288
+ name: "acceptAdmin",
289
+ outputs: [],
290
+ stateMutability: "nonpayable",
291
+ type: "function"
292
+ },
293
+ {
294
+ inputs: [
295
+ {
296
+ internalType: "address",
297
+ name: "_chainTypeManager",
298
+ type: "address"
299
+ }
300
+ ],
301
+ name: "addChainTypeManager",
302
+ outputs: [],
303
+ stateMutability: "nonpayable",
304
+ type: "function"
305
+ },
306
+ {
307
+ inputs: [
308
+ {
309
+ internalType: "bytes32",
310
+ name: "_baseTokenAssetId",
311
+ type: "bytes32"
312
+ }
313
+ ],
314
+ name: "addTokenAssetId",
315
+ outputs: [],
316
+ stateMutability: "nonpayable",
317
+ type: "function"
318
+ },
319
+ {
320
+ inputs: [],
321
+ name: "admin",
322
+ outputs: [
323
+ {
324
+ internalType: "address",
325
+ name: "",
326
+ type: "address"
327
+ }
328
+ ],
329
+ stateMutability: "view",
330
+ type: "function"
331
+ },
332
+ {
333
+ inputs: [
334
+ {
335
+ internalType: "bytes32",
336
+ name: "_baseTokenAssetId",
337
+ type: "bytes32"
338
+ }
339
+ ],
340
+ name: "assetIdIsRegistered",
341
+ outputs: [
342
+ {
343
+ internalType: "bool",
344
+ name: "",
345
+ type: "bool"
346
+ }
347
+ ],
348
+ stateMutability: "view",
349
+ type: "function"
350
+ },
351
+ {
352
+ inputs: [],
353
+ name: "assetRouter",
354
+ outputs: [
355
+ {
356
+ internalType: "address",
357
+ name: "",
358
+ type: "address"
359
+ }
360
+ ],
361
+ stateMutability: "view",
362
+ type: "function"
363
+ },
364
+ {
365
+ inputs: [
366
+ {
367
+ internalType: "uint256",
368
+ name: "_chainId",
369
+ type: "uint256"
370
+ }
371
+ ],
372
+ name: "baseToken",
373
+ outputs: [
374
+ {
375
+ internalType: "address",
376
+ name: "",
377
+ type: "address"
378
+ }
379
+ ],
380
+ stateMutability: "view",
381
+ type: "function"
382
+ },
383
+ {
384
+ inputs: [
385
+ {
386
+ internalType: "uint256",
387
+ name: "_chainId",
388
+ type: "uint256"
389
+ }
390
+ ],
391
+ name: "baseTokenAssetId",
392
+ outputs: [
393
+ {
394
+ internalType: "bytes32",
395
+ name: "",
396
+ type: "bytes32"
397
+ }
398
+ ],
399
+ stateMutability: "view",
400
+ type: "function"
401
+ },
402
+ {
403
+ inputs: [
404
+ {
405
+ internalType: "uint256",
406
+ name: "_chainId",
407
+ type: "uint256"
408
+ },
409
+ {
410
+ internalType: "uint256",
411
+ name: "_msgValue",
412
+ type: "uint256"
413
+ },
414
+ {
415
+ internalType: "bytes32",
416
+ name: "_assetId",
417
+ type: "bytes32"
418
+ },
419
+ {
420
+ internalType: "address",
421
+ name: "_originalCaller",
422
+ type: "address"
423
+ },
424
+ {
425
+ internalType: "bytes",
426
+ name: "_data",
427
+ type: "bytes"
428
+ }
429
+ ],
430
+ name: "bridgeBurn",
431
+ outputs: [
432
+ {
433
+ internalType: "bytes",
434
+ name: "_bridgeMintData",
435
+ type: "bytes"
436
+ }
437
+ ],
438
+ stateMutability: "payable",
439
+ type: "function"
440
+ },
441
+ {
442
+ inputs: [
443
+ {
444
+ internalType: "uint256",
445
+ name: "_chainId",
446
+ type: "uint256"
447
+ },
448
+ {
449
+ internalType: "bytes32",
450
+ name: "_assetId",
451
+ type: "bytes32"
452
+ },
453
+ {
454
+ internalType: "bytes",
455
+ name: "_data",
456
+ type: "bytes"
457
+ }
458
+ ],
459
+ name: "bridgeMint",
460
+ outputs: [],
461
+ stateMutability: "payable",
462
+ type: "function"
463
+ },
464
+ {
465
+ inputs: [
466
+ {
467
+ internalType: "uint256",
468
+ name: "_chainId",
469
+ type: "uint256"
470
+ },
471
+ {
472
+ internalType: "bytes32",
473
+ name: "_assetId",
474
+ type: "bytes32"
475
+ },
476
+ {
477
+ internalType: "address",
478
+ name: "_depositSender",
479
+ type: "address"
480
+ },
481
+ {
482
+ internalType: "bytes",
483
+ name: "_data",
484
+ type: "bytes"
485
+ }
486
+ ],
487
+ name: "bridgeRecoverFailedTransfer",
488
+ outputs: [],
489
+ stateMutability: "payable",
490
+ type: "function"
491
+ },
492
+ {
493
+ inputs: [
494
+ {
495
+ internalType: "uint256",
496
+ name: "_chainId",
497
+ type: "uint256"
498
+ }
499
+ ],
500
+ name: "chainTypeManager",
501
+ outputs: [
502
+ {
503
+ internalType: "address",
504
+ name: "",
505
+ type: "address"
506
+ }
507
+ ],
508
+ stateMutability: "view",
509
+ type: "function"
510
+ },
511
+ {
512
+ inputs: [
513
+ {
514
+ internalType: "address",
515
+ name: "_chainTypeManager",
516
+ type: "address"
517
+ }
518
+ ],
519
+ name: "chainTypeManagerIsRegistered",
520
+ outputs: [
521
+ {
522
+ internalType: "bool",
523
+ name: "",
524
+ type: "bool"
525
+ }
526
+ ],
527
+ stateMutability: "view",
528
+ type: "function"
529
+ },
530
+ {
531
+ inputs: [
532
+ {
533
+ internalType: "uint256",
534
+ name: "_chainId",
535
+ type: "uint256"
536
+ },
537
+ {
538
+ internalType: "address",
539
+ name: "_chainTypeManager",
540
+ type: "address"
541
+ },
542
+ {
543
+ internalType: "bytes32",
544
+ name: "_baseTokenAssetId",
545
+ type: "bytes32"
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "_salt",
550
+ type: "uint256"
551
+ },
552
+ {
553
+ internalType: "address",
554
+ name: "_admin",
555
+ type: "address"
556
+ },
557
+ {
558
+ internalType: "bytes",
559
+ name: "_initData",
560
+ type: "bytes"
561
+ },
562
+ {
563
+ internalType: "bytes[]",
564
+ name: "_factoryDeps",
565
+ type: "bytes[]"
566
+ }
567
+ ],
568
+ name: "createNewChain",
569
+ outputs: [
570
+ {
571
+ internalType: "uint256",
572
+ name: "chainId",
573
+ type: "uint256"
574
+ }
575
+ ],
576
+ stateMutability: "nonpayable",
577
+ type: "function"
578
+ },
579
+ {
580
+ inputs: [
581
+ {
582
+ internalType: "address",
583
+ name: "_ctmAddress",
584
+ type: "address"
585
+ }
586
+ ],
587
+ name: "ctmAssetIdFromAddress",
588
+ outputs: [
589
+ {
590
+ internalType: "bytes32",
591
+ name: "",
592
+ type: "bytes32"
593
+ }
594
+ ],
595
+ stateMutability: "view",
596
+ type: "function"
597
+ },
598
+ {
599
+ inputs: [
600
+ {
601
+ internalType: "uint256",
602
+ name: "_chainId",
603
+ type: "uint256"
604
+ }
605
+ ],
606
+ name: "ctmAssetIdFromChainId",
607
+ outputs: [
608
+ {
609
+ internalType: "bytes32",
610
+ name: "",
611
+ type: "bytes32"
612
+ }
613
+ ],
614
+ stateMutability: "view",
615
+ type: "function"
616
+ },
617
+ {
618
+ inputs: [
619
+ {
620
+ internalType: "bytes32",
621
+ name: "_assetInfo",
622
+ type: "bytes32"
623
+ }
624
+ ],
625
+ name: "ctmAssetIdToAddress",
626
+ outputs: [
627
+ {
628
+ internalType: "address",
629
+ name: "",
630
+ type: "address"
631
+ }
632
+ ],
633
+ stateMutability: "view",
634
+ type: "function"
635
+ },
636
+ {
637
+ inputs: [
638
+ {
639
+ internalType: "uint256",
640
+ name: "_chainId",
641
+ type: "uint256"
642
+ },
643
+ {
644
+ internalType: "bytes32",
645
+ name: "_canonicalTxHash",
646
+ type: "bytes32"
647
+ },
648
+ {
649
+ internalType: "uint64",
650
+ name: "_expirationTimestamp",
651
+ type: "uint64"
652
+ }
653
+ ],
654
+ name: "forwardTransactionOnGateway",
655
+ outputs: [],
656
+ stateMutability: "nonpayable",
657
+ type: "function"
658
+ },
659
+ {
660
+ inputs: [],
661
+ name: "getAllZKChainChainIDs",
662
+ outputs: [
663
+ {
664
+ internalType: "uint256[]",
665
+ name: "",
666
+ type: "uint256[]"
667
+ }
668
+ ],
669
+ stateMutability: "view",
670
+ type: "function"
671
+ },
672
+ {
673
+ inputs: [],
674
+ name: "getAllZKChains",
675
+ outputs: [
676
+ {
677
+ internalType: "address[]",
678
+ name: "",
679
+ type: "address[]"
680
+ }
681
+ ],
682
+ stateMutability: "view",
683
+ type: "function"
684
+ },
685
+ {
686
+ inputs: [
687
+ {
688
+ internalType: "uint256",
689
+ name: "_chainId",
690
+ type: "uint256"
691
+ }
692
+ ],
693
+ name: "getHyperchain",
694
+ outputs: [
695
+ {
696
+ internalType: "address",
697
+ name: "",
698
+ type: "address"
699
+ }
700
+ ],
701
+ stateMutability: "view",
702
+ type: "function"
703
+ },
704
+ {
705
+ inputs: [
706
+ {
707
+ internalType: "uint256",
708
+ name: "_chainId",
709
+ type: "uint256"
710
+ }
711
+ ],
712
+ name: "getZKChain",
713
+ outputs: [
714
+ {
715
+ internalType: "address",
716
+ name: "",
717
+ type: "address"
718
+ }
719
+ ],
720
+ stateMutability: "view",
721
+ type: "function"
722
+ },
723
+ {
724
+ inputs: [],
725
+ name: "l1CtmDeployer",
726
+ outputs: [
727
+ {
728
+ internalType: "contract ICTMDeploymentTracker",
729
+ name: "",
730
+ type: "address"
731
+ }
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function"
735
+ },
736
+ {
737
+ inputs: [
738
+ {
739
+ internalType: "uint256",
740
+ name: "_chainId",
741
+ type: "uint256"
742
+ },
743
+ {
744
+ internalType: "uint256",
745
+ name: "_gasPrice",
746
+ type: "uint256"
747
+ },
748
+ {
749
+ internalType: "uint256",
750
+ name: "_l2GasLimit",
751
+ type: "uint256"
752
+ },
753
+ {
754
+ internalType: "uint256",
755
+ name: "_l2GasPerPubdataByteLimit",
756
+ type: "uint256"
757
+ }
758
+ ],
759
+ name: "l2TransactionBaseCost",
760
+ outputs: [
761
+ {
762
+ internalType: "uint256",
763
+ name: "",
764
+ type: "uint256"
765
+ }
766
+ ],
767
+ stateMutability: "view",
768
+ type: "function"
769
+ },
770
+ {
771
+ inputs: [],
772
+ name: "messageRoot",
773
+ outputs: [
774
+ {
775
+ internalType: "contract IMessageRoot",
776
+ name: "",
777
+ type: "address"
778
+ }
779
+ ],
780
+ stateMutability: "view",
781
+ type: "function"
782
+ },
783
+ {
784
+ inputs: [],
785
+ name: "migrationPaused",
786
+ outputs: [
787
+ {
788
+ internalType: "bool",
789
+ name: "",
790
+ type: "bool"
791
+ }
792
+ ],
793
+ stateMutability: "view",
794
+ type: "function"
795
+ },
796
+ {
797
+ inputs: [],
798
+ name: "pauseMigration",
799
+ outputs: [],
800
+ stateMutability: "nonpayable",
801
+ type: "function"
802
+ },
803
+ {
804
+ inputs: [
805
+ {
806
+ internalType: "uint256",
807
+ name: "_chainId",
808
+ type: "uint256"
809
+ },
810
+ {
811
+ internalType: "bytes32",
812
+ name: "_l2TxHash",
813
+ type: "bytes32"
814
+ },
815
+ {
816
+ internalType: "uint256",
817
+ name: "_l2BatchNumber",
818
+ type: "uint256"
819
+ },
820
+ {
821
+ internalType: "uint256",
822
+ name: "_l2MessageIndex",
823
+ type: "uint256"
824
+ },
825
+ {
826
+ internalType: "uint16",
827
+ name: "_l2TxNumberInBatch",
828
+ type: "uint16"
829
+ },
830
+ {
831
+ internalType: "bytes32[]",
832
+ name: "_merkleProof",
833
+ type: "bytes32[]"
834
+ },
835
+ {
836
+ internalType: "enum TxStatus",
837
+ name: "_status",
838
+ type: "uint8"
839
+ }
840
+ ],
841
+ name: "proveL1ToL2TransactionStatus",
842
+ outputs: [
843
+ {
844
+ internalType: "bool",
845
+ name: "",
846
+ type: "bool"
847
+ }
848
+ ],
849
+ stateMutability: "view",
850
+ type: "function"
851
+ },
852
+ {
853
+ inputs: [
854
+ {
855
+ internalType: "uint256",
856
+ name: "_chainId",
857
+ type: "uint256"
858
+ },
859
+ {
860
+ internalType: "uint256",
861
+ name: "_batchNumber",
862
+ type: "uint256"
863
+ },
864
+ {
865
+ internalType: "uint256",
866
+ name: "_index",
867
+ type: "uint256"
868
+ },
869
+ {
870
+ components: [
871
+ {
872
+ internalType: "uint8",
873
+ name: "l2ShardId",
874
+ type: "uint8"
875
+ },
876
+ {
877
+ internalType: "bool",
878
+ name: "isService",
879
+ type: "bool"
880
+ },
881
+ {
882
+ internalType: "uint16",
883
+ name: "txNumberInBatch",
884
+ type: "uint16"
885
+ },
886
+ {
887
+ internalType: "address",
888
+ name: "sender",
889
+ type: "address"
890
+ },
891
+ {
892
+ internalType: "bytes32",
893
+ name: "key",
894
+ type: "bytes32"
895
+ },
896
+ {
897
+ internalType: "bytes32",
898
+ name: "value",
899
+ type: "bytes32"
900
+ }
901
+ ],
902
+ internalType: "struct L2Log",
903
+ name: "_log",
904
+ type: "tuple"
905
+ },
906
+ {
907
+ internalType: "bytes32[]",
908
+ name: "_proof",
909
+ type: "bytes32[]"
910
+ }
911
+ ],
912
+ name: "proveL2LogInclusion",
913
+ outputs: [
914
+ {
915
+ internalType: "bool",
916
+ name: "",
917
+ type: "bool"
918
+ }
919
+ ],
920
+ stateMutability: "view",
921
+ type: "function"
922
+ },
923
+ {
924
+ inputs: [
925
+ {
926
+ internalType: "uint256",
927
+ name: "_chainId",
928
+ type: "uint256"
929
+ },
930
+ {
931
+ internalType: "uint256",
932
+ name: "_batchNumber",
933
+ type: "uint256"
934
+ },
935
+ {
936
+ internalType: "uint256",
937
+ name: "_index",
938
+ type: "uint256"
939
+ },
940
+ {
941
+ components: [
942
+ {
943
+ internalType: "uint16",
944
+ name: "txNumberInBatch",
945
+ type: "uint16"
946
+ },
947
+ {
948
+ internalType: "address",
949
+ name: "sender",
950
+ type: "address"
951
+ },
952
+ {
953
+ internalType: "bytes",
954
+ name: "data",
955
+ type: "bytes"
956
+ }
957
+ ],
958
+ internalType: "struct L2Message",
959
+ name: "_message",
960
+ type: "tuple"
961
+ },
962
+ {
963
+ internalType: "bytes32[]",
964
+ name: "_proof",
965
+ type: "bytes32[]"
966
+ }
967
+ ],
968
+ name: "proveL2MessageInclusion",
969
+ outputs: [
970
+ {
971
+ internalType: "bool",
972
+ name: "",
973
+ type: "bool"
974
+ }
975
+ ],
976
+ stateMutability: "view",
977
+ type: "function"
978
+ },
979
+ {
980
+ inputs: [
981
+ {
982
+ internalType: "uint256",
983
+ name: "_chainId",
984
+ type: "uint256"
985
+ },
986
+ {
987
+ internalType: "address",
988
+ name: "_hyperchain",
989
+ type: "address"
990
+ }
991
+ ],
992
+ name: "registerAlreadyDeployedZKChain",
993
+ outputs: [],
994
+ stateMutability: "nonpayable",
995
+ type: "function"
996
+ },
997
+ {
998
+ inputs: [
999
+ {
1000
+ internalType: "uint256",
1001
+ name: "_chainId",
1002
+ type: "uint256"
1003
+ }
1004
+ ],
1005
+ name: "registerLegacyChain",
1006
+ outputs: [],
1007
+ stateMutability: "nonpayable",
1008
+ type: "function"
1009
+ },
1010
+ {
1011
+ inputs: [
1012
+ {
1013
+ internalType: "uint256",
1014
+ name: "_newSettlementLayerChainId",
1015
+ type: "uint256"
1016
+ },
1017
+ {
1018
+ internalType: "bool",
1019
+ name: "_isWhitelisted",
1020
+ type: "bool"
1021
+ }
1022
+ ],
1023
+ name: "registerSettlementLayer",
1024
+ outputs: [],
1025
+ stateMutability: "nonpayable",
1026
+ type: "function"
1027
+ },
1028
+ {
1029
+ inputs: [
1030
+ {
1031
+ internalType: "address",
1032
+ name: "_chainTypeManager",
1033
+ type: "address"
1034
+ }
1035
+ ],
1036
+ name: "removeChainTypeManager",
1037
+ outputs: [],
1038
+ stateMutability: "nonpayable",
1039
+ type: "function"
1040
+ },
1041
+ {
1042
+ inputs: [
1043
+ {
1044
+ components: [
1045
+ {
1046
+ internalType: "uint256",
1047
+ name: "chainId",
1048
+ type: "uint256"
1049
+ },
1050
+ {
1051
+ internalType: "uint256",
1052
+ name: "mintValue",
1053
+ type: "uint256"
1054
+ },
1055
+ {
1056
+ internalType: "address",
1057
+ name: "l2Contract",
1058
+ type: "address"
1059
+ },
1060
+ {
1061
+ internalType: "uint256",
1062
+ name: "l2Value",
1063
+ type: "uint256"
1064
+ },
1065
+ {
1066
+ internalType: "bytes",
1067
+ name: "l2Calldata",
1068
+ type: "bytes"
1069
+ },
1070
+ {
1071
+ internalType: "uint256",
1072
+ name: "l2GasLimit",
1073
+ type: "uint256"
1074
+ },
1075
+ {
1076
+ internalType: "uint256",
1077
+ name: "l2GasPerPubdataByteLimit",
1078
+ type: "uint256"
1079
+ },
1080
+ {
1081
+ internalType: "bytes[]",
1082
+ name: "factoryDeps",
1083
+ type: "bytes[]"
1084
+ },
1085
+ {
1086
+ internalType: "address",
1087
+ name: "refundRecipient",
1088
+ type: "address"
1089
+ }
1090
+ ],
1091
+ internalType: "struct L2TransactionRequestDirect",
1092
+ name: "_request",
1093
+ type: "tuple"
1094
+ }
1095
+ ],
1096
+ name: "requestL2TransactionDirect",
1097
+ outputs: [
1098
+ {
1099
+ internalType: "bytes32",
1100
+ name: "canonicalTxHash",
1101
+ type: "bytes32"
1102
+ }
1103
+ ],
1104
+ stateMutability: "payable",
1105
+ type: "function"
1106
+ },
1107
+ {
1108
+ inputs: [
1109
+ {
1110
+ components: [
1111
+ {
1112
+ internalType: "uint256",
1113
+ name: "chainId",
1114
+ type: "uint256"
1115
+ },
1116
+ {
1117
+ internalType: "uint256",
1118
+ name: "mintValue",
1119
+ type: "uint256"
1120
+ },
1121
+ {
1122
+ internalType: "uint256",
1123
+ name: "l2Value",
1124
+ type: "uint256"
1125
+ },
1126
+ {
1127
+ internalType: "uint256",
1128
+ name: "l2GasLimit",
1129
+ type: "uint256"
1130
+ },
1131
+ {
1132
+ internalType: "uint256",
1133
+ name: "l2GasPerPubdataByteLimit",
1134
+ type: "uint256"
1135
+ },
1136
+ {
1137
+ internalType: "address",
1138
+ name: "refundRecipient",
1139
+ type: "address"
1140
+ },
1141
+ {
1142
+ internalType: "address",
1143
+ name: "secondBridgeAddress",
1144
+ type: "address"
1145
+ },
1146
+ {
1147
+ internalType: "uint256",
1148
+ name: "secondBridgeValue",
1149
+ type: "uint256"
1150
+ },
1151
+ {
1152
+ internalType: "bytes",
1153
+ name: "secondBridgeCalldata",
1154
+ type: "bytes"
1155
+ }
1156
+ ],
1157
+ internalType: "struct L2TransactionRequestTwoBridgesOuter",
1158
+ name: "_request",
1159
+ type: "tuple"
1160
+ }
1161
+ ],
1162
+ name: "requestL2TransactionTwoBridges",
1163
+ outputs: [
1164
+ {
1165
+ internalType: "bytes32",
1166
+ name: "canonicalTxHash",
1167
+ type: "bytes32"
1168
+ }
1169
+ ],
1170
+ stateMutability: "payable",
1171
+ type: "function"
1172
+ },
1173
+ {
1174
+ inputs: [
1175
+ {
1176
+ internalType: "address",
1177
+ name: "_sharedBridge",
1178
+ type: "address"
1179
+ },
1180
+ {
1181
+ internalType: "contract ICTMDeploymentTracker",
1182
+ name: "_l1CtmDeployer",
1183
+ type: "address"
1184
+ },
1185
+ {
1186
+ internalType: "contract IMessageRoot",
1187
+ name: "_messageRoot",
1188
+ type: "address"
1189
+ }
1190
+ ],
1191
+ name: "setAddresses",
1192
+ outputs: [],
1193
+ stateMutability: "nonpayable",
1194
+ type: "function"
1195
+ },
1196
+ {
1197
+ inputs: [
1198
+ {
1199
+ internalType: "bytes32",
1200
+ name: "_additionalData",
1201
+ type: "bytes32"
1202
+ },
1203
+ {
1204
+ internalType: "address",
1205
+ name: "_assetAddress",
1206
+ type: "address"
1207
+ }
1208
+ ],
1209
+ name: "setCTMAssetAddress",
1210
+ outputs: [],
1211
+ stateMutability: "nonpayable",
1212
+ type: "function"
1213
+ },
1214
+ {
1215
+ inputs: [
1216
+ {
1217
+ internalType: "address",
1218
+ name: "_newPendingAdmin",
1219
+ type: "address"
1220
+ }
1221
+ ],
1222
+ name: "setPendingAdmin",
1223
+ outputs: [],
1224
+ stateMutability: "nonpayable",
1225
+ type: "function"
1226
+ },
1227
+ {
1228
+ inputs: [
1229
+ {
1230
+ internalType: "uint256",
1231
+ name: "_chainId",
1232
+ type: "uint256"
1233
+ }
1234
+ ],
1235
+ name: "settlementLayer",
1236
+ outputs: [
1237
+ {
1238
+ internalType: "uint256",
1239
+ name: "",
1240
+ type: "uint256"
1241
+ }
1242
+ ],
1243
+ stateMutability: "view",
1244
+ type: "function"
1245
+ },
1246
+ {
1247
+ inputs: [],
1248
+ name: "sharedBridge",
1249
+ outputs: [
1250
+ {
1251
+ internalType: "address",
1252
+ name: "",
1253
+ type: "address"
1254
+ }
1255
+ ],
1256
+ stateMutability: "view",
1257
+ type: "function"
1258
+ },
1259
+ {
1260
+ inputs: [],
1261
+ name: "unpauseMigration",
1262
+ outputs: [],
1263
+ stateMutability: "nonpayable",
1264
+ type: "function"
1265
+ },
1266
+ {
1267
+ inputs: [
1268
+ {
1269
+ internalType: "uint256",
1270
+ name: "_chainId",
1271
+ type: "uint256"
1272
+ }
1273
+ ],
1274
+ name: "whitelistedSettlementLayers",
1275
+ outputs: [
1276
+ {
1277
+ internalType: "bool",
1278
+ name: "",
1279
+ type: "bool"
1280
+ }
1281
+ ],
1282
+ stateMutability: "view",
1283
+ type: "function"
1284
+ }
1285
+ ];
1286
+ var IBridgehub_default = IBridgehubABI;
1287
+
1288
+ // src/core/internal/abis/IL1AssetRouter.ts
1289
+ var IL1AssetRouterABI = [
1290
+ {
1291
+ anonymous: false,
1292
+ inputs: [
1293
+ {
1294
+ indexed: true,
1295
+ internalType: "bytes32",
1296
+ name: "assetId",
1297
+ type: "bytes32"
1298
+ },
1299
+ {
1300
+ indexed: true,
1301
+ internalType: "bytes32",
1302
+ name: "additionalData",
1303
+ type: "bytes32"
1304
+ },
1305
+ {
1306
+ indexed: false,
1307
+ internalType: "address",
1308
+ name: "assetDeploymentTracker",
1309
+ type: "address"
1310
+ }
1311
+ ],
1312
+ name: "AssetDeploymentTrackerRegistered",
1313
+ type: "event"
1314
+ },
1315
+ {
1316
+ anonymous: false,
1317
+ inputs: [
1318
+ {
1319
+ indexed: true,
1320
+ internalType: "bytes32",
1321
+ name: "assetId",
1322
+ type: "bytes32"
1323
+ },
1324
+ {
1325
+ indexed: true,
1326
+ internalType: "address",
1327
+ name: "assetDeploymentTracker",
1328
+ type: "address"
1329
+ },
1330
+ {
1331
+ indexed: true,
1332
+ internalType: "bytes32",
1333
+ name: "additionalData",
1334
+ type: "bytes32"
1335
+ }
1336
+ ],
1337
+ name: "AssetDeploymentTrackerSet",
1338
+ type: "event"
1339
+ },
1340
+ {
1341
+ anonymous: false,
1342
+ inputs: [
1343
+ {
1344
+ indexed: true,
1345
+ internalType: "bytes32",
1346
+ name: "assetId",
1347
+ type: "bytes32"
1348
+ },
1349
+ {
1350
+ indexed: true,
1351
+ internalType: "address",
1352
+ name: "_assetHandlerAddress",
1353
+ type: "address"
1354
+ }
1355
+ ],
1356
+ name: "AssetHandlerRegistered",
1357
+ type: "event"
1358
+ },
1359
+ {
1360
+ anonymous: false,
1361
+ inputs: [
1362
+ {
1363
+ indexed: true,
1364
+ internalType: "uint256",
1365
+ name: "chainId",
1366
+ type: "uint256"
1367
+ },
1368
+ {
1369
+ indexed: true,
1370
+ internalType: "address",
1371
+ name: "from",
1372
+ type: "address"
1373
+ },
1374
+ {
1375
+ indexed: false,
1376
+ internalType: "bytes32",
1377
+ name: "assetId",
1378
+ type: "bytes32"
1379
+ },
1380
+ {
1381
+ indexed: false,
1382
+ internalType: "uint256",
1383
+ name: "amount",
1384
+ type: "uint256"
1385
+ }
1386
+ ],
1387
+ name: "BridgehubDepositBaseTokenInitiated",
1388
+ type: "event"
1389
+ },
1390
+ {
1391
+ anonymous: false,
1392
+ inputs: [
1393
+ {
1394
+ indexed: true,
1395
+ internalType: "uint256",
1396
+ name: "chainId",
1397
+ type: "uint256"
1398
+ },
1399
+ {
1400
+ indexed: true,
1401
+ internalType: "bytes32",
1402
+ name: "txDataHash",
1403
+ type: "bytes32"
1404
+ },
1405
+ {
1406
+ indexed: true,
1407
+ internalType: "bytes32",
1408
+ name: "l2DepositTxHash",
1409
+ type: "bytes32"
1410
+ }
1411
+ ],
1412
+ name: "BridgehubDepositFinalized",
1413
+ type: "event"
1414
+ },
1415
+ {
1416
+ anonymous: false,
1417
+ inputs: [
1418
+ {
1419
+ indexed: true,
1420
+ internalType: "uint256",
1421
+ name: "chainId",
1422
+ type: "uint256"
1423
+ },
1424
+ {
1425
+ indexed: true,
1426
+ internalType: "bytes32",
1427
+ name: "txDataHash",
1428
+ type: "bytes32"
1429
+ },
1430
+ {
1431
+ indexed: true,
1432
+ internalType: "address",
1433
+ name: "from",
1434
+ type: "address"
1435
+ },
1436
+ {
1437
+ indexed: false,
1438
+ internalType: "bytes32",
1439
+ name: "assetId",
1440
+ type: "bytes32"
1441
+ },
1442
+ {
1443
+ indexed: false,
1444
+ internalType: "bytes",
1445
+ name: "bridgeMintCalldata",
1446
+ type: "bytes"
1447
+ }
1448
+ ],
1449
+ name: "BridgehubDepositInitiated",
1450
+ type: "event"
1451
+ },
1452
+ {
1453
+ anonymous: false,
1454
+ inputs: [
1455
+ {
1456
+ indexed: false,
1457
+ internalType: "bytes",
1458
+ name: "bridgeMintData",
1459
+ type: "bytes"
1460
+ }
1461
+ ],
1462
+ name: "BridgehubMintData",
1463
+ type: "event"
1464
+ },
1465
+ {
1466
+ anonymous: false,
1467
+ inputs: [
1468
+ {
1469
+ indexed: false,
1470
+ internalType: "uint256",
1471
+ name: "chainId",
1472
+ type: "uint256"
1473
+ },
1474
+ {
1475
+ indexed: true,
1476
+ internalType: "address",
1477
+ name: "sender",
1478
+ type: "address"
1479
+ },
1480
+ {
1481
+ indexed: true,
1482
+ internalType: "bytes32",
1483
+ name: "assetId",
1484
+ type: "bytes32"
1485
+ },
1486
+ {
1487
+ indexed: false,
1488
+ internalType: "bytes32",
1489
+ name: "assetDataHash",
1490
+ type: "bytes32"
1491
+ }
1492
+ ],
1493
+ name: "BridgehubWithdrawalInitiated",
1494
+ type: "event"
1495
+ },
1496
+ {
1497
+ anonymous: false,
1498
+ inputs: [
1499
+ {
1500
+ indexed: true,
1501
+ internalType: "uint256",
1502
+ name: "chainId",
1503
+ type: "uint256"
1504
+ },
1505
+ {
1506
+ indexed: true,
1507
+ internalType: "bytes32",
1508
+ name: "assetId",
1509
+ type: "bytes32"
1510
+ },
1511
+ {
1512
+ indexed: false,
1513
+ internalType: "bytes",
1514
+ name: "assetData",
1515
+ type: "bytes"
1516
+ }
1517
+ ],
1518
+ name: "ClaimedFailedDepositAssetRouter",
1519
+ type: "event"
1520
+ },
1521
+ {
1522
+ anonymous: false,
1523
+ inputs: [
1524
+ {
1525
+ indexed: true,
1526
+ internalType: "uint256",
1527
+ name: "chainId",
1528
+ type: "uint256"
1529
+ },
1530
+ {
1531
+ indexed: true,
1532
+ internalType: "bytes32",
1533
+ name: "assetId",
1534
+ type: "bytes32"
1535
+ },
1536
+ {
1537
+ indexed: false,
1538
+ internalType: "bytes",
1539
+ name: "assetData",
1540
+ type: "bytes"
1541
+ }
1542
+ ],
1543
+ name: "DepositFinalizedAssetRouter",
1544
+ type: "event"
1545
+ },
1546
+ {
1547
+ anonymous: false,
1548
+ inputs: [
1549
+ {
1550
+ indexed: true,
1551
+ internalType: "uint256",
1552
+ name: "chainId",
1553
+ type: "uint256"
1554
+ },
1555
+ {
1556
+ indexed: true,
1557
+ internalType: "bytes32",
1558
+ name: "l2DepositTxHash",
1559
+ type: "bytes32"
1560
+ },
1561
+ {
1562
+ indexed: true,
1563
+ internalType: "address",
1564
+ name: "from",
1565
+ type: "address"
1566
+ },
1567
+ {
1568
+ indexed: false,
1569
+ internalType: "address",
1570
+ name: "to",
1571
+ type: "address"
1572
+ },
1573
+ {
1574
+ indexed: false,
1575
+ internalType: "address",
1576
+ name: "l1Token",
1577
+ type: "address"
1578
+ },
1579
+ {
1580
+ indexed: false,
1581
+ internalType: "uint256",
1582
+ name: "amount",
1583
+ type: "uint256"
1584
+ }
1585
+ ],
1586
+ name: "LegacyDepositInitiated",
1587
+ type: "event"
1588
+ },
1589
+ {
1590
+ inputs: [],
1591
+ name: "BRIDGE_HUB",
1592
+ outputs: [
1593
+ {
1594
+ internalType: "contract IBridgehub",
1595
+ name: "",
1596
+ type: "address"
1597
+ }
1598
+ ],
1599
+ stateMutability: "view",
1600
+ type: "function"
1601
+ },
1602
+ {
1603
+ inputs: [],
1604
+ name: "L1_NULLIFIER",
1605
+ outputs: [
1606
+ {
1607
+ internalType: "contract IL1Nullifier",
1608
+ name: "",
1609
+ type: "address"
1610
+ }
1611
+ ],
1612
+ stateMutability: "view",
1613
+ type: "function"
1614
+ },
1615
+ {
1616
+ inputs: [],
1617
+ name: "L1_WETH_TOKEN",
1618
+ outputs: [
1619
+ {
1620
+ internalType: "address",
1621
+ name: "",
1622
+ type: "address"
1623
+ }
1624
+ ],
1625
+ stateMutability: "view",
1626
+ type: "function"
1627
+ },
1628
+ {
1629
+ inputs: [
1630
+ {
1631
+ internalType: "bytes32",
1632
+ name: "_assetId",
1633
+ type: "bytes32"
1634
+ }
1635
+ ],
1636
+ name: "assetHandlerAddress",
1637
+ outputs: [
1638
+ {
1639
+ internalType: "address",
1640
+ name: "",
1641
+ type: "address"
1642
+ }
1643
+ ],
1644
+ stateMutability: "view",
1645
+ type: "function"
1646
+ },
1647
+ {
1648
+ inputs: [
1649
+ {
1650
+ internalType: "uint256",
1651
+ name: "_chainId",
1652
+ type: "uint256"
1653
+ },
1654
+ {
1655
+ internalType: "address",
1656
+ name: "_depositSender",
1657
+ type: "address"
1658
+ },
1659
+ {
1660
+ internalType: "bytes32",
1661
+ name: "_assetId",
1662
+ type: "bytes32"
1663
+ },
1664
+ {
1665
+ internalType: "bytes",
1666
+ name: "_assetData",
1667
+ type: "bytes"
1668
+ }
1669
+ ],
1670
+ name: "bridgeRecoverFailedTransfer",
1671
+ outputs: [],
1672
+ stateMutability: "nonpayable",
1673
+ type: "function"
1674
+ },
1675
+ {
1676
+ inputs: [
1677
+ {
1678
+ internalType: "uint256",
1679
+ name: "_chainId",
1680
+ type: "uint256"
1681
+ },
1682
+ {
1683
+ internalType: "address",
1684
+ name: "_depositSender",
1685
+ type: "address"
1686
+ },
1687
+ {
1688
+ internalType: "bytes32",
1689
+ name: "_assetId",
1690
+ type: "bytes32"
1691
+ },
1692
+ {
1693
+ internalType: "bytes",
1694
+ name: "_assetData",
1695
+ type: "bytes"
1696
+ },
1697
+ {
1698
+ internalType: "bytes32",
1699
+ name: "_l2TxHash",
1700
+ type: "bytes32"
1701
+ },
1702
+ {
1703
+ internalType: "uint256",
1704
+ name: "_l2BatchNumber",
1705
+ type: "uint256"
1706
+ },
1707
+ {
1708
+ internalType: "uint256",
1709
+ name: "_l2MessageIndex",
1710
+ type: "uint256"
1711
+ },
1712
+ {
1713
+ internalType: "uint16",
1714
+ name: "_l2TxNumberInBatch",
1715
+ type: "uint16"
1716
+ },
1717
+ {
1718
+ internalType: "bytes32[]",
1719
+ name: "_merkleProof",
1720
+ type: "bytes32[]"
1721
+ }
1722
+ ],
1723
+ name: "bridgeRecoverFailedTransfer",
1724
+ outputs: [],
1725
+ stateMutability: "nonpayable",
1726
+ type: "function"
1727
+ },
1728
+ {
1729
+ inputs: [
1730
+ {
1731
+ internalType: "uint256",
1732
+ name: "_chainId",
1733
+ type: "uint256"
1734
+ },
1735
+ {
1736
+ internalType: "bytes32",
1737
+ name: "_txDataHash",
1738
+ type: "bytes32"
1739
+ },
1740
+ {
1741
+ internalType: "bytes32",
1742
+ name: "_txHash",
1743
+ type: "bytes32"
1744
+ }
1745
+ ],
1746
+ name: "bridgehubConfirmL2Transaction",
1747
+ outputs: [],
1748
+ stateMutability: "nonpayable",
1749
+ type: "function"
1750
+ },
1751
+ {
1752
+ inputs: [
1753
+ {
1754
+ internalType: "uint256",
1755
+ name: "_chainId",
1756
+ type: "uint256"
1757
+ },
1758
+ {
1759
+ internalType: "address",
1760
+ name: "_originalCaller",
1761
+ type: "address"
1762
+ },
1763
+ {
1764
+ internalType: "uint256",
1765
+ name: "_value",
1766
+ type: "uint256"
1767
+ },
1768
+ {
1769
+ internalType: "bytes",
1770
+ name: "_data",
1771
+ type: "bytes"
1772
+ }
1773
+ ],
1774
+ name: "bridgehubDeposit",
1775
+ outputs: [
1776
+ {
1777
+ components: [
1778
+ {
1779
+ internalType: "bytes32",
1780
+ name: "magicValue",
1781
+ type: "bytes32"
1782
+ },
1783
+ {
1784
+ internalType: "address",
1785
+ name: "l2Contract",
1786
+ type: "address"
1787
+ },
1788
+ {
1789
+ internalType: "bytes",
1790
+ name: "l2Calldata",
1791
+ type: "bytes"
1792
+ },
1793
+ {
1794
+ internalType: "bytes[]",
1795
+ name: "factoryDeps",
1796
+ type: "bytes[]"
1797
+ },
1798
+ {
1799
+ internalType: "bytes32",
1800
+ name: "txDataHash",
1801
+ type: "bytes32"
1802
+ }
1803
+ ],
1804
+ internalType: "struct L2TransactionRequestTwoBridgesInner",
1805
+ name: "request",
1806
+ type: "tuple"
1807
+ }
1808
+ ],
1809
+ stateMutability: "payable",
1810
+ type: "function"
1811
+ },
1812
+ {
1813
+ inputs: [
1814
+ {
1815
+ internalType: "uint256",
1816
+ name: "_chainId",
1817
+ type: "uint256"
1818
+ },
1819
+ {
1820
+ internalType: "bytes32",
1821
+ name: "_assetId",
1822
+ type: "bytes32"
1823
+ },
1824
+ {
1825
+ internalType: "address",
1826
+ name: "_originalCaller",
1827
+ type: "address"
1828
+ },
1829
+ {
1830
+ internalType: "uint256",
1831
+ name: "_amount",
1832
+ type: "uint256"
1833
+ }
1834
+ ],
1835
+ name: "bridgehubDepositBaseToken",
1836
+ outputs: [],
1837
+ stateMutability: "payable",
1838
+ type: "function"
1839
+ },
1840
+ {
1841
+ inputs: [
1842
+ {
1843
+ internalType: "address",
1844
+ name: "_originalCaller",
1845
+ type: "address"
1846
+ },
1847
+ {
1848
+ internalType: "address",
1849
+ name: "_l2Receiver",
1850
+ type: "address"
1851
+ },
1852
+ {
1853
+ internalType: "address",
1854
+ name: "_l1Token",
1855
+ type: "address"
1856
+ },
1857
+ {
1858
+ internalType: "uint256",
1859
+ name: "_amount",
1860
+ type: "uint256"
1861
+ },
1862
+ {
1863
+ internalType: "uint256",
1864
+ name: "_l2TxGasLimit",
1865
+ type: "uint256"
1866
+ },
1867
+ {
1868
+ internalType: "uint256",
1869
+ name: "_l2TxGasPerPubdataByte",
1870
+ type: "uint256"
1871
+ },
1872
+ {
1873
+ internalType: "address",
1874
+ name: "_refundRecipient",
1875
+ type: "address"
1876
+ }
1877
+ ],
1878
+ name: "depositLegacyErc20Bridge",
1879
+ outputs: [
1880
+ {
1881
+ internalType: "bytes32",
1882
+ name: "txHash",
1883
+ type: "bytes32"
1884
+ }
1885
+ ],
1886
+ stateMutability: "payable",
1887
+ type: "function"
1888
+ },
1889
+ {
1890
+ inputs: [
1891
+ {
1892
+ internalType: "uint256",
1893
+ name: "_chainId",
1894
+ type: "uint256"
1895
+ },
1896
+ {
1897
+ internalType: "bytes32",
1898
+ name: "_assetId",
1899
+ type: "bytes32"
1900
+ },
1901
+ {
1902
+ internalType: "bytes",
1903
+ name: "_transferData",
1904
+ type: "bytes"
1905
+ }
1906
+ ],
1907
+ name: "finalizeDeposit",
1908
+ outputs: [],
1909
+ stateMutability: "payable",
1910
+ type: "function"
1911
+ },
1912
+ {
1913
+ inputs: [
1914
+ {
1915
+ internalType: "uint256",
1916
+ name: "_chainId",
1917
+ type: "uint256"
1918
+ },
1919
+ {
1920
+ internalType: "uint256",
1921
+ name: "_l2BatchNumber",
1922
+ type: "uint256"
1923
+ },
1924
+ {
1925
+ internalType: "uint256",
1926
+ name: "_l2MessageIndex",
1927
+ type: "uint256"
1928
+ },
1929
+ {
1930
+ internalType: "uint16",
1931
+ name: "_l2TxNumberInBatch",
1932
+ type: "uint16"
1933
+ },
1934
+ {
1935
+ internalType: "bytes",
1936
+ name: "_message",
1937
+ type: "bytes"
1938
+ },
1939
+ {
1940
+ internalType: "bytes32[]",
1941
+ name: "_merkleProof",
1942
+ type: "bytes32[]"
1943
+ }
1944
+ ],
1945
+ name: "finalizeWithdrawal",
1946
+ outputs: [],
1947
+ stateMutability: "nonpayable",
1948
+ type: "function"
1949
+ },
1950
+ {
1951
+ inputs: [
1952
+ {
1953
+ internalType: "address",
1954
+ name: "_sender",
1955
+ type: "address"
1956
+ },
1957
+ {
1958
+ internalType: "bytes32",
1959
+ name: "_assetId",
1960
+ type: "bytes32"
1961
+ },
1962
+ {
1963
+ internalType: "bytes",
1964
+ name: "_assetData",
1965
+ type: "bytes"
1966
+ }
1967
+ ],
1968
+ name: "getDepositCalldata",
1969
+ outputs: [
1970
+ {
1971
+ internalType: "bytes",
1972
+ name: "",
1973
+ type: "bytes"
1974
+ }
1975
+ ],
1976
+ stateMutability: "view",
1977
+ type: "function"
1978
+ },
1979
+ {
1980
+ inputs: [
1981
+ {
1982
+ internalType: "uint256",
1983
+ name: "_chainId",
1984
+ type: "uint256"
1985
+ },
1986
+ {
1987
+ internalType: "uint256",
1988
+ name: "_l2BatchNumber",
1989
+ type: "uint256"
1990
+ },
1991
+ {
1992
+ internalType: "uint256",
1993
+ name: "_l2MessageIndex",
1994
+ type: "uint256"
1995
+ }
1996
+ ],
1997
+ name: "isWithdrawalFinalized",
1998
+ outputs: [
1999
+ {
2000
+ internalType: "bool",
2001
+ name: "",
2002
+ type: "bool"
2003
+ }
2004
+ ],
2005
+ stateMutability: "view",
2006
+ type: "function"
2007
+ },
2008
+ {
2009
+ inputs: [
2010
+ {
2011
+ internalType: "uint256",
2012
+ name: "_chainId",
2013
+ type: "uint256"
2014
+ }
2015
+ ],
2016
+ name: "l2BridgeAddress",
2017
+ outputs: [
2018
+ {
2019
+ internalType: "address",
2020
+ name: "",
2021
+ type: "address"
2022
+ }
2023
+ ],
2024
+ stateMutability: "view",
2025
+ type: "function"
2026
+ },
2027
+ {
2028
+ inputs: [],
2029
+ name: "nativeTokenVault",
2030
+ outputs: [
2031
+ {
2032
+ internalType: "contract INativeTokenVault",
2033
+ name: "",
2034
+ type: "address"
2035
+ }
2036
+ ],
2037
+ stateMutability: "view",
2038
+ type: "function"
2039
+ },
2040
+ {
2041
+ inputs: [
2042
+ {
2043
+ internalType: "bytes32",
2044
+ name: "_assetRegistrationData",
2045
+ type: "bytes32"
2046
+ },
2047
+ {
2048
+ internalType: "address",
2049
+ name: "_assetDeploymentTracker",
2050
+ type: "address"
2051
+ }
2052
+ ],
2053
+ name: "setAssetDeploymentTracker",
2054
+ outputs: [],
2055
+ stateMutability: "nonpayable",
2056
+ type: "function"
2057
+ },
2058
+ {
2059
+ inputs: [
2060
+ {
2061
+ internalType: "bytes32",
2062
+ name: "_assetRegistrationData",
2063
+ type: "bytes32"
2064
+ },
2065
+ {
2066
+ internalType: "address",
2067
+ name: "_assetHandlerAddress",
2068
+ type: "address"
2069
+ }
2070
+ ],
2071
+ name: "setAssetHandlerAddressThisChain",
2072
+ outputs: [],
2073
+ stateMutability: "nonpayable",
2074
+ type: "function"
2075
+ },
2076
+ {
2077
+ inputs: [
2078
+ {
2079
+ internalType: "contract IL1ERC20Bridge",
2080
+ name: "_legacyBridge",
2081
+ type: "address"
2082
+ }
2083
+ ],
2084
+ name: "setL1Erc20Bridge",
2085
+ outputs: [],
2086
+ stateMutability: "nonpayable",
2087
+ type: "function"
2088
+ },
2089
+ {
2090
+ inputs: [
2091
+ {
2092
+ internalType: "contract INativeTokenVault",
2093
+ name: "_nativeTokenVault",
2094
+ type: "address"
2095
+ }
2096
+ ],
2097
+ name: "setNativeTokenVault",
2098
+ outputs: [],
2099
+ stateMutability: "nonpayable",
2100
+ type: "function"
2101
+ },
2102
+ {
2103
+ inputs: [
2104
+ {
2105
+ internalType: "bytes32",
2106
+ name: "_assetId",
2107
+ type: "bytes32"
2108
+ },
2109
+ {
2110
+ internalType: "uint256",
2111
+ name: "_amount",
2112
+ type: "uint256"
2113
+ },
2114
+ {
2115
+ internalType: "address",
2116
+ name: "_originalCaller",
2117
+ type: "address"
2118
+ }
2119
+ ],
2120
+ name: "transferFundsToNTV",
2121
+ outputs: [
2122
+ {
2123
+ internalType: "bool",
2124
+ name: "",
2125
+ type: "bool"
2126
+ }
2127
+ ],
2128
+ stateMutability: "nonpayable",
2129
+ type: "function"
2130
+ }
2131
+ ];
2132
+ var IL1AssetRouter_default = IL1AssetRouterABI;
2133
+
2134
+ // src/core/internal/abis/IL1Nullifier.ts
2135
+ var IL1NullifierABI = [
2136
+ {
2137
+ anonymous: false,
2138
+ inputs: [
2139
+ {
2140
+ indexed: true,
2141
+ internalType: "uint256",
2142
+ name: "chainId",
2143
+ type: "uint256"
2144
+ },
2145
+ {
2146
+ indexed: true,
2147
+ internalType: "bytes32",
2148
+ name: "txDataHash",
2149
+ type: "bytes32"
2150
+ },
2151
+ {
2152
+ indexed: true,
2153
+ internalType: "bytes32",
2154
+ name: "l2DepositTxHash",
2155
+ type: "bytes32"
2156
+ }
2157
+ ],
2158
+ name: "BridgehubDepositFinalized",
2159
+ type: "event"
2160
+ },
2161
+ {
2162
+ inputs: [],
2163
+ name: "BRIDGE_HUB",
2164
+ outputs: [
2165
+ {
2166
+ internalType: "contract IBridgehub",
2167
+ name: "",
2168
+ type: "address"
2169
+ }
2170
+ ],
2171
+ stateMutability: "view",
2172
+ type: "function"
2173
+ },
2174
+ {
2175
+ inputs: [
2176
+ {
2177
+ internalType: "uint256",
2178
+ name: "_chainId",
2179
+ type: "uint256"
2180
+ },
2181
+ {
2182
+ internalType: "address",
2183
+ name: "_depositSender",
2184
+ type: "address"
2185
+ },
2186
+ {
2187
+ internalType: "bytes32",
2188
+ name: "_assetId",
2189
+ type: "bytes32"
2190
+ },
2191
+ {
2192
+ internalType: "bytes",
2193
+ name: "_assetData",
2194
+ type: "bytes"
2195
+ },
2196
+ {
2197
+ internalType: "bytes32",
2198
+ name: "_l2TxHash",
2199
+ type: "bytes32"
2200
+ },
2201
+ {
2202
+ internalType: "uint256",
2203
+ name: "_l2BatchNumber",
2204
+ type: "uint256"
2205
+ },
2206
+ {
2207
+ internalType: "uint256",
2208
+ name: "_l2MessageIndex",
2209
+ type: "uint256"
2210
+ },
2211
+ {
2212
+ internalType: "uint16",
2213
+ name: "_l2TxNumberInBatch",
2214
+ type: "uint16"
2215
+ },
2216
+ {
2217
+ internalType: "bytes32[]",
2218
+ name: "_merkleProof",
2219
+ type: "bytes32[]"
2220
+ }
2221
+ ],
2222
+ name: "bridgeRecoverFailedTransfer",
2223
+ outputs: [],
2224
+ stateMutability: "nonpayable",
2225
+ type: "function"
2226
+ },
2227
+ {
2228
+ inputs: [
2229
+ {
2230
+ internalType: "uint256",
2231
+ name: "_chainId",
2232
+ type: "uint256"
2233
+ },
2234
+ {
2235
+ internalType: "bytes32",
2236
+ name: "_txDataHash",
2237
+ type: "bytes32"
2238
+ },
2239
+ {
2240
+ internalType: "bytes32",
2241
+ name: "_txHash",
2242
+ type: "bytes32"
2243
+ }
2244
+ ],
2245
+ name: "bridgehubConfirmL2TransactionForwarded",
2246
+ outputs: [],
2247
+ stateMutability: "nonpayable",
2248
+ type: "function"
2249
+ },
2250
+ {
2251
+ inputs: [
2252
+ {
2253
+ internalType: "uint256",
2254
+ name: "_chainId",
2255
+ type: "uint256"
2256
+ },
2257
+ {
2258
+ internalType: "address",
2259
+ name: "_token",
2260
+ type: "address"
2261
+ }
2262
+ ],
2263
+ name: "chainBalance",
2264
+ outputs: [
2265
+ {
2266
+ internalType: "uint256",
2267
+ name: "",
2268
+ type: "uint256"
2269
+ }
2270
+ ],
2271
+ stateMutability: "view",
2272
+ type: "function"
2273
+ },
2274
+ {
2275
+ inputs: [
2276
+ {
2277
+ internalType: "uint256",
2278
+ name: "_chainId",
2279
+ type: "uint256"
2280
+ },
2281
+ {
2282
+ internalType: "address",
2283
+ name: "_depositSender",
2284
+ type: "address"
2285
+ },
2286
+ {
2287
+ internalType: "address",
2288
+ name: "_l1Token",
2289
+ type: "address"
2290
+ },
2291
+ {
2292
+ internalType: "uint256",
2293
+ name: "_amount",
2294
+ type: "uint256"
2295
+ },
2296
+ {
2297
+ internalType: "bytes32",
2298
+ name: "_l2TxHash",
2299
+ type: "bytes32"
2300
+ },
2301
+ {
2302
+ internalType: "uint256",
2303
+ name: "_l2BatchNumber",
2304
+ type: "uint256"
2305
+ },
2306
+ {
2307
+ internalType: "uint256",
2308
+ name: "_l2MessageIndex",
2309
+ type: "uint256"
2310
+ },
2311
+ {
2312
+ internalType: "uint16",
2313
+ name: "_l2TxNumberInBatch",
2314
+ type: "uint16"
2315
+ },
2316
+ {
2317
+ internalType: "bytes32[]",
2318
+ name: "_merkleProof",
2319
+ type: "bytes32[]"
2320
+ }
2321
+ ],
2322
+ name: "claimFailedDeposit",
2323
+ outputs: [],
2324
+ stateMutability: "nonpayable",
2325
+ type: "function"
2326
+ },
2327
+ {
2328
+ inputs: [
2329
+ {
2330
+ internalType: "address",
2331
+ name: "_depositSender",
2332
+ type: "address"
2333
+ },
2334
+ {
2335
+ internalType: "address",
2336
+ name: "_l1Token",
2337
+ type: "address"
2338
+ },
2339
+ {
2340
+ internalType: "uint256",
2341
+ name: "_amount",
2342
+ type: "uint256"
2343
+ },
2344
+ {
2345
+ internalType: "bytes32",
2346
+ name: "_l2TxHash",
2347
+ type: "bytes32"
2348
+ },
2349
+ {
2350
+ internalType: "uint256",
2351
+ name: "_l2BatchNumber",
2352
+ type: "uint256"
2353
+ },
2354
+ {
2355
+ internalType: "uint256",
2356
+ name: "_l2MessageIndex",
2357
+ type: "uint256"
2358
+ },
2359
+ {
2360
+ internalType: "uint16",
2361
+ name: "_l2TxNumberInBatch",
2362
+ type: "uint16"
2363
+ },
2364
+ {
2365
+ internalType: "bytes32[]",
2366
+ name: "_merkleProof",
2367
+ type: "bytes32[]"
2368
+ }
2369
+ ],
2370
+ name: "claimFailedDepositLegacyErc20Bridge",
2371
+ outputs: [],
2372
+ stateMutability: "nonpayable",
2373
+ type: "function"
2374
+ },
2375
+ {
2376
+ inputs: [
2377
+ {
2378
+ internalType: "uint256",
2379
+ name: "_chainId",
2380
+ type: "uint256"
2381
+ },
2382
+ {
2383
+ internalType: "bytes32",
2384
+ name: "_l2TxHash",
2385
+ type: "bytes32"
2386
+ }
2387
+ ],
2388
+ name: "depositHappened",
2389
+ outputs: [
2390
+ {
2391
+ internalType: "bytes32",
2392
+ name: "",
2393
+ type: "bytes32"
2394
+ }
2395
+ ],
2396
+ stateMutability: "view",
2397
+ type: "function"
2398
+ },
2399
+ {
2400
+ inputs: [
2401
+ {
2402
+ components: [
2403
+ {
2404
+ internalType: "uint256",
2405
+ name: "chainId",
2406
+ type: "uint256"
2407
+ },
2408
+ {
2409
+ internalType: "uint256",
2410
+ name: "l2BatchNumber",
2411
+ type: "uint256"
2412
+ },
2413
+ {
2414
+ internalType: "uint256",
2415
+ name: "l2MessageIndex",
2416
+ type: "uint256"
2417
+ },
2418
+ {
2419
+ internalType: "address",
2420
+ name: "l2Sender",
2421
+ type: "address"
2422
+ },
2423
+ {
2424
+ internalType: "uint16",
2425
+ name: "l2TxNumberInBatch",
2426
+ type: "uint16"
2427
+ },
2428
+ {
2429
+ internalType: "bytes",
2430
+ name: "message",
2431
+ type: "bytes"
2432
+ },
2433
+ {
2434
+ internalType: "bytes32[]",
2435
+ name: "merkleProof",
2436
+ type: "bytes32[]"
2437
+ }
2438
+ ],
2439
+ internalType: "struct FinalizeL1DepositParams",
2440
+ name: "_finalizeWithdrawalParams",
2441
+ type: "tuple"
2442
+ }
2443
+ ],
2444
+ name: "finalizeDeposit",
2445
+ outputs: [],
2446
+ stateMutability: "nonpayable",
2447
+ type: "function"
2448
+ },
2449
+ {
2450
+ inputs: [
2451
+ {
2452
+ internalType: "uint256",
2453
+ name: "_chainId",
2454
+ type: "uint256"
2455
+ },
2456
+ {
2457
+ internalType: "uint256",
2458
+ name: "_l2BatchNumber",
2459
+ type: "uint256"
2460
+ },
2461
+ {
2462
+ internalType: "uint256",
2463
+ name: "_l2MessageIndex",
2464
+ type: "uint256"
2465
+ },
2466
+ {
2467
+ internalType: "uint16",
2468
+ name: "_l2TxNumberInBatch",
2469
+ type: "uint16"
2470
+ },
2471
+ {
2472
+ internalType: "bytes",
2473
+ name: "_message",
2474
+ type: "bytes"
2475
+ },
2476
+ {
2477
+ internalType: "bytes32[]",
2478
+ name: "_merkleProof",
2479
+ type: "bytes32[]"
2480
+ }
2481
+ ],
2482
+ name: "finalizeWithdrawal",
2483
+ outputs: [],
2484
+ stateMutability: "nonpayable",
2485
+ type: "function"
2486
+ },
2487
+ {
2488
+ inputs: [
2489
+ {
2490
+ internalType: "uint256",
2491
+ name: "_chainId",
2492
+ type: "uint256"
2493
+ },
2494
+ {
2495
+ internalType: "uint256",
2496
+ name: "_l2BatchNumber",
2497
+ type: "uint256"
2498
+ },
2499
+ {
2500
+ internalType: "uint256",
2501
+ name: "_l2MessageIndex",
2502
+ type: "uint256"
2503
+ }
2504
+ ],
2505
+ name: "isWithdrawalFinalized",
2506
+ outputs: [
2507
+ {
2508
+ internalType: "bool",
2509
+ name: "",
2510
+ type: "bool"
2511
+ }
2512
+ ],
2513
+ stateMutability: "view",
2514
+ type: "function"
2515
+ },
2516
+ {
2517
+ inputs: [],
2518
+ name: "l1NativeTokenVault",
2519
+ outputs: [
2520
+ {
2521
+ internalType: "contract IL1NativeTokenVault",
2522
+ name: "",
2523
+ type: "address"
2524
+ }
2525
+ ],
2526
+ stateMutability: "view",
2527
+ type: "function"
2528
+ },
2529
+ {
2530
+ inputs: [
2531
+ {
2532
+ internalType: "uint256",
2533
+ name: "_chainId",
2534
+ type: "uint256"
2535
+ }
2536
+ ],
2537
+ name: "l2BridgeAddress",
2538
+ outputs: [
2539
+ {
2540
+ internalType: "address",
2541
+ name: "",
2542
+ type: "address"
2543
+ }
2544
+ ],
2545
+ stateMutability: "view",
2546
+ type: "function"
2547
+ },
2548
+ {
2549
+ inputs: [],
2550
+ name: "legacyBridge",
2551
+ outputs: [
2552
+ {
2553
+ internalType: "contract IL1ERC20Bridge",
2554
+ name: "",
2555
+ type: "address"
2556
+ }
2557
+ ],
2558
+ stateMutability: "view",
2559
+ type: "function"
2560
+ },
2561
+ {
2562
+ inputs: [
2563
+ {
2564
+ internalType: "uint256",
2565
+ name: "_chainId",
2566
+ type: "uint256"
2567
+ },
2568
+ {
2569
+ internalType: "address",
2570
+ name: "_token",
2571
+ type: "address"
2572
+ }
2573
+ ],
2574
+ name: "nullifyChainBalanceByNTV",
2575
+ outputs: [],
2576
+ stateMutability: "nonpayable",
2577
+ type: "function"
2578
+ },
2579
+ {
2580
+ inputs: [
2581
+ {
2582
+ internalType: "address",
2583
+ name: "_l1AssetRouter",
2584
+ type: "address"
2585
+ }
2586
+ ],
2587
+ name: "setL1AssetRouter",
2588
+ outputs: [],
2589
+ stateMutability: "nonpayable",
2590
+ type: "function"
2591
+ },
2592
+ {
2593
+ inputs: [
2594
+ {
2595
+ internalType: "contract IL1NativeTokenVault",
2596
+ name: "_nativeTokenVault",
2597
+ type: "address"
2598
+ }
2599
+ ],
2600
+ name: "setL1NativeTokenVault",
2601
+ outputs: [],
2602
+ stateMutability: "nonpayable",
2603
+ type: "function"
2604
+ },
2605
+ {
2606
+ inputs: [
2607
+ {
2608
+ internalType: "address",
2609
+ name: "_token",
2610
+ type: "address"
2611
+ }
2612
+ ],
2613
+ name: "transferTokenToNTV",
2614
+ outputs: [],
2615
+ stateMutability: "nonpayable",
2616
+ type: "function"
2617
+ }
2618
+ ];
2619
+ var IL1Nullifier_default = IL1NullifierABI;
2620
+
2621
+ // src/core/internal/abis/IL2AssetRouter.ts
2622
+ var IL2AssetRouterABI = [
2623
+ {
2624
+ type: "function",
2625
+ name: "BASE_TOKEN_ASSET_ID",
2626
+ inputs: [],
2627
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
2628
+ stateMutability: "view"
2629
+ },
2630
+ {
2631
+ type: "function",
2632
+ name: "BRIDGE_HUB",
2633
+ inputs: [],
2634
+ outputs: [{ name: "", type: "address", internalType: "contract IBridgehub" }],
2635
+ stateMutability: "view"
2636
+ },
2637
+ {
2638
+ type: "function",
2639
+ name: "L1_ASSET_ROUTER",
2640
+ inputs: [],
2641
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2642
+ stateMutability: "view"
2643
+ },
2644
+ {
2645
+ type: "function",
2646
+ name: "L1_CHAIN_ID",
2647
+ inputs: [],
2648
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2649
+ stateMutability: "view"
2650
+ },
2651
+ {
2652
+ type: "function",
2653
+ name: "L2_LEGACY_SHARED_BRIDGE",
2654
+ inputs: [],
2655
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2656
+ stateMutability: "view"
2657
+ },
2658
+ {
2659
+ type: "function",
2660
+ name: "acceptOwnership",
2661
+ inputs: [],
2662
+ outputs: [],
2663
+ stateMutability: "nonpayable"
2664
+ },
2665
+ {
2666
+ type: "function",
2667
+ name: "assetDeploymentTracker",
2668
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
2669
+ outputs: [{ name: "assetDeploymentTracker", type: "address", internalType: "address" }],
2670
+ stateMutability: "view"
2671
+ },
2672
+ {
2673
+ type: "function",
2674
+ name: "assetHandlerAddress",
2675
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
2676
+ outputs: [{ name: "assetHandlerAddress", type: "address", internalType: "address" }],
2677
+ stateMutability: "view"
2678
+ },
2679
+ {
2680
+ type: "function",
2681
+ name: "eraChainId",
2682
+ inputs: [],
2683
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2684
+ stateMutability: "view"
2685
+ },
2686
+ {
2687
+ type: "function",
2688
+ name: "finalizeDeposit",
2689
+ inputs: [
2690
+ { name: "", type: "uint256", internalType: "uint256" },
2691
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
2692
+ { name: "_transferData", type: "bytes", internalType: "bytes" }
2693
+ ],
2694
+ outputs: [],
2695
+ stateMutability: "payable"
2696
+ },
2697
+ {
2698
+ type: "function",
2699
+ name: "finalizeDeposit",
2700
+ inputs: [
2701
+ { name: "_l1Sender", type: "address", internalType: "address" },
2702
+ { name: "_l2Receiver", type: "address", internalType: "address" },
2703
+ { name: "_l1Token", type: "address", internalType: "address" },
2704
+ { name: "_amount", type: "uint256", internalType: "uint256" },
2705
+ { name: "_data", type: "bytes", internalType: "bytes" }
2706
+ ],
2707
+ outputs: [],
2708
+ stateMutability: "payable"
2709
+ },
2710
+ {
2711
+ type: "function",
2712
+ name: "finalizeDepositLegacyBridge",
2713
+ inputs: [
2714
+ { name: "_l1Sender", type: "address", internalType: "address" },
2715
+ { name: "_l2Receiver", type: "address", internalType: "address" },
2716
+ { name: "_l1Token", type: "address", internalType: "address" },
2717
+ { name: "_amount", type: "uint256", internalType: "uint256" },
2718
+ { name: "_data", type: "bytes", internalType: "bytes" }
2719
+ ],
2720
+ outputs: [],
2721
+ stateMutability: "nonpayable"
2722
+ },
2723
+ {
2724
+ type: "function",
2725
+ name: "initL2",
2726
+ inputs: [
2727
+ { name: "_l1ChainId", type: "uint256", internalType: "uint256" },
2728
+ { name: "_eraChainId", type: "uint256", internalType: "uint256" },
2729
+ { name: "_l1AssetRouter", type: "address", internalType: "address" },
2730
+ { name: "_legacySharedBridge", type: "address", internalType: "address" },
2731
+ { name: "_baseTokenAssetId", type: "bytes32", internalType: "bytes32" },
2732
+ { name: "_aliasedOwner", type: "address", internalType: "address" }
2733
+ ],
2734
+ outputs: [],
2735
+ stateMutability: "nonpayable"
2736
+ },
2737
+ {
2738
+ type: "function",
2739
+ name: "l1Bridge",
2740
+ inputs: [],
2741
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2742
+ stateMutability: "view"
2743
+ },
2744
+ {
2745
+ type: "function",
2746
+ name: "l1TokenAddress",
2747
+ inputs: [{ name: "_l2Token", type: "address", internalType: "address" }],
2748
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2749
+ stateMutability: "view"
2750
+ },
2751
+ {
2752
+ type: "function",
2753
+ name: "l2TokenAddress",
2754
+ inputs: [{ name: "_l1Token", type: "address", internalType: "address" }],
2755
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2756
+ stateMutability: "view"
2757
+ },
2758
+ {
2759
+ type: "function",
2760
+ name: "owner",
2761
+ inputs: [],
2762
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2763
+ stateMutability: "view"
2764
+ },
2765
+ {
2766
+ type: "function",
2767
+ name: "pause",
2768
+ inputs: [],
2769
+ outputs: [],
2770
+ stateMutability: "nonpayable"
2771
+ },
2772
+ {
2773
+ type: "function",
2774
+ name: "paused",
2775
+ inputs: [],
2776
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
2777
+ stateMutability: "view"
2778
+ },
2779
+ {
2780
+ type: "function",
2781
+ name: "pendingOwner",
2782
+ inputs: [],
2783
+ outputs: [{ name: "", type: "address", internalType: "address" }],
2784
+ stateMutability: "view"
2785
+ },
2786
+ {
2787
+ type: "function",
2788
+ name: "renounceOwnership",
2789
+ inputs: [],
2790
+ outputs: [],
2791
+ stateMutability: "nonpayable"
2792
+ },
2793
+ {
2794
+ type: "function",
2795
+ name: "setAssetHandlerAddress",
2796
+ inputs: [
2797
+ { name: "_originChainId", type: "uint256", internalType: "uint256" },
2798
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
2799
+ { name: "_assetHandlerAddress", type: "address", internalType: "address" }
2800
+ ],
2801
+ outputs: [],
2802
+ stateMutability: "nonpayable"
2803
+ },
2804
+ {
2805
+ type: "function",
2806
+ name: "setAssetHandlerAddressThisChain",
2807
+ inputs: [
2808
+ { name: "_assetRegistrationData", type: "bytes32", internalType: "bytes32" },
2809
+ { name: "_assetHandlerAddress", type: "address", internalType: "address" }
2810
+ ],
2811
+ outputs: [],
2812
+ stateMutability: "nonpayable"
2813
+ },
2814
+ {
2815
+ type: "function",
2816
+ name: "setLegacyTokenAssetHandler",
2817
+ inputs: [{ name: "_assetId", type: "bytes32", internalType: "bytes32" }],
2818
+ outputs: [],
2819
+ stateMutability: "nonpayable"
2820
+ },
2821
+ {
2822
+ type: "function",
2823
+ name: "transferOwnership",
2824
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
2825
+ outputs: [],
2826
+ stateMutability: "nonpayable"
2827
+ },
2828
+ {
2829
+ type: "function",
2830
+ name: "unpause",
2831
+ inputs: [],
2832
+ outputs: [],
2833
+ stateMutability: "nonpayable"
2834
+ },
2835
+ {
2836
+ type: "function",
2837
+ name: "updateL2",
2838
+ inputs: [
2839
+ { name: "_l1ChainId", type: "uint256", internalType: "uint256" },
2840
+ { name: "_eraChainId", type: "uint256", internalType: "uint256" },
2841
+ { name: "_l1AssetRouter", type: "address", internalType: "address" },
2842
+ { name: "_legacySharedBridge", type: "address", internalType: "address" },
2843
+ { name: "_baseTokenAssetId", type: "bytes32", internalType: "bytes32" }
2844
+ ],
2845
+ outputs: [],
2846
+ stateMutability: "nonpayable"
2847
+ },
2848
+ {
2849
+ type: "function",
2850
+ name: "withdraw",
2851
+ inputs: [
2852
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
2853
+ { name: "_assetData", type: "bytes", internalType: "bytes" }
2854
+ ],
2855
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
2856
+ stateMutability: "nonpayable"
2857
+ },
2858
+ {
2859
+ type: "function",
2860
+ name: "withdraw",
2861
+ inputs: [
2862
+ { name: "_l1Receiver", type: "address", internalType: "address" },
2863
+ { name: "_l2Token", type: "address", internalType: "address" },
2864
+ { name: "_amount", type: "uint256", internalType: "uint256" }
2865
+ ],
2866
+ outputs: [],
2867
+ stateMutability: "nonpayable"
2868
+ },
2869
+ {
2870
+ type: "function",
2871
+ name: "withdrawLegacyBridge",
2872
+ inputs: [
2873
+ { name: "_l1Receiver", type: "address", internalType: "address" },
2874
+ { name: "_l2Token", type: "address", internalType: "address" },
2875
+ { name: "_amount", type: "uint256", internalType: "uint256" },
2876
+ { name: "_sender", type: "address", internalType: "address" }
2877
+ ],
2878
+ outputs: [],
2879
+ stateMutability: "nonpayable"
2880
+ },
2881
+ {
2882
+ type: "event",
2883
+ name: "AssetDeploymentTrackerRegistered",
2884
+ inputs: [
2885
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
2886
+ { name: "additionalData", type: "bytes32", indexed: true, internalType: "bytes32" },
2887
+ {
2888
+ name: "assetDeploymentTracker",
2889
+ type: "address",
2890
+ indexed: false,
2891
+ internalType: "address"
2892
+ }
2893
+ ],
2894
+ anonymous: false
2895
+ },
2896
+ {
2897
+ type: "event",
2898
+ name: "AssetHandlerRegistered",
2899
+ inputs: [
2900
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
2901
+ {
2902
+ name: "_assetHandlerAddress",
2903
+ type: "address",
2904
+ indexed: true,
2905
+ internalType: "address"
2906
+ }
2907
+ ],
2908
+ anonymous: false
2909
+ },
2910
+ {
2911
+ type: "event",
2912
+ name: "BridgehubDepositBaseTokenInitiated",
2913
+ inputs: [
2914
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
2915
+ { name: "from", type: "address", indexed: true, internalType: "address" },
2916
+ { name: "assetId", type: "bytes32", indexed: false, internalType: "bytes32" },
2917
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
2918
+ ],
2919
+ anonymous: false
2920
+ },
2921
+ {
2922
+ type: "event",
2923
+ name: "BridgehubDepositInitiated",
2924
+ inputs: [
2925
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
2926
+ { name: "txDataHash", type: "bytes32", indexed: true, internalType: "bytes32" },
2927
+ { name: "from", type: "address", indexed: true, internalType: "address" },
2928
+ { name: "assetId", type: "bytes32", indexed: false, internalType: "bytes32" },
2929
+ { name: "bridgeMintCalldata", type: "bytes", indexed: false, internalType: "bytes" }
2930
+ ],
2931
+ anonymous: false
2932
+ },
2933
+ {
2934
+ type: "event",
2935
+ name: "BridgehubWithdrawalInitiated",
2936
+ inputs: [
2937
+ { name: "chainId", type: "uint256", indexed: false, internalType: "uint256" },
2938
+ { name: "sender", type: "address", indexed: true, internalType: "address" },
2939
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
2940
+ { name: "assetDataHash", type: "bytes32", indexed: false, internalType: "bytes32" }
2941
+ ],
2942
+ anonymous: false
2943
+ },
2944
+ {
2945
+ type: "event",
2946
+ name: "DepositFinalizedAssetRouter",
2947
+ inputs: [
2948
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
2949
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
2950
+ { name: "assetData", type: "bytes", indexed: false, internalType: "bytes" }
2951
+ ],
2952
+ anonymous: false
2953
+ },
2954
+ {
2955
+ type: "event",
2956
+ name: "Initialized",
2957
+ inputs: [{ name: "version", type: "uint8", indexed: false, internalType: "uint8" }],
2958
+ anonymous: false
2959
+ },
2960
+ {
2961
+ type: "event",
2962
+ name: "OwnershipTransferStarted",
2963
+ inputs: [
2964
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
2965
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
2966
+ ],
2967
+ anonymous: false
2968
+ },
2969
+ {
2970
+ type: "event",
2971
+ name: "OwnershipTransferred",
2972
+ inputs: [
2973
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
2974
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
2975
+ ],
2976
+ anonymous: false
2977
+ },
2978
+ {
2979
+ type: "event",
2980
+ name: "Paused",
2981
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
2982
+ anonymous: false
2983
+ },
2984
+ {
2985
+ type: "event",
2986
+ name: "Unpaused",
2987
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
2988
+ anonymous: false
2989
+ },
2990
+ {
2991
+ type: "event",
2992
+ name: "WithdrawalInitiatedAssetRouter",
2993
+ inputs: [
2994
+ { name: "chainId", type: "uint256", indexed: false, internalType: "uint256" },
2995
+ { name: "l2Sender", type: "address", indexed: true, internalType: "address" },
2996
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
2997
+ { name: "assetData", type: "bytes", indexed: false, internalType: "bytes" }
2998
+ ],
2999
+ anonymous: false
3000
+ },
3001
+ { type: "error", name: "AmountMustBeGreaterThanZero", inputs: [] },
3002
+ {
3003
+ type: "error",
3004
+ name: "AssetIdNotSupported",
3005
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }]
3006
+ },
3007
+ { type: "error", name: "EmptyAddress", inputs: [] },
3008
+ {
3009
+ type: "error",
3010
+ name: "InvalidCaller",
3011
+ inputs: [{ name: "", type: "address", internalType: "address" }]
3012
+ },
3013
+ { type: "error", name: "InvalidNTVBurnData", inputs: [] },
3014
+ { type: "error", name: "NotInitializedReentrancyGuard", inputs: [] },
3015
+ { type: "error", name: "Reentrancy", inputs: [] },
3016
+ { type: "error", name: "SlotOccupied", inputs: [] },
3017
+ { type: "error", name: "TokenNotLegacy", inputs: [] },
3018
+ {
3019
+ type: "error",
3020
+ name: "Unauthorized",
3021
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
3022
+ }
3023
+ ];
3024
+ var IL2AssetRouter_default = IL2AssetRouterABI;
3025
+
3026
+ // src/core/internal/abis/L1NativeTokenVault.ts
3027
+ var L1NativeTokenVaultABI = [
3028
+ {
3029
+ type: "constructor",
3030
+ inputs: [
3031
+ { name: "_l1WethAddress", type: "address", internalType: "address" },
3032
+ { name: "_l1AssetRouter", type: "address", internalType: "address" },
3033
+ { name: "_l1Nullifier", type: "address", internalType: "contract IL1Nullifier" }
3034
+ ],
3035
+ stateMutability: "nonpayable"
3036
+ },
3037
+ { type: "receive", stateMutability: "payable" },
3038
+ {
3039
+ type: "function",
3040
+ name: "ASSET_ROUTER",
3041
+ inputs: [],
3042
+ outputs: [{ name: "", type: "address", internalType: "contract IAssetRouterBase" }],
3043
+ stateMutability: "view"
3044
+ },
3045
+ {
3046
+ type: "function",
3047
+ name: "BASE_TOKEN_ASSET_ID",
3048
+ inputs: [],
3049
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3050
+ stateMutability: "view"
3051
+ },
3052
+ {
3053
+ type: "function",
3054
+ name: "L1_CHAIN_ID",
3055
+ inputs: [],
3056
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3057
+ stateMutability: "view"
3058
+ },
3059
+ {
3060
+ type: "function",
3061
+ name: "L1_NULLIFIER",
3062
+ inputs: [],
3063
+ outputs: [{ name: "", type: "address", internalType: "contract IL1Nullifier" }],
3064
+ stateMutability: "view"
3065
+ },
3066
+ {
3067
+ type: "function",
3068
+ name: "WETH_TOKEN",
3069
+ inputs: [],
3070
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3071
+ stateMutability: "view"
3072
+ },
3073
+ {
3074
+ type: "function",
3075
+ name: "acceptOwnership",
3076
+ inputs: [],
3077
+ outputs: [],
3078
+ stateMutability: "nonpayable"
3079
+ },
3080
+ {
3081
+ type: "function",
3082
+ name: "addLegacyTokenToBridgedTokensList",
3083
+ inputs: [{ name: "_token", type: "address", internalType: "address" }],
3084
+ outputs: [],
3085
+ stateMutability: "nonpayable"
3086
+ },
3087
+ {
3088
+ type: "function",
3089
+ name: "assetId",
3090
+ inputs: [{ name: "tokenAddress", type: "address", internalType: "address" }],
3091
+ outputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3092
+ stateMutability: "view"
3093
+ },
3094
+ {
3095
+ type: "function",
3096
+ name: "bridgeBurn",
3097
+ inputs: [
3098
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3099
+ { name: "_l2MsgValue", type: "uint256", internalType: "uint256" },
3100
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
3101
+ { name: "_originalCaller", type: "address", internalType: "address" },
3102
+ { name: "_data", type: "bytes", internalType: "bytes" }
3103
+ ],
3104
+ outputs: [{ name: "_bridgeMintData", type: "bytes", internalType: "bytes" }],
3105
+ stateMutability: "payable"
3106
+ },
3107
+ {
3108
+ type: "function",
3109
+ name: "bridgeCheckCounterpartAddress",
3110
+ inputs: [
3111
+ { name: "", type: "uint256", internalType: "uint256" },
3112
+ { name: "", type: "bytes32", internalType: "bytes32" },
3113
+ { name: "", type: "address", internalType: "address" },
3114
+ {
3115
+ name: "_assetHandlerAddressOnCounterpart",
3116
+ type: "address",
3117
+ internalType: "address"
3118
+ }
3119
+ ],
3120
+ outputs: [],
3121
+ stateMutability: "view"
3122
+ },
3123
+ {
3124
+ type: "function",
3125
+ name: "bridgeMint",
3126
+ inputs: [
3127
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3128
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
3129
+ { name: "_data", type: "bytes", internalType: "bytes" }
3130
+ ],
3131
+ outputs: [],
3132
+ stateMutability: "payable"
3133
+ },
3134
+ {
3135
+ type: "function",
3136
+ name: "bridgeRecoverFailedTransfer",
3137
+ inputs: [
3138
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3139
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
3140
+ { name: "_depositSender", type: "address", internalType: "address" },
3141
+ { name: "_data", type: "bytes", internalType: "bytes" }
3142
+ ],
3143
+ outputs: [],
3144
+ stateMutability: "payable"
3145
+ },
3146
+ {
3147
+ type: "function",
3148
+ name: "bridgedTokenBeacon",
3149
+ inputs: [],
3150
+ outputs: [{ name: "", type: "address", internalType: "contract IBeacon" }],
3151
+ stateMutability: "view"
3152
+ },
3153
+ {
3154
+ type: "function",
3155
+ name: "bridgedTokens",
3156
+ inputs: [{ name: "count", type: "uint256", internalType: "uint256" }],
3157
+ outputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3158
+ stateMutability: "view"
3159
+ },
3160
+ {
3161
+ type: "function",
3162
+ name: "bridgedTokensCount",
3163
+ inputs: [],
3164
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3165
+ stateMutability: "view"
3166
+ },
3167
+ {
3168
+ type: "function",
3169
+ name: "calculateCreate2TokenAddress",
3170
+ inputs: [
3171
+ { name: "_originChainId", type: "uint256", internalType: "uint256" },
3172
+ { name: "_nonNativeToken", type: "address", internalType: "address" }
3173
+ ],
3174
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3175
+ stateMutability: "view"
3176
+ },
3177
+ {
3178
+ type: "function",
3179
+ name: "chainBalance",
3180
+ inputs: [
3181
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3182
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" }
3183
+ ],
3184
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3185
+ stateMutability: "view"
3186
+ },
3187
+ {
3188
+ type: "function",
3189
+ name: "ensureTokenIsRegistered",
3190
+ inputs: [{ name: "_nativeToken", type: "address", internalType: "address" }],
3191
+ outputs: [{ name: "tokenAssetId", type: "bytes32", internalType: "bytes32" }],
3192
+ stateMutability: "nonpayable"
3193
+ },
3194
+ {
3195
+ type: "function",
3196
+ name: "getERC20Getters",
3197
+ inputs: [
3198
+ { name: "_token", type: "address", internalType: "address" },
3199
+ { name: "_originChainId", type: "uint256", internalType: "uint256" }
3200
+ ],
3201
+ outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
3202
+ stateMutability: "view"
3203
+ },
3204
+ {
3205
+ type: "function",
3206
+ name: "initialize",
3207
+ inputs: [
3208
+ { name: "_owner", type: "address", internalType: "address" },
3209
+ { name: "_bridgedTokenBeacon", type: "address", internalType: "address" }
3210
+ ],
3211
+ outputs: [],
3212
+ stateMutability: "nonpayable"
3213
+ },
3214
+ {
3215
+ type: "function",
3216
+ name: "l1AssetTracker",
3217
+ inputs: [],
3218
+ outputs: [{ name: "", type: "address", internalType: "contract IL1AssetTracker" }],
3219
+ stateMutability: "view"
3220
+ },
3221
+ {
3222
+ type: "function",
3223
+ name: "originChainId",
3224
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3225
+ outputs: [{ name: "originChainId", type: "uint256", internalType: "uint256" }],
3226
+ stateMutability: "view"
3227
+ },
3228
+ {
3229
+ type: "function",
3230
+ name: "owner",
3231
+ inputs: [],
3232
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3233
+ stateMutability: "view"
3234
+ },
3235
+ {
3236
+ type: "function",
3237
+ name: "pause",
3238
+ inputs: [],
3239
+ outputs: [],
3240
+ stateMutability: "nonpayable"
3241
+ },
3242
+ {
3243
+ type: "function",
3244
+ name: "paused",
3245
+ inputs: [],
3246
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
3247
+ stateMutability: "view"
3248
+ },
3249
+ {
3250
+ type: "function",
3251
+ name: "pendingOwner",
3252
+ inputs: [],
3253
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3254
+ stateMutability: "view"
3255
+ },
3256
+ {
3257
+ type: "function",
3258
+ name: "registerEthToken",
3259
+ inputs: [],
3260
+ outputs: [],
3261
+ stateMutability: "nonpayable"
3262
+ },
3263
+ {
3264
+ type: "function",
3265
+ name: "registerToken",
3266
+ inputs: [{ name: "_nativeToken", type: "address", internalType: "address" }],
3267
+ outputs: [],
3268
+ stateMutability: "nonpayable"
3269
+ },
3270
+ {
3271
+ type: "function",
3272
+ name: "renounceOwnership",
3273
+ inputs: [],
3274
+ outputs: [],
3275
+ stateMutability: "nonpayable"
3276
+ },
3277
+ {
3278
+ type: "function",
3279
+ name: "setAssetTracker",
3280
+ inputs: [{ name: "_l1AssetTracker", type: "address", internalType: "address" }],
3281
+ outputs: [],
3282
+ stateMutability: "nonpayable"
3283
+ },
3284
+ {
3285
+ type: "function",
3286
+ name: "tokenAddress",
3287
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3288
+ outputs: [{ name: "tokenAddress", type: "address", internalType: "address" }],
3289
+ stateMutability: "view"
3290
+ },
3291
+ {
3292
+ type: "function",
3293
+ name: "tokenDataOriginChainId",
3294
+ inputs: [{ name: "_erc20Data", type: "bytes", internalType: "bytes" }],
3295
+ outputs: [{ name: "tokenOriginChainId", type: "uint256", internalType: "uint256" }],
3296
+ stateMutability: "view"
3297
+ },
3298
+ {
3299
+ type: "function",
3300
+ name: "transferOwnership",
3301
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
3302
+ outputs: [],
3303
+ stateMutability: "nonpayable"
3304
+ },
3305
+ {
3306
+ type: "function",
3307
+ name: "tryRegisterTokenFromBurnData",
3308
+ inputs: [
3309
+ { name: "_burnData", type: "bytes", internalType: "bytes" },
3310
+ { name: "_expectedAssetId", type: "bytes32", internalType: "bytes32" }
3311
+ ],
3312
+ outputs: [],
3313
+ stateMutability: "nonpayable"
3314
+ },
3315
+ {
3316
+ type: "function",
3317
+ name: "unpause",
3318
+ inputs: [],
3319
+ outputs: [],
3320
+ stateMutability: "nonpayable"
3321
+ },
3322
+ {
3323
+ type: "event",
3324
+ name: "BridgeBurn",
3325
+ inputs: [
3326
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
3327
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
3328
+ { name: "sender", type: "address", indexed: true, internalType: "address" },
3329
+ { name: "receiver", type: "address", indexed: false, internalType: "address" },
3330
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3331
+ ],
3332
+ anonymous: false
3333
+ },
3334
+ {
3335
+ type: "event",
3336
+ name: "BridgeMint",
3337
+ inputs: [
3338
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
3339
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
3340
+ { name: "receiver", type: "address", indexed: false, internalType: "address" },
3341
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3342
+ ],
3343
+ anonymous: false
3344
+ },
3345
+ {
3346
+ type: "event",
3347
+ name: "BridgedTokenBeaconUpdated",
3348
+ inputs: [
3349
+ {
3350
+ name: "bridgedTokenBeacon",
3351
+ type: "address",
3352
+ indexed: false,
3353
+ internalType: "address"
3354
+ },
3355
+ {
3356
+ name: "bridgedTokenProxyBytecodeHash",
3357
+ type: "bytes32",
3358
+ indexed: false,
3359
+ internalType: "bytes32"
3360
+ }
3361
+ ],
3362
+ anonymous: false
3363
+ },
3364
+ {
3365
+ type: "event",
3366
+ name: "Initialized",
3367
+ inputs: [{ name: "version", type: "uint8", indexed: false, internalType: "uint8" }],
3368
+ anonymous: false
3369
+ },
3370
+ {
3371
+ type: "event",
3372
+ name: "OwnershipTransferStarted",
3373
+ inputs: [
3374
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
3375
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
3376
+ ],
3377
+ anonymous: false
3378
+ },
3379
+ {
3380
+ type: "event",
3381
+ name: "OwnershipTransferred",
3382
+ inputs: [
3383
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
3384
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
3385
+ ],
3386
+ anonymous: false
3387
+ },
3388
+ {
3389
+ type: "event",
3390
+ name: "Paused",
3391
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
3392
+ anonymous: false
3393
+ },
3394
+ {
3395
+ type: "event",
3396
+ name: "TokenBeaconUpdated",
3397
+ inputs: [{ name: "l2TokenBeacon", type: "address", indexed: true, internalType: "address" }],
3398
+ anonymous: false
3399
+ },
3400
+ {
3401
+ type: "event",
3402
+ name: "Unpaused",
3403
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
3404
+ anonymous: false
3405
+ },
3406
+ {
3407
+ type: "error",
3408
+ name: "AddressMismatch",
3409
+ inputs: [
3410
+ { name: "expected", type: "address", internalType: "address" },
3411
+ { name: "supplied", type: "address", internalType: "address" }
3412
+ ]
3413
+ },
3414
+ { type: "error", name: "AmountMustBeGreaterThanZero", inputs: [] },
3415
+ { type: "error", name: "AssetIdAlreadyRegistered", inputs: [] },
3416
+ {
3417
+ type: "error",
3418
+ name: "AssetIdMismatch",
3419
+ inputs: [
3420
+ { name: "expected", type: "bytes32", internalType: "bytes32" },
3421
+ { name: "supplied", type: "bytes32", internalType: "bytes32" }
3422
+ ]
3423
+ },
3424
+ { type: "error", name: "BurningNativeWETHNotSupported", inputs: [] },
3425
+ { type: "error", name: "ClaimFailedDepositFailed", inputs: [] },
3426
+ { type: "error", name: "DeployingBridgedTokenForNativeToken", inputs: [] },
3427
+ { type: "error", name: "EmptyDeposit", inputs: [] },
3428
+ { type: "error", name: "EmptyToken", inputs: [] },
3429
+ { type: "error", name: "InvalidNTVBurnData", inputs: [] },
3430
+ { type: "error", name: "NoFundsTransferred", inputs: [] },
3431
+ { type: "error", name: "NonEmptyMsgValue", inputs: [] },
3432
+ { type: "error", name: "OriginChainIdNotFound", inputs: [] },
3433
+ { type: "error", name: "TokenNotLegacy", inputs: [] },
3434
+ {
3435
+ type: "error",
3436
+ name: "TokenNotSupported",
3437
+ inputs: [{ name: "token", type: "address", internalType: "address" }]
3438
+ },
3439
+ { type: "error", name: "TokensWithFeesNotSupported", inputs: [] },
3440
+ {
3441
+ type: "error",
3442
+ name: "Unauthorized",
3443
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
3444
+ },
3445
+ { type: "error", name: "UnsupportedEncodingVersion", inputs: [] },
3446
+ {
3447
+ type: "error",
3448
+ name: "ValueMismatch",
3449
+ inputs: [
3450
+ { name: "expected", type: "uint256", internalType: "uint256" },
3451
+ { name: "actual", type: "uint256", internalType: "uint256" }
3452
+ ]
3453
+ },
3454
+ { type: "error", name: "WithdrawFailed", inputs: [] },
3455
+ { type: "error", name: "WrongCounterpart", inputs: [] },
3456
+ { type: "error", name: "ZeroAddress", inputs: [] }
3457
+ ];
3458
+ var L1NativeTokenVault_default = L1NativeTokenVaultABI;
3459
+
3460
+ // src/core/internal/abis/L2NativeTokenVault.ts
3461
+ var L2NativeTokenVaultABI = [
3462
+ {
3463
+ type: "constructor",
3464
+ inputs: [
3465
+ { name: "_l1ChainId", type: "uint256", internalType: "uint256" },
3466
+ { name: "_aliasedOwner", type: "address", internalType: "address" },
3467
+ { name: "_l2TokenProxyBytecodeHash", type: "bytes32", internalType: "bytes32" },
3468
+ { name: "_legacySharedBridge", type: "address", internalType: "address" },
3469
+ { name: "_bridgedTokenBeacon", type: "address", internalType: "address" },
3470
+ { name: "_contractsDeployedAlready", type: "bool", internalType: "bool" },
3471
+ { name: "_wethToken", type: "address", internalType: "address" },
3472
+ { name: "_baseTokenAssetId", type: "bytes32", internalType: "bytes32" }
3473
+ ],
3474
+ stateMutability: "nonpayable"
3475
+ },
3476
+ {
3477
+ type: "function",
3478
+ name: "ASSET_ROUTER",
3479
+ inputs: [],
3480
+ outputs: [{ name: "", type: "address", internalType: "contract IAssetRouterBase" }],
3481
+ stateMutability: "view"
3482
+ },
3483
+ {
3484
+ type: "function",
3485
+ name: "BASE_TOKEN_ASSET_ID",
3486
+ inputs: [],
3487
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3488
+ stateMutability: "view"
3489
+ },
3490
+ {
3491
+ type: "function",
3492
+ name: "L1_CHAIN_ID",
3493
+ inputs: [],
3494
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3495
+ stateMutability: "view"
3496
+ },
3497
+ {
3498
+ type: "function",
3499
+ name: "L2_LEGACY_SHARED_BRIDGE",
3500
+ inputs: [],
3501
+ outputs: [{ name: "", type: "address", internalType: "contract IL2SharedBridgeLegacy" }],
3502
+ stateMutability: "view"
3503
+ },
3504
+ {
3505
+ type: "function",
3506
+ name: "L2_TOKEN_PROXY_BYTECODE_HASH",
3507
+ inputs: [],
3508
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3509
+ stateMutability: "view"
3510
+ },
3511
+ {
3512
+ type: "function",
3513
+ name: "WETH_TOKEN",
3514
+ inputs: [],
3515
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3516
+ stateMutability: "view"
3517
+ },
3518
+ {
3519
+ type: "function",
3520
+ name: "acceptOwnership",
3521
+ inputs: [],
3522
+ outputs: [],
3523
+ stateMutability: "nonpayable"
3524
+ },
3525
+ {
3526
+ type: "function",
3527
+ name: "addLegacyTokenToBridgedTokensList",
3528
+ inputs: [{ name: "_token", type: "address", internalType: "address" }],
3529
+ outputs: [],
3530
+ stateMutability: "nonpayable"
3531
+ },
3532
+ {
3533
+ type: "function",
3534
+ name: "assetId",
3535
+ inputs: [{ name: "tokenAddress", type: "address", internalType: "address" }],
3536
+ outputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3537
+ stateMutability: "view"
3538
+ },
3539
+ {
3540
+ type: "function",
3541
+ name: "bridgeBurn",
3542
+ inputs: [
3543
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3544
+ { name: "_l2MsgValue", type: "uint256", internalType: "uint256" },
3545
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
3546
+ { name: "_originalCaller", type: "address", internalType: "address" },
3547
+ { name: "_data", type: "bytes", internalType: "bytes" }
3548
+ ],
3549
+ outputs: [{ name: "_bridgeMintData", type: "bytes", internalType: "bytes" }],
3550
+ stateMutability: "payable"
3551
+ },
3552
+ {
3553
+ type: "function",
3554
+ name: "bridgeMint",
3555
+ inputs: [
3556
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
3557
+ { name: "_assetId", type: "bytes32", internalType: "bytes32" },
3558
+ { name: "_data", type: "bytes", internalType: "bytes" }
3559
+ ],
3560
+ outputs: [],
3561
+ stateMutability: "payable"
3562
+ },
3563
+ {
3564
+ type: "function",
3565
+ name: "bridgedTokenBeacon",
3566
+ inputs: [],
3567
+ outputs: [{ name: "", type: "address", internalType: "contract IBeacon" }],
3568
+ stateMutability: "view"
3569
+ },
3570
+ {
3571
+ type: "function",
3572
+ name: "bridgedTokens",
3573
+ inputs: [{ name: "count", type: "uint256", internalType: "uint256" }],
3574
+ outputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3575
+ stateMutability: "view"
3576
+ },
3577
+ {
3578
+ type: "function",
3579
+ name: "bridgedTokensCount",
3580
+ inputs: [],
3581
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3582
+ stateMutability: "view"
3583
+ },
3584
+ {
3585
+ type: "function",
3586
+ name: "calculateCreate2TokenAddress",
3587
+ inputs: [
3588
+ { name: "_tokenOriginChainId", type: "uint256", internalType: "uint256" },
3589
+ { name: "_nonNativeToken", type: "address", internalType: "address" }
3590
+ ],
3591
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3592
+ stateMutability: "view"
3593
+ },
3594
+ {
3595
+ type: "function",
3596
+ name: "ensureTokenIsRegistered",
3597
+ inputs: [{ name: "_nativeToken", type: "address", internalType: "address" }],
3598
+ outputs: [{ name: "tokenAssetId", type: "bytes32", internalType: "bytes32" }],
3599
+ stateMutability: "nonpayable"
3600
+ },
3601
+ {
3602
+ type: "function",
3603
+ name: "getERC20Getters",
3604
+ inputs: [
3605
+ { name: "_token", type: "address", internalType: "address" },
3606
+ { name: "_originChainId", type: "uint256", internalType: "uint256" }
3607
+ ],
3608
+ outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
3609
+ stateMutability: "view"
3610
+ },
3611
+ {
3612
+ type: "function",
3613
+ name: "l2TokenAddress",
3614
+ inputs: [{ name: "_l1Token", type: "address", internalType: "address" }],
3615
+ outputs: [{ name: "expectedToken", type: "address", internalType: "address" }],
3616
+ stateMutability: "view"
3617
+ },
3618
+ {
3619
+ type: "function",
3620
+ name: "originChainId",
3621
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3622
+ outputs: [{ name: "originChainId", type: "uint256", internalType: "uint256" }],
3623
+ stateMutability: "view"
3624
+ },
3625
+ {
3626
+ type: "function",
3627
+ name: "owner",
3628
+ inputs: [],
3629
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3630
+ stateMutability: "view"
3631
+ },
3632
+ {
3633
+ type: "function",
3634
+ name: "pause",
3635
+ inputs: [],
3636
+ outputs: [],
3637
+ stateMutability: "nonpayable"
3638
+ },
3639
+ {
3640
+ type: "function",
3641
+ name: "paused",
3642
+ inputs: [],
3643
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
3644
+ stateMutability: "view"
3645
+ },
3646
+ {
3647
+ type: "function",
3648
+ name: "pendingOwner",
3649
+ inputs: [],
3650
+ outputs: [{ name: "", type: "address", internalType: "address" }],
3651
+ stateMutability: "view"
3652
+ },
3653
+ {
3654
+ type: "function",
3655
+ name: "registerToken",
3656
+ inputs: [{ name: "_nativeToken", type: "address", internalType: "address" }],
3657
+ outputs: [],
3658
+ stateMutability: "nonpayable"
3659
+ },
3660
+ {
3661
+ type: "function",
3662
+ name: "renounceOwnership",
3663
+ inputs: [],
3664
+ outputs: [],
3665
+ stateMutability: "nonpayable"
3666
+ },
3667
+ {
3668
+ type: "function",
3669
+ name: "setLegacyTokenAssetId",
3670
+ inputs: [{ name: "_l2TokenAddress", type: "address", internalType: "address" }],
3671
+ outputs: [],
3672
+ stateMutability: "nonpayable"
3673
+ },
3674
+ {
3675
+ type: "function",
3676
+ name: "tokenAddress",
3677
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }],
3678
+ outputs: [{ name: "tokenAddress", type: "address", internalType: "address" }],
3679
+ stateMutability: "view"
3680
+ },
3681
+ {
3682
+ type: "function",
3683
+ name: "tokenDataOriginChainId",
3684
+ inputs: [{ name: "_erc20Data", type: "bytes", internalType: "bytes" }],
3685
+ outputs: [{ name: "tokenOriginChainId", type: "uint256", internalType: "uint256" }],
3686
+ stateMutability: "view"
3687
+ },
3688
+ {
3689
+ type: "function",
3690
+ name: "transferOwnership",
3691
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
3692
+ outputs: [],
3693
+ stateMutability: "nonpayable"
3694
+ },
3695
+ {
3696
+ type: "function",
3697
+ name: "tryRegisterTokenFromBurnData",
3698
+ inputs: [
3699
+ { name: "_burnData", type: "bytes", internalType: "bytes" },
3700
+ { name: "_expectedAssetId", type: "bytes32", internalType: "bytes32" }
3701
+ ],
3702
+ outputs: [],
3703
+ stateMutability: "nonpayable"
3704
+ },
3705
+ {
3706
+ type: "function",
3707
+ name: "unpause",
3708
+ inputs: [],
3709
+ outputs: [],
3710
+ stateMutability: "nonpayable"
3711
+ },
3712
+ {
3713
+ type: "event",
3714
+ name: "BridgeBurn",
3715
+ inputs: [
3716
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
3717
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
3718
+ { name: "sender", type: "address", indexed: true, internalType: "address" },
3719
+ { name: "receiver", type: "address", indexed: false, internalType: "address" },
3720
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3721
+ ],
3722
+ anonymous: false
3723
+ },
3724
+ {
3725
+ type: "event",
3726
+ name: "BridgeMint",
3727
+ inputs: [
3728
+ { name: "chainId", type: "uint256", indexed: true, internalType: "uint256" },
3729
+ { name: "assetId", type: "bytes32", indexed: true, internalType: "bytes32" },
3730
+ { name: "receiver", type: "address", indexed: false, internalType: "address" },
3731
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3732
+ ],
3733
+ anonymous: false
3734
+ },
3735
+ {
3736
+ type: "event",
3737
+ name: "BridgedTokenBeaconUpdated",
3738
+ inputs: [
3739
+ {
3740
+ name: "bridgedTokenBeacon",
3741
+ type: "address",
3742
+ indexed: false,
3743
+ internalType: "address"
3744
+ },
3745
+ {
3746
+ name: "bridgedTokenProxyBytecodeHash",
3747
+ type: "bytes32",
3748
+ indexed: false,
3749
+ internalType: "bytes32"
3750
+ }
3751
+ ],
3752
+ anonymous: false
3753
+ },
3754
+ {
3755
+ type: "event",
3756
+ name: "FinalizeDeposit",
3757
+ inputs: [
3758
+ { name: "l1Sender", type: "address", indexed: true, internalType: "address" },
3759
+ { name: "l2Receiver", type: "address", indexed: true, internalType: "address" },
3760
+ { name: "l2Token", type: "address", indexed: true, internalType: "address" },
3761
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3762
+ ],
3763
+ anonymous: false
3764
+ },
3765
+ {
3766
+ type: "event",
3767
+ name: "Initialized",
3768
+ inputs: [{ name: "version", type: "uint8", indexed: false, internalType: "uint8" }],
3769
+ anonymous: false
3770
+ },
3771
+ {
3772
+ type: "event",
3773
+ name: "L2TokenBeaconUpdated",
3774
+ inputs: [
3775
+ { name: "l2TokenBeacon", type: "address", indexed: true, internalType: "address" },
3776
+ {
3777
+ name: "l2TokenProxyBytecodeHash",
3778
+ type: "bytes32",
3779
+ indexed: true,
3780
+ internalType: "bytes32"
3781
+ }
3782
+ ],
3783
+ anonymous: false
3784
+ },
3785
+ {
3786
+ type: "event",
3787
+ name: "OwnershipTransferStarted",
3788
+ inputs: [
3789
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
3790
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
3791
+ ],
3792
+ anonymous: false
3793
+ },
3794
+ {
3795
+ type: "event",
3796
+ name: "OwnershipTransferred",
3797
+ inputs: [
3798
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
3799
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" }
3800
+ ],
3801
+ anonymous: false
3802
+ },
3803
+ {
3804
+ type: "event",
3805
+ name: "Paused",
3806
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
3807
+ anonymous: false
3808
+ },
3809
+ {
3810
+ type: "event",
3811
+ name: "Unpaused",
3812
+ inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }],
3813
+ anonymous: false
3814
+ },
3815
+ {
3816
+ type: "event",
3817
+ name: "WithdrawalInitiated",
3818
+ inputs: [
3819
+ { name: "l2Sender", type: "address", indexed: true, internalType: "address" },
3820
+ { name: "l1Receiver", type: "address", indexed: true, internalType: "address" },
3821
+ { name: "l2Token", type: "address", indexed: true, internalType: "address" },
3822
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3823
+ ],
3824
+ anonymous: false
3825
+ },
3826
+ {
3827
+ type: "error",
3828
+ name: "AddressMismatch",
3829
+ inputs: [
3830
+ { name: "expected", type: "address", internalType: "address" },
3831
+ { name: "supplied", type: "address", internalType: "address" }
3832
+ ]
3833
+ },
3834
+ { type: "error", name: "AmountMustBeGreaterThanZero", inputs: [] },
3835
+ { type: "error", name: "AssetIdAlreadyRegistered", inputs: [] },
3836
+ {
3837
+ type: "error",
3838
+ name: "AssetIdMismatch",
3839
+ inputs: [
3840
+ { name: "expected", type: "bytes32", internalType: "bytes32" },
3841
+ { name: "supplied", type: "bytes32", internalType: "bytes32" }
3842
+ ]
3843
+ },
3844
+ {
3845
+ type: "error",
3846
+ name: "AssetIdNotSupported",
3847
+ inputs: [{ name: "assetId", type: "bytes32", internalType: "bytes32" }]
3848
+ },
3849
+ { type: "error", name: "BurningNativeWETHNotSupported", inputs: [] },
3850
+ { type: "error", name: "DeployFailed", inputs: [] },
3851
+ { type: "error", name: "DeployingBridgedTokenForNativeToken", inputs: [] },
3852
+ { type: "error", name: "EmptyAddress", inputs: [] },
3853
+ { type: "error", name: "EmptyBytes32", inputs: [] },
3854
+ { type: "error", name: "EmptyDeposit", inputs: [] },
3855
+ { type: "error", name: "EmptyToken", inputs: [] },
3856
+ { type: "error", name: "InvalidNTVBurnData", inputs: [] },
3857
+ { type: "error", name: "NoLegacySharedBridge", inputs: [] },
3858
+ { type: "error", name: "NonEmptyMsgValue", inputs: [] },
3859
+ { type: "error", name: "TokenIsLegacy", inputs: [] },
3860
+ { type: "error", name: "TokenNotLegacy", inputs: [] },
3861
+ {
3862
+ type: "error",
3863
+ name: "TokenNotSupported",
3864
+ inputs: [{ name: "token", type: "address", internalType: "address" }]
3865
+ },
3866
+ { type: "error", name: "TokensWithFeesNotSupported", inputs: [] },
3867
+ { type: "error", name: "U32CastOverflow", inputs: [] },
3868
+ {
3869
+ type: "error",
3870
+ name: "Unauthorized",
3871
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
3872
+ },
3873
+ { type: "error", name: "UnsupportedEncodingVersion", inputs: [] },
3874
+ {
3875
+ type: "error",
3876
+ name: "ValueMismatch",
3877
+ inputs: [
3878
+ { name: "expected", type: "uint256", internalType: "uint256" },
3879
+ { name: "actual", type: "uint256", internalType: "uint256" }
3880
+ ]
3881
+ },
3882
+ { type: "error", name: "ZeroAddress", inputs: [] }
3883
+ ];
3884
+ var L2NativeTokenVault_default = L2NativeTokenVaultABI;
3885
+
3886
+ // src/core/internal/abis/IBaseToken.ts
3887
+ var IBaseTokenABI = [
3888
+ {
3889
+ type: "function",
3890
+ name: "balanceOf",
3891
+ inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3892
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3893
+ stateMutability: "view"
3894
+ },
3895
+ {
3896
+ type: "function",
3897
+ name: "mint",
3898
+ inputs: [
3899
+ { name: "_account", type: "address", internalType: "address" },
3900
+ { name: "_amount", type: "uint256", internalType: "uint256" }
3901
+ ],
3902
+ outputs: [],
3903
+ stateMutability: "nonpayable"
3904
+ },
3905
+ {
3906
+ type: "function",
3907
+ name: "totalSupply",
3908
+ inputs: [],
3909
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3910
+ stateMutability: "view"
3911
+ },
3912
+ {
3913
+ type: "function",
3914
+ name: "transferFromTo",
3915
+ inputs: [
3916
+ { name: "_from", type: "address", internalType: "address" },
3917
+ { name: "_to", type: "address", internalType: "address" },
3918
+ { name: "_amount", type: "uint256", internalType: "uint256" }
3919
+ ],
3920
+ outputs: [],
3921
+ stateMutability: "nonpayable"
3922
+ },
3923
+ {
3924
+ type: "function",
3925
+ name: "withdraw",
3926
+ inputs: [{ name: "_l1Receiver", type: "address", internalType: "address" }],
3927
+ outputs: [],
3928
+ stateMutability: "payable"
3929
+ },
3930
+ {
3931
+ type: "function",
3932
+ name: "withdrawWithMessage",
3933
+ inputs: [
3934
+ { name: "_l1Receiver", type: "address", internalType: "address" },
3935
+ { name: "_additionalData", type: "bytes", internalType: "bytes" }
3936
+ ],
3937
+ outputs: [],
3938
+ stateMutability: "payable"
3939
+ },
3940
+ {
3941
+ type: "event",
3942
+ name: "Mint",
3943
+ inputs: [
3944
+ { name: "account", type: "address", indexed: true, internalType: "address" },
3945
+ { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
3946
+ ],
3947
+ anonymous: false
3948
+ },
3949
+ {
3950
+ type: "event",
3951
+ name: "Transfer",
3952
+ inputs: [
3953
+ { name: "from", type: "address", indexed: true, internalType: "address" },
3954
+ { name: "to", type: "address", indexed: true, internalType: "address" },
3955
+ { name: "value", type: "uint256", indexed: false, internalType: "uint256" }
3956
+ ],
3957
+ anonymous: false
3958
+ },
3959
+ {
3960
+ type: "event",
3961
+ name: "Withdrawal",
3962
+ inputs: [
3963
+ { name: "_l2Sender", type: "address", indexed: true, internalType: "address" },
3964
+ { name: "_l1Receiver", type: "address", indexed: true, internalType: "address" },
3965
+ { name: "_amount", type: "uint256", indexed: false, internalType: "uint256" }
3966
+ ],
3967
+ anonymous: false
3968
+ },
3969
+ {
3970
+ type: "event",
3971
+ name: "WithdrawalWithMessage",
3972
+ inputs: [
3973
+ { name: "_l2Sender", type: "address", indexed: true, internalType: "address" },
3974
+ { name: "_l1Receiver", type: "address", indexed: true, internalType: "address" },
3975
+ { name: "_amount", type: "uint256", indexed: false, internalType: "uint256" },
3976
+ { name: "_additionalData", type: "bytes", indexed: false, internalType: "bytes" }
3977
+ ],
3978
+ anonymous: false
3979
+ }
3980
+ ];
3981
+ var IBaseToken_default = IBaseTokenABI;
3982
+
3983
+ // src/core/internal/abis/IERC20.ts
3984
+ var IERC20ABI = [
3985
+ {
3986
+ type: "constructor",
3987
+ inputs: [
3988
+ { name: "_name", type: "string", internalType: "string" },
3989
+ { name: "_symbol", type: "string", internalType: "string" },
3990
+ { name: "_decimals", type: "uint8", internalType: "uint8" }
3991
+ ],
3992
+ stateMutability: "nonpayable"
3993
+ },
3994
+ {
3995
+ type: "function",
3996
+ name: "allowance",
3997
+ inputs: [
3998
+ { name: "", type: "address", internalType: "address" },
3999
+ { name: "", type: "address", internalType: "address" }
4000
+ ],
4001
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4002
+ stateMutability: "view"
4003
+ },
4004
+ {
4005
+ type: "function",
4006
+ name: "approve",
4007
+ inputs: [
4008
+ { name: "spender", type: "address", internalType: "address" },
4009
+ { name: "amount", type: "uint256", internalType: "uint256" }
4010
+ ],
4011
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4012
+ stateMutability: "nonpayable"
4013
+ },
4014
+ {
4015
+ type: "function",
4016
+ name: "balanceOf",
4017
+ inputs: [{ name: "", type: "address", internalType: "address" }],
4018
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4019
+ stateMutability: "view"
4020
+ },
4021
+ {
4022
+ type: "function",
4023
+ name: "decimals",
4024
+ inputs: [],
4025
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
4026
+ stateMutability: "view"
4027
+ },
4028
+ {
4029
+ type: "function",
4030
+ name: "mint",
4031
+ inputs: [
4032
+ { name: "to", type: "address", internalType: "address" },
4033
+ { name: "amount", type: "uint256", internalType: "uint256" }
4034
+ ],
4035
+ outputs: [],
4036
+ stateMutability: "nonpayable"
4037
+ },
4038
+ {
4039
+ type: "function",
4040
+ name: "name",
4041
+ inputs: [],
4042
+ outputs: [{ name: "", type: "string", internalType: "string" }],
4043
+ stateMutability: "view"
4044
+ },
4045
+ {
4046
+ type: "function",
4047
+ name: "owner",
4048
+ inputs: [],
4049
+ outputs: [{ name: "", type: "address", internalType: "address" }],
4050
+ stateMutability: "view"
4051
+ },
4052
+ {
4053
+ type: "function",
4054
+ name: "symbol",
4055
+ inputs: [],
4056
+ outputs: [{ name: "", type: "string", internalType: "string" }],
4057
+ stateMutability: "view"
4058
+ },
4059
+ {
4060
+ type: "function",
4061
+ name: "totalSupply",
4062
+ inputs: [],
4063
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4064
+ stateMutability: "view"
4065
+ },
4066
+ {
4067
+ type: "function",
4068
+ name: "transfer",
4069
+ inputs: [
4070
+ { name: "to", type: "address", internalType: "address" },
4071
+ { name: "amount", type: "uint256", internalType: "uint256" }
4072
+ ],
4073
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4074
+ stateMutability: "nonpayable"
4075
+ },
4076
+ {
4077
+ type: "function",
4078
+ name: "transferFrom",
4079
+ inputs: [
4080
+ { name: "from", type: "address", internalType: "address" },
4081
+ { name: "to", type: "address", internalType: "address" },
4082
+ { name: "amount", type: "uint256", internalType: "uint256" }
4083
+ ],
4084
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4085
+ stateMutability: "nonpayable"
4086
+ },
4087
+ {
4088
+ type: "event",
4089
+ name: "Approval",
4090
+ inputs: [
4091
+ { name: "owner", type: "address", indexed: true, internalType: "address" },
4092
+ { name: "spender", type: "address", indexed: true, internalType: "address" },
4093
+ { name: "value", type: "uint256", indexed: false, internalType: "uint256" }
4094
+ ],
4095
+ anonymous: false
4096
+ },
4097
+ {
4098
+ type: "event",
4099
+ name: "Transfer",
4100
+ inputs: [
4101
+ { name: "from", type: "address", indexed: true, internalType: "address" },
4102
+ { name: "to", type: "address", indexed: true, internalType: "address" },
4103
+ { name: "value", type: "uint256", indexed: false, internalType: "uint256" }
4104
+ ],
4105
+ anonymous: false
4106
+ },
4107
+ { type: "error", name: "InsufficientAllowance", inputs: [] },
4108
+ { type: "error", name: "InsufficientBalance", inputs: [] },
4109
+ { type: "error", name: "NotOwner", inputs: [] }
4110
+ ];
4111
+ var IERC20_default = IERC20ABI;
4112
+
4113
+ // src/core/internal/abis/Mailbox.ts
4114
+ var MailboxABI = [
4115
+ {
4116
+ type: "constructor",
4117
+ inputs: [
4118
+ { name: "_eraChainId", type: "uint256", internalType: "uint256" },
4119
+ { name: "_l1ChainId", type: "uint256", internalType: "uint256" }
4120
+ ],
4121
+ stateMutability: "nonpayable"
4122
+ },
4123
+ {
4124
+ type: "function",
4125
+ name: "bridgehubRequestL2Transaction",
4126
+ inputs: [
4127
+ {
4128
+ name: "_request",
4129
+ type: "tuple",
4130
+ internalType: "struct BridgehubL2TransactionRequest",
4131
+ components: [
4132
+ { name: "sender", type: "address", internalType: "address" },
4133
+ { name: "contractL2", type: "address", internalType: "address" },
4134
+ { name: "mintValue", type: "uint256", internalType: "uint256" },
4135
+ { name: "l2Value", type: "uint256", internalType: "uint256" },
4136
+ { name: "l2Calldata", type: "bytes", internalType: "bytes" },
4137
+ { name: "l2GasLimit", type: "uint256", internalType: "uint256" },
4138
+ { name: "l2GasPerPubdataByteLimit", type: "uint256", internalType: "uint256" },
4139
+ { name: "factoryDeps", type: "bytes[]", internalType: "bytes[]" },
4140
+ { name: "refundRecipient", type: "address", internalType: "address" }
4141
+ ]
4142
+ }
4143
+ ],
4144
+ outputs: [{ name: "canonicalTxHash", type: "bytes32", internalType: "bytes32" }],
4145
+ stateMutability: "nonpayable"
4146
+ },
4147
+ {
4148
+ type: "function",
4149
+ name: "bridgehubRequestL2TransactionOnGateway",
4150
+ inputs: [
4151
+ { name: "_canonicalTxHash", type: "bytes32", internalType: "bytes32" },
4152
+ { name: "_expirationTimestamp", type: "uint64", internalType: "uint64" }
4153
+ ],
4154
+ outputs: [],
4155
+ stateMutability: "nonpayable"
4156
+ },
4157
+ {
4158
+ type: "function",
4159
+ name: "finalizeEthWithdrawal",
4160
+ inputs: [
4161
+ { name: "_l2BatchNumber", type: "uint256", internalType: "uint256" },
4162
+ { name: "_l2MessageIndex", type: "uint256", internalType: "uint256" },
4163
+ { name: "_l2TxNumberInBatch", type: "uint16", internalType: "uint16" },
4164
+ { name: "_message", type: "bytes", internalType: "bytes" },
4165
+ { name: "_merkleProof", type: "bytes32[]", internalType: "bytes32[]" }
4166
+ ],
4167
+ outputs: [],
4168
+ stateMutability: "nonpayable"
4169
+ },
4170
+ {
4171
+ type: "function",
4172
+ name: "getName",
4173
+ inputs: [],
4174
+ outputs: [{ name: "", type: "string", internalType: "string" }],
4175
+ stateMutability: "view"
4176
+ },
4177
+ {
4178
+ type: "function",
4179
+ name: "l2TransactionBaseCost",
4180
+ inputs: [
4181
+ { name: "_gasPrice", type: "uint256", internalType: "uint256" },
4182
+ { name: "_l2GasLimit", type: "uint256", internalType: "uint256" },
4183
+ { name: "_l2GasPerPubdataByteLimit", type: "uint256", internalType: "uint256" }
4184
+ ],
4185
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4186
+ stateMutability: "view"
4187
+ },
4188
+ {
4189
+ type: "function",
4190
+ name: "proveL1ToL2TransactionStatus",
4191
+ inputs: [
4192
+ { name: "_l2TxHash", type: "bytes32", internalType: "bytes32" },
4193
+ { name: "_l2BatchNumber", type: "uint256", internalType: "uint256" },
4194
+ { name: "_l2MessageIndex", type: "uint256", internalType: "uint256" },
4195
+ { name: "_l2TxNumberInBatch", type: "uint16", internalType: "uint16" },
4196
+ { name: "_merkleProof", type: "bytes32[]", internalType: "bytes32[]" },
4197
+ { name: "_status", type: "uint8", internalType: "enum TxStatus" }
4198
+ ],
4199
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4200
+ stateMutability: "view"
4201
+ },
4202
+ {
4203
+ type: "function",
4204
+ name: "proveL2LeafInclusion",
4205
+ inputs: [
4206
+ { name: "_batchNumber", type: "uint256", internalType: "uint256" },
4207
+ { name: "_leafProofMask", type: "uint256", internalType: "uint256" },
4208
+ { name: "_leaf", type: "bytes32", internalType: "bytes32" },
4209
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4210
+ ],
4211
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4212
+ stateMutability: "view"
4213
+ },
4214
+ {
4215
+ type: "function",
4216
+ name: "proveL2LeafInclusionShared",
4217
+ inputs: [
4218
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
4219
+ { name: "_blockOrBatchNumber", type: "uint256", internalType: "uint256" },
4220
+ { name: "_leafProofMask", type: "uint256", internalType: "uint256" },
4221
+ { name: "_leaf", type: "bytes32", internalType: "bytes32" },
4222
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4223
+ ],
4224
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4225
+ stateMutability: "view"
4226
+ },
4227
+ {
4228
+ type: "function",
4229
+ name: "proveL2LogInclusion",
4230
+ inputs: [
4231
+ { name: "_batchNumber", type: "uint256", internalType: "uint256" },
4232
+ { name: "_index", type: "uint256", internalType: "uint256" },
4233
+ {
4234
+ name: "_log",
4235
+ type: "tuple",
4236
+ internalType: "struct L2Log",
4237
+ components: [
4238
+ { name: "l2ShardId", type: "uint8", internalType: "uint8" },
4239
+ { name: "isService", type: "bool", internalType: "bool" },
4240
+ { name: "txNumberInBatch", type: "uint16", internalType: "uint16" },
4241
+ { name: "sender", type: "address", internalType: "address" },
4242
+ { name: "key", type: "bytes32", internalType: "bytes32" },
4243
+ { name: "value", type: "bytes32", internalType: "bytes32" }
4244
+ ]
4245
+ },
4246
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4247
+ ],
4248
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4249
+ stateMutability: "view"
4250
+ },
4251
+ {
4252
+ type: "function",
4253
+ name: "proveL2LogInclusionShared",
4254
+ inputs: [
4255
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
4256
+ { name: "_blockOrBatchNumber", type: "uint256", internalType: "uint256" },
4257
+ { name: "_index", type: "uint256", internalType: "uint256" },
4258
+ {
4259
+ name: "_log",
4260
+ type: "tuple",
4261
+ internalType: "struct L2Log",
4262
+ components: [
4263
+ { name: "l2ShardId", type: "uint8", internalType: "uint8" },
4264
+ { name: "isService", type: "bool", internalType: "bool" },
4265
+ { name: "txNumberInBatch", type: "uint16", internalType: "uint16" },
4266
+ { name: "sender", type: "address", internalType: "address" },
4267
+ { name: "key", type: "bytes32", internalType: "bytes32" },
4268
+ { name: "value", type: "bytes32", internalType: "bytes32" }
4269
+ ]
4270
+ },
4271
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4272
+ ],
4273
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4274
+ stateMutability: "view"
4275
+ },
4276
+ {
4277
+ type: "function",
4278
+ name: "proveL2MessageInclusion",
4279
+ inputs: [
4280
+ { name: "_batchNumber", type: "uint256", internalType: "uint256" },
4281
+ { name: "_index", type: "uint256", internalType: "uint256" },
4282
+ {
4283
+ name: "_message",
4284
+ type: "tuple",
4285
+ internalType: "struct L2Message",
4286
+ components: [
4287
+ { name: "txNumberInBatch", type: "uint16", internalType: "uint16" },
4288
+ { name: "sender", type: "address", internalType: "address" },
4289
+ { name: "data", type: "bytes", internalType: "bytes" }
4290
+ ]
4291
+ },
4292
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4293
+ ],
4294
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4295
+ stateMutability: "view"
4296
+ },
4297
+ {
4298
+ type: "function",
4299
+ name: "proveL2MessageInclusionShared",
4300
+ inputs: [
4301
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
4302
+ { name: "_blockOrBatchNumber", type: "uint256", internalType: "uint256" },
4303
+ { name: "_index", type: "uint256", internalType: "uint256" },
4304
+ {
4305
+ name: "_message",
4306
+ type: "tuple",
4307
+ internalType: "struct L2Message",
4308
+ components: [
4309
+ { name: "txNumberInBatch", type: "uint16", internalType: "uint16" },
4310
+ { name: "sender", type: "address", internalType: "address" },
4311
+ { name: "data", type: "bytes", internalType: "bytes" }
4312
+ ]
4313
+ },
4314
+ { name: "_proof", type: "bytes32[]", internalType: "bytes32[]" }
4315
+ ],
4316
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
4317
+ stateMutability: "view"
4318
+ },
4319
+ {
4320
+ type: "function",
4321
+ name: "requestL2ServiceTransaction",
4322
+ inputs: [
4323
+ { name: "_contractL2", type: "address", internalType: "address" },
4324
+ { name: "_l2Calldata", type: "bytes", internalType: "bytes" }
4325
+ ],
4326
+ outputs: [{ name: "canonicalTxHash", type: "bytes32", internalType: "bytes32" }],
4327
+ stateMutability: "nonpayable"
4328
+ },
4329
+ {
4330
+ type: "function",
4331
+ name: "requestL2Transaction",
4332
+ inputs: [
4333
+ { name: "_contractL2", type: "address", internalType: "address" },
4334
+ { name: "_l2Value", type: "uint256", internalType: "uint256" },
4335
+ { name: "_calldata", type: "bytes", internalType: "bytes" },
4336
+ { name: "_l2GasLimit", type: "uint256", internalType: "uint256" },
4337
+ { name: "_l2GasPerPubdataByteLimit", type: "uint256", internalType: "uint256" },
4338
+ { name: "_factoryDeps", type: "bytes[]", internalType: "bytes[]" },
4339
+ { name: "_refundRecipient", type: "address", internalType: "address" }
4340
+ ],
4341
+ outputs: [{ name: "canonicalTxHash", type: "bytes32", internalType: "bytes32" }],
4342
+ stateMutability: "payable"
4343
+ },
4344
+ {
4345
+ type: "function",
4346
+ name: "requestL2TransactionToGatewayMailbox",
4347
+ inputs: [
4348
+ { name: "_chainId", type: "uint256", internalType: "uint256" },
4349
+ { name: "_canonicalTxHash", type: "bytes32", internalType: "bytes32" },
4350
+ { name: "_expirationTimestamp", type: "uint64", internalType: "uint64" }
4351
+ ],
4352
+ outputs: [{ name: "canonicalTxHash", type: "bytes32", internalType: "bytes32" }],
4353
+ stateMutability: "nonpayable"
4354
+ },
4355
+ {
4356
+ type: "event",
4357
+ name: "NewPriorityRequest",
4358
+ inputs: [
4359
+ { name: "txId", type: "uint256", indexed: false, internalType: "uint256" },
4360
+ { name: "txHash", type: "bytes32", indexed: false, internalType: "bytes32" },
4361
+ {
4362
+ name: "expirationTimestamp",
4363
+ type: "uint64",
4364
+ indexed: false,
4365
+ internalType: "uint64"
4366
+ },
4367
+ {
4368
+ name: "transaction",
4369
+ type: "tuple",
4370
+ indexed: false,
4371
+ internalType: "struct L2CanonicalTransaction",
4372
+ components: [
4373
+ { name: "txType", type: "uint256", internalType: "uint256" },
4374
+ { name: "from", type: "uint256", internalType: "uint256" },
4375
+ { name: "to", type: "uint256", internalType: "uint256" },
4376
+ { name: "gasLimit", type: "uint256", internalType: "uint256" },
4377
+ { name: "gasPerPubdataByteLimit", type: "uint256", internalType: "uint256" },
4378
+ { name: "maxFeePerGas", type: "uint256", internalType: "uint256" },
4379
+ { name: "maxPriorityFeePerGas", type: "uint256", internalType: "uint256" },
4380
+ { name: "paymaster", type: "uint256", internalType: "uint256" },
4381
+ { name: "nonce", type: "uint256", internalType: "uint256" },
4382
+ { name: "value", type: "uint256", internalType: "uint256" },
4383
+ { name: "reserved", type: "uint256[4]", internalType: "uint256[4]" },
4384
+ { name: "data", type: "bytes", internalType: "bytes" },
4385
+ { name: "signature", type: "bytes", internalType: "bytes" },
4386
+ { name: "factoryDeps", type: "uint256[]", internalType: "uint256[]" },
4387
+ { name: "paymasterInput", type: "bytes", internalType: "bytes" },
4388
+ { name: "reservedDynamic", type: "bytes", internalType: "bytes" }
4389
+ ]
4390
+ },
4391
+ { name: "factoryDeps", type: "bytes[]", indexed: false, internalType: "bytes[]" }
4392
+ ],
4393
+ anonymous: false
4394
+ },
4395
+ {
4396
+ type: "event",
4397
+ name: "NewPriorityRequestId",
4398
+ inputs: [
4399
+ { name: "txId", type: "uint256", indexed: true, internalType: "uint256" },
4400
+ { name: "txHash", type: "bytes32", indexed: true, internalType: "bytes32" }
4401
+ ],
4402
+ anonymous: false
4403
+ },
4404
+ {
4405
+ type: "event",
4406
+ name: "NewRelayedPriorityTransaction",
4407
+ inputs: [
4408
+ { name: "txId", type: "uint256", indexed: false, internalType: "uint256" },
4409
+ { name: "txHash", type: "bytes32", indexed: false, internalType: "bytes32" },
4410
+ {
4411
+ name: "expirationTimestamp",
4412
+ type: "uint64",
4413
+ indexed: false,
4414
+ internalType: "uint64"
4415
+ }
4416
+ ],
4417
+ anonymous: false
4418
+ },
4419
+ { type: "error", name: "BaseTokenGasPriceDenominatorNotSet", inputs: [] },
4420
+ {
4421
+ type: "error",
4422
+ name: "BatchNotExecuted",
4423
+ inputs: [{ name: "batchNumber", type: "uint256", internalType: "uint256" }]
4424
+ },
4425
+ { type: "error", name: "GasPerPubdataMismatch", inputs: [] },
4426
+ { type: "error", name: "HashedLogIsDefault", inputs: [] },
4427
+ { type: "error", name: "InvalidChainId", inputs: [] },
4428
+ { type: "error", name: "InvalidProofLengthForFinalNode", inputs: [] },
4429
+ {
4430
+ type: "error",
4431
+ name: "LengthIsNotDivisibleBy32",
4432
+ inputs: [{ name: "length", type: "uint256", internalType: "uint256" }]
4433
+ },
4434
+ { type: "error", name: "LocalRootIsZero", inputs: [] },
4435
+ { type: "error", name: "LocalRootMustBeZero", inputs: [] },
4436
+ {
4437
+ type: "error",
4438
+ name: "MalformedBytecode",
4439
+ inputs: [{ name: "", type: "uint8", internalType: "enum BytecodeError" }]
4440
+ },
4441
+ { type: "error", name: "MerkleIndexOutOfBounds", inputs: [] },
4442
+ { type: "error", name: "MerklePathEmpty", inputs: [] },
4443
+ { type: "error", name: "MerklePathOutOfBounds", inputs: [] },
4444
+ {
4445
+ type: "error",
4446
+ name: "MsgValueTooLow",
4447
+ inputs: [
4448
+ { name: "required", type: "uint256", internalType: "uint256" },
4449
+ { name: "provided", type: "uint256", internalType: "uint256" }
4450
+ ]
4451
+ },
4452
+ { type: "error", name: "NotHyperchain", inputs: [] },
4453
+ { type: "error", name: "NotInitializedReentrancyGuard", inputs: [] },
4454
+ {
4455
+ type: "error",
4456
+ name: "NotL1",
4457
+ inputs: [{ name: "blockChainId", type: "uint256", internalType: "uint256" }]
4458
+ },
4459
+ { type: "error", name: "NotSettlementLayer", inputs: [] },
4460
+ { type: "error", name: "OnlyEraSupported", inputs: [] },
4461
+ {
4462
+ type: "error",
4463
+ name: "PubdataGreaterThanLimit",
4464
+ inputs: [
4465
+ { name: "limit", type: "uint256", internalType: "uint256" },
4466
+ { name: "length", type: "uint256", internalType: "uint256" }
4467
+ ]
4468
+ },
4469
+ { type: "error", name: "Reentrancy", inputs: [] },
4470
+ { type: "error", name: "TooManyFactoryDeps", inputs: [] },
4471
+ { type: "error", name: "TooMuchGas", inputs: [] },
4472
+ { type: "error", name: "TransactionNotAllowed", inputs: [] },
4473
+ { type: "error", name: "TxnBodyGasLimitNotEnoughGas", inputs: [] },
4474
+ {
4475
+ type: "error",
4476
+ name: "Unauthorized",
4477
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
4478
+ },
4479
+ {
4480
+ type: "error",
4481
+ name: "UnsupportedProofMetadataVersion",
4482
+ inputs: [{ name: "metadataVersion", type: "uint256", internalType: "uint256" }]
4483
+ },
4484
+ { type: "error", name: "ValidateTxnNotEnoughGas", inputs: [] },
4485
+ { type: "error", name: "ZeroGasPriceL1TxZKSyncOS", inputs: [] }
4486
+ ];
4487
+ var Mailbox_default = MailboxABI;
4488
+
4489
+ export { IBaseToken_default, IBridgehub_default, IERC20_default, IL1AssetRouter_default, IL1Nullifier_default, IL2AssetRouter_default, L1NativeTokenVault_default, L2NativeTokenVault_default, Mailbox_default };