@matterlabs/zksync-js 0.0.1 → 0.0.2

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