@gitmyabi/optimismportal 1.0.2 → 1.0.3

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.
@@ -24,69 +24,140 @@ export type Types_OutputRootProof = {
24
24
  latestBlockhash: `0x${string}`;
25
25
  };
26
26
  /**
27
- * OptimismPortal_json ABI
27
+ * OptimismPortal2_json ABI
28
28
  *
29
29
  * This ABI is typed using viem's type system for full type safety.
30
30
  */
31
- export const OptimismPortal_jsonAbi = [
31
+ export const OptimismPortal2_jsonAbi = [
32
32
  {
33
- "inputs": [],
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "_proofMaturityDelaySeconds",
37
+ "type": "uint256"
38
+ }
39
+ ],
34
40
  "stateMutability": "nonpayable",
35
41
  "type": "constructor"
36
42
  },
37
43
  {
38
44
  "inputs": [],
39
- "name": "BadTarget",
45
+ "name": "ContentLengthMismatch",
40
46
  "type": "error"
41
47
  },
42
48
  {
43
49
  "inputs": [],
44
- "name": "CallPaused",
50
+ "name": "EmptyItem",
45
51
  "type": "error"
46
52
  },
47
53
  {
48
54
  "inputs": [],
49
- "name": "ContentLengthMismatch",
55
+ "name": "InvalidDataRemainder",
50
56
  "type": "error"
51
57
  },
52
58
  {
53
59
  "inputs": [],
54
- "name": "EmptyItem",
60
+ "name": "InvalidHeader",
55
61
  "type": "error"
56
62
  },
57
63
  {
58
64
  "inputs": [],
59
- "name": "GasEstimation",
65
+ "name": "OptimismPortal_AlreadyFinalized",
60
66
  "type": "error"
61
67
  },
62
68
  {
63
69
  "inputs": [],
64
- "name": "InvalidDataRemainder",
70
+ "name": "OptimismPortal_BadTarget",
65
71
  "type": "error"
66
72
  },
67
73
  {
68
74
  "inputs": [],
69
- "name": "InvalidHeader",
75
+ "name": "OptimismPortal_CallPaused",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "OptimismPortal_CalldataTooLarge",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "OptimismPortal_GasEstimation",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "OptimismPortal_GasLimitTooLow",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "OptimismPortal_ImproperDisputeGame",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "OptimismPortal_InvalidDisputeGame",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "OptimismPortal_InvalidInteropState",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "OptimismPortal_InvalidLockboxState",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "OptimismPortal_InvalidMerkleProof",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "OptimismPortal_InvalidOutputRootProof",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "OptimismPortal_InvalidProofTimestamp",
70
126
  "type": "error"
71
127
  },
72
128
  {
73
129
  "inputs": [],
74
- "name": "LargeCalldata",
130
+ "name": "OptimismPortal_InvalidRootClaim",
75
131
  "type": "error"
76
132
  },
77
133
  {
78
134
  "inputs": [],
79
- "name": "NoValue",
135
+ "name": "OptimismPortal_MigratingToSameRegistry",
80
136
  "type": "error"
81
137
  },
82
138
  {
83
139
  "inputs": [],
84
- "name": "NonReentrant",
140
+ "name": "OptimismPortal_NoReentrancy",
85
141
  "type": "error"
86
142
  },
87
143
  {
88
144
  "inputs": [],
89
- "name": "OnlyCustomGasToken",
145
+ "name": "OptimismPortal_NotAllowedOnCGTMode",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "OptimismPortal_NotUsingInterop",
151
+ "type": "error"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "OptimismPortal_ProofNotOldEnough",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "OptimismPortal_Unproven",
90
161
  "type": "error"
91
162
  },
92
163
  {
@@ -96,17 +167,37 @@ export const OptimismPortal_jsonAbi = [
96
167
  },
97
168
  {
98
169
  "inputs": [],
99
- "name": "SmallGasLimit",
170
+ "name": "ProxyAdminOwnedBase_NotProxyAdmin",
171
+ "type": "error"
172
+ },
173
+ {
174
+ "inputs": [],
175
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [],
180
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOwner",
100
181
  "type": "error"
101
182
  },
102
183
  {
103
184
  "inputs": [],
104
- "name": "TransferFailed",
185
+ "name": "ProxyAdminOwnedBase_NotResolvedDelegateProxy",
105
186
  "type": "error"
106
187
  },
107
188
  {
108
189
  "inputs": [],
109
- "name": "Unauthorized",
190
+ "name": "ProxyAdminOwnedBase_NotSharedProxyAdminOwner",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "ProxyAdminOwnedBase_ProxyAdminNotFound",
196
+ "type": "error"
197
+ },
198
+ {
199
+ "inputs": [],
200
+ "name": "ReinitializableBase_ZeroInitVersion",
110
201
  "type": "error"
111
202
  },
112
203
  {
@@ -119,6 +210,25 @@ export const OptimismPortal_jsonAbi = [
119
210
  "name": "UnexpectedString",
120
211
  "type": "error"
121
212
  },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": true,
218
+ "internalType": "address",
219
+ "name": "lockbox",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "indexed": false,
224
+ "internalType": "uint256",
225
+ "name": "balance",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "ETHMigrated",
230
+ "type": "event"
231
+ },
122
232
  {
123
233
  "anonymous": false,
124
234
  "inputs": [
@@ -132,6 +242,37 @@ export const OptimismPortal_jsonAbi = [
132
242
  "name": "Initialized",
133
243
  "type": "event"
134
244
  },
245
+ {
246
+ "anonymous": false,
247
+ "inputs": [
248
+ {
249
+ "indexed": false,
250
+ "internalType": "contract IETHLockbox",
251
+ "name": "oldLockbox",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "indexed": false,
256
+ "internalType": "contract IETHLockbox",
257
+ "name": "newLockbox",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "indexed": false,
262
+ "internalType": "contract IAnchorStateRegistry",
263
+ "name": "oldAnchorStateRegistry",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "contract IAnchorStateRegistry",
269
+ "name": "newAnchorStateRegistry",
270
+ "type": "address"
271
+ }
272
+ ],
273
+ "name": "PortalMigrated",
274
+ "type": "event"
275
+ },
135
276
  {
136
277
  "anonymous": false,
137
278
  "inputs": [
@@ -207,14 +348,33 @@ export const OptimismPortal_jsonAbi = [
207
348
  "name": "WithdrawalProven",
208
349
  "type": "event"
209
350
  },
351
+ {
352
+ "anonymous": false,
353
+ "inputs": [
354
+ {
355
+ "indexed": true,
356
+ "internalType": "bytes32",
357
+ "name": "withdrawalHash",
358
+ "type": "bytes32"
359
+ },
360
+ {
361
+ "indexed": true,
362
+ "internalType": "address",
363
+ "name": "proofSubmitter",
364
+ "type": "address"
365
+ }
366
+ ],
367
+ "name": "WithdrawalProvenExtension1",
368
+ "type": "event"
369
+ },
210
370
  {
211
371
  "inputs": [],
212
- "name": "balance",
372
+ "name": "anchorStateRegistry",
213
373
  "outputs": [
214
374
  {
215
- "internalType": "uint256",
375
+ "internalType": "contract IAnchorStateRegistry",
216
376
  "name": "",
217
- "type": "uint256"
377
+ "type": "address"
218
378
  }
219
379
  ],
220
380
  "stateMutability": "view",
@@ -223,39 +383,19 @@ export const OptimismPortal_jsonAbi = [
223
383
  {
224
384
  "inputs": [
225
385
  {
226
- "internalType": "address",
227
- "name": "_to",
228
- "type": "address"
229
- },
230
- {
231
- "internalType": "uint256",
232
- "name": "_mint",
233
- "type": "uint256"
234
- },
235
- {
236
- "internalType": "uint256",
237
- "name": "_value",
238
- "type": "uint256"
239
- },
240
- {
241
- "internalType": "uint64",
242
- "name": "_gasLimit",
243
- "type": "uint64"
244
- },
245
- {
246
- "internalType": "bool",
247
- "name": "_isCreation",
248
- "type": "bool"
386
+ "internalType": "bytes32",
387
+ "name": "_withdrawalHash",
388
+ "type": "bytes32"
249
389
  },
250
390
  {
251
- "internalType": "bytes",
252
- "name": "_data",
253
- "type": "bytes"
391
+ "internalType": "address",
392
+ "name": "_proofSubmitter",
393
+ "type": "address"
254
394
  }
255
395
  ],
256
- "name": "depositERC20Transaction",
396
+ "name": "checkWithdrawal",
257
397
  "outputs": [],
258
- "stateMutability": "nonpayable",
398
+ "stateMutability": "view",
259
399
  "type": "function"
260
400
  },
261
401
  {
@@ -291,6 +431,51 @@ export const OptimismPortal_jsonAbi = [
291
431
  "stateMutability": "payable",
292
432
  "type": "function"
293
433
  },
434
+ {
435
+ "inputs": [
436
+ {
437
+ "internalType": "contract IDisputeGame",
438
+ "name": "_disputeGame",
439
+ "type": "address"
440
+ }
441
+ ],
442
+ "name": "disputeGameBlacklist",
443
+ "outputs": [
444
+ {
445
+ "internalType": "bool",
446
+ "name": "",
447
+ "type": "bool"
448
+ }
449
+ ],
450
+ "stateMutability": "view",
451
+ "type": "function"
452
+ },
453
+ {
454
+ "inputs": [],
455
+ "name": "disputeGameFactory",
456
+ "outputs": [
457
+ {
458
+ "internalType": "contract IDisputeGameFactory",
459
+ "name": "",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "stateMutability": "view",
464
+ "type": "function"
465
+ },
466
+ {
467
+ "inputs": [],
468
+ "name": "disputeGameFinalityDelaySeconds",
469
+ "outputs": [
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "stateMutability": "view",
477
+ "type": "function"
478
+ },
294
479
  {
295
480
  "inputs": [],
296
481
  "name": "donateETH",
@@ -298,6 +483,19 @@ export const OptimismPortal_jsonAbi = [
298
483
  "stateMutability": "payable",
299
484
  "type": "function"
300
485
  },
486
+ {
487
+ "inputs": [],
488
+ "name": "ethLockbox",
489
+ "outputs": [
490
+ {
491
+ "internalType": "contract IETHLockbox",
492
+ "name": "",
493
+ "type": "address"
494
+ }
495
+ ],
496
+ "stateMutability": "view",
497
+ "type": "function"
498
+ },
301
499
  {
302
500
  "inputs": [
303
501
  {
@@ -343,6 +541,56 @@ export const OptimismPortal_jsonAbi = [
343
541
  "stateMutability": "nonpayable",
344
542
  "type": "function"
345
543
  },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "components": [
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "nonce",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "internalType": "address",
555
+ "name": "sender",
556
+ "type": "address"
557
+ },
558
+ {
559
+ "internalType": "address",
560
+ "name": "target",
561
+ "type": "address"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "value",
566
+ "type": "uint256"
567
+ },
568
+ {
569
+ "internalType": "uint256",
570
+ "name": "gasLimit",
571
+ "type": "uint256"
572
+ },
573
+ {
574
+ "internalType": "bytes",
575
+ "name": "data",
576
+ "type": "bytes"
577
+ }
578
+ ],
579
+ "internalType": "struct Types.WithdrawalTransaction",
580
+ "name": "_tx",
581
+ "type": "tuple"
582
+ },
583
+ {
584
+ "internalType": "address",
585
+ "name": "_proofSubmitter",
586
+ "type": "address"
587
+ }
588
+ ],
589
+ "name": "finalizeWithdrawalTransactionExternalProof",
590
+ "outputs": [],
591
+ "stateMutability": "nonpayable",
592
+ "type": "function"
593
+ },
346
594
  {
347
595
  "inputs": [
348
596
  {
@@ -375,21 +623,34 @@ export const OptimismPortal_jsonAbi = [
375
623
  "stateMutability": "view",
376
624
  "type": "function"
377
625
  },
626
+ {
627
+ "inputs": [],
628
+ "name": "initVersion",
629
+ "outputs": [
630
+ {
631
+ "internalType": "uint8",
632
+ "name": "",
633
+ "type": "uint8"
634
+ }
635
+ ],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
378
639
  {
379
640
  "inputs": [
380
641
  {
381
- "internalType": "contract L2OutputOracle",
382
- "name": "_l2Oracle",
642
+ "internalType": "contract ISystemConfig",
643
+ "name": "_systemConfig",
383
644
  "type": "address"
384
645
  },
385
646
  {
386
- "internalType": "contract SystemConfig",
387
- "name": "_systemConfig",
647
+ "internalType": "contract IAnchorStateRegistry",
648
+ "name": "_anchorStateRegistry",
388
649
  "type": "address"
389
650
  },
390
651
  {
391
- "internalType": "contract SuperchainConfig",
392
- "name": "_superchainConfig",
652
+ "internalType": "contract IETHLockbox",
653
+ "name": "_ethLockbox",
393
654
  "type": "address"
394
655
  }
395
656
  ],
@@ -399,19 +660,13 @@ export const OptimismPortal_jsonAbi = [
399
660
  "type": "function"
400
661
  },
401
662
  {
402
- "inputs": [
403
- {
404
- "internalType": "uint256",
405
- "name": "_l2OutputIndex",
406
- "type": "uint256"
407
- }
408
- ],
409
- "name": "isOutputFinalized",
663
+ "inputs": [],
664
+ "name": "l2Sender",
410
665
  "outputs": [
411
666
  {
412
- "internalType": "bool",
667
+ "internalType": "address",
413
668
  "name": "",
414
- "type": "bool"
669
+ "type": "address"
415
670
  }
416
671
  ],
417
672
  "stateMutability": "view",
@@ -419,28 +674,27 @@ export const OptimismPortal_jsonAbi = [
419
674
  },
420
675
  {
421
676
  "inputs": [],
422
- "name": "l2Oracle",
423
- "outputs": [
424
- {
425
- "internalType": "contract L2OutputOracle",
426
- "name": "",
427
- "type": "address"
428
- }
429
- ],
430
- "stateMutability": "view",
677
+ "name": "migrateLiquidity",
678
+ "outputs": [],
679
+ "stateMutability": "nonpayable",
431
680
  "type": "function"
432
681
  },
433
682
  {
434
- "inputs": [],
435
- "name": "l2Sender",
436
- "outputs": [
683
+ "inputs": [
437
684
  {
438
- "internalType": "address",
439
- "name": "",
685
+ "internalType": "contract IETHLockbox",
686
+ "name": "_newLockbox",
687
+ "type": "address"
688
+ },
689
+ {
690
+ "internalType": "contract IAnchorStateRegistry",
691
+ "name": "_newAnchorStateRegistry",
440
692
  "type": "address"
441
693
  }
442
694
  ],
443
- "stateMutability": "view",
695
+ "name": "migrateToSharedDisputeGame",
696
+ "outputs": [],
697
+ "stateMutability": "nonpayable",
444
698
  "type": "function"
445
699
  },
446
700
  {
@@ -462,6 +716,25 @@ export const OptimismPortal_jsonAbi = [
462
716
  "stateMutability": "pure",
463
717
  "type": "function"
464
718
  },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "internalType": "bytes32",
723
+ "name": "_withdrawalHash",
724
+ "type": "bytes32"
725
+ }
726
+ ],
727
+ "name": "numProofSubmitters",
728
+ "outputs": [
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "",
732
+ "type": "uint256"
733
+ }
734
+ ],
735
+ "stateMutability": "view",
736
+ "type": "function"
737
+ },
465
738
  {
466
739
  "inputs": [],
467
740
  "name": "params",
@@ -491,13 +764,50 @@ export const OptimismPortal_jsonAbi = [
491
764
  "outputs": [
492
765
  {
493
766
  "internalType": "bool",
494
- "name": "paused_",
767
+ "name": "",
495
768
  "type": "bool"
496
769
  }
497
770
  ],
498
771
  "stateMutability": "view",
499
772
  "type": "function"
500
773
  },
774
+ {
775
+ "inputs": [],
776
+ "name": "proofMaturityDelaySeconds",
777
+ "outputs": [
778
+ {
779
+ "internalType": "uint256",
780
+ "name": "",
781
+ "type": "uint256"
782
+ }
783
+ ],
784
+ "stateMutability": "view",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [
789
+ {
790
+ "internalType": "bytes32",
791
+ "name": "",
792
+ "type": "bytes32"
793
+ },
794
+ {
795
+ "internalType": "uint256",
796
+ "name": "",
797
+ "type": "uint256"
798
+ }
799
+ ],
800
+ "name": "proofSubmitters",
801
+ "outputs": [
802
+ {
803
+ "internalType": "address",
804
+ "name": "",
805
+ "type": "address"
806
+ }
807
+ ],
808
+ "stateMutability": "view",
809
+ "type": "function"
810
+ },
501
811
  {
502
812
  "inputs": [
503
813
  {
@@ -539,7 +849,7 @@ export const OptimismPortal_jsonAbi = [
539
849
  },
540
850
  {
541
851
  "internalType": "uint256",
542
- "name": "_l2OutputIndex",
852
+ "name": "_disputeGameIndex",
543
853
  "type": "uint256"
544
854
  },
545
855
  {
@@ -586,55 +896,79 @@ export const OptimismPortal_jsonAbi = [
586
896
  "internalType": "bytes32",
587
897
  "name": "",
588
898
  "type": "bytes32"
899
+ },
900
+ {
901
+ "internalType": "address",
902
+ "name": "",
903
+ "type": "address"
589
904
  }
590
905
  ],
591
906
  "name": "provenWithdrawals",
592
907
  "outputs": [
593
908
  {
594
- "internalType": "bytes32",
595
- "name": "outputRoot",
596
- "type": "bytes32"
909
+ "internalType": "contract IDisputeGame",
910
+ "name": "disputeGameProxy",
911
+ "type": "address"
597
912
  },
598
913
  {
599
- "internalType": "uint128",
914
+ "internalType": "uint64",
600
915
  "name": "timestamp",
601
- "type": "uint128"
602
- },
916
+ "type": "uint64"
917
+ }
918
+ ],
919
+ "stateMutability": "view",
920
+ "type": "function"
921
+ },
922
+ {
923
+ "inputs": [],
924
+ "name": "proxyAdmin",
925
+ "outputs": [
603
926
  {
604
- "internalType": "uint128",
605
- "name": "l2OutputIndex",
606
- "type": "uint128"
927
+ "internalType": "contract IProxyAdmin",
928
+ "name": "",
929
+ "type": "address"
607
930
  }
608
931
  ],
609
932
  "stateMutability": "view",
610
933
  "type": "function"
611
934
  },
612
935
  {
613
- "inputs": [
936
+ "inputs": [],
937
+ "name": "proxyAdminOwner",
938
+ "outputs": [
614
939
  {
615
940
  "internalType": "address",
616
- "name": "_token",
941
+ "name": "",
617
942
  "type": "address"
618
- },
619
- {
620
- "internalType": "uint8",
621
- "name": "_decimals",
622
- "type": "uint8"
623
- },
943
+ }
944
+ ],
945
+ "stateMutability": "view",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "inputs": [],
950
+ "name": "respectedGameType",
951
+ "outputs": [
624
952
  {
625
- "internalType": "bytes32",
626
- "name": "_name",
627
- "type": "bytes32"
628
- },
953
+ "internalType": "GameType",
954
+ "name": "",
955
+ "type": "uint32"
956
+ }
957
+ ],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [],
963
+ "name": "respectedGameTypeUpdatedAt",
964
+ "outputs": [
629
965
  {
630
- "internalType": "bytes32",
631
- "name": "_symbol",
632
- "type": "bytes32"
966
+ "internalType": "uint64",
967
+ "name": "",
968
+ "type": "uint64"
633
969
  }
634
970
  ],
635
- "name": "setGasPayingToken",
636
- "outputs": [],
637
- "stateMutability": "nonpayable",
971
+ "stateMutability": "view",
638
972
  "type": "function"
639
973
  },
640
974
  {
@@ -642,7 +976,7 @@ export const OptimismPortal_jsonAbi = [
642
976
  "name": "superchainConfig",
643
977
  "outputs": [
644
978
  {
645
- "internalType": "contract SuperchainConfig",
979
+ "internalType": "contract ISuperchainConfig",
646
980
  "name": "",
647
981
  "type": "address"
648
982
  }
@@ -655,7 +989,7 @@ export const OptimismPortal_jsonAbi = [
655
989
  "name": "systemConfig",
656
990
  "outputs": [
657
991
  {
658
- "internalType": "contract SystemConfig",
992
+ "internalType": "contract ISystemConfig",
659
993
  "name": "",
660
994
  "type": "address"
661
995
  }
@@ -683,19 +1017,19 @@ export const OptimismPortal_jsonAbi = [
683
1017
  ] as const satisfies Abi;
684
1018
 
685
1019
  /**
686
- * Type-safe ABI for OptimismPortal_json
1020
+ * Type-safe ABI for OptimismPortal2_json
687
1021
  */
688
- export type OptimismPortal_jsonAbi = typeof OptimismPortal_jsonAbi;
1022
+ export type OptimismPortal2_jsonAbi = typeof OptimismPortal2_jsonAbi;
689
1023
 
690
1024
  /**
691
- * Contract instance type for OptimismPortal_json
1025
+ * Contract instance type for OptimismPortal2_json
692
1026
  */
693
1027
  // Use any for contract type to avoid complex viem type issues
694
1028
  // The runtime behavior is type-safe through viem's ABI typing
695
- export type OptimismPortal_jsonContract = any;
1029
+ export type OptimismPortal2_jsonContract = any;
696
1030
 
697
1031
  /**
698
- * OptimismPortal_json Contract Class
1032
+ * OptimismPortal2_json Contract Class
699
1033
  *
700
1034
  * Provides a class-based API similar to TypeChain for interacting with the contract.
701
1035
  *
@@ -703,12 +1037,12 @@ export type OptimismPortal_jsonContract = any;
703
1037
  * ```typescript
704
1038
  * import { createPublicClient, createWalletClient, http } from 'viem';
705
1039
  * import { mainnet } from 'viem/chains';
706
- * import { OptimismPortal_json } from 'OptimismPortal_json';
1040
+ * import { OptimismPortal2_json } from 'OptimismPortal2_json';
707
1041
  *
708
1042
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
709
1043
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
710
1044
  *
711
- * const contract = new OptimismPortal_json('0x...', { publicClient, walletClient });
1045
+ * const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
712
1046
  *
713
1047
  * // Read functions
714
1048
  * const result = await contract.balanceOf('0x...');
@@ -726,8 +1060,8 @@ export type OptimismPortal_jsonContract = any;
726
1060
  * });
727
1061
  * ```
728
1062
  */
729
- export class OptimismPortal_json {
730
- private contract: OptimismPortal_jsonContract;
1063
+ export class OptimismPortal2_json {
1064
+ private contract: OptimismPortal2_jsonContract;
731
1065
  private contractAddress: Address;
732
1066
  private publicClient: PublicClient;
733
1067
 
@@ -742,7 +1076,7 @@ export class OptimismPortal_json {
742
1076
  this.publicClient = clients.publicClient;
743
1077
  this.contract = getContract({
744
1078
  address,
745
- abi: OptimismPortal_jsonAbi,
1079
+ abi: OptimismPortal2_jsonAbi,
746
1080
  client: {
747
1081
  public: clients.publicClient,
748
1082
  wallet: clients.walletClient,
@@ -760,16 +1094,56 @@ export class OptimismPortal_json {
760
1094
  /**
761
1095
  * Get the underlying viem contract instance
762
1096
  */
763
- getContract(): OptimismPortal_jsonContract {
1097
+ getContract(): OptimismPortal2_jsonContract {
764
1098
  return this.contract;
765
1099
  }
766
1100
 
767
1101
  /**
768
- * balance
1102
+ * anchorStateRegistry
1103
+ * view
1104
+ */
1105
+ async anchorStateRegistry(): Promise<`0x${string}`> {
1106
+ return this.contract.read.anchorStateRegistry() as Promise<`0x${string}`>;
1107
+ }
1108
+
1109
+ /**
1110
+ * checkWithdrawal
1111
+ * view
1112
+ */
1113
+ async checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void> {
1114
+ return this.contract.read.checkWithdrawal([_withdrawalHash, _proofSubmitter] as const) as Promise<void>;
1115
+ }
1116
+
1117
+ /**
1118
+ * disputeGameBlacklist
1119
+ * view
1120
+ */
1121
+ async disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean> {
1122
+ return this.contract.read.disputeGameBlacklist([_disputeGame] as const) as Promise<boolean>;
1123
+ }
1124
+
1125
+ /**
1126
+ * disputeGameFactory
1127
+ * view
1128
+ */
1129
+ async disputeGameFactory(): Promise<`0x${string}`> {
1130
+ return this.contract.read.disputeGameFactory() as Promise<`0x${string}`>;
1131
+ }
1132
+
1133
+ /**
1134
+ * disputeGameFinalityDelaySeconds
1135
+ * view
1136
+ */
1137
+ async disputeGameFinalityDelaySeconds(): Promise<bigint> {
1138
+ return this.contract.read.disputeGameFinalityDelaySeconds() as Promise<bigint>;
1139
+ }
1140
+
1141
+ /**
1142
+ * ethLockbox
769
1143
  * view
770
1144
  */
771
- async balance(): Promise<bigint> {
772
- return this.contract.read.balance() as Promise<bigint>;
1145
+ async ethLockbox(): Promise<`0x${string}`> {
1146
+ return this.contract.read.ethLockbox() as Promise<`0x${string}`>;
773
1147
  }
774
1148
 
775
1149
  /**
@@ -789,19 +1163,11 @@ export class OptimismPortal_json {
789
1163
  }
790
1164
 
791
1165
  /**
792
- * isOutputFinalized
793
- * view
794
- */
795
- async isOutputFinalized(_l2OutputIndex: bigint): Promise<boolean> {
796
- return this.contract.read.isOutputFinalized([_l2OutputIndex] as const) as Promise<boolean>;
797
- }
798
-
799
- /**
800
- * l2Oracle
1166
+ * initVersion
801
1167
  * view
802
1168
  */
803
- async l2Oracle(): Promise<`0x${string}`> {
804
- return this.contract.read.l2Oracle() as Promise<`0x${string}`>;
1169
+ async initVersion(): Promise<bigint> {
1170
+ return this.contract.read.initVersion() as Promise<bigint>;
805
1171
  }
806
1172
 
807
1173
  /**
@@ -820,6 +1186,14 @@ export class OptimismPortal_json {
820
1186
  return this.contract.read.minimumGasLimit([_byteCount] as const) as Promise<bigint>;
821
1187
  }
822
1188
 
1189
+ /**
1190
+ * numProofSubmitters
1191
+ * view
1192
+ */
1193
+ async numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint> {
1194
+ return this.contract.read.numProofSubmitters([_withdrawalHash] as const) as Promise<bigint>;
1195
+ }
1196
+
823
1197
  /**
824
1198
  * params
825
1199
  * view
@@ -836,12 +1210,60 @@ export class OptimismPortal_json {
836
1210
  return this.contract.read.paused() as Promise<boolean>;
837
1211
  }
838
1212
 
1213
+ /**
1214
+ * proofMaturityDelaySeconds
1215
+ * view
1216
+ */
1217
+ async proofMaturityDelaySeconds(): Promise<bigint> {
1218
+ return this.contract.read.proofMaturityDelaySeconds() as Promise<bigint>;
1219
+ }
1220
+
1221
+ /**
1222
+ * proofSubmitters
1223
+ * view
1224
+ */
1225
+ async proofSubmitters(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`> {
1226
+ return this.contract.read.proofSubmitters([arg0, arg1] as const) as Promise<`0x${string}`>;
1227
+ }
1228
+
839
1229
  /**
840
1230
  * provenWithdrawals
841
1231
  * view
842
1232
  */
843
- async provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint, bigint]> {
844
- return this.contract.read.provenWithdrawals([arg0] as const) as Promise<[`0x${string}`, bigint, bigint]>;
1233
+ async provenWithdrawals(arg0: `0x${string}`, arg1: `0x${string}`): Promise<[`0x${string}`, bigint]> {
1234
+ return this.contract.read.provenWithdrawals([arg0, arg1] as const) as Promise<[`0x${string}`, bigint]>;
1235
+ }
1236
+
1237
+ /**
1238
+ * proxyAdmin
1239
+ * view
1240
+ */
1241
+ async proxyAdmin(): Promise<`0x${string}`> {
1242
+ return this.contract.read.proxyAdmin() as Promise<`0x${string}`>;
1243
+ }
1244
+
1245
+ /**
1246
+ * proxyAdminOwner
1247
+ * view
1248
+ */
1249
+ async proxyAdminOwner(): Promise<`0x${string}`> {
1250
+ return this.contract.read.proxyAdminOwner() as Promise<`0x${string}`>;
1251
+ }
1252
+
1253
+ /**
1254
+ * respectedGameType
1255
+ * view
1256
+ */
1257
+ async respectedGameType(): Promise<bigint> {
1258
+ return this.contract.read.respectedGameType() as Promise<bigint>;
1259
+ }
1260
+
1261
+ /**
1262
+ * respectedGameTypeUpdatedAt
1263
+ * view
1264
+ */
1265
+ async respectedGameTypeUpdatedAt(): Promise<bigint> {
1266
+ return this.contract.read.respectedGameTypeUpdatedAt() as Promise<bigint>;
845
1267
  }
846
1268
 
847
1269
  /**
@@ -869,11 +1291,11 @@ export class OptimismPortal_json {
869
1291
  }
870
1292
 
871
1293
  /**
872
- * depositERC20Transaction
873
- * nonpayable
1294
+ * depositTransaction
1295
+ * payable
874
1296
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
875
1297
  */
876
- async depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1298
+ async depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
877
1299
  accessList?: import('viem').AccessList;
878
1300
  authorizationList?: import('viem').AuthorizationList;
879
1301
  chain?: import('viem').Chain | null;
@@ -888,15 +1310,15 @@ export class OptimismPortal_json {
888
1310
  if (!this.contract.write) {
889
1311
  throw new Error('Wallet client is required for write operations');
890
1312
  }
891
- return this.contract.write.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<`0x${string}`>;
1313
+ return this.contract.write.depositTransaction([_to, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<`0x${string}`>;
892
1314
  }
893
1315
 
894
1316
  /**
895
- * depositTransaction
1317
+ * donateETH
896
1318
  * payable
897
1319
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
898
1320
  */
899
- async depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1321
+ async donateETH(options?: {
900
1322
  accessList?: import('viem').AccessList;
901
1323
  authorizationList?: import('viem').AuthorizationList;
902
1324
  chain?: import('viem').Chain | null;
@@ -911,15 +1333,15 @@ export class OptimismPortal_json {
911
1333
  if (!this.contract.write) {
912
1334
  throw new Error('Wallet client is required for write operations');
913
1335
  }
914
- return this.contract.write.depositTransaction([_to, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<`0x${string}`>;
1336
+ return this.contract.write.donateETH(options) as Promise<`0x${string}`>;
915
1337
  }
916
1338
 
917
1339
  /**
918
- * donateETH
919
- * payable
1340
+ * finalizeWithdrawalTransaction
1341
+ * nonpayable
920
1342
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
921
1343
  */
922
- async donateETH(options?: {
1344
+ async finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
923
1345
  accessList?: import('viem').AccessList;
924
1346
  authorizationList?: import('viem').AuthorizationList;
925
1347
  chain?: import('viem').Chain | null;
@@ -934,15 +1356,15 @@ export class OptimismPortal_json {
934
1356
  if (!this.contract.write) {
935
1357
  throw new Error('Wallet client is required for write operations');
936
1358
  }
937
- return this.contract.write.donateETH(options) as Promise<`0x${string}`>;
1359
+ return this.contract.write.finalizeWithdrawalTransaction([_tx] as const, options) as Promise<`0x${string}`>;
938
1360
  }
939
1361
 
940
1362
  /**
941
- * finalizeWithdrawalTransaction
1363
+ * finalizeWithdrawalTransactionExternalProof
942
1364
  * nonpayable
943
1365
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
944
1366
  */
945
- async finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
1367
+ async finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
946
1368
  accessList?: import('viem').AccessList;
947
1369
  authorizationList?: import('viem').AuthorizationList;
948
1370
  chain?: import('viem').Chain | null;
@@ -957,7 +1379,7 @@ export class OptimismPortal_json {
957
1379
  if (!this.contract.write) {
958
1380
  throw new Error('Wallet client is required for write operations');
959
1381
  }
960
- return this.contract.write.finalizeWithdrawalTransaction([_tx] as const, options) as Promise<`0x${string}`>;
1382
+ return this.contract.write.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter] as const, options) as Promise<`0x${string}`>;
961
1383
  }
962
1384
 
963
1385
  /**
@@ -965,7 +1387,7 @@ export class OptimismPortal_json {
965
1387
  * nonpayable
966
1388
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
1389
  */
968
- async initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1390
+ async initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
969
1391
  accessList?: import('viem').AccessList;
970
1392
  authorizationList?: import('viem').AuthorizationList;
971
1393
  chain?: import('viem').Chain | null;
@@ -980,15 +1402,38 @@ export class OptimismPortal_json {
980
1402
  if (!this.contract.write) {
981
1403
  throw new Error('Wallet client is required for write operations');
982
1404
  }
983
- return this.contract.write.initialize([_l2Oracle, _systemConfig, _superchainConfig] as const, options) as Promise<`0x${string}`>;
1405
+ return this.contract.write.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox] as const, options) as Promise<`0x${string}`>;
984
1406
  }
985
1407
 
986
1408
  /**
987
- * proveWithdrawalTransaction
1409
+ * migrateLiquidity
1410
+ * nonpayable
1411
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1412
+ */
1413
+ async migrateLiquidity(options?: {
1414
+ accessList?: import('viem').AccessList;
1415
+ authorizationList?: import('viem').AuthorizationList;
1416
+ chain?: import('viem').Chain | null;
1417
+ dataSuffix?: `0x${string}`;
1418
+ gas?: bigint;
1419
+ gasPrice?: bigint;
1420
+ maxFeePerGas?: bigint;
1421
+ maxPriorityFeePerGas?: bigint;
1422
+ nonce?: number;
1423
+ value?: bigint;
1424
+ }): Promise<`0x${string}`> {
1425
+ if (!this.contract.write) {
1426
+ throw new Error('Wallet client is required for write operations');
1427
+ }
1428
+ return this.contract.write.migrateLiquidity(options) as Promise<`0x${string}`>;
1429
+ }
1430
+
1431
+ /**
1432
+ * migrateToSharedDisputeGame
988
1433
  * nonpayable
989
1434
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
990
1435
  */
991
- async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1436
+ async migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
992
1437
  accessList?: import('viem').AccessList;
993
1438
  authorizationList?: import('viem').AuthorizationList;
994
1439
  chain?: import('viem').Chain | null;
@@ -1003,15 +1448,15 @@ export class OptimismPortal_json {
1003
1448
  if (!this.contract.write) {
1004
1449
  throw new Error('Wallet client is required for write operations');
1005
1450
  }
1006
- return this.contract.write.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<`0x${string}`>;
1451
+ return this.contract.write.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry] as const, options) as Promise<`0x${string}`>;
1007
1452
  }
1008
1453
 
1009
1454
  /**
1010
- * setGasPayingToken
1455
+ * proveWithdrawalTransaction
1011
1456
  * nonpayable
1012
1457
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1013
1458
  */
1014
- async setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1459
+ async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1015
1460
  accessList?: import('viem').AccessList;
1016
1461
  authorizationList?: import('viem').AuthorizationList;
1017
1462
  chain?: import('viem').Chain | null;
@@ -1026,7 +1471,7 @@ export class OptimismPortal_json {
1026
1471
  if (!this.contract.write) {
1027
1472
  throw new Error('Wallet client is required for write operations');
1028
1473
  }
1029
- return this.contract.write.setGasPayingToken([_token, _decimals, _name, _symbol] as const, options) as Promise<`0x${string}`>;
1474
+ return this.contract.write.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<`0x${string}`>;
1030
1475
  }
1031
1476
 
1032
1477
 
@@ -1046,11 +1491,11 @@ export class OptimismPortal_json {
1046
1491
  }
1047
1492
  return {
1048
1493
  /**
1049
- * Simulate depositERC20Transaction
1494
+ * Simulate depositTransaction
1050
1495
  * Returns gas estimate and result without sending transaction
1051
1496
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1052
1497
  */
1053
- async depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1498
+ async depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1054
1499
  accessList?: import('viem').AccessList;
1055
1500
  authorizationList?: import('viem').AuthorizationList;
1056
1501
  chain?: import('viem').Chain | null;
@@ -1062,14 +1507,14 @@ export class OptimismPortal_json {
1062
1507
  nonce?: number;
1063
1508
  value?: bigint;
1064
1509
  }): Promise<void> {
1065
- return contract.simulate.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<void>;
1510
+ return contract.simulate.depositTransaction([_to, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<void>;
1066
1511
  },
1067
1512
  /**
1068
- * Simulate depositTransaction
1513
+ * Simulate donateETH
1069
1514
  * Returns gas estimate and result without sending transaction
1070
1515
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1071
1516
  */
1072
- async depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1517
+ async donateETH(options?: {
1073
1518
  accessList?: import('viem').AccessList;
1074
1519
  authorizationList?: import('viem').AuthorizationList;
1075
1520
  chain?: import('viem').Chain | null;
@@ -1081,14 +1526,14 @@ export class OptimismPortal_json {
1081
1526
  nonce?: number;
1082
1527
  value?: bigint;
1083
1528
  }): Promise<void> {
1084
- return contract.simulate.depositTransaction([_to, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<void>;
1529
+ return contract.simulate.donateETH(options) as Promise<void>;
1085
1530
  },
1086
1531
  /**
1087
- * Simulate donateETH
1532
+ * Simulate finalizeWithdrawalTransaction
1088
1533
  * Returns gas estimate and result without sending transaction
1089
1534
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1090
1535
  */
1091
- async donateETH(options?: {
1536
+ async finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
1092
1537
  accessList?: import('viem').AccessList;
1093
1538
  authorizationList?: import('viem').AuthorizationList;
1094
1539
  chain?: import('viem').Chain | null;
@@ -1100,14 +1545,14 @@ export class OptimismPortal_json {
1100
1545
  nonce?: number;
1101
1546
  value?: bigint;
1102
1547
  }): Promise<void> {
1103
- return contract.simulate.donateETH(options) as Promise<void>;
1548
+ return contract.simulate.finalizeWithdrawalTransaction([_tx] as const, options) as Promise<void>;
1104
1549
  },
1105
1550
  /**
1106
- * Simulate finalizeWithdrawalTransaction
1551
+ * Simulate finalizeWithdrawalTransactionExternalProof
1107
1552
  * Returns gas estimate and result without sending transaction
1108
1553
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1109
1554
  */
1110
- async finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
1555
+ async finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
1111
1556
  accessList?: import('viem').AccessList;
1112
1557
  authorizationList?: import('viem').AuthorizationList;
1113
1558
  chain?: import('viem').Chain | null;
@@ -1119,14 +1564,14 @@ export class OptimismPortal_json {
1119
1564
  nonce?: number;
1120
1565
  value?: bigint;
1121
1566
  }): Promise<void> {
1122
- return contract.simulate.finalizeWithdrawalTransaction([_tx] as const, options) as Promise<void>;
1567
+ return contract.simulate.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter] as const, options) as Promise<void>;
1123
1568
  },
1124
1569
  /**
1125
1570
  * Simulate initialize
1126
1571
  * Returns gas estimate and result without sending transaction
1127
1572
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1128
1573
  */
1129
- async initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1574
+ async initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
1130
1575
  accessList?: import('viem').AccessList;
1131
1576
  authorizationList?: import('viem').AuthorizationList;
1132
1577
  chain?: import('viem').Chain | null;
@@ -1138,14 +1583,33 @@ export class OptimismPortal_json {
1138
1583
  nonce?: number;
1139
1584
  value?: bigint;
1140
1585
  }): Promise<void> {
1141
- return contract.simulate.initialize([_l2Oracle, _systemConfig, _superchainConfig] as const, options) as Promise<void>;
1586
+ return contract.simulate.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox] as const, options) as Promise<void>;
1142
1587
  },
1143
1588
  /**
1144
- * Simulate proveWithdrawalTransaction
1589
+ * Simulate migrateLiquidity
1590
+ * Returns gas estimate and result without sending transaction
1591
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1592
+ */
1593
+ async migrateLiquidity(options?: {
1594
+ accessList?: import('viem').AccessList;
1595
+ authorizationList?: import('viem').AuthorizationList;
1596
+ chain?: import('viem').Chain | null;
1597
+ dataSuffix?: `0x${string}`;
1598
+ gas?: bigint;
1599
+ gasPrice?: bigint;
1600
+ maxFeePerGas?: bigint;
1601
+ maxPriorityFeePerGas?: bigint;
1602
+ nonce?: number;
1603
+ value?: bigint;
1604
+ }): Promise<void> {
1605
+ return contract.simulate.migrateLiquidity(options) as Promise<void>;
1606
+ },
1607
+ /**
1608
+ * Simulate migrateToSharedDisputeGame
1145
1609
  * Returns gas estimate and result without sending transaction
1146
1610
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1147
1611
  */
1148
- async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1612
+ async migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
1149
1613
  accessList?: import('viem').AccessList;
1150
1614
  authorizationList?: import('viem').AuthorizationList;
1151
1615
  chain?: import('viem').Chain | null;
@@ -1157,14 +1621,14 @@ export class OptimismPortal_json {
1157
1621
  nonce?: number;
1158
1622
  value?: bigint;
1159
1623
  }): Promise<void> {
1160
- return contract.simulate.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<void>;
1624
+ return contract.simulate.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry] as const, options) as Promise<void>;
1161
1625
  },
1162
1626
  /**
1163
- * Simulate setGasPayingToken
1627
+ * Simulate proveWithdrawalTransaction
1164
1628
  * Returns gas estimate and result without sending transaction
1165
1629
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1166
1630
  */
1167
- async setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1631
+ async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1168
1632
  accessList?: import('viem').AccessList;
1169
1633
  authorizationList?: import('viem').AuthorizationList;
1170
1634
  chain?: import('viem').Chain | null;
@@ -1176,7 +1640,7 @@ export class OptimismPortal_json {
1176
1640
  nonce?: number;
1177
1641
  value?: bigint;
1178
1642
  }): Promise<void> {
1179
- return contract.simulate.setGasPayingToken([_token, _decimals, _name, _symbol] as const, options) as Promise<void>;
1643
+ return contract.simulate.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<void>;
1180
1644
  }
1181
1645
  };
1182
1646
  }
@@ -1195,6 +1659,25 @@ export class OptimismPortal_json {
1195
1659
  */
1196
1660
  get watch() {
1197
1661
  return {
1662
+ /**
1663
+ * Watch ETHMigrated events
1664
+ * @param callback Function to call when event is emitted
1665
+ * @param filter Optional filter for indexed parameters
1666
+ * @returns Unwatch function to stop listening
1667
+ */
1668
+ ETHMigrated: (callback: (event: { lockbox: `0x${string}`; balance: bigint }) => void, filter?: { lockbox: `0x${string}` }) => {
1669
+ return this.publicClient.watchContractEvent({
1670
+ address: this.contractAddress,
1671
+ abi: OptimismPortal2_jsonAbi,
1672
+ eventName: 'ETHMigrated',
1673
+ args: filter,
1674
+ onLogs: (logs: any[]) => {
1675
+ logs.forEach((log: any) => {
1676
+ callback(log.args as any);
1677
+ });
1678
+ },
1679
+ }) as () => void;
1680
+ },
1198
1681
  /**
1199
1682
  * Watch Initialized events
1200
1683
  * @param callback Function to call when event is emitted
@@ -1204,7 +1687,7 @@ export class OptimismPortal_json {
1204
1687
  Initialized: (callback: (event: { version: bigint }) => void) => {
1205
1688
  return this.publicClient.watchContractEvent({
1206
1689
  address: this.contractAddress,
1207
- abi: OptimismPortal_jsonAbi,
1690
+ abi: OptimismPortal2_jsonAbi,
1208
1691
  eventName: 'Initialized',
1209
1692
 
1210
1693
  onLogs: (logs: any[]) => {
@@ -1214,6 +1697,25 @@ export class OptimismPortal_json {
1214
1697
  },
1215
1698
  }) as () => void;
1216
1699
  },
1700
+ /**
1701
+ * Watch PortalMigrated events
1702
+ * @param callback Function to call when event is emitted
1703
+ * @param filter Optional filter for indexed parameters
1704
+ * @returns Unwatch function to stop listening
1705
+ */
1706
+ PortalMigrated: (callback: (event: { oldLockbox: `0x${string}`; newLockbox: `0x${string}`; oldAnchorStateRegistry: `0x${string}`; newAnchorStateRegistry: `0x${string}` }) => void) => {
1707
+ return this.publicClient.watchContractEvent({
1708
+ address: this.contractAddress,
1709
+ abi: OptimismPortal2_jsonAbi,
1710
+ eventName: 'PortalMigrated',
1711
+
1712
+ onLogs: (logs: any[]) => {
1713
+ logs.forEach((log: any) => {
1714
+ callback(log.args as any);
1715
+ });
1716
+ },
1717
+ }) as () => void;
1718
+ },
1217
1719
  /**
1218
1720
  * Watch TransactionDeposited events
1219
1721
  * @param callback Function to call when event is emitted
@@ -1223,7 +1725,7 @@ export class OptimismPortal_json {
1223
1725
  TransactionDeposited: (callback: (event: { from: `0x${string}`; to: `0x${string}`; version: bigint; opaqueData: `0x${string}` }) => void, filter?: { from: `0x${string}`; to: `0x${string}`; version: bigint }) => {
1224
1726
  return this.publicClient.watchContractEvent({
1225
1727
  address: this.contractAddress,
1226
- abi: OptimismPortal_jsonAbi,
1728
+ abi: OptimismPortal2_jsonAbi,
1227
1729
  eventName: 'TransactionDeposited',
1228
1730
  args: filter,
1229
1731
  onLogs: (logs: any[]) => {
@@ -1242,7 +1744,7 @@ export class OptimismPortal_json {
1242
1744
  WithdrawalFinalized: (callback: (event: { withdrawalHash: `0x${string}`; success: boolean }) => void, filter?: { withdrawalHash: `0x${string}` }) => {
1243
1745
  return this.publicClient.watchContractEvent({
1244
1746
  address: this.contractAddress,
1245
- abi: OptimismPortal_jsonAbi,
1747
+ abi: OptimismPortal2_jsonAbi,
1246
1748
  eventName: 'WithdrawalFinalized',
1247
1749
  args: filter,
1248
1750
  onLogs: (logs: any[]) => {
@@ -1261,7 +1763,7 @@ export class OptimismPortal_json {
1261
1763
  WithdrawalProven: (callback: (event: { withdrawalHash: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => void, filter?: { withdrawalHash: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => {
1262
1764
  return this.publicClient.watchContractEvent({
1263
1765
  address: this.contractAddress,
1264
- abi: OptimismPortal_jsonAbi,
1766
+ abi: OptimismPortal2_jsonAbi,
1265
1767
  eventName: 'WithdrawalProven',
1266
1768
  args: filter,
1267
1769
  onLogs: (logs: any[]) => {
@@ -1270,6 +1772,25 @@ export class OptimismPortal_json {
1270
1772
  });
1271
1773
  },
1272
1774
  }) as () => void;
1775
+ },
1776
+ /**
1777
+ * Watch WithdrawalProvenExtension1 events
1778
+ * @param callback Function to call when event is emitted
1779
+ * @param filter Optional filter for indexed parameters
1780
+ * @returns Unwatch function to stop listening
1781
+ */
1782
+ WithdrawalProvenExtension1: (callback: (event: { withdrawalHash: `0x${string}`; proofSubmitter: `0x${string}` }) => void, filter?: { withdrawalHash: `0x${string}`; proofSubmitter: `0x${string}` }) => {
1783
+ return this.publicClient.watchContractEvent({
1784
+ address: this.contractAddress,
1785
+ abi: OptimismPortal2_jsonAbi,
1786
+ eventName: 'WithdrawalProvenExtension1',
1787
+ args: filter,
1788
+ onLogs: (logs: any[]) => {
1789
+ logs.forEach((log: any) => {
1790
+ callback(log.args as any);
1791
+ });
1792
+ },
1793
+ }) as () => void;
1273
1794
  }
1274
1795
  };
1275
1796
  }