@gitmyabi/optimismportal 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,203 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OptimismPortal_json = exports.OptimismPortal_jsonAbi = void 0;
3
+ exports.OptimismPortal2_json = exports.OptimismPortal2_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * OptimismPortal_json ABI
6
+ * OptimismPortal2_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.OptimismPortal_jsonAbi = [
10
+ exports.OptimismPortal2_jsonAbi = [
11
11
  {
12
- "inputs": [],
13
- "stateMutability": "nonpayable",
14
- "type": "constructor"
15
- },
16
- {
17
- "anonymous": false,
18
12
  "inputs": [
19
13
  {
20
- "indexed": true,
21
- "internalType": "address",
22
- "name": "claimer",
23
- "type": "address"
24
- },
25
- {
26
- "indexed": false,
27
14
  "internalType": "uint256",
28
- "name": "amount",
15
+ "name": "_proofMaturityDelaySeconds",
29
16
  "type": "uint256"
30
17
  }
31
18
  ],
32
- "name": "ETHClaimed",
33
- "type": "event"
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "ContentLengthMismatch",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "EmptyItem",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "InvalidDataRemainder",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "InvalidHeader",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "OptimismPortal_AlreadyFinalized",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "OptimismPortal_BadTarget",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "OptimismPortal_CallPaused",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "OptimismPortal_CalldataTooLarge",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [],
64
+ "name": "OptimismPortal_GasEstimation",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "OptimismPortal_GasLimitTooLow",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "OptimismPortal_ImproperDisputeGame",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "OptimismPortal_InvalidDisputeGame",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "OptimismPortal_InvalidInteropState",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "OptimismPortal_InvalidLockboxState",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "OptimismPortal_InvalidMerkleProof",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "OptimismPortal_InvalidOutputRootProof",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "OptimismPortal_InvalidProofTimestamp",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "OptimismPortal_InvalidRootClaim",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "OptimismPortal_LockboxNotAuthorizedForPortal",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "OptimismPortal_MigratingToSameRegistry",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "OptimismPortal_NoReentrancy",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "OptimismPortal_NotAllowedOnCGTMode",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [],
134
+ "name": "OptimismPortal_NotUsingInterop",
135
+ "type": "error"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "OptimismPortal_ProofNotOldEnough",
140
+ "type": "error"
141
+ },
142
+ {
143
+ "inputs": [],
144
+ "name": "OptimismPortal_Unproven",
145
+ "type": "error"
146
+ },
147
+ {
148
+ "inputs": [],
149
+ "name": "OptimismPortal_ZeroAddress",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "OutOfGas",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "ProxyAdminOwnedBase_NotProxyAdmin",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [],
169
+ "name": "ProxyAdminOwnedBase_NotProxyAdminOwner",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "ProxyAdminOwnedBase_NotResolvedDelegateProxy",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "ProxyAdminOwnedBase_NotSharedProxyAdminOwner",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "ProxyAdminOwnedBase_ProxyAdminNotFound",
185
+ "type": "error"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "ReinitializableBase_ZeroInitVersion",
190
+ "type": "error"
191
+ },
192
+ {
193
+ "inputs": [],
194
+ "name": "UnexpectedList",
195
+ "type": "error"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "UnexpectedString",
200
+ "type": "error"
34
201
  },
35
202
  {
36
203
  "anonymous": false,
@@ -38,17 +205,17 @@ exports.OptimismPortal_jsonAbi = [
38
205
  {
39
206
  "indexed": true,
40
207
  "internalType": "address",
41
- "name": "recipient",
208
+ "name": "lockbox",
42
209
  "type": "address"
43
210
  },
44
211
  {
45
212
  "indexed": false,
46
213
  "internalType": "uint256",
47
- "name": "amount",
214
+ "name": "balance",
48
215
  "type": "uint256"
49
216
  }
50
217
  ],
51
- "name": "ETHRecovered",
218
+ "name": "ETHMigrated",
52
219
  "type": "event"
53
220
  },
54
221
  {
@@ -68,32 +235,31 @@ exports.OptimismPortal_jsonAbi = [
68
235
  "anonymous": false,
69
236
  "inputs": [
70
237
  {
71
- "indexed": true,
72
- "internalType": "bytes32",
73
- "name": "root",
74
- "type": "bytes32"
238
+ "indexed": false,
239
+ "internalType": "contract IETHLockbox",
240
+ "name": "oldLockbox",
241
+ "type": "address"
75
242
  },
76
243
  {
77
- "indexed": true,
78
- "internalType": "address",
79
- "name": "setter",
244
+ "indexed": false,
245
+ "internalType": "contract IETHLockbox",
246
+ "name": "newLockbox",
80
247
  "type": "address"
81
- }
82
- ],
83
- "name": "MerkleRootETHSet",
84
- "type": "event"
85
- },
86
- {
87
- "anonymous": false,
88
- "inputs": [
248
+ },
89
249
  {
90
250
  "indexed": false,
91
- "internalType": "address",
92
- "name": "account",
251
+ "internalType": "contract IAnchorStateRegistry",
252
+ "name": "oldAnchorStateRegistry",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "indexed": false,
257
+ "internalType": "contract IAnchorStateRegistry",
258
+ "name": "newAnchorStateRegistry",
93
259
  "type": "address"
94
260
  }
95
261
  ],
96
- "name": "Paused",
262
+ "name": "PortalMigrated",
97
263
  "type": "event"
98
264
  },
99
265
  {
@@ -127,19 +293,6 @@ exports.OptimismPortal_jsonAbi = [
127
293
  "name": "TransactionDeposited",
128
294
  "type": "event"
129
295
  },
130
- {
131
- "anonymous": false,
132
- "inputs": [
133
- {
134
- "indexed": false,
135
- "internalType": "address",
136
- "name": "account",
137
- "type": "address"
138
- }
139
- ],
140
- "name": "Unpaused",
141
- "type": "event"
142
- },
143
296
  {
144
297
  "anonymous": false,
145
298
  "inputs": [
@@ -185,50 +338,30 @@ exports.OptimismPortal_jsonAbi = [
185
338
  "type": "event"
186
339
  },
187
340
  {
188
- "inputs": [],
189
- "name": "GUARDIAN",
190
- "outputs": [
341
+ "anonymous": false,
342
+ "inputs": [
191
343
  {
192
- "internalType": "address",
193
- "name": "",
194
- "type": "address"
195
- }
196
- ],
197
- "stateMutability": "view",
198
- "type": "function"
199
- },
200
- {
201
- "inputs": [],
202
- "name": "L2_ORACLE",
203
- "outputs": [
344
+ "indexed": true,
345
+ "internalType": "bytes32",
346
+ "name": "withdrawalHash",
347
+ "type": "bytes32"
348
+ },
204
349
  {
205
- "internalType": "contract L2OutputOracle",
206
- "name": "",
350
+ "indexed": true,
351
+ "internalType": "address",
352
+ "name": "proofSubmitter",
207
353
  "type": "address"
208
354
  }
209
355
  ],
210
- "stateMutability": "view",
211
- "type": "function"
212
- },
213
- {
214
- "inputs": [],
215
- "name": "RECOVERY_TIMESTAMP",
216
- "outputs": [
217
- {
218
- "internalType": "uint256",
219
- "name": "",
220
- "type": "uint256"
221
- }
222
- ],
223
- "stateMutability": "view",
224
- "type": "function"
356
+ "name": "WithdrawalProvenExtension1",
357
+ "type": "event"
225
358
  },
226
359
  {
227
360
  "inputs": [],
228
- "name": "SYSTEM_CONFIG",
361
+ "name": "anchorStateRegistry",
229
362
  "outputs": [
230
363
  {
231
- "internalType": "contract SystemConfig",
364
+ "internalType": "contract IAnchorStateRegistry",
232
365
  "name": "",
233
366
  "type": "address"
234
367
  }
@@ -239,37 +372,18 @@ exports.OptimismPortal_jsonAbi = [
239
372
  {
240
373
  "inputs": [
241
374
  {
242
- "internalType": "uint256",
243
- "name": "_amount",
244
- "type": "uint256"
375
+ "internalType": "bytes32",
376
+ "name": "_withdrawalHash",
377
+ "type": "bytes32"
245
378
  },
246
- {
247
- "internalType": "bytes32[]",
248
- "name": "_proof",
249
- "type": "bytes32[]"
250
- }
251
- ],
252
- "name": "claimETH",
253
- "outputs": [],
254
- "stateMutability": "nonpayable",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [
259
379
  {
260
380
  "internalType": "address",
261
- "name": "",
381
+ "name": "_proofSubmitter",
262
382
  "type": "address"
263
383
  }
264
384
  ],
265
- "name": "claimedETH",
266
- "outputs": [
267
- {
268
- "internalType": "uint256",
269
- "name": "",
270
- "type": "uint256"
271
- }
272
- ],
385
+ "name": "checkWithdrawal",
386
+ "outputs": [],
273
387
  "stateMutability": "view",
274
388
  "type": "function"
275
389
  },
@@ -306,6 +420,51 @@ exports.OptimismPortal_jsonAbi = [
306
420
  "stateMutability": "payable",
307
421
  "type": "function"
308
422
  },
423
+ {
424
+ "inputs": [
425
+ {
426
+ "internalType": "contract IDisputeGame",
427
+ "name": "_disputeGame",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "name": "disputeGameBlacklist",
432
+ "outputs": [
433
+ {
434
+ "internalType": "bool",
435
+ "name": "",
436
+ "type": "bool"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [],
444
+ "name": "disputeGameFactory",
445
+ "outputs": [
446
+ {
447
+ "internalType": "contract IDisputeGameFactory",
448
+ "name": "",
449
+ "type": "address"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "disputeGameFinalityDelaySeconds",
458
+ "outputs": [
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
309
468
  {
310
469
  "inputs": [],
311
470
  "name": "donateETH",
@@ -313,6 +472,19 @@ exports.OptimismPortal_jsonAbi = [
313
472
  "stateMutability": "payable",
314
473
  "type": "function"
315
474
  },
475
+ {
476
+ "inputs": [],
477
+ "name": "ethLockbox",
478
+ "outputs": [
479
+ {
480
+ "internalType": "contract IETHLockbox",
481
+ "name": "",
482
+ "type": "address"
483
+ }
484
+ ],
485
+ "stateMutability": "view",
486
+ "type": "function"
487
+ },
316
488
  {
317
489
  "inputs": [
318
490
  {
@@ -358,6 +530,56 @@ exports.OptimismPortal_jsonAbi = [
358
530
  "stateMutability": "nonpayable",
359
531
  "type": "function"
360
532
  },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "components": [
537
+ {
538
+ "internalType": "uint256",
539
+ "name": "nonce",
540
+ "type": "uint256"
541
+ },
542
+ {
543
+ "internalType": "address",
544
+ "name": "sender",
545
+ "type": "address"
546
+ },
547
+ {
548
+ "internalType": "address",
549
+ "name": "target",
550
+ "type": "address"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "value",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "gasLimit",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "bytes",
564
+ "name": "data",
565
+ "type": "bytes"
566
+ }
567
+ ],
568
+ "internalType": "struct Types.WithdrawalTransaction",
569
+ "name": "_tx",
570
+ "type": "tuple"
571
+ },
572
+ {
573
+ "internalType": "address",
574
+ "name": "_proofSubmitter",
575
+ "type": "address"
576
+ }
577
+ ],
578
+ "name": "finalizeWithdrawalTransactionExternalProof",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
361
583
  {
362
584
  "inputs": [
363
585
  {
@@ -390,27 +612,35 @@ exports.OptimismPortal_jsonAbi = [
390
612
  "stateMutability": "view",
391
613
  "type": "function"
392
614
  },
615
+ {
616
+ "inputs": [],
617
+ "name": "initVersion",
618
+ "outputs": [
619
+ {
620
+ "internalType": "uint8",
621
+ "name": "",
622
+ "type": "uint8"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
393
628
  {
394
629
  "inputs": [
395
630
  {
396
- "internalType": "contract L2OutputOracle",
397
- "name": "_l2Oracle",
631
+ "internalType": "contract ISystemConfig",
632
+ "name": "_systemConfig",
398
633
  "type": "address"
399
634
  },
400
635
  {
401
- "internalType": "address",
402
- "name": "_guardian",
636
+ "internalType": "contract IAnchorStateRegistry",
637
+ "name": "_anchorStateRegistry",
403
638
  "type": "address"
404
639
  },
405
640
  {
406
- "internalType": "contract SystemConfig",
407
- "name": "_systemConfig",
641
+ "internalType": "contract IETHLockbox",
642
+ "name": "_ethLockbox",
408
643
  "type": "address"
409
- },
410
- {
411
- "internalType": "bool",
412
- "name": "_paused",
413
- "type": "bool"
414
644
  }
415
645
  ],
416
646
  "name": "initialize",
@@ -418,31 +648,12 @@ exports.OptimismPortal_jsonAbi = [
418
648
  "stateMutability": "nonpayable",
419
649
  "type": "function"
420
650
  },
421
- {
422
- "inputs": [
423
- {
424
- "internalType": "uint256",
425
- "name": "_l2OutputIndex",
426
- "type": "uint256"
427
- }
428
- ],
429
- "name": "isOutputFinalized",
430
- "outputs": [
431
- {
432
- "internalType": "bool",
433
- "name": "",
434
- "type": "bool"
435
- }
436
- ],
437
- "stateMutability": "view",
438
- "type": "function"
439
- },
440
651
  {
441
652
  "inputs": [],
442
- "name": "l2Oracle",
653
+ "name": "l2Sender",
443
654
  "outputs": [
444
655
  {
445
- "internalType": "contract L2OutputOracle",
656
+ "internalType": "address",
446
657
  "name": "",
447
658
  "type": "address"
448
659
  }
@@ -452,28 +663,27 @@ exports.OptimismPortal_jsonAbi = [
452
663
  },
453
664
  {
454
665
  "inputs": [],
455
- "name": "l2Sender",
456
- "outputs": [
457
- {
458
- "internalType": "address",
459
- "name": "",
460
- "type": "address"
461
- }
462
- ],
463
- "stateMutability": "view",
666
+ "name": "migrateLiquidity",
667
+ "outputs": [],
668
+ "stateMutability": "nonpayable",
464
669
  "type": "function"
465
670
  },
466
671
  {
467
- "inputs": [],
468
- "name": "merkleRootETH",
469
- "outputs": [
672
+ "inputs": [
470
673
  {
471
- "internalType": "bytes32",
472
- "name": "",
473
- "type": "bytes32"
674
+ "internalType": "contract IETHLockbox",
675
+ "name": "_newLockbox",
676
+ "type": "address"
677
+ },
678
+ {
679
+ "internalType": "contract IAnchorStateRegistry",
680
+ "name": "_newAnchorStateRegistry",
681
+ "type": "address"
474
682
  }
475
683
  ],
476
- "stateMutability": "view",
684
+ "name": "migrateToSharedDisputeGame",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
477
687
  "type": "function"
478
688
  },
479
689
  {
@@ -495,6 +705,25 @@ exports.OptimismPortal_jsonAbi = [
495
705
  "stateMutability": "pure",
496
706
  "type": "function"
497
707
  },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "bytes32",
712
+ "name": "_withdrawalHash",
713
+ "type": "bytes32"
714
+ }
715
+ ],
716
+ "name": "numProofSubmitters",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
498
727
  {
499
728
  "inputs": [],
500
729
  "name": "params",
@@ -520,19 +749,49 @@ exports.OptimismPortal_jsonAbi = [
520
749
  },
521
750
  {
522
751
  "inputs": [],
523
- "name": "pause",
524
- "outputs": [],
525
- "stateMutability": "nonpayable",
752
+ "name": "paused",
753
+ "outputs": [
754
+ {
755
+ "internalType": "bool",
756
+ "name": "",
757
+ "type": "bool"
758
+ }
759
+ ],
760
+ "stateMutability": "view",
526
761
  "type": "function"
527
762
  },
528
763
  {
529
764
  "inputs": [],
530
- "name": "paused",
765
+ "name": "proofMaturityDelaySeconds",
531
766
  "outputs": [
532
767
  {
533
- "internalType": "bool",
768
+ "internalType": "uint256",
534
769
  "name": "",
535
- "type": "bool"
770
+ "type": "uint256"
771
+ }
772
+ ],
773
+ "stateMutability": "view",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [
778
+ {
779
+ "internalType": "bytes32",
780
+ "name": "",
781
+ "type": "bytes32"
782
+ },
783
+ {
784
+ "internalType": "uint256",
785
+ "name": "",
786
+ "type": "uint256"
787
+ }
788
+ ],
789
+ "name": "proofSubmitters",
790
+ "outputs": [
791
+ {
792
+ "internalType": "address",
793
+ "name": "",
794
+ "type": "address"
536
795
  }
537
796
  ],
538
797
  "stateMutability": "view",
@@ -579,7 +838,7 @@ exports.OptimismPortal_jsonAbi = [
579
838
  },
580
839
  {
581
840
  "internalType": "uint256",
582
- "name": "_l2OutputIndex",
841
+ "name": "_disputeGameIndex",
583
842
  "type": "uint256"
584
843
  },
585
844
  {
@@ -626,61 +885,87 @@ exports.OptimismPortal_jsonAbi = [
626
885
  "internalType": "bytes32",
627
886
  "name": "",
628
887
  "type": "bytes32"
888
+ },
889
+ {
890
+ "internalType": "address",
891
+ "name": "",
892
+ "type": "address"
629
893
  }
630
894
  ],
631
895
  "name": "provenWithdrawals",
632
896
  "outputs": [
633
897
  {
634
- "internalType": "bytes32",
635
- "name": "outputRoot",
636
- "type": "bytes32"
898
+ "internalType": "contract IDisputeGame",
899
+ "name": "disputeGameProxy",
900
+ "type": "address"
637
901
  },
638
902
  {
639
- "internalType": "uint128",
903
+ "internalType": "uint64",
640
904
  "name": "timestamp",
641
- "type": "uint128"
642
- },
905
+ "type": "uint64"
906
+ }
907
+ ],
908
+ "stateMutability": "view",
909
+ "type": "function"
910
+ },
911
+ {
912
+ "inputs": [],
913
+ "name": "proxyAdmin",
914
+ "outputs": [
643
915
  {
644
- "internalType": "uint128",
645
- "name": "l2OutputIndex",
646
- "type": "uint128"
916
+ "internalType": "contract IProxyAdmin",
917
+ "name": "",
918
+ "type": "address"
647
919
  }
648
920
  ],
649
921
  "stateMutability": "view",
650
922
  "type": "function"
651
923
  },
652
924
  {
653
- "inputs": [
925
+ "inputs": [],
926
+ "name": "proxyAdminOwner",
927
+ "outputs": [
654
928
  {
655
929
  "internalType": "address",
656
- "name": "_recipient",
930
+ "name": "",
657
931
  "type": "address"
658
932
  }
659
933
  ],
660
- "name": "recoverETH",
661
- "outputs": [],
662
- "stateMutability": "nonpayable",
934
+ "stateMutability": "view",
663
935
  "type": "function"
664
936
  },
665
937
  {
666
- "inputs": [
938
+ "inputs": [],
939
+ "name": "respectedGameType",
940
+ "outputs": [
667
941
  {
668
- "internalType": "bytes32",
669
- "name": "_root",
670
- "type": "bytes32"
942
+ "internalType": "GameType",
943
+ "name": "",
944
+ "type": "uint32"
671
945
  }
672
946
  ],
673
- "name": "setMerkleRootETH",
674
- "outputs": [],
675
- "stateMutability": "nonpayable",
947
+ "stateMutability": "view",
676
948
  "type": "function"
677
949
  },
678
950
  {
679
951
  "inputs": [],
680
- "name": "systemConfig",
952
+ "name": "respectedGameTypeUpdatedAt",
953
+ "outputs": [
954
+ {
955
+ "internalType": "uint64",
956
+ "name": "",
957
+ "type": "uint64"
958
+ }
959
+ ],
960
+ "stateMutability": "view",
961
+ "type": "function"
962
+ },
963
+ {
964
+ "inputs": [],
965
+ "name": "superchainConfig",
681
966
  "outputs": [
682
967
  {
683
- "internalType": "contract SystemConfig",
968
+ "internalType": "contract ISuperchainConfig",
684
969
  "name": "",
685
970
  "type": "address"
686
971
  }
@@ -690,9 +975,15 @@ exports.OptimismPortal_jsonAbi = [
690
975
  },
691
976
  {
692
977
  "inputs": [],
693
- "name": "unpause",
694
- "outputs": [],
695
- "stateMutability": "nonpayable",
978
+ "name": "systemConfig",
979
+ "outputs": [
980
+ {
981
+ "internalType": "contract ISystemConfig",
982
+ "name": "",
983
+ "type": "address"
984
+ }
985
+ ],
986
+ "stateMutability": "view",
696
987
  "type": "function"
697
988
  },
698
989
  {
@@ -705,7 +996,7 @@ exports.OptimismPortal_jsonAbi = [
705
996
  "type": "string"
706
997
  }
707
998
  ],
708
- "stateMutability": "view",
999
+ "stateMutability": "pure",
709
1000
  "type": "function"
710
1001
  },
711
1002
  {
@@ -714,7 +1005,7 @@ exports.OptimismPortal_jsonAbi = [
714
1005
  }
715
1006
  ];
716
1007
  /**
717
- * OptimismPortal_json Contract Class
1008
+ * OptimismPortal2_json Contract Class
718
1009
  *
719
1010
  * Provides a class-based API similar to TypeChain for interacting with the contract.
720
1011
  *
@@ -722,12 +1013,12 @@ exports.OptimismPortal_jsonAbi = [
722
1013
  * ```typescript
723
1014
  * import { createPublicClient, createWalletClient, http } from 'viem';
724
1015
  * import { mainnet } from 'viem/chains';
725
- * import { OptimismPortal_json } from 'OptimismPortal_json';
1016
+ * import { OptimismPortal2_json } from 'OptimismPortal2_json';
726
1017
  *
727
1018
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
728
1019
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
729
1020
  *
730
- * const contract = new OptimismPortal_json('0x...', { publicClient, walletClient });
1021
+ * const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
731
1022
  *
732
1023
  * // Read functions
733
1024
  * const result = await contract.balanceOf('0x...');
@@ -745,13 +1036,13 @@ exports.OptimismPortal_jsonAbi = [
745
1036
  * });
746
1037
  * ```
747
1038
  */
748
- class OptimismPortal_json {
1039
+ class OptimismPortal2_json {
749
1040
  constructor(address, clients) {
750
1041
  this.contractAddress = address;
751
1042
  this.publicClient = clients.publicClient;
752
1043
  this.contract = (0, viem_1.getContract)({
753
1044
  address,
754
- abi: exports.OptimismPortal_jsonAbi,
1045
+ abi: exports.OptimismPortal2_jsonAbi,
755
1046
  client: {
756
1047
  public: clients.publicClient,
757
1048
  wallet: clients.walletClient,
@@ -771,39 +1062,46 @@ class OptimismPortal_json {
771
1062
  return this.contract;
772
1063
  }
773
1064
  /**
774
- * GUARDIAN
1065
+ * anchorStateRegistry
1066
+ * view
1067
+ */
1068
+ async anchorStateRegistry() {
1069
+ return this.contract.read.anchorStateRegistry();
1070
+ }
1071
+ /**
1072
+ * checkWithdrawal
775
1073
  * view
776
1074
  */
777
- async GUARDIAN() {
778
- return this.contract.read.GUARDIAN();
1075
+ async checkWithdrawal(_withdrawalHash, _proofSubmitter) {
1076
+ return this.contract.read.checkWithdrawal([_withdrawalHash, _proofSubmitter]);
779
1077
  }
780
1078
  /**
781
- * L2_ORACLE
1079
+ * disputeGameBlacklist
782
1080
  * view
783
1081
  */
784
- async L2_ORACLE() {
785
- return this.contract.read.L2_ORACLE();
1082
+ async disputeGameBlacklist(_disputeGame) {
1083
+ return this.contract.read.disputeGameBlacklist([_disputeGame]);
786
1084
  }
787
1085
  /**
788
- * RECOVERY_TIMESTAMP
1086
+ * disputeGameFactory
789
1087
  * view
790
1088
  */
791
- async RECOVERY_TIMESTAMP() {
792
- return this.contract.read.RECOVERY_TIMESTAMP();
1089
+ async disputeGameFactory() {
1090
+ return this.contract.read.disputeGameFactory();
793
1091
  }
794
1092
  /**
795
- * SYSTEM_CONFIG
1093
+ * disputeGameFinalityDelaySeconds
796
1094
  * view
797
1095
  */
798
- async SYSTEM_CONFIG() {
799
- return this.contract.read.SYSTEM_CONFIG();
1096
+ async disputeGameFinalityDelaySeconds() {
1097
+ return this.contract.read.disputeGameFinalityDelaySeconds();
800
1098
  }
801
1099
  /**
802
- * claimedETH
1100
+ * ethLockbox
803
1101
  * view
804
1102
  */
805
- async claimedETH(arg0) {
806
- return this.contract.read.claimedETH([arg0]);
1103
+ async ethLockbox() {
1104
+ return this.contract.read.ethLockbox();
807
1105
  }
808
1106
  /**
809
1107
  * finalizedWithdrawals
@@ -820,18 +1118,11 @@ class OptimismPortal_json {
820
1118
  return this.contract.read.guardian();
821
1119
  }
822
1120
  /**
823
- * isOutputFinalized
824
- * view
825
- */
826
- async isOutputFinalized(_l2OutputIndex) {
827
- return this.contract.read.isOutputFinalized([_l2OutputIndex]);
828
- }
829
- /**
830
- * l2Oracle
1121
+ * initVersion
831
1122
  * view
832
1123
  */
833
- async l2Oracle() {
834
- return this.contract.read.l2Oracle();
1124
+ async initVersion() {
1125
+ return this.contract.read.initVersion();
835
1126
  }
836
1127
  /**
837
1128
  * l2Sender
@@ -840,13 +1131,6 @@ class OptimismPortal_json {
840
1131
  async l2Sender() {
841
1132
  return this.contract.read.l2Sender();
842
1133
  }
843
- /**
844
- * merkleRootETH
845
- * view
846
- */
847
- async merkleRootETH() {
848
- return this.contract.read.merkleRootETH();
849
- }
850
1134
  /**
851
1135
  * minimumGasLimit
852
1136
  * pure
@@ -854,6 +1138,13 @@ class OptimismPortal_json {
854
1138
  async minimumGasLimit(_byteCount) {
855
1139
  return this.contract.read.minimumGasLimit([_byteCount]);
856
1140
  }
1141
+ /**
1142
+ * numProofSubmitters
1143
+ * view
1144
+ */
1145
+ async numProofSubmitters(_withdrawalHash) {
1146
+ return this.contract.read.numProofSubmitters([_withdrawalHash]);
1147
+ }
857
1148
  /**
858
1149
  * params
859
1150
  * view
@@ -868,12 +1159,61 @@ class OptimismPortal_json {
868
1159
  async paused() {
869
1160
  return this.contract.read.paused();
870
1161
  }
1162
+ /**
1163
+ * proofMaturityDelaySeconds
1164
+ * view
1165
+ */
1166
+ async proofMaturityDelaySeconds() {
1167
+ return this.contract.read.proofMaturityDelaySeconds();
1168
+ }
1169
+ /**
1170
+ * proofSubmitters
1171
+ * view
1172
+ */
1173
+ async proofSubmitters(arg0, arg1) {
1174
+ return this.contract.read.proofSubmitters([arg0, arg1]);
1175
+ }
871
1176
  /**
872
1177
  * provenWithdrawals
873
1178
  * view
874
1179
  */
875
- async provenWithdrawals(arg0) {
876
- return this.contract.read.provenWithdrawals([arg0]);
1180
+ async provenWithdrawals(arg0, arg1) {
1181
+ return this.contract.read.provenWithdrawals([arg0, arg1]);
1182
+ }
1183
+ /**
1184
+ * proxyAdmin
1185
+ * view
1186
+ */
1187
+ async proxyAdmin() {
1188
+ return this.contract.read.proxyAdmin();
1189
+ }
1190
+ /**
1191
+ * proxyAdminOwner
1192
+ * view
1193
+ */
1194
+ async proxyAdminOwner() {
1195
+ return this.contract.read.proxyAdminOwner();
1196
+ }
1197
+ /**
1198
+ * respectedGameType
1199
+ * view
1200
+ */
1201
+ async respectedGameType() {
1202
+ return this.contract.read.respectedGameType();
1203
+ }
1204
+ /**
1205
+ * respectedGameTypeUpdatedAt
1206
+ * view
1207
+ */
1208
+ async respectedGameTypeUpdatedAt() {
1209
+ return this.contract.read.respectedGameTypeUpdatedAt();
1210
+ }
1211
+ /**
1212
+ * superchainConfig
1213
+ * view
1214
+ */
1215
+ async superchainConfig() {
1216
+ return this.contract.read.superchainConfig();
877
1217
  }
878
1218
  /**
879
1219
  * systemConfig
@@ -884,22 +1224,11 @@ class OptimismPortal_json {
884
1224
  }
885
1225
  /**
886
1226
  * version
887
- * view
1227
+ * pure
888
1228
  */
889
1229
  async version() {
890
1230
  return this.contract.read.version();
891
1231
  }
892
- /**
893
- * claimETH
894
- * nonpayable
895
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
896
- */
897
- async claimETH(_amount, _proof, options) {
898
- if (!this.contract.write) {
899
- throw new Error('Wallet client is required for write operations');
900
- }
901
- return this.contract.write.claimETH([_amount, _proof], options);
902
- }
903
1232
  /**
904
1233
  * depositTransaction
905
1234
  * payable
@@ -934,70 +1263,59 @@ class OptimismPortal_json {
934
1263
  return this.contract.write.finalizeWithdrawalTransaction([_tx], options);
935
1264
  }
936
1265
  /**
937
- * initialize
938
- * nonpayable
939
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
940
- */
941
- async initialize(_l2Oracle, _guardian, _systemConfig, _paused, options) {
942
- if (!this.contract.write) {
943
- throw new Error('Wallet client is required for write operations');
944
- }
945
- return this.contract.write.initialize([_l2Oracle, _guardian, _systemConfig, _paused], options);
946
- }
947
- /**
948
- * pause
1266
+ * finalizeWithdrawalTransactionExternalProof
949
1267
  * nonpayable
950
1268
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
951
1269
  */
952
- async pause(options) {
1270
+ async finalizeWithdrawalTransactionExternalProof(_tx, _proofSubmitter, options) {
953
1271
  if (!this.contract.write) {
954
1272
  throw new Error('Wallet client is required for write operations');
955
1273
  }
956
- return this.contract.write.pause(options);
1274
+ return this.contract.write.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter], options);
957
1275
  }
958
1276
  /**
959
- * proveWithdrawalTransaction
1277
+ * initialize
960
1278
  * nonpayable
961
1279
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
962
1280
  */
963
- async proveWithdrawalTransaction(_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof, options) {
1281
+ async initialize(_systemConfig, _anchorStateRegistry, _ethLockbox, options) {
964
1282
  if (!this.contract.write) {
965
1283
  throw new Error('Wallet client is required for write operations');
966
1284
  }
967
- return this.contract.write.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof], options);
1285
+ return this.contract.write.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox], options);
968
1286
  }
969
1287
  /**
970
- * recoverETH
1288
+ * migrateLiquidity
971
1289
  * nonpayable
972
1290
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
973
1291
  */
974
- async recoverETH(_recipient, options) {
1292
+ async migrateLiquidity(options) {
975
1293
  if (!this.contract.write) {
976
1294
  throw new Error('Wallet client is required for write operations');
977
1295
  }
978
- return this.contract.write.recoverETH([_recipient], options);
1296
+ return this.contract.write.migrateLiquidity(options);
979
1297
  }
980
1298
  /**
981
- * setMerkleRootETH
1299
+ * migrateToSharedDisputeGame
982
1300
  * nonpayable
983
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
984
1302
  */
985
- async setMerkleRootETH(_root, options) {
1303
+ async migrateToSharedDisputeGame(_newLockbox, _newAnchorStateRegistry, options) {
986
1304
  if (!this.contract.write) {
987
1305
  throw new Error('Wallet client is required for write operations');
988
1306
  }
989
- return this.contract.write.setMerkleRootETH([_root], options);
1307
+ return this.contract.write.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry], options);
990
1308
  }
991
1309
  /**
992
- * unpause
1310
+ * proveWithdrawalTransaction
993
1311
  * nonpayable
994
1312
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
995
1313
  */
996
- async unpause(options) {
1314
+ async proveWithdrawalTransaction(_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof, options) {
997
1315
  if (!this.contract.write) {
998
1316
  throw new Error('Wallet client is required for write operations');
999
1317
  }
1000
- return this.contract.write.unpause(options);
1318
+ return this.contract.write.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof], options);
1001
1319
  }
1002
1320
  /**
1003
1321
  * Simulate contract write operations (dry-run without sending transaction)
@@ -1013,14 +1331,6 @@ class OptimismPortal_json {
1013
1331
  throw new Error('Public client is required for simulation');
1014
1332
  }
1015
1333
  return {
1016
- /**
1017
- * Simulate claimETH
1018
- * Returns gas estimate and result without sending transaction
1019
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1020
- */
1021
- async claimETH(_amount, _proof, options) {
1022
- return contract.simulate.claimETH([_amount, _proof], options);
1023
- },
1024
1334
  /**
1025
1335
  * Simulate depositTransaction
1026
1336
  * Returns gas estimate and result without sending transaction
@@ -1046,52 +1356,44 @@ class OptimismPortal_json {
1046
1356
  return contract.simulate.finalizeWithdrawalTransaction([_tx], options);
1047
1357
  },
1048
1358
  /**
1049
- * Simulate initialize
1050
- * Returns gas estimate and result without sending transaction
1051
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1052
- */
1053
- async initialize(_l2Oracle, _guardian, _systemConfig, _paused, options) {
1054
- return contract.simulate.initialize([_l2Oracle, _guardian, _systemConfig, _paused], options);
1055
- },
1056
- /**
1057
- * Simulate pause
1359
+ * Simulate finalizeWithdrawalTransactionExternalProof
1058
1360
  * Returns gas estimate and result without sending transaction
1059
1361
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1060
1362
  */
1061
- async pause(options) {
1062
- return contract.simulate.pause(options);
1363
+ async finalizeWithdrawalTransactionExternalProof(_tx, _proofSubmitter, options) {
1364
+ return contract.simulate.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter], options);
1063
1365
  },
1064
1366
  /**
1065
- * Simulate proveWithdrawalTransaction
1367
+ * Simulate initialize
1066
1368
  * Returns gas estimate and result without sending transaction
1067
1369
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1068
1370
  */
1069
- async proveWithdrawalTransaction(_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof, options) {
1070
- return contract.simulate.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof], options);
1371
+ async initialize(_systemConfig, _anchorStateRegistry, _ethLockbox, options) {
1372
+ return contract.simulate.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox], options);
1071
1373
  },
1072
1374
  /**
1073
- * Simulate recoverETH
1375
+ * Simulate migrateLiquidity
1074
1376
  * Returns gas estimate and result without sending transaction
1075
1377
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1076
1378
  */
1077
- async recoverETH(_recipient, options) {
1078
- return contract.simulate.recoverETH([_recipient], options);
1379
+ async migrateLiquidity(options) {
1380
+ return contract.simulate.migrateLiquidity(options);
1079
1381
  },
1080
1382
  /**
1081
- * Simulate setMerkleRootETH
1383
+ * Simulate migrateToSharedDisputeGame
1082
1384
  * Returns gas estimate and result without sending transaction
1083
1385
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1084
1386
  */
1085
- async setMerkleRootETH(_root, options) {
1086
- return contract.simulate.setMerkleRootETH([_root], options);
1387
+ async migrateToSharedDisputeGame(_newLockbox, _newAnchorStateRegistry, options) {
1388
+ return contract.simulate.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry], options);
1087
1389
  },
1088
1390
  /**
1089
- * Simulate unpause
1391
+ * Simulate proveWithdrawalTransaction
1090
1392
  * Returns gas estimate and result without sending transaction
1091
1393
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1092
1394
  */
1093
- async unpause(options) {
1094
- return contract.simulate.unpause(options);
1395
+ async proveWithdrawalTransaction(_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof, options) {
1396
+ return contract.simulate.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof], options);
1095
1397
  }
1096
1398
  };
1097
1399
  }
@@ -1110,35 +1412,16 @@ class OptimismPortal_json {
1110
1412
  get watch() {
1111
1413
  return {
1112
1414
  /**
1113
- * Watch ETHClaimed events
1114
- * @param callback Function to call when event is emitted
1115
- * @param filter Optional filter for indexed parameters
1116
- * @returns Unwatch function to stop listening
1117
- */
1118
- ETHClaimed: (callback, filter) => {
1119
- return this.publicClient.watchContractEvent({
1120
- address: this.contractAddress,
1121
- abi: exports.OptimismPortal_jsonAbi,
1122
- eventName: 'ETHClaimed',
1123
- args: filter,
1124
- onLogs: (logs) => {
1125
- logs.forEach((log) => {
1126
- callback(log.args);
1127
- });
1128
- },
1129
- });
1130
- },
1131
- /**
1132
- * Watch ETHRecovered events
1415
+ * Watch ETHMigrated events
1133
1416
  * @param callback Function to call when event is emitted
1134
1417
  * @param filter Optional filter for indexed parameters
1135
1418
  * @returns Unwatch function to stop listening
1136
1419
  */
1137
- ETHRecovered: (callback, filter) => {
1420
+ ETHMigrated: (callback, filter) => {
1138
1421
  return this.publicClient.watchContractEvent({
1139
1422
  address: this.contractAddress,
1140
- abi: exports.OptimismPortal_jsonAbi,
1141
- eventName: 'ETHRecovered',
1423
+ abi: exports.OptimismPortal2_jsonAbi,
1424
+ eventName: 'ETHMigrated',
1142
1425
  args: filter,
1143
1426
  onLogs: (logs) => {
1144
1427
  logs.forEach((log) => {
@@ -1156,7 +1439,7 @@ class OptimismPortal_json {
1156
1439
  Initialized: (callback) => {
1157
1440
  return this.publicClient.watchContractEvent({
1158
1441
  address: this.contractAddress,
1159
- abi: exports.OptimismPortal_jsonAbi,
1442
+ abi: exports.OptimismPortal2_jsonAbi,
1160
1443
  eventName: 'Initialized',
1161
1444
  onLogs: (logs) => {
1162
1445
  logs.forEach((log) => {
@@ -1166,35 +1449,16 @@ class OptimismPortal_json {
1166
1449
  });
1167
1450
  },
1168
1451
  /**
1169
- * Watch MerkleRootETHSet events
1170
- * @param callback Function to call when event is emitted
1171
- * @param filter Optional filter for indexed parameters
1172
- * @returns Unwatch function to stop listening
1173
- */
1174
- MerkleRootETHSet: (callback, filter) => {
1175
- return this.publicClient.watchContractEvent({
1176
- address: this.contractAddress,
1177
- abi: exports.OptimismPortal_jsonAbi,
1178
- eventName: 'MerkleRootETHSet',
1179
- args: filter,
1180
- onLogs: (logs) => {
1181
- logs.forEach((log) => {
1182
- callback(log.args);
1183
- });
1184
- },
1185
- });
1186
- },
1187
- /**
1188
- * Watch Paused events
1452
+ * Watch PortalMigrated events
1189
1453
  * @param callback Function to call when event is emitted
1190
1454
  * @param filter Optional filter for indexed parameters
1191
1455
  * @returns Unwatch function to stop listening
1192
1456
  */
1193
- Paused: (callback) => {
1457
+ PortalMigrated: (callback) => {
1194
1458
  return this.publicClient.watchContractEvent({
1195
1459
  address: this.contractAddress,
1196
- abi: exports.OptimismPortal_jsonAbi,
1197
- eventName: 'Paused',
1460
+ abi: exports.OptimismPortal2_jsonAbi,
1461
+ eventName: 'PortalMigrated',
1198
1462
  onLogs: (logs) => {
1199
1463
  logs.forEach((log) => {
1200
1464
  callback(log.args);
@@ -1211,7 +1475,7 @@ class OptimismPortal_json {
1211
1475
  TransactionDeposited: (callback, filter) => {
1212
1476
  return this.publicClient.watchContractEvent({
1213
1477
  address: this.contractAddress,
1214
- abi: exports.OptimismPortal_jsonAbi,
1478
+ abi: exports.OptimismPortal2_jsonAbi,
1215
1479
  eventName: 'TransactionDeposited',
1216
1480
  args: filter,
1217
1481
  onLogs: (logs) => {
@@ -1222,16 +1486,17 @@ class OptimismPortal_json {
1222
1486
  });
1223
1487
  },
1224
1488
  /**
1225
- * Watch Unpaused events
1489
+ * Watch WithdrawalFinalized events
1226
1490
  * @param callback Function to call when event is emitted
1227
1491
  * @param filter Optional filter for indexed parameters
1228
1492
  * @returns Unwatch function to stop listening
1229
1493
  */
1230
- Unpaused: (callback) => {
1494
+ WithdrawalFinalized: (callback, filter) => {
1231
1495
  return this.publicClient.watchContractEvent({
1232
1496
  address: this.contractAddress,
1233
- abi: exports.OptimismPortal_jsonAbi,
1234
- eventName: 'Unpaused',
1497
+ abi: exports.OptimismPortal2_jsonAbi,
1498
+ eventName: 'WithdrawalFinalized',
1499
+ args: filter,
1235
1500
  onLogs: (logs) => {
1236
1501
  logs.forEach((log) => {
1237
1502
  callback(log.args);
@@ -1240,16 +1505,16 @@ class OptimismPortal_json {
1240
1505
  });
1241
1506
  },
1242
1507
  /**
1243
- * Watch WithdrawalFinalized events
1508
+ * Watch WithdrawalProven events
1244
1509
  * @param callback Function to call when event is emitted
1245
1510
  * @param filter Optional filter for indexed parameters
1246
1511
  * @returns Unwatch function to stop listening
1247
1512
  */
1248
- WithdrawalFinalized: (callback, filter) => {
1513
+ WithdrawalProven: (callback, filter) => {
1249
1514
  return this.publicClient.watchContractEvent({
1250
1515
  address: this.contractAddress,
1251
- abi: exports.OptimismPortal_jsonAbi,
1252
- eventName: 'WithdrawalFinalized',
1516
+ abi: exports.OptimismPortal2_jsonAbi,
1517
+ eventName: 'WithdrawalProven',
1253
1518
  args: filter,
1254
1519
  onLogs: (logs) => {
1255
1520
  logs.forEach((log) => {
@@ -1259,16 +1524,16 @@ class OptimismPortal_json {
1259
1524
  });
1260
1525
  },
1261
1526
  /**
1262
- * Watch WithdrawalProven events
1527
+ * Watch WithdrawalProvenExtension1 events
1263
1528
  * @param callback Function to call when event is emitted
1264
1529
  * @param filter Optional filter for indexed parameters
1265
1530
  * @returns Unwatch function to stop listening
1266
1531
  */
1267
- WithdrawalProven: (callback, filter) => {
1532
+ WithdrawalProvenExtension1: (callback, filter) => {
1268
1533
  return this.publicClient.watchContractEvent({
1269
1534
  address: this.contractAddress,
1270
- abi: exports.OptimismPortal_jsonAbi,
1271
- eventName: 'WithdrawalProven',
1535
+ abi: exports.OptimismPortal2_jsonAbi,
1536
+ eventName: 'WithdrawalProvenExtension1',
1272
1537
  args: filter,
1273
1538
  onLogs: (logs) => {
1274
1539
  logs.forEach((log) => {
@@ -1280,4 +1545,4 @@ class OptimismPortal_json {
1280
1545
  };
1281
1546
  }
1282
1547
  }
1283
- exports.OptimismPortal_json = OptimismPortal_json;
1548
+ exports.OptimismPortal2_json = OptimismPortal2_json;