@gitmyabi/optimismportal 1.0.6 → 1.0.9

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.
@@ -1,71 +1,152 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OptimismPortal_json = exports.OptimismPortal_jsonAbi = void 0;
3
+ exports.OptimismPortal2_json = exports.OptimismPortal2_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * OptimismPortal_json ABI
6
+ * OptimismPortal2_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.OptimismPortal_jsonAbi = [
10
+ exports.OptimismPortal2_jsonAbi = [
11
11
  {
12
- "inputs": [],
12
+ "inputs": [
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_proofMaturityDelaySeconds",
16
+ "type": "uint256"
17
+ }
18
+ ],
13
19
  "stateMutability": "nonpayable",
14
20
  "type": "constructor"
15
21
  },
16
22
  {
17
23
  "inputs": [],
18
- "name": "BadTarget",
24
+ "name": "ContentLengthMismatch",
19
25
  "type": "error"
20
26
  },
21
27
  {
22
28
  "inputs": [],
23
- "name": "CallPaused",
29
+ "name": "EmptyItem",
24
30
  "type": "error"
25
31
  },
26
32
  {
27
33
  "inputs": [],
28
- "name": "ContentLengthMismatch",
34
+ "name": "InvalidDataRemainder",
29
35
  "type": "error"
30
36
  },
31
37
  {
32
38
  "inputs": [],
33
- "name": "EmptyItem",
39
+ "name": "InvalidHeader",
34
40
  "type": "error"
35
41
  },
36
42
  {
37
43
  "inputs": [],
38
- "name": "GasEstimation",
44
+ "name": "OptimismPortal_AlreadyFinalized",
39
45
  "type": "error"
40
46
  },
41
47
  {
42
48
  "inputs": [],
43
- "name": "InvalidDataRemainder",
49
+ "name": "OptimismPortal_BadTarget",
44
50
  "type": "error"
45
51
  },
46
52
  {
47
53
  "inputs": [],
48
- "name": "InvalidHeader",
54
+ "name": "OptimismPortal_CallPaused",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "OptimismPortal_CalldataTooLarge",
49
60
  "type": "error"
50
61
  },
51
62
  {
52
63
  "inputs": [],
53
- "name": "LargeCalldata",
64
+ "name": "OptimismPortal_GasEstimation",
54
65
  "type": "error"
55
66
  },
56
67
  {
57
68
  "inputs": [],
58
- "name": "NoValue",
69
+ "name": "OptimismPortal_GasLimitTooLow",
59
70
  "type": "error"
60
71
  },
61
72
  {
62
73
  "inputs": [],
63
- "name": "NonReentrant",
74
+ "name": "OptimismPortal_ImproperDisputeGame",
64
75
  "type": "error"
65
76
  },
66
77
  {
67
78
  "inputs": [],
68
- "name": "OnlyCustomGasToken",
79
+ "name": "OptimismPortal_InvalidDisputeGame",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "OptimismPortal_InvalidInteropState",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "OptimismPortal_InvalidLockboxState",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "OptimismPortal_InvalidMerkleProof",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "OptimismPortal_InvalidOutputRootProof",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "OptimismPortal_InvalidProofTimestamp",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "OptimismPortal_InvalidRootClaim",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "OptimismPortal_LockboxNotAuthorizedForPortal",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "OptimismPortal_MigratingToSameRegistry",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "OptimismPortal_NoReentrancy",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "OptimismPortal_NotAllowedOnCGTMode",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [],
134
+ "name": "OptimismPortal_NotUsingInterop",
135
+ "type": "error"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "OptimismPortal_ProofNotOldEnough",
140
+ "type": "error"
141
+ },
142
+ {
143
+ "inputs": [],
144
+ "name": "OptimismPortal_Unproven",
145
+ "type": "error"
146
+ },
147
+ {
148
+ "inputs": [],
149
+ "name": "OptimismPortal_ZeroAddress",
69
150
  "type": "error"
70
151
  },
71
152
  {
@@ -75,17 +156,37 @@ exports.OptimismPortal_jsonAbi = [
75
156
  },
76
157
  {
77
158
  "inputs": [],
78
- "name": "SmallGasLimit",
159
+ "name": "ProxyAdminOwnedBase_NotProxyAdmin",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [],
169
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOwner",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "ProxyAdminOwnedBase_NotResolvedDelegateProxy",
79
175
  "type": "error"
80
176
  },
81
177
  {
82
178
  "inputs": [],
83
- "name": "TransferFailed",
179
+ "name": "ProxyAdminOwnedBase_NotSharedProxyAdminOwner",
84
180
  "type": "error"
85
181
  },
86
182
  {
87
183
  "inputs": [],
88
- "name": "Unauthorized",
184
+ "name": "ProxyAdminOwnedBase_ProxyAdminNotFound",
185
+ "type": "error"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "ReinitializableBase_ZeroInitVersion",
89
190
  "type": "error"
90
191
  },
91
192
  {
@@ -98,6 +199,25 @@ exports.OptimismPortal_jsonAbi = [
98
199
  "name": "UnexpectedString",
99
200
  "type": "error"
100
201
  },
202
+ {
203
+ "anonymous": false,
204
+ "inputs": [
205
+ {
206
+ "indexed": true,
207
+ "internalType": "address",
208
+ "name": "lockbox",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "uint256",
214
+ "name": "balance",
215
+ "type": "uint256"
216
+ }
217
+ ],
218
+ "name": "ETHMigrated",
219
+ "type": "event"
220
+ },
101
221
  {
102
222
  "anonymous": false,
103
223
  "inputs": [
@@ -111,6 +231,37 @@ exports.OptimismPortal_jsonAbi = [
111
231
  "name": "Initialized",
112
232
  "type": "event"
113
233
  },
234
+ {
235
+ "anonymous": false,
236
+ "inputs": [
237
+ {
238
+ "indexed": false,
239
+ "internalType": "contract IETHLockbox",
240
+ "name": "oldLockbox",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "internalType": "contract IETHLockbox",
246
+ "name": "newLockbox",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "internalType": "contract IAnchorStateRegistry",
252
+ "name": "oldAnchorStateRegistry",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "indexed": false,
257
+ "internalType": "contract IAnchorStateRegistry",
258
+ "name": "newAnchorStateRegistry",
259
+ "type": "address"
260
+ }
261
+ ],
262
+ "name": "PortalMigrated",
263
+ "type": "event"
264
+ },
114
265
  {
115
266
  "anonymous": false,
116
267
  "inputs": [
@@ -186,14 +337,33 @@ exports.OptimismPortal_jsonAbi = [
186
337
  "name": "WithdrawalProven",
187
338
  "type": "event"
188
339
  },
340
+ {
341
+ "anonymous": false,
342
+ "inputs": [
343
+ {
344
+ "indexed": true,
345
+ "internalType": "bytes32",
346
+ "name": "withdrawalHash",
347
+ "type": "bytes32"
348
+ },
349
+ {
350
+ "indexed": true,
351
+ "internalType": "address",
352
+ "name": "proofSubmitter",
353
+ "type": "address"
354
+ }
355
+ ],
356
+ "name": "WithdrawalProvenExtension1",
357
+ "type": "event"
358
+ },
189
359
  {
190
360
  "inputs": [],
191
- "name": "balance",
361
+ "name": "anchorStateRegistry",
192
362
  "outputs": [
193
363
  {
194
- "internalType": "uint256",
364
+ "internalType": "contract IAnchorStateRegistry",
195
365
  "name": "",
196
- "type": "uint256"
366
+ "type": "address"
197
367
  }
198
368
  ],
199
369
  "stateMutability": "view",
@@ -202,39 +372,19 @@ exports.OptimismPortal_jsonAbi = [
202
372
  {
203
373
  "inputs": [
204
374
  {
205
- "internalType": "address",
206
- "name": "_to",
207
- "type": "address"
208
- },
209
- {
210
- "internalType": "uint256",
211
- "name": "_mint",
212
- "type": "uint256"
213
- },
214
- {
215
- "internalType": "uint256",
216
- "name": "_value",
217
- "type": "uint256"
218
- },
219
- {
220
- "internalType": "uint64",
221
- "name": "_gasLimit",
222
- "type": "uint64"
223
- },
224
- {
225
- "internalType": "bool",
226
- "name": "_isCreation",
227
- "type": "bool"
375
+ "internalType": "bytes32",
376
+ "name": "_withdrawalHash",
377
+ "type": "bytes32"
228
378
  },
229
379
  {
230
- "internalType": "bytes",
231
- "name": "_data",
232
- "type": "bytes"
380
+ "internalType": "address",
381
+ "name": "_proofSubmitter",
382
+ "type": "address"
233
383
  }
234
384
  ],
235
- "name": "depositERC20Transaction",
385
+ "name": "checkWithdrawal",
236
386
  "outputs": [],
237
- "stateMutability": "nonpayable",
387
+ "stateMutability": "view",
238
388
  "type": "function"
239
389
  },
240
390
  {
@@ -270,6 +420,51 @@ exports.OptimismPortal_jsonAbi = [
270
420
  "stateMutability": "payable",
271
421
  "type": "function"
272
422
  },
423
+ {
424
+ "inputs": [
425
+ {
426
+ "internalType": "contract IDisputeGame",
427
+ "name": "_disputeGame",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "name": "disputeGameBlacklist",
432
+ "outputs": [
433
+ {
434
+ "internalType": "bool",
435
+ "name": "",
436
+ "type": "bool"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [],
444
+ "name": "disputeGameFactory",
445
+ "outputs": [
446
+ {
447
+ "internalType": "contract IDisputeGameFactory",
448
+ "name": "",
449
+ "type": "address"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "disputeGameFinalityDelaySeconds",
458
+ "outputs": [
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
273
468
  {
274
469
  "inputs": [],
275
470
  "name": "donateETH",
@@ -277,6 +472,19 @@ exports.OptimismPortal_jsonAbi = [
277
472
  "stateMutability": "payable",
278
473
  "type": "function"
279
474
  },
475
+ {
476
+ "inputs": [],
477
+ "name": "ethLockbox",
478
+ "outputs": [
479
+ {
480
+ "internalType": "contract IETHLockbox",
481
+ "name": "",
482
+ "type": "address"
483
+ }
484
+ ],
485
+ "stateMutability": "view",
486
+ "type": "function"
487
+ },
280
488
  {
281
489
  "inputs": [
282
490
  {
@@ -322,6 +530,56 @@ exports.OptimismPortal_jsonAbi = [
322
530
  "stateMutability": "nonpayable",
323
531
  "type": "function"
324
532
  },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "components": [
537
+ {
538
+ "internalType": "uint256",
539
+ "name": "nonce",
540
+ "type": "uint256"
541
+ },
542
+ {
543
+ "internalType": "address",
544
+ "name": "sender",
545
+ "type": "address"
546
+ },
547
+ {
548
+ "internalType": "address",
549
+ "name": "target",
550
+ "type": "address"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "value",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "gasLimit",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "bytes",
564
+ "name": "data",
565
+ "type": "bytes"
566
+ }
567
+ ],
568
+ "internalType": "struct Types.WithdrawalTransaction",
569
+ "name": "_tx",
570
+ "type": "tuple"
571
+ },
572
+ {
573
+ "internalType": "address",
574
+ "name": "_proofSubmitter",
575
+ "type": "address"
576
+ }
577
+ ],
578
+ "name": "finalizeWithdrawalTransactionExternalProof",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
325
583
  {
326
584
  "inputs": [
327
585
  {
@@ -354,21 +612,34 @@ exports.OptimismPortal_jsonAbi = [
354
612
  "stateMutability": "view",
355
613
  "type": "function"
356
614
  },
615
+ {
616
+ "inputs": [],
617
+ "name": "initVersion",
618
+ "outputs": [
619
+ {
620
+ "internalType": "uint8",
621
+ "name": "",
622
+ "type": "uint8"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
357
628
  {
358
629
  "inputs": [
359
630
  {
360
- "internalType": "contract L2OutputOracle",
361
- "name": "_l2Oracle",
631
+ "internalType": "contract ISystemConfig",
632
+ "name": "_systemConfig",
362
633
  "type": "address"
363
634
  },
364
635
  {
365
- "internalType": "contract SystemConfig",
366
- "name": "_systemConfig",
636
+ "internalType": "contract IAnchorStateRegistry",
637
+ "name": "_anchorStateRegistry",
367
638
  "type": "address"
368
639
  },
369
640
  {
370
- "internalType": "contract SuperchainConfig",
371
- "name": "_superchainConfig",
641
+ "internalType": "contract IETHLockbox",
642
+ "name": "_ethLockbox",
372
643
  "type": "address"
373
644
  }
374
645
  ],
@@ -378,19 +649,13 @@ exports.OptimismPortal_jsonAbi = [
378
649
  "type": "function"
379
650
  },
380
651
  {
381
- "inputs": [
382
- {
383
- "internalType": "uint256",
384
- "name": "_l2OutputIndex",
385
- "type": "uint256"
386
- }
387
- ],
388
- "name": "isOutputFinalized",
652
+ "inputs": [],
653
+ "name": "l2Sender",
389
654
  "outputs": [
390
655
  {
391
- "internalType": "bool",
656
+ "internalType": "address",
392
657
  "name": "",
393
- "type": "bool"
658
+ "type": "address"
394
659
  }
395
660
  ],
396
661
  "stateMutability": "view",
@@ -398,28 +663,27 @@ exports.OptimismPortal_jsonAbi = [
398
663
  },
399
664
  {
400
665
  "inputs": [],
401
- "name": "l2Oracle",
402
- "outputs": [
403
- {
404
- "internalType": "contract L2OutputOracle",
405
- "name": "",
406
- "type": "address"
407
- }
408
- ],
409
- "stateMutability": "view",
666
+ "name": "migrateLiquidity",
667
+ "outputs": [],
668
+ "stateMutability": "nonpayable",
410
669
  "type": "function"
411
670
  },
412
671
  {
413
- "inputs": [],
414
- "name": "l2Sender",
415
- "outputs": [
672
+ "inputs": [
416
673
  {
417
- "internalType": "address",
418
- "name": "",
674
+ "internalType": "contract IETHLockbox",
675
+ "name": "_newLockbox",
676
+ "type": "address"
677
+ },
678
+ {
679
+ "internalType": "contract IAnchorStateRegistry",
680
+ "name": "_newAnchorStateRegistry",
419
681
  "type": "address"
420
682
  }
421
683
  ],
422
- "stateMutability": "view",
684
+ "name": "migrateToSharedDisputeGame",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
423
687
  "type": "function"
424
688
  },
425
689
  {
@@ -441,6 +705,25 @@ exports.OptimismPortal_jsonAbi = [
441
705
  "stateMutability": "pure",
442
706
  "type": "function"
443
707
  },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "bytes32",
712
+ "name": "_withdrawalHash",
713
+ "type": "bytes32"
714
+ }
715
+ ],
716
+ "name": "numProofSubmitters",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
444
727
  {
445
728
  "inputs": [],
446
729
  "name": "params",
@@ -470,13 +753,50 @@ exports.OptimismPortal_jsonAbi = [
470
753
  "outputs": [
471
754
  {
472
755
  "internalType": "bool",
473
- "name": "paused_",
756
+ "name": "",
474
757
  "type": "bool"
475
758
  }
476
759
  ],
477
760
  "stateMutability": "view",
478
761
  "type": "function"
479
762
  },
763
+ {
764
+ "inputs": [],
765
+ "name": "proofMaturityDelaySeconds",
766
+ "outputs": [
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "",
770
+ "type": "uint256"
771
+ }
772
+ ],
773
+ "stateMutability": "view",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [
778
+ {
779
+ "internalType": "bytes32",
780
+ "name": "",
781
+ "type": "bytes32"
782
+ },
783
+ {
784
+ "internalType": "uint256",
785
+ "name": "",
786
+ "type": "uint256"
787
+ }
788
+ ],
789
+ "name": "proofSubmitters",
790
+ "outputs": [
791
+ {
792
+ "internalType": "address",
793
+ "name": "",
794
+ "type": "address"
795
+ }
796
+ ],
797
+ "stateMutability": "view",
798
+ "type": "function"
799
+ },
480
800
  {
481
801
  "inputs": [
482
802
  {
@@ -518,7 +838,7 @@ exports.OptimismPortal_jsonAbi = [
518
838
  },
519
839
  {
520
840
  "internalType": "uint256",
521
- "name": "_l2OutputIndex",
841
+ "name": "_disputeGameIndex",
522
842
  "type": "uint256"
523
843
  },
524
844
  {
@@ -565,55 +885,79 @@ exports.OptimismPortal_jsonAbi = [
565
885
  "internalType": "bytes32",
566
886
  "name": "",
567
887
  "type": "bytes32"
888
+ },
889
+ {
890
+ "internalType": "address",
891
+ "name": "",
892
+ "type": "address"
568
893
  }
569
894
  ],
570
895
  "name": "provenWithdrawals",
571
896
  "outputs": [
572
897
  {
573
- "internalType": "bytes32",
574
- "name": "outputRoot",
575
- "type": "bytes32"
898
+ "internalType": "contract IDisputeGame",
899
+ "name": "disputeGameProxy",
900
+ "type": "address"
576
901
  },
577
902
  {
578
- "internalType": "uint128",
903
+ "internalType": "uint64",
579
904
  "name": "timestamp",
580
- "type": "uint128"
581
- },
905
+ "type": "uint64"
906
+ }
907
+ ],
908
+ "stateMutability": "view",
909
+ "type": "function"
910
+ },
911
+ {
912
+ "inputs": [],
913
+ "name": "proxyAdmin",
914
+ "outputs": [
582
915
  {
583
- "internalType": "uint128",
584
- "name": "l2OutputIndex",
585
- "type": "uint128"
916
+ "internalType": "contract IProxyAdmin",
917
+ "name": "",
918
+ "type": "address"
586
919
  }
587
920
  ],
588
921
  "stateMutability": "view",
589
922
  "type": "function"
590
923
  },
591
924
  {
592
- "inputs": [
925
+ "inputs": [],
926
+ "name": "proxyAdminOwner",
927
+ "outputs": [
593
928
  {
594
929
  "internalType": "address",
595
- "name": "_token",
930
+ "name": "",
596
931
  "type": "address"
597
- },
598
- {
599
- "internalType": "uint8",
600
- "name": "_decimals",
601
- "type": "uint8"
602
- },
932
+ }
933
+ ],
934
+ "stateMutability": "view",
935
+ "type": "function"
936
+ },
937
+ {
938
+ "inputs": [],
939
+ "name": "respectedGameType",
940
+ "outputs": [
603
941
  {
604
- "internalType": "bytes32",
605
- "name": "_name",
606
- "type": "bytes32"
607
- },
942
+ "internalType": "GameType",
943
+ "name": "",
944
+ "type": "uint32"
945
+ }
946
+ ],
947
+ "stateMutability": "view",
948
+ "type": "function"
949
+ },
950
+ {
951
+ "inputs": [],
952
+ "name": "respectedGameTypeUpdatedAt",
953
+ "outputs": [
608
954
  {
609
- "internalType": "bytes32",
610
- "name": "_symbol",
611
- "type": "bytes32"
955
+ "internalType": "uint64",
956
+ "name": "",
957
+ "type": "uint64"
612
958
  }
613
959
  ],
614
- "name": "setGasPayingToken",
615
- "outputs": [],
616
- "stateMutability": "nonpayable",
960
+ "stateMutability": "view",
617
961
  "type": "function"
618
962
  },
619
963
  {
@@ -621,7 +965,7 @@ exports.OptimismPortal_jsonAbi = [
621
965
  "name": "superchainConfig",
622
966
  "outputs": [
623
967
  {
624
- "internalType": "contract SuperchainConfig",
968
+ "internalType": "contract ISuperchainConfig",
625
969
  "name": "",
626
970
  "type": "address"
627
971
  }
@@ -634,7 +978,7 @@ exports.OptimismPortal_jsonAbi = [
634
978
  "name": "systemConfig",
635
979
  "outputs": [
636
980
  {
637
- "internalType": "contract SystemConfig",
981
+ "internalType": "contract ISystemConfig",
638
982
  "name": "",
639
983
  "type": "address"
640
984
  }
@@ -661,7 +1005,7 @@ exports.OptimismPortal_jsonAbi = [
661
1005
  }
662
1006
  ];
663
1007
  /**
664
- * OptimismPortal_json Contract Class
1008
+ * OptimismPortal2_json Contract Class
665
1009
  *
666
1010
  * Provides a class-based API similar to TypeChain for interacting with the contract.
667
1011
  *
@@ -669,12 +1013,12 @@ exports.OptimismPortal_jsonAbi = [
669
1013
  * ```typescript
670
1014
  * import { createPublicClient, createWalletClient, http } from 'viem';
671
1015
  * import { mainnet } from 'viem/chains';
672
- * import { OptimismPortal_json } from 'OptimismPortal_json';
1016
+ * import { OptimismPortal2_json } from 'OptimismPortal2_json';
673
1017
  *
674
1018
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
675
1019
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
676
1020
  *
677
- * const contract = new OptimismPortal_json('0x...', { publicClient, walletClient });
1021
+ * const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
678
1022
  *
679
1023
  * // Read functions
680
1024
  * const result = await contract.balanceOf('0x...');
@@ -692,13 +1036,13 @@ exports.OptimismPortal_jsonAbi = [
692
1036
  * });
693
1037
  * ```
694
1038
  */
695
- class OptimismPortal_json {
1039
+ class OptimismPortal2_json {
696
1040
  constructor(address, clients) {
697
1041
  this.contractAddress = address;
698
1042
  this.publicClient = clients.publicClient;
699
1043
  this.contract = (0, viem_1.getContract)({
700
1044
  address,
701
- abi: exports.OptimismPortal_jsonAbi,
1045
+ abi: exports.OptimismPortal2_jsonAbi,
702
1046
  client: {
703
1047
  public: clients.publicClient,
704
1048
  wallet: clients.walletClient,
@@ -718,11 +1062,46 @@ class OptimismPortal_json {
718
1062
  return this.contract;
719
1063
  }
720
1064
  /**
721
- * balance
1065
+ * anchorStateRegistry
1066
+ * view
1067
+ */
1068
+ async anchorStateRegistry() {
1069
+ return this.contract.read.anchorStateRegistry();
1070
+ }
1071
+ /**
1072
+ * checkWithdrawal
1073
+ * view
1074
+ */
1075
+ async checkWithdrawal(_withdrawalHash, _proofSubmitter) {
1076
+ return this.contract.read.checkWithdrawal([_withdrawalHash, _proofSubmitter]);
1077
+ }
1078
+ /**
1079
+ * disputeGameBlacklist
1080
+ * view
1081
+ */
1082
+ async disputeGameBlacklist(_disputeGame) {
1083
+ return this.contract.read.disputeGameBlacklist([_disputeGame]);
1084
+ }
1085
+ /**
1086
+ * disputeGameFactory
1087
+ * view
1088
+ */
1089
+ async disputeGameFactory() {
1090
+ return this.contract.read.disputeGameFactory();
1091
+ }
1092
+ /**
1093
+ * disputeGameFinalityDelaySeconds
1094
+ * view
1095
+ */
1096
+ async disputeGameFinalityDelaySeconds() {
1097
+ return this.contract.read.disputeGameFinalityDelaySeconds();
1098
+ }
1099
+ /**
1100
+ * ethLockbox
722
1101
  * view
723
1102
  */
724
- async balance() {
725
- return this.contract.read.balance();
1103
+ async ethLockbox() {
1104
+ return this.contract.read.ethLockbox();
726
1105
  }
727
1106
  /**
728
1107
  * finalizedWithdrawals
@@ -739,18 +1118,11 @@ class OptimismPortal_json {
739
1118
  return this.contract.read.guardian();
740
1119
  }
741
1120
  /**
742
- * isOutputFinalized
743
- * view
744
- */
745
- async isOutputFinalized(_l2OutputIndex) {
746
- return this.contract.read.isOutputFinalized([_l2OutputIndex]);
747
- }
748
- /**
749
- * l2Oracle
1121
+ * initVersion
750
1122
  * view
751
1123
  */
752
- async l2Oracle() {
753
- return this.contract.read.l2Oracle();
1124
+ async initVersion() {
1125
+ return this.contract.read.initVersion();
754
1126
  }
755
1127
  /**
756
1128
  * l2Sender
@@ -766,6 +1138,13 @@ class OptimismPortal_json {
766
1138
  async minimumGasLimit(_byteCount) {
767
1139
  return this.contract.read.minimumGasLimit([_byteCount]);
768
1140
  }
1141
+ /**
1142
+ * numProofSubmitters
1143
+ * view
1144
+ */
1145
+ async numProofSubmitters(_withdrawalHash) {
1146
+ return this.contract.read.numProofSubmitters([_withdrawalHash]);
1147
+ }
769
1148
  /**
770
1149
  * params
771
1150
  * view
@@ -780,12 +1159,54 @@ class OptimismPortal_json {
780
1159
  async paused() {
781
1160
  return this.contract.read.paused();
782
1161
  }
1162
+ /**
1163
+ * proofMaturityDelaySeconds
1164
+ * view
1165
+ */
1166
+ async proofMaturityDelaySeconds() {
1167
+ return this.contract.read.proofMaturityDelaySeconds();
1168
+ }
1169
+ /**
1170
+ * proofSubmitters
1171
+ * view
1172
+ */
1173
+ async proofSubmitters(arg0, arg1) {
1174
+ return this.contract.read.proofSubmitters([arg0, arg1]);
1175
+ }
783
1176
  /**
784
1177
  * provenWithdrawals
785
1178
  * view
786
1179
  */
787
- async provenWithdrawals(arg0) {
788
- return this.contract.read.provenWithdrawals([arg0]);
1180
+ async provenWithdrawals(arg0, arg1) {
1181
+ return this.contract.read.provenWithdrawals([arg0, arg1]);
1182
+ }
1183
+ /**
1184
+ * proxyAdmin
1185
+ * view
1186
+ */
1187
+ async proxyAdmin() {
1188
+ return this.contract.read.proxyAdmin();
1189
+ }
1190
+ /**
1191
+ * proxyAdminOwner
1192
+ * view
1193
+ */
1194
+ async proxyAdminOwner() {
1195
+ return this.contract.read.proxyAdminOwner();
1196
+ }
1197
+ /**
1198
+ * respectedGameType
1199
+ * view
1200
+ */
1201
+ async respectedGameType() {
1202
+ return this.contract.read.respectedGameType();
1203
+ }
1204
+ /**
1205
+ * respectedGameTypeUpdatedAt
1206
+ * view
1207
+ */
1208
+ async respectedGameTypeUpdatedAt() {
1209
+ return this.contract.read.respectedGameTypeUpdatedAt();
789
1210
  }
790
1211
  /**
791
1212
  * superchainConfig
@@ -808,17 +1229,6 @@ class OptimismPortal_json {
808
1229
  async version() {
809
1230
  return this.contract.read.version();
810
1231
  }
811
- /**
812
- * depositERC20Transaction
813
- * nonpayable
814
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
815
- */
816
- async depositERC20Transaction(_to, _mint, _value, _gasLimit, _isCreation, _data, options) {
817
- if (!this.contract.write) {
818
- throw new Error('Wallet client is required for write operations');
819
- }
820
- return this.contract.write.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data], options);
821
- }
822
1232
  /**
823
1233
  * depositTransaction
824
1234
  * payable
@@ -852,38 +1262,60 @@ class OptimismPortal_json {
852
1262
  }
853
1263
  return this.contract.write.finalizeWithdrawalTransaction([_tx], options);
854
1264
  }
1265
+ /**
1266
+ * finalizeWithdrawalTransactionExternalProof
1267
+ * nonpayable
1268
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1269
+ */
1270
+ async finalizeWithdrawalTransactionExternalProof(_tx, _proofSubmitter, options) {
1271
+ if (!this.contract.write) {
1272
+ throw new Error('Wallet client is required for write operations');
1273
+ }
1274
+ return this.contract.write.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter], options);
1275
+ }
855
1276
  /**
856
1277
  * initialize
857
1278
  * nonpayable
858
1279
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
859
1280
  */
860
- async initialize(_l2Oracle, _systemConfig, _superchainConfig, options) {
1281
+ async initialize(_systemConfig, _anchorStateRegistry, _ethLockbox, options) {
861
1282
  if (!this.contract.write) {
862
1283
  throw new Error('Wallet client is required for write operations');
863
1284
  }
864
- return this.contract.write.initialize([_l2Oracle, _systemConfig, _superchainConfig], options);
1285
+ return this.contract.write.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox], options);
865
1286
  }
866
1287
  /**
867
- * proveWithdrawalTransaction
1288
+ * migrateLiquidity
1289
+ * nonpayable
1290
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1291
+ */
1292
+ async migrateLiquidity(options) {
1293
+ if (!this.contract.write) {
1294
+ throw new Error('Wallet client is required for write operations');
1295
+ }
1296
+ return this.contract.write.migrateLiquidity(options);
1297
+ }
1298
+ /**
1299
+ * migrateToSharedDisputeGame
868
1300
  * nonpayable
869
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
870
1302
  */
871
- async proveWithdrawalTransaction(_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof, options) {
1303
+ async migrateToSharedDisputeGame(_newLockbox, _newAnchorStateRegistry, options) {
872
1304
  if (!this.contract.write) {
873
1305
  throw new Error('Wallet client is required for write operations');
874
1306
  }
875
- return this.contract.write.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof], options);
1307
+ return this.contract.write.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry], options);
876
1308
  }
877
1309
  /**
878
- * setGasPayingToken
1310
+ * proveWithdrawalTransaction
879
1311
  * nonpayable
880
1312
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
881
1313
  */
882
- async setGasPayingToken(_token, _decimals, _name, _symbol, options) {
1314
+ async proveWithdrawalTransaction(_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof, options) {
883
1315
  if (!this.contract.write) {
884
1316
  throw new Error('Wallet client is required for write operations');
885
1317
  }
886
- return this.contract.write.setGasPayingToken([_token, _decimals, _name, _symbol], options);
1318
+ return this.contract.write.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof], options);
887
1319
  }
888
1320
  /**
889
1321
  * Simulate contract write operations (dry-run without sending transaction)
@@ -899,14 +1331,6 @@ class OptimismPortal_json {
899
1331
  throw new Error('Public client is required for simulation');
900
1332
  }
901
1333
  return {
902
- /**
903
- * Simulate depositERC20Transaction
904
- * Returns gas estimate and result without sending transaction
905
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
906
- */
907
- async depositERC20Transaction(_to, _mint, _value, _gasLimit, _isCreation, _data, options) {
908
- return contract.simulate.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data], options);
909
- },
910
1334
  /**
911
1335
  * Simulate depositTransaction
912
1336
  * Returns gas estimate and result without sending transaction
@@ -931,29 +1355,45 @@ class OptimismPortal_json {
931
1355
  async finalizeWithdrawalTransaction(_tx, options) {
932
1356
  return contract.simulate.finalizeWithdrawalTransaction([_tx], options);
933
1357
  },
1358
+ /**
1359
+ * Simulate finalizeWithdrawalTransactionExternalProof
1360
+ * Returns gas estimate and result without sending transaction
1361
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1362
+ */
1363
+ async finalizeWithdrawalTransactionExternalProof(_tx, _proofSubmitter, options) {
1364
+ return contract.simulate.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter], options);
1365
+ },
934
1366
  /**
935
1367
  * Simulate initialize
936
1368
  * Returns gas estimate and result without sending transaction
937
1369
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
938
1370
  */
939
- async initialize(_l2Oracle, _systemConfig, _superchainConfig, options) {
940
- return contract.simulate.initialize([_l2Oracle, _systemConfig, _superchainConfig], options);
1371
+ async initialize(_systemConfig, _anchorStateRegistry, _ethLockbox, options) {
1372
+ return contract.simulate.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox], options);
941
1373
  },
942
1374
  /**
943
- * Simulate proveWithdrawalTransaction
1375
+ * Simulate migrateLiquidity
1376
+ * Returns gas estimate and result without sending transaction
1377
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1378
+ */
1379
+ async migrateLiquidity(options) {
1380
+ return contract.simulate.migrateLiquidity(options);
1381
+ },
1382
+ /**
1383
+ * Simulate migrateToSharedDisputeGame
944
1384
  * Returns gas estimate and result without sending transaction
945
1385
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
946
1386
  */
947
- async proveWithdrawalTransaction(_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof, options) {
948
- return contract.simulate.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof], options);
1387
+ async migrateToSharedDisputeGame(_newLockbox, _newAnchorStateRegistry, options) {
1388
+ return contract.simulate.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry], options);
949
1389
  },
950
1390
  /**
951
- * Simulate setGasPayingToken
1391
+ * Simulate proveWithdrawalTransaction
952
1392
  * Returns gas estimate and result without sending transaction
953
1393
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
954
1394
  */
955
- async setGasPayingToken(_token, _decimals, _name, _symbol, options) {
956
- return contract.simulate.setGasPayingToken([_token, _decimals, _name, _symbol], options);
1395
+ async proveWithdrawalTransaction(_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof, options) {
1396
+ return contract.simulate.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof], options);
957
1397
  }
958
1398
  };
959
1399
  }
@@ -971,6 +1411,25 @@ class OptimismPortal_json {
971
1411
  */
972
1412
  get watch() {
973
1413
  return {
1414
+ /**
1415
+ * Watch ETHMigrated events
1416
+ * @param callback Function to call when event is emitted
1417
+ * @param filter Optional filter for indexed parameters
1418
+ * @returns Unwatch function to stop listening
1419
+ */
1420
+ ETHMigrated: (callback, filter) => {
1421
+ return this.publicClient.watchContractEvent({
1422
+ address: this.contractAddress,
1423
+ abi: exports.OptimismPortal2_jsonAbi,
1424
+ eventName: 'ETHMigrated',
1425
+ args: filter,
1426
+ onLogs: (logs) => {
1427
+ logs.forEach((log) => {
1428
+ callback(log.args);
1429
+ });
1430
+ },
1431
+ });
1432
+ },
974
1433
  /**
975
1434
  * Watch Initialized events
976
1435
  * @param callback Function to call when event is emitted
@@ -980,7 +1439,7 @@ class OptimismPortal_json {
980
1439
  Initialized: (callback) => {
981
1440
  return this.publicClient.watchContractEvent({
982
1441
  address: this.contractAddress,
983
- abi: exports.OptimismPortal_jsonAbi,
1442
+ abi: exports.OptimismPortal2_jsonAbi,
984
1443
  eventName: 'Initialized',
985
1444
  onLogs: (logs) => {
986
1445
  logs.forEach((log) => {
@@ -989,6 +1448,24 @@ class OptimismPortal_json {
989
1448
  },
990
1449
  });
991
1450
  },
1451
+ /**
1452
+ * Watch PortalMigrated events
1453
+ * @param callback Function to call when event is emitted
1454
+ * @param filter Optional filter for indexed parameters
1455
+ * @returns Unwatch function to stop listening
1456
+ */
1457
+ PortalMigrated: (callback) => {
1458
+ return this.publicClient.watchContractEvent({
1459
+ address: this.contractAddress,
1460
+ abi: exports.OptimismPortal2_jsonAbi,
1461
+ eventName: 'PortalMigrated',
1462
+ onLogs: (logs) => {
1463
+ logs.forEach((log) => {
1464
+ callback(log.args);
1465
+ });
1466
+ },
1467
+ });
1468
+ },
992
1469
  /**
993
1470
  * Watch TransactionDeposited events
994
1471
  * @param callback Function to call when event is emitted
@@ -998,7 +1475,7 @@ class OptimismPortal_json {
998
1475
  TransactionDeposited: (callback, filter) => {
999
1476
  return this.publicClient.watchContractEvent({
1000
1477
  address: this.contractAddress,
1001
- abi: exports.OptimismPortal_jsonAbi,
1478
+ abi: exports.OptimismPortal2_jsonAbi,
1002
1479
  eventName: 'TransactionDeposited',
1003
1480
  args: filter,
1004
1481
  onLogs: (logs) => {
@@ -1017,7 +1494,7 @@ class OptimismPortal_json {
1017
1494
  WithdrawalFinalized: (callback, filter) => {
1018
1495
  return this.publicClient.watchContractEvent({
1019
1496
  address: this.contractAddress,
1020
- abi: exports.OptimismPortal_jsonAbi,
1497
+ abi: exports.OptimismPortal2_jsonAbi,
1021
1498
  eventName: 'WithdrawalFinalized',
1022
1499
  args: filter,
1023
1500
  onLogs: (logs) => {
@@ -1036,7 +1513,7 @@ class OptimismPortal_json {
1036
1513
  WithdrawalProven: (callback, filter) => {
1037
1514
  return this.publicClient.watchContractEvent({
1038
1515
  address: this.contractAddress,
1039
- abi: exports.OptimismPortal_jsonAbi,
1516
+ abi: exports.OptimismPortal2_jsonAbi,
1040
1517
  eventName: 'WithdrawalProven',
1041
1518
  args: filter,
1042
1519
  onLogs: (logs) => {
@@ -1045,8 +1522,27 @@ class OptimismPortal_json {
1045
1522
  });
1046
1523
  },
1047
1524
  });
1525
+ },
1526
+ /**
1527
+ * Watch WithdrawalProvenExtension1 events
1528
+ * @param callback Function to call when event is emitted
1529
+ * @param filter Optional filter for indexed parameters
1530
+ * @returns Unwatch function to stop listening
1531
+ */
1532
+ WithdrawalProvenExtension1: (callback, filter) => {
1533
+ return this.publicClient.watchContractEvent({
1534
+ address: this.contractAddress,
1535
+ abi: exports.OptimismPortal2_jsonAbi,
1536
+ eventName: 'WithdrawalProvenExtension1',
1537
+ args: filter,
1538
+ onLogs: (logs) => {
1539
+ logs.forEach((log) => {
1540
+ callback(log.args);
1541
+ });
1542
+ },
1543
+ });
1048
1544
  }
1049
1545
  };
1050
1546
  }
1051
1547
  }
1052
- exports.OptimismPortal_json = OptimismPortal_json;
1548
+ exports.OptimismPortal2_json = OptimismPortal2_json;