@gitmyabi/optimismportal 1.0.3 → 1.0.5

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