@gitmyabi/optimismportal 1.0.4 → 1.0.6

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.
@@ -20,113 +20,57 @@ export type Types_OutputRootProof = {
20
20
  latestBlockhash: `0x${string}`;
21
21
  };
22
22
  /**
23
- * OptimismPortal2_json ABI
23
+ * OptimismPortal_json ABI
24
24
  *
25
25
  * This ABI is typed using viem's type system for full type safety.
26
26
  */
27
- export declare const OptimismPortal2_jsonAbi: readonly [{
28
- readonly inputs: readonly [{
29
- readonly internalType: "uint256";
30
- readonly name: "_proofMaturityDelaySeconds";
31
- readonly type: "uint256";
32
- }];
27
+ export declare const OptimismPortal_jsonAbi: readonly [{
28
+ readonly inputs: readonly [];
33
29
  readonly stateMutability: "nonpayable";
34
30
  readonly type: "constructor";
35
31
  }, {
36
32
  readonly inputs: readonly [];
37
- readonly name: "ContentLengthMismatch";
38
- readonly type: "error";
39
- }, {
40
- readonly inputs: readonly [];
41
- readonly name: "EmptyItem";
42
- readonly type: "error";
43
- }, {
44
- readonly inputs: readonly [];
45
- readonly name: "InvalidDataRemainder";
46
- readonly type: "error";
47
- }, {
48
- readonly inputs: readonly [];
49
- readonly name: "InvalidHeader";
50
- readonly type: "error";
51
- }, {
52
- readonly inputs: readonly [];
53
- readonly name: "OptimismPortal_AlreadyFinalized";
54
- readonly type: "error";
55
- }, {
56
- readonly inputs: readonly [];
57
- readonly name: "OptimismPortal_BadTarget";
58
- readonly type: "error";
59
- }, {
60
- readonly inputs: readonly [];
61
- readonly name: "OptimismPortal_CallPaused";
62
- readonly type: "error";
63
- }, {
64
- readonly inputs: readonly [];
65
- readonly name: "OptimismPortal_CalldataTooLarge";
66
- readonly type: "error";
67
- }, {
68
- readonly inputs: readonly [];
69
- readonly name: "OptimismPortal_GasEstimation";
33
+ readonly name: "BadTarget";
70
34
  readonly type: "error";
71
35
  }, {
72
36
  readonly inputs: readonly [];
73
- readonly name: "OptimismPortal_GasLimitTooLow";
37
+ readonly name: "CallPaused";
74
38
  readonly type: "error";
75
39
  }, {
76
40
  readonly inputs: readonly [];
77
- readonly name: "OptimismPortal_ImproperDisputeGame";
78
- readonly type: "error";
79
- }, {
80
- readonly inputs: readonly [];
81
- readonly name: "OptimismPortal_InvalidDisputeGame";
82
- readonly type: "error";
83
- }, {
84
- readonly inputs: readonly [];
85
- readonly name: "OptimismPortal_InvalidInteropState";
86
- readonly type: "error";
87
- }, {
88
- readonly inputs: readonly [];
89
- readonly name: "OptimismPortal_InvalidLockboxState";
90
- readonly type: "error";
91
- }, {
92
- readonly inputs: readonly [];
93
- readonly name: "OptimismPortal_InvalidMerkleProof";
94
- readonly type: "error";
95
- }, {
96
- readonly inputs: readonly [];
97
- readonly name: "OptimismPortal_InvalidOutputRootProof";
41
+ readonly name: "ContentLengthMismatch";
98
42
  readonly type: "error";
99
43
  }, {
100
44
  readonly inputs: readonly [];
101
- readonly name: "OptimismPortal_InvalidProofTimestamp";
45
+ readonly name: "EmptyItem";
102
46
  readonly type: "error";
103
47
  }, {
104
48
  readonly inputs: readonly [];
105
- readonly name: "OptimismPortal_InvalidRootClaim";
49
+ readonly name: "GasEstimation";
106
50
  readonly type: "error";
107
51
  }, {
108
52
  readonly inputs: readonly [];
109
- readonly name: "OptimismPortal_MigratingToSameRegistry";
53
+ readonly name: "InvalidDataRemainder";
110
54
  readonly type: "error";
111
55
  }, {
112
56
  readonly inputs: readonly [];
113
- readonly name: "OptimismPortal_NoReentrancy";
57
+ readonly name: "InvalidHeader";
114
58
  readonly type: "error";
115
59
  }, {
116
60
  readonly inputs: readonly [];
117
- readonly name: "OptimismPortal_NotAllowedOnCGTMode";
61
+ readonly name: "LargeCalldata";
118
62
  readonly type: "error";
119
63
  }, {
120
64
  readonly inputs: readonly [];
121
- readonly name: "OptimismPortal_NotUsingInterop";
65
+ readonly name: "NoValue";
122
66
  readonly type: "error";
123
67
  }, {
124
68
  readonly inputs: readonly [];
125
- readonly name: "OptimismPortal_ProofNotOldEnough";
69
+ readonly name: "NonReentrant";
126
70
  readonly type: "error";
127
71
  }, {
128
72
  readonly inputs: readonly [];
129
- readonly name: "OptimismPortal_Unproven";
73
+ readonly name: "OnlyCustomGasToken";
130
74
  readonly type: "error";
131
75
  }, {
132
76
  readonly inputs: readonly [];
@@ -134,31 +78,15 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
134
78
  readonly type: "error";
135
79
  }, {
136
80
  readonly inputs: readonly [];
137
- readonly name: "ProxyAdminOwnedBase_NotProxyAdmin";
138
- readonly type: "error";
139
- }, {
140
- readonly inputs: readonly [];
141
- readonly name: "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner";
142
- readonly type: "error";
143
- }, {
144
- readonly inputs: readonly [];
145
- readonly name: "ProxyAdminOwnedBase_NotProxyAdminOwner";
81
+ readonly name: "SmallGasLimit";
146
82
  readonly type: "error";
147
83
  }, {
148
84
  readonly inputs: readonly [];
149
- readonly name: "ProxyAdminOwnedBase_NotResolvedDelegateProxy";
85
+ readonly name: "TransferFailed";
150
86
  readonly type: "error";
151
87
  }, {
152
88
  readonly inputs: readonly [];
153
- readonly name: "ProxyAdminOwnedBase_NotSharedProxyAdminOwner";
154
- readonly type: "error";
155
- }, {
156
- readonly inputs: readonly [];
157
- readonly name: "ProxyAdminOwnedBase_ProxyAdminNotFound";
158
- readonly type: "error";
159
- }, {
160
- readonly inputs: readonly [];
161
- readonly name: "ReinitializableBase_ZeroInitVersion";
89
+ readonly name: "Unauthorized";
162
90
  readonly type: "error";
163
91
  }, {
164
92
  readonly inputs: readonly [];
@@ -168,21 +96,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
168
96
  readonly inputs: readonly [];
169
97
  readonly name: "UnexpectedString";
170
98
  readonly type: "error";
171
- }, {
172
- readonly anonymous: false;
173
- readonly inputs: readonly [{
174
- readonly indexed: true;
175
- readonly internalType: "address";
176
- readonly name: "lockbox";
177
- readonly type: "address";
178
- }, {
179
- readonly indexed: false;
180
- readonly internalType: "uint256";
181
- readonly name: "balance";
182
- readonly type: "uint256";
183
- }];
184
- readonly name: "ETHMigrated";
185
- readonly type: "event";
186
99
  }, {
187
100
  readonly anonymous: false;
188
101
  readonly inputs: readonly [{
@@ -193,31 +106,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
193
106
  }];
194
107
  readonly name: "Initialized";
195
108
  readonly type: "event";
196
- }, {
197
- readonly anonymous: false;
198
- readonly inputs: readonly [{
199
- readonly indexed: false;
200
- readonly internalType: "contract IETHLockbox";
201
- readonly name: "oldLockbox";
202
- readonly type: "address";
203
- }, {
204
- readonly indexed: false;
205
- readonly internalType: "contract IETHLockbox";
206
- readonly name: "newLockbox";
207
- readonly type: "address";
208
- }, {
209
- readonly indexed: false;
210
- readonly internalType: "contract IAnchorStateRegistry";
211
- readonly name: "oldAnchorStateRegistry";
212
- readonly type: "address";
213
- }, {
214
- readonly indexed: false;
215
- readonly internalType: "contract IAnchorStateRegistry";
216
- readonly name: "newAnchorStateRegistry";
217
- readonly type: "address";
218
- }];
219
- readonly name: "PortalMigrated";
220
- readonly type: "event";
221
109
  }, {
222
110
  readonly anonymous: false;
223
111
  readonly inputs: readonly [{
@@ -278,44 +166,45 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
278
166
  }];
279
167
  readonly name: "WithdrawalProven";
280
168
  readonly type: "event";
281
- }, {
282
- readonly anonymous: false;
283
- readonly inputs: readonly [{
284
- readonly indexed: true;
285
- readonly internalType: "bytes32";
286
- readonly name: "withdrawalHash";
287
- readonly type: "bytes32";
288
- }, {
289
- readonly indexed: true;
290
- readonly internalType: "address";
291
- readonly name: "proofSubmitter";
292
- readonly type: "address";
293
- }];
294
- readonly name: "WithdrawalProvenExtension1";
295
- readonly type: "event";
296
169
  }, {
297
170
  readonly inputs: readonly [];
298
- readonly name: "anchorStateRegistry";
171
+ readonly name: "balance";
299
172
  readonly outputs: readonly [{
300
- readonly internalType: "contract IAnchorStateRegistry";
173
+ readonly internalType: "uint256";
301
174
  readonly name: "";
302
- readonly type: "address";
175
+ readonly type: "uint256";
303
176
  }];
304
177
  readonly stateMutability: "view";
305
178
  readonly type: "function";
306
179
  }, {
307
180
  readonly inputs: readonly [{
308
- readonly internalType: "bytes32";
309
- readonly name: "_withdrawalHash";
310
- readonly type: "bytes32";
311
- }, {
312
181
  readonly internalType: "address";
313
- readonly name: "_proofSubmitter";
182
+ readonly name: "_to";
314
183
  readonly type: "address";
184
+ }, {
185
+ readonly internalType: "uint256";
186
+ readonly name: "_mint";
187
+ readonly type: "uint256";
188
+ }, {
189
+ readonly internalType: "uint256";
190
+ readonly name: "_value";
191
+ readonly type: "uint256";
192
+ }, {
193
+ readonly internalType: "uint64";
194
+ readonly name: "_gasLimit";
195
+ readonly type: "uint64";
196
+ }, {
197
+ readonly internalType: "bool";
198
+ readonly name: "_isCreation";
199
+ readonly type: "bool";
200
+ }, {
201
+ readonly internalType: "bytes";
202
+ readonly name: "_data";
203
+ readonly type: "bytes";
315
204
  }];
316
- readonly name: "checkWithdrawal";
205
+ readonly name: "depositERC20Transaction";
317
206
  readonly outputs: readonly [];
318
- readonly stateMutability: "view";
207
+ readonly stateMutability: "nonpayable";
319
208
  readonly type: "function";
320
209
  }, {
321
210
  readonly inputs: readonly [{
@@ -343,56 +232,12 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
343
232
  readonly outputs: readonly [];
344
233
  readonly stateMutability: "payable";
345
234
  readonly type: "function";
346
- }, {
347
- readonly inputs: readonly [{
348
- readonly internalType: "contract IDisputeGame";
349
- readonly name: "_disputeGame";
350
- readonly type: "address";
351
- }];
352
- readonly name: "disputeGameBlacklist";
353
- readonly outputs: readonly [{
354
- readonly internalType: "bool";
355
- readonly name: "";
356
- readonly type: "bool";
357
- }];
358
- readonly stateMutability: "view";
359
- readonly type: "function";
360
- }, {
361
- readonly inputs: readonly [];
362
- readonly name: "disputeGameFactory";
363
- readonly outputs: readonly [{
364
- readonly internalType: "contract IDisputeGameFactory";
365
- readonly name: "";
366
- readonly type: "address";
367
- }];
368
- readonly stateMutability: "view";
369
- readonly type: "function";
370
- }, {
371
- readonly inputs: readonly [];
372
- readonly name: "disputeGameFinalityDelaySeconds";
373
- readonly outputs: readonly [{
374
- readonly internalType: "uint256";
375
- readonly name: "";
376
- readonly type: "uint256";
377
- }];
378
- readonly stateMutability: "view";
379
- readonly type: "function";
380
235
  }, {
381
236
  readonly inputs: readonly [];
382
237
  readonly name: "donateETH";
383
238
  readonly outputs: readonly [];
384
239
  readonly stateMutability: "payable";
385
240
  readonly type: "function";
386
- }, {
387
- readonly inputs: readonly [];
388
- readonly name: "ethLockbox";
389
- readonly outputs: readonly [{
390
- readonly internalType: "contract IETHLockbox";
391
- readonly name: "";
392
- readonly type: "address";
393
- }];
394
- readonly stateMutability: "view";
395
- readonly type: "function";
396
241
  }, {
397
242
  readonly inputs: readonly [{
398
243
  readonly components: readonly [{
@@ -428,45 +273,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
428
273
  readonly outputs: readonly [];
429
274
  readonly stateMutability: "nonpayable";
430
275
  readonly type: "function";
431
- }, {
432
- readonly inputs: readonly [{
433
- readonly components: readonly [{
434
- readonly internalType: "uint256";
435
- readonly name: "nonce";
436
- readonly type: "uint256";
437
- }, {
438
- readonly internalType: "address";
439
- readonly name: "sender";
440
- readonly type: "address";
441
- }, {
442
- readonly internalType: "address";
443
- readonly name: "target";
444
- readonly type: "address";
445
- }, {
446
- readonly internalType: "uint256";
447
- readonly name: "value";
448
- readonly type: "uint256";
449
- }, {
450
- readonly internalType: "uint256";
451
- readonly name: "gasLimit";
452
- readonly type: "uint256";
453
- }, {
454
- readonly internalType: "bytes";
455
- readonly name: "data";
456
- readonly type: "bytes";
457
- }];
458
- readonly internalType: "struct Types.WithdrawalTransaction";
459
- readonly name: "_tx";
460
- readonly type: "tuple";
461
- }, {
462
- readonly internalType: "address";
463
- readonly name: "_proofSubmitter";
464
- readonly type: "address";
465
- }];
466
- readonly name: "finalizeWithdrawalTransactionExternalProof";
467
- readonly outputs: readonly [];
468
- readonly stateMutability: "nonpayable";
469
- readonly type: "function";
470
276
  }, {
471
277
  readonly inputs: readonly [{
472
278
  readonly internalType: "bytes32";
@@ -491,28 +297,18 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
491
297
  }];
492
298
  readonly stateMutability: "view";
493
299
  readonly type: "function";
494
- }, {
495
- readonly inputs: readonly [];
496
- readonly name: "initVersion";
497
- readonly outputs: readonly [{
498
- readonly internalType: "uint8";
499
- readonly name: "";
500
- readonly type: "uint8";
501
- }];
502
- readonly stateMutability: "view";
503
- readonly type: "function";
504
300
  }, {
505
301
  readonly inputs: readonly [{
506
- readonly internalType: "contract ISystemConfig";
507
- readonly name: "_systemConfig";
302
+ readonly internalType: "contract L2OutputOracle";
303
+ readonly name: "_l2Oracle";
508
304
  readonly type: "address";
509
305
  }, {
510
- readonly internalType: "contract IAnchorStateRegistry";
511
- readonly name: "_anchorStateRegistry";
306
+ readonly internalType: "contract SystemConfig";
307
+ readonly name: "_systemConfig";
512
308
  readonly type: "address";
513
309
  }, {
514
- readonly internalType: "contract IETHLockbox";
515
- readonly name: "_ethLockbox";
310
+ readonly internalType: "contract SuperchainConfig";
311
+ readonly name: "_superchainConfig";
516
312
  readonly type: "address";
517
313
  }];
518
314
  readonly name: "initialize";
@@ -520,34 +316,38 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
520
316
  readonly stateMutability: "nonpayable";
521
317
  readonly type: "function";
522
318
  }, {
523
- readonly inputs: readonly [];
524
- readonly name: "l2Sender";
319
+ readonly inputs: readonly [{
320
+ readonly internalType: "uint256";
321
+ readonly name: "_l2OutputIndex";
322
+ readonly type: "uint256";
323
+ }];
324
+ readonly name: "isOutputFinalized";
525
325
  readonly outputs: readonly [{
526
- readonly internalType: "address";
326
+ readonly internalType: "bool";
527
327
  readonly name: "";
528
- readonly type: "address";
328
+ readonly type: "bool";
529
329
  }];
530
330
  readonly stateMutability: "view";
531
331
  readonly type: "function";
532
332
  }, {
533
333
  readonly inputs: readonly [];
534
- readonly name: "migrateLiquidity";
535
- readonly outputs: readonly [];
536
- readonly stateMutability: "nonpayable";
334
+ readonly name: "l2Oracle";
335
+ readonly outputs: readonly [{
336
+ readonly internalType: "contract L2OutputOracle";
337
+ readonly name: "";
338
+ readonly type: "address";
339
+ }];
340
+ readonly stateMutability: "view";
537
341
  readonly type: "function";
538
342
  }, {
539
- readonly inputs: readonly [{
540
- readonly internalType: "contract IETHLockbox";
541
- readonly name: "_newLockbox";
542
- readonly type: "address";
543
- }, {
544
- readonly internalType: "contract IAnchorStateRegistry";
545
- readonly name: "_newAnchorStateRegistry";
343
+ readonly inputs: readonly [];
344
+ readonly name: "l2Sender";
345
+ readonly outputs: readonly [{
346
+ readonly internalType: "address";
347
+ readonly name: "";
546
348
  readonly type: "address";
547
349
  }];
548
- readonly name: "migrateToSharedDisputeGame";
549
- readonly outputs: readonly [];
550
- readonly stateMutability: "nonpayable";
350
+ readonly stateMutability: "view";
551
351
  readonly type: "function";
552
352
  }, {
553
353
  readonly inputs: readonly [{
@@ -563,20 +363,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
563
363
  }];
564
364
  readonly stateMutability: "pure";
565
365
  readonly type: "function";
566
- }, {
567
- readonly inputs: readonly [{
568
- readonly internalType: "bytes32";
569
- readonly name: "_withdrawalHash";
570
- readonly type: "bytes32";
571
- }];
572
- readonly name: "numProofSubmitters";
573
- readonly outputs: readonly [{
574
- readonly internalType: "uint256";
575
- readonly name: "";
576
- readonly type: "uint256";
577
- }];
578
- readonly stateMutability: "view";
579
- readonly type: "function";
580
366
  }, {
581
367
  readonly inputs: readonly [];
582
368
  readonly name: "params";
@@ -600,39 +386,11 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
600
386
  readonly name: "paused";
601
387
  readonly outputs: readonly [{
602
388
  readonly internalType: "bool";
603
- readonly name: "";
389
+ readonly name: "paused_";
604
390
  readonly type: "bool";
605
391
  }];
606
392
  readonly stateMutability: "view";
607
393
  readonly type: "function";
608
- }, {
609
- readonly inputs: readonly [];
610
- readonly name: "proofMaturityDelaySeconds";
611
- readonly outputs: readonly [{
612
- readonly internalType: "uint256";
613
- readonly name: "";
614
- readonly type: "uint256";
615
- }];
616
- readonly stateMutability: "view";
617
- readonly type: "function";
618
- }, {
619
- readonly inputs: readonly [{
620
- readonly internalType: "bytes32";
621
- readonly name: "";
622
- readonly type: "bytes32";
623
- }, {
624
- readonly internalType: "uint256";
625
- readonly name: "";
626
- readonly type: "uint256";
627
- }];
628
- readonly name: "proofSubmitters";
629
- readonly outputs: readonly [{
630
- readonly internalType: "address";
631
- readonly name: "";
632
- readonly type: "address";
633
- }];
634
- readonly stateMutability: "view";
635
- readonly type: "function";
636
394
  }, {
637
395
  readonly inputs: readonly [{
638
396
  readonly components: readonly [{
@@ -665,7 +423,7 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
665
423
  readonly type: "tuple";
666
424
  }, {
667
425
  readonly internalType: "uint256";
668
- readonly name: "_disputeGameIndex";
426
+ readonly name: "_l2OutputIndex";
669
427
  readonly type: "uint256";
670
428
  }, {
671
429
  readonly components: readonly [{
@@ -702,68 +460,50 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
702
460
  readonly internalType: "bytes32";
703
461
  readonly name: "";
704
462
  readonly type: "bytes32";
705
- }, {
706
- readonly internalType: "address";
707
- readonly name: "";
708
- readonly type: "address";
709
463
  }];
710
464
  readonly name: "provenWithdrawals";
711
465
  readonly outputs: readonly [{
712
- readonly internalType: "contract IDisputeGame";
713
- readonly name: "disputeGameProxy";
714
- readonly type: "address";
466
+ readonly internalType: "bytes32";
467
+ readonly name: "outputRoot";
468
+ readonly type: "bytes32";
715
469
  }, {
716
- readonly internalType: "uint64";
470
+ readonly internalType: "uint128";
717
471
  readonly name: "timestamp";
718
- readonly type: "uint64";
719
- }];
720
- readonly stateMutability: "view";
721
- readonly type: "function";
722
- }, {
723
- readonly inputs: readonly [];
724
- readonly name: "proxyAdmin";
725
- readonly outputs: readonly [{
726
- readonly internalType: "contract IProxyAdmin";
727
- readonly name: "";
728
- readonly type: "address";
472
+ readonly type: "uint128";
473
+ }, {
474
+ readonly internalType: "uint128";
475
+ readonly name: "l2OutputIndex";
476
+ readonly type: "uint128";
729
477
  }];
730
478
  readonly stateMutability: "view";
731
479
  readonly type: "function";
732
480
  }, {
733
- readonly inputs: readonly [];
734
- readonly name: "proxyAdminOwner";
735
- readonly outputs: readonly [{
481
+ readonly inputs: readonly [{
736
482
  readonly internalType: "address";
737
- readonly name: "";
483
+ readonly name: "_token";
738
484
  readonly type: "address";
485
+ }, {
486
+ readonly internalType: "uint8";
487
+ readonly name: "_decimals";
488
+ readonly type: "uint8";
489
+ }, {
490
+ readonly internalType: "bytes32";
491
+ readonly name: "_name";
492
+ readonly type: "bytes32";
493
+ }, {
494
+ readonly internalType: "bytes32";
495
+ readonly name: "_symbol";
496
+ readonly type: "bytes32";
739
497
  }];
740
- readonly stateMutability: "view";
741
- readonly type: "function";
742
- }, {
743
- readonly inputs: readonly [];
744
- readonly name: "respectedGameType";
745
- readonly outputs: readonly [{
746
- readonly internalType: "GameType";
747
- readonly name: "";
748
- readonly type: "uint32";
749
- }];
750
- readonly stateMutability: "view";
751
- readonly type: "function";
752
- }, {
753
- readonly inputs: readonly [];
754
- readonly name: "respectedGameTypeUpdatedAt";
755
- readonly outputs: readonly [{
756
- readonly internalType: "uint64";
757
- readonly name: "";
758
- readonly type: "uint64";
759
- }];
760
- readonly stateMutability: "view";
498
+ readonly name: "setGasPayingToken";
499
+ readonly outputs: readonly [];
500
+ readonly stateMutability: "nonpayable";
761
501
  readonly type: "function";
762
502
  }, {
763
503
  readonly inputs: readonly [];
764
504
  readonly name: "superchainConfig";
765
505
  readonly outputs: readonly [{
766
- readonly internalType: "contract ISuperchainConfig";
506
+ readonly internalType: "contract SuperchainConfig";
767
507
  readonly name: "";
768
508
  readonly type: "address";
769
509
  }];
@@ -773,7 +513,7 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
773
513
  readonly inputs: readonly [];
774
514
  readonly name: "systemConfig";
775
515
  readonly outputs: readonly [{
776
- readonly internalType: "contract ISystemConfig";
516
+ readonly internalType: "contract SystemConfig";
777
517
  readonly name: "";
778
518
  readonly type: "address";
779
519
  }];
@@ -794,15 +534,15 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
794
534
  readonly type: "receive";
795
535
  }];
796
536
  /**
797
- * Type-safe ABI for OptimismPortal2_json
537
+ * Type-safe ABI for OptimismPortal_json
798
538
  */
799
- export type OptimismPortal2_jsonAbi = typeof OptimismPortal2_jsonAbi;
539
+ export type OptimismPortal_jsonAbi = typeof OptimismPortal_jsonAbi;
800
540
  /**
801
- * Contract instance type for OptimismPortal2_json
541
+ * Contract instance type for OptimismPortal_json
802
542
  */
803
- export type OptimismPortal2_jsonContract = any;
543
+ export type OptimismPortal_jsonContract = any;
804
544
  /**
805
- * OptimismPortal2_json Contract Class
545
+ * OptimismPortal_json Contract Class
806
546
  *
807
547
  * Provides a class-based API similar to TypeChain for interacting with the contract.
808
548
  *
@@ -810,12 +550,12 @@ export type OptimismPortal2_jsonContract = any;
810
550
  * ```typescript
811
551
  * import { createPublicClient, createWalletClient, http } from 'viem';
812
552
  * import { mainnet } from 'viem/chains';
813
- * import { OptimismPortal2_json } from 'OptimismPortal2_json';
553
+ * import { OptimismPortal_json } from 'OptimismPortal_json';
814
554
  *
815
555
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
816
556
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
817
557
  *
818
- * const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
558
+ * const contract = new OptimismPortal_json('0x...', { publicClient, walletClient });
819
559
  *
820
560
  * // Read functions
821
561
  * const result = await contract.balanceOf('0x...');
@@ -833,7 +573,7 @@ export type OptimismPortal2_jsonContract = any;
833
573
  * });
834
574
  * ```
835
575
  */
836
- export declare class OptimismPortal2_json {
576
+ export declare class OptimismPortal_json {
837
577
  private contract;
838
578
  private contractAddress;
839
579
  private publicClient;
@@ -848,37 +588,12 @@ export declare class OptimismPortal2_json {
848
588
  /**
849
589
  * Get the underlying viem contract instance
850
590
  */
851
- getContract(): OptimismPortal2_jsonContract;
852
- /**
853
- * anchorStateRegistry
854
- * view
855
- */
856
- anchorStateRegistry(): Promise<`0x${string}`>;
857
- /**
858
- * checkWithdrawal
859
- * view
860
- */
861
- checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void>;
862
- /**
863
- * disputeGameBlacklist
864
- * view
865
- */
866
- disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean>;
867
- /**
868
- * disputeGameFactory
869
- * view
870
- */
871
- disputeGameFactory(): Promise<`0x${string}`>;
591
+ getContract(): OptimismPortal_jsonContract;
872
592
  /**
873
- * disputeGameFinalityDelaySeconds
593
+ * balance
874
594
  * view
875
595
  */
876
- disputeGameFinalityDelaySeconds(): Promise<bigint>;
877
- /**
878
- * ethLockbox
879
- * view
880
- */
881
- ethLockbox(): Promise<`0x${string}`>;
596
+ balance(): Promise<bigint>;
882
597
  /**
883
598
  * finalizedWithdrawals
884
599
  * view
@@ -890,10 +605,15 @@ export declare class OptimismPortal2_json {
890
605
  */
891
606
  guardian(): Promise<`0x${string}`>;
892
607
  /**
893
- * initVersion
608
+ * isOutputFinalized
894
609
  * view
895
610
  */
896
- initVersion(): Promise<bigint>;
611
+ isOutputFinalized(_l2OutputIndex: bigint): Promise<boolean>;
612
+ /**
613
+ * l2Oracle
614
+ * view
615
+ */
616
+ l2Oracle(): Promise<`0x${string}`>;
897
617
  /**
898
618
  * l2Sender
899
619
  * view
@@ -904,11 +624,6 @@ export declare class OptimismPortal2_json {
904
624
  * pure
905
625
  */
906
626
  minimumGasLimit(_byteCount: bigint): Promise<bigint>;
907
- /**
908
- * numProofSubmitters
909
- * view
910
- */
911
- numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint>;
912
627
  /**
913
628
  * params
914
629
  * view
@@ -919,41 +634,11 @@ export declare class OptimismPortal2_json {
919
634
  * view
920
635
  */
921
636
  paused(): Promise<boolean>;
922
- /**
923
- * proofMaturityDelaySeconds
924
- * view
925
- */
926
- proofMaturityDelaySeconds(): Promise<bigint>;
927
- /**
928
- * proofSubmitters
929
- * view
930
- */
931
- proofSubmitters(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`>;
932
637
  /**
933
638
  * provenWithdrawals
934
639
  * view
935
640
  */
936
- provenWithdrawals(arg0: `0x${string}`, arg1: `0x${string}`): Promise<[`0x${string}`, bigint]>;
937
- /**
938
- * proxyAdmin
939
- * view
940
- */
941
- proxyAdmin(): Promise<`0x${string}`>;
942
- /**
943
- * proxyAdminOwner
944
- * view
945
- */
946
- proxyAdminOwner(): Promise<`0x${string}`>;
947
- /**
948
- * respectedGameType
949
- * view
950
- */
951
- respectedGameType(): Promise<bigint>;
952
- /**
953
- * respectedGameTypeUpdatedAt
954
- * view
955
- */
956
- respectedGameTypeUpdatedAt(): Promise<bigint>;
641
+ provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint, bigint]>;
957
642
  /**
958
643
  * superchainConfig
959
644
  * view
@@ -970,11 +655,11 @@ export declare class OptimismPortal2_json {
970
655
  */
971
656
  version(): Promise<string>;
972
657
  /**
973
- * depositTransaction
974
- * payable
658
+ * depositERC20Transaction
659
+ * nonpayable
975
660
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
976
661
  */
977
- depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
662
+ depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
978
663
  accessList?: import('viem').AccessList;
979
664
  authorizationList?: import('viem').AuthorizationList;
980
665
  chain?: import('viem').Chain | null;
@@ -987,11 +672,11 @@ export declare class OptimismPortal2_json {
987
672
  value?: bigint;
988
673
  }): Promise<`0x${string}`>;
989
674
  /**
990
- * donateETH
675
+ * depositTransaction
991
676
  * payable
992
677
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
993
678
  */
994
- donateETH(options?: {
679
+ depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
995
680
  accessList?: import('viem').AccessList;
996
681
  authorizationList?: import('viem').AuthorizationList;
997
682
  chain?: import('viem').Chain | null;
@@ -1004,11 +689,11 @@ export declare class OptimismPortal2_json {
1004
689
  value?: bigint;
1005
690
  }): Promise<`0x${string}`>;
1006
691
  /**
1007
- * finalizeWithdrawalTransaction
1008
- * nonpayable
692
+ * donateETH
693
+ * payable
1009
694
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1010
695
  */
1011
- finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
696
+ donateETH(options?: {
1012
697
  accessList?: import('viem').AccessList;
1013
698
  authorizationList?: import('viem').AuthorizationList;
1014
699
  chain?: import('viem').Chain | null;
@@ -1021,11 +706,11 @@ export declare class OptimismPortal2_json {
1021
706
  value?: bigint;
1022
707
  }): Promise<`0x${string}`>;
1023
708
  /**
1024
- * finalizeWithdrawalTransactionExternalProof
709
+ * finalizeWithdrawalTransaction
1025
710
  * nonpayable
1026
711
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1027
712
  */
1028
- finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
713
+ finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
1029
714
  accessList?: import('viem').AccessList;
1030
715
  authorizationList?: import('viem').AuthorizationList;
1031
716
  chain?: import('viem').Chain | null;
@@ -1042,7 +727,7 @@ export declare class OptimismPortal2_json {
1042
727
  * nonpayable
1043
728
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1044
729
  */
1045
- initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
730
+ initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1046
731
  accessList?: import('viem').AccessList;
1047
732
  authorizationList?: import('viem').AuthorizationList;
1048
733
  chain?: import('viem').Chain | null;
@@ -1055,28 +740,11 @@ export declare class OptimismPortal2_json {
1055
740
  value?: bigint;
1056
741
  }): Promise<`0x${string}`>;
1057
742
  /**
1058
- * migrateLiquidity
1059
- * nonpayable
1060
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1061
- */
1062
- migrateLiquidity(options?: {
1063
- accessList?: import('viem').AccessList;
1064
- authorizationList?: import('viem').AuthorizationList;
1065
- chain?: import('viem').Chain | null;
1066
- dataSuffix?: `0x${string}`;
1067
- gas?: bigint;
1068
- gasPrice?: bigint;
1069
- maxFeePerGas?: bigint;
1070
- maxPriorityFeePerGas?: bigint;
1071
- nonce?: number;
1072
- value?: bigint;
1073
- }): Promise<`0x${string}`>;
1074
- /**
1075
- * migrateToSharedDisputeGame
743
+ * proveWithdrawalTransaction
1076
744
  * nonpayable
1077
745
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1078
746
  */
1079
- migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
747
+ proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1080
748
  accessList?: import('viem').AccessList;
1081
749
  authorizationList?: import('viem').AuthorizationList;
1082
750
  chain?: import('viem').Chain | null;
@@ -1089,11 +757,11 @@ export declare class OptimismPortal2_json {
1089
757
  value?: bigint;
1090
758
  }): Promise<`0x${string}`>;
1091
759
  /**
1092
- * proveWithdrawalTransaction
760
+ * setGasPayingToken
1093
761
  * nonpayable
1094
762
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1095
763
  */
1096
- proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
764
+ setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1097
765
  accessList?: import('viem').AccessList;
1098
766
  authorizationList?: import('viem').AuthorizationList;
1099
767
  chain?: import('viem').Chain | null;
@@ -1115,11 +783,11 @@ export declare class OptimismPortal2_json {
1115
783
  */
1116
784
  get simulate(): {
1117
785
  /**
1118
- * Simulate depositTransaction
786
+ * Simulate depositERC20Transaction
1119
787
  * Returns gas estimate and result without sending transaction
1120
788
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1121
789
  */
1122
- depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
790
+ depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1123
791
  accessList?: import("viem").AccessList;
1124
792
  authorizationList?: import("viem").AuthorizationList;
1125
793
  chain?: import("viem").Chain | null;
@@ -1132,11 +800,11 @@ export declare class OptimismPortal2_json {
1132
800
  value?: bigint;
1133
801
  }): Promise<void>;
1134
802
  /**
1135
- * Simulate donateETH
803
+ * Simulate depositTransaction
1136
804
  * Returns gas estimate and result without sending transaction
1137
805
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1138
806
  */
1139
- donateETH(options?: {
807
+ depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1140
808
  accessList?: import("viem").AccessList;
1141
809
  authorizationList?: import("viem").AuthorizationList;
1142
810
  chain?: import("viem").Chain | null;
@@ -1149,11 +817,11 @@ export declare class OptimismPortal2_json {
1149
817
  value?: bigint;
1150
818
  }): Promise<void>;
1151
819
  /**
1152
- * Simulate finalizeWithdrawalTransaction
820
+ * Simulate donateETH
1153
821
  * Returns gas estimate and result without sending transaction
1154
822
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1155
823
  */
1156
- finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
824
+ donateETH(options?: {
1157
825
  accessList?: import("viem").AccessList;
1158
826
  authorizationList?: import("viem").AuthorizationList;
1159
827
  chain?: import("viem").Chain | null;
@@ -1166,11 +834,11 @@ export declare class OptimismPortal2_json {
1166
834
  value?: bigint;
1167
835
  }): Promise<void>;
1168
836
  /**
1169
- * Simulate finalizeWithdrawalTransactionExternalProof
837
+ * Simulate finalizeWithdrawalTransaction
1170
838
  * Returns gas estimate and result without sending transaction
1171
839
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1172
840
  */
1173
- finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
841
+ finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
1174
842
  accessList?: import("viem").AccessList;
1175
843
  authorizationList?: import("viem").AuthorizationList;
1176
844
  chain?: import("viem").Chain | null;
@@ -1187,7 +855,7 @@ export declare class OptimismPortal2_json {
1187
855
  * Returns gas estimate and result without sending transaction
1188
856
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1189
857
  */
1190
- initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
858
+ initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1191
859
  accessList?: import("viem").AccessList;
1192
860
  authorizationList?: import("viem").AuthorizationList;
1193
861
  chain?: import("viem").Chain | null;
@@ -1200,28 +868,11 @@ export declare class OptimismPortal2_json {
1200
868
  value?: bigint;
1201
869
  }): Promise<void>;
1202
870
  /**
1203
- * Simulate migrateLiquidity
1204
- * Returns gas estimate and result without sending transaction
1205
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1206
- */
1207
- migrateLiquidity(options?: {
1208
- accessList?: import("viem").AccessList;
1209
- authorizationList?: import("viem").AuthorizationList;
1210
- chain?: import("viem").Chain | null;
1211
- dataSuffix?: `0x${string}`;
1212
- gas?: bigint;
1213
- gasPrice?: bigint;
1214
- maxFeePerGas?: bigint;
1215
- maxPriorityFeePerGas?: bigint;
1216
- nonce?: number;
1217
- value?: bigint;
1218
- }): Promise<void>;
1219
- /**
1220
- * Simulate migrateToSharedDisputeGame
871
+ * Simulate proveWithdrawalTransaction
1221
872
  * Returns gas estimate and result without sending transaction
1222
873
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1223
874
  */
1224
- migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
875
+ proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
1225
876
  accessList?: import("viem").AccessList;
1226
877
  authorizationList?: import("viem").AuthorizationList;
1227
878
  chain?: import("viem").Chain | null;
@@ -1234,11 +885,11 @@ export declare class OptimismPortal2_json {
1234
885
  value?: bigint;
1235
886
  }): Promise<void>;
1236
887
  /**
1237
- * Simulate proveWithdrawalTransaction
888
+ * Simulate setGasPayingToken
1238
889
  * Returns gas estimate and result without sending transaction
1239
890
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1240
891
  */
1241
- proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
892
+ setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1242
893
  accessList?: import("viem").AccessList;
1243
894
  authorizationList?: import("viem").AuthorizationList;
1244
895
  chain?: import("viem").Chain | null;
@@ -1264,18 +915,6 @@ export declare class OptimismPortal2_json {
1264
915
  * unwatch();
1265
916
  */
1266
917
  get watch(): {
1267
- /**
1268
- * Watch ETHMigrated events
1269
- * @param callback Function to call when event is emitted
1270
- * @param filter Optional filter for indexed parameters
1271
- * @returns Unwatch function to stop listening
1272
- */
1273
- ETHMigrated: (callback: (event: {
1274
- lockbox: `0x${string}`;
1275
- balance: bigint;
1276
- }) => void, filter?: {
1277
- lockbox: `0x${string}`;
1278
- }) => () => void;
1279
918
  /**
1280
919
  * Watch Initialized events
1281
920
  * @param callback Function to call when event is emitted
@@ -1285,18 +924,6 @@ export declare class OptimismPortal2_json {
1285
924
  Initialized: (callback: (event: {
1286
925
  version: bigint;
1287
926
  }) => void) => () => void;
1288
- /**
1289
- * Watch PortalMigrated events
1290
- * @param callback Function to call when event is emitted
1291
- * @param filter Optional filter for indexed parameters
1292
- * @returns Unwatch function to stop listening
1293
- */
1294
- PortalMigrated: (callback: (event: {
1295
- oldLockbox: `0x${string}`;
1296
- newLockbox: `0x${string}`;
1297
- oldAnchorStateRegistry: `0x${string}`;
1298
- newAnchorStateRegistry: `0x${string}`;
1299
- }) => void) => () => void;
1300
927
  /**
1301
928
  * Watch TransactionDeposited events
1302
929
  * @param callback Function to call when event is emitted
@@ -1340,18 +967,5 @@ export declare class OptimismPortal2_json {
1340
967
  from: `0x${string}`;
1341
968
  to: `0x${string}`;
1342
969
  }) => () => void;
1343
- /**
1344
- * Watch WithdrawalProvenExtension1 events
1345
- * @param callback Function to call when event is emitted
1346
- * @param filter Optional filter for indexed parameters
1347
- * @returns Unwatch function to stop listening
1348
- */
1349
- WithdrawalProvenExtension1: (callback: (event: {
1350
- withdrawalHash: `0x${string}`;
1351
- proofSubmitter: `0x${string}`;
1352
- }) => void, filter?: {
1353
- withdrawalHash: `0x${string}`;
1354
- proofSubmitter: `0x${string}`;
1355
- }) => () => void;
1356
970
  };
1357
971
  }