@gitmyabi/optimismportal 1.0.6 → 1.0.8
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.
- package/README.md +3 -3
- package/contracts/OptimismPortal_json.d.ts +348 -132
- package/contracts/OptimismPortal_json.js +392 -161
- package/contracts/OptimismPortal_json.ts +468 -162
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **OptimismPortal**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-optimismportal-
|
|
5
|
+
- **Build ID**: `etherscan-optimismportal-eece9cd7-1793636710457`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `c59b77f`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 2
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **OptimismPortal**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/optimismportal@1.0.
|
|
15
|
+
npm install @gitmyabi/optimismportal@1.0.8
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -29,73 +29,35 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
29
29
|
readonly stateMutability: "nonpayable";
|
|
30
30
|
readonly type: "constructor";
|
|
31
31
|
}, {
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly type: "error";
|
|
47
|
-
}, {
|
|
48
|
-
readonly inputs: readonly [];
|
|
49
|
-
readonly name: "GasEstimation";
|
|
50
|
-
readonly type: "error";
|
|
51
|
-
}, {
|
|
52
|
-
readonly inputs: readonly [];
|
|
53
|
-
readonly name: "InvalidDataRemainder";
|
|
54
|
-
readonly type: "error";
|
|
55
|
-
}, {
|
|
56
|
-
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "InvalidHeader";
|
|
58
|
-
readonly type: "error";
|
|
59
|
-
}, {
|
|
60
|
-
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "LargeCalldata";
|
|
62
|
-
readonly type: "error";
|
|
63
|
-
}, {
|
|
64
|
-
readonly inputs: readonly [];
|
|
65
|
-
readonly name: "NoValue";
|
|
66
|
-
readonly type: "error";
|
|
67
|
-
}, {
|
|
68
|
-
readonly inputs: readonly [];
|
|
69
|
-
readonly name: "NonReentrant";
|
|
70
|
-
readonly type: "error";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "OnlyCustomGasToken";
|
|
74
|
-
readonly type: "error";
|
|
75
|
-
}, {
|
|
76
|
-
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "OutOfGas";
|
|
78
|
-
readonly type: "error";
|
|
79
|
-
}, {
|
|
80
|
-
readonly inputs: readonly [];
|
|
81
|
-
readonly name: "SmallGasLimit";
|
|
82
|
-
readonly type: "error";
|
|
83
|
-
}, {
|
|
84
|
-
readonly inputs: readonly [];
|
|
85
|
-
readonly name: "TransferFailed";
|
|
86
|
-
readonly type: "error";
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "Unauthorized";
|
|
90
|
-
readonly type: "error";
|
|
91
|
-
}, {
|
|
92
|
-
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "UnexpectedList";
|
|
94
|
-
readonly type: "error";
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "claimer";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly indexed: false;
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "amount";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly name: "ETHClaimed";
|
|
45
|
+
readonly type: "event";
|
|
95
46
|
}, {
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
|
|
47
|
+
readonly anonymous: false;
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly indexed: true;
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly name: "recipient";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
readonly name: "amount";
|
|
57
|
+
readonly type: "uint256";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "ETHRecovered";
|
|
60
|
+
readonly type: "event";
|
|
99
61
|
}, {
|
|
100
62
|
readonly anonymous: false;
|
|
101
63
|
readonly inputs: readonly [{
|
|
@@ -106,6 +68,31 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
106
68
|
}];
|
|
107
69
|
readonly name: "Initialized";
|
|
108
70
|
readonly type: "event";
|
|
71
|
+
}, {
|
|
72
|
+
readonly anonymous: false;
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "root";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "setter";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "MerkleRootETHSet";
|
|
85
|
+
readonly type: "event";
|
|
86
|
+
}, {
|
|
87
|
+
readonly anonymous: false;
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly indexed: false;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "account";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "Paused";
|
|
95
|
+
readonly type: "event";
|
|
109
96
|
}, {
|
|
110
97
|
readonly anonymous: false;
|
|
111
98
|
readonly inputs: readonly [{
|
|
@@ -131,6 +118,16 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
131
118
|
}];
|
|
132
119
|
readonly name: "TransactionDeposited";
|
|
133
120
|
readonly type: "event";
|
|
121
|
+
}, {
|
|
122
|
+
readonly anonymous: false;
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly indexed: false;
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "account";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "Unpaused";
|
|
130
|
+
readonly type: "event";
|
|
134
131
|
}, {
|
|
135
132
|
readonly anonymous: false;
|
|
136
133
|
readonly inputs: readonly [{
|
|
@@ -168,44 +165,72 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
168
165
|
readonly type: "event";
|
|
169
166
|
}, {
|
|
170
167
|
readonly inputs: readonly [];
|
|
171
|
-
readonly name: "
|
|
168
|
+
readonly name: "GUARDIAN";
|
|
172
169
|
readonly outputs: readonly [{
|
|
173
|
-
readonly internalType: "
|
|
170
|
+
readonly internalType: "address";
|
|
174
171
|
readonly name: "";
|
|
175
|
-
readonly type: "
|
|
172
|
+
readonly type: "address";
|
|
176
173
|
}];
|
|
177
174
|
readonly stateMutability: "view";
|
|
178
175
|
readonly type: "function";
|
|
179
176
|
}, {
|
|
180
|
-
readonly inputs: readonly [
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
readonly inputs: readonly [];
|
|
178
|
+
readonly name: "L2_ORACLE";
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly internalType: "contract L2OutputOracle";
|
|
181
|
+
readonly name: "";
|
|
183
182
|
readonly type: "address";
|
|
184
|
-
}
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
readonly name: "RECOVERY_TIMESTAMP";
|
|
189
|
+
readonly outputs: readonly [{
|
|
185
190
|
readonly internalType: "uint256";
|
|
186
|
-
readonly name: "
|
|
191
|
+
readonly name: "";
|
|
187
192
|
readonly type: "uint256";
|
|
188
|
-
}
|
|
193
|
+
}];
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
}, {
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly name: "SYSTEM_CONFIG";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly internalType: "contract SystemConfig";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "view";
|
|
205
|
+
readonly type: "function";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [{
|
|
189
208
|
readonly internalType: "uint256";
|
|
190
|
-
readonly name: "
|
|
209
|
+
readonly name: "_amount";
|
|
191
210
|
readonly type: "uint256";
|
|
192
211
|
}, {
|
|
193
|
-
readonly internalType: "
|
|
194
|
-
readonly name: "
|
|
195
|
-
readonly type: "
|
|
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";
|
|
212
|
+
readonly internalType: "bytes32[]";
|
|
213
|
+
readonly name: "_proof";
|
|
214
|
+
readonly type: "bytes32[]";
|
|
204
215
|
}];
|
|
205
|
-
readonly name: "
|
|
216
|
+
readonly name: "claimETH";
|
|
206
217
|
readonly outputs: readonly [];
|
|
207
218
|
readonly stateMutability: "nonpayable";
|
|
208
219
|
readonly type: "function";
|
|
220
|
+
}, {
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly internalType: "address";
|
|
223
|
+
readonly name: "";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "claimedETH";
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "view";
|
|
233
|
+
readonly type: "function";
|
|
209
234
|
}, {
|
|
210
235
|
readonly inputs: readonly [{
|
|
211
236
|
readonly internalType: "address";
|
|
@@ -302,14 +327,18 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
302
327
|
readonly internalType: "contract L2OutputOracle";
|
|
303
328
|
readonly name: "_l2Oracle";
|
|
304
329
|
readonly type: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly name: "_guardian";
|
|
333
|
+
readonly type: "address";
|
|
305
334
|
}, {
|
|
306
335
|
readonly internalType: "contract SystemConfig";
|
|
307
336
|
readonly name: "_systemConfig";
|
|
308
337
|
readonly type: "address";
|
|
309
338
|
}, {
|
|
310
|
-
readonly internalType: "
|
|
311
|
-
readonly name: "
|
|
312
|
-
readonly type: "
|
|
339
|
+
readonly internalType: "bool";
|
|
340
|
+
readonly name: "_paused";
|
|
341
|
+
readonly type: "bool";
|
|
313
342
|
}];
|
|
314
343
|
readonly name: "initialize";
|
|
315
344
|
readonly outputs: readonly [];
|
|
@@ -349,6 +378,16 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
349
378
|
}];
|
|
350
379
|
readonly stateMutability: "view";
|
|
351
380
|
readonly type: "function";
|
|
381
|
+
}, {
|
|
382
|
+
readonly inputs: readonly [];
|
|
383
|
+
readonly name: "merkleRootETH";
|
|
384
|
+
readonly outputs: readonly [{
|
|
385
|
+
readonly internalType: "bytes32";
|
|
386
|
+
readonly name: "";
|
|
387
|
+
readonly type: "bytes32";
|
|
388
|
+
}];
|
|
389
|
+
readonly stateMutability: "view";
|
|
390
|
+
readonly type: "function";
|
|
352
391
|
}, {
|
|
353
392
|
readonly inputs: readonly [{
|
|
354
393
|
readonly internalType: "uint64";
|
|
@@ -381,12 +420,18 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
381
420
|
}];
|
|
382
421
|
readonly stateMutability: "view";
|
|
383
422
|
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "pause";
|
|
426
|
+
readonly outputs: readonly [];
|
|
427
|
+
readonly stateMutability: "nonpayable";
|
|
428
|
+
readonly type: "function";
|
|
384
429
|
}, {
|
|
385
430
|
readonly inputs: readonly [];
|
|
386
431
|
readonly name: "paused";
|
|
387
432
|
readonly outputs: readonly [{
|
|
388
433
|
readonly internalType: "bool";
|
|
389
|
-
readonly name: "
|
|
434
|
+
readonly name: "";
|
|
390
435
|
readonly type: "bool";
|
|
391
436
|
}];
|
|
392
437
|
readonly stateMutability: "view";
|
|
@@ -480,34 +525,22 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
480
525
|
}, {
|
|
481
526
|
readonly inputs: readonly [{
|
|
482
527
|
readonly internalType: "address";
|
|
483
|
-
readonly name: "
|
|
528
|
+
readonly name: "_recipient";
|
|
484
529
|
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";
|
|
497
530
|
}];
|
|
498
|
-
readonly name: "
|
|
531
|
+
readonly name: "recoverETH";
|
|
499
532
|
readonly outputs: readonly [];
|
|
500
533
|
readonly stateMutability: "nonpayable";
|
|
501
534
|
readonly type: "function";
|
|
502
535
|
}, {
|
|
503
|
-
readonly inputs: readonly [
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
readonly
|
|
507
|
-
readonly name: "";
|
|
508
|
-
readonly type: "address";
|
|
536
|
+
readonly inputs: readonly [{
|
|
537
|
+
readonly internalType: "bytes32";
|
|
538
|
+
readonly name: "_root";
|
|
539
|
+
readonly type: "bytes32";
|
|
509
540
|
}];
|
|
510
|
-
readonly
|
|
541
|
+
readonly name: "setMerkleRootETH";
|
|
542
|
+
readonly outputs: readonly [];
|
|
543
|
+
readonly stateMutability: "nonpayable";
|
|
511
544
|
readonly type: "function";
|
|
512
545
|
}, {
|
|
513
546
|
readonly inputs: readonly [];
|
|
@@ -519,6 +552,12 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
519
552
|
}];
|
|
520
553
|
readonly stateMutability: "view";
|
|
521
554
|
readonly type: "function";
|
|
555
|
+
}, {
|
|
556
|
+
readonly inputs: readonly [];
|
|
557
|
+
readonly name: "unpause";
|
|
558
|
+
readonly outputs: readonly [];
|
|
559
|
+
readonly stateMutability: "nonpayable";
|
|
560
|
+
readonly type: "function";
|
|
522
561
|
}, {
|
|
523
562
|
readonly inputs: readonly [];
|
|
524
563
|
readonly name: "version";
|
|
@@ -527,7 +566,7 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
527
566
|
readonly name: "";
|
|
528
567
|
readonly type: "string";
|
|
529
568
|
}];
|
|
530
|
-
readonly stateMutability: "
|
|
569
|
+
readonly stateMutability: "view";
|
|
531
570
|
readonly type: "function";
|
|
532
571
|
}, {
|
|
533
572
|
readonly stateMutability: "payable";
|
|
@@ -590,10 +629,30 @@ export declare class OptimismPortal_json {
|
|
|
590
629
|
*/
|
|
591
630
|
getContract(): OptimismPortal_jsonContract;
|
|
592
631
|
/**
|
|
593
|
-
*
|
|
632
|
+
* GUARDIAN
|
|
633
|
+
* view
|
|
634
|
+
*/
|
|
635
|
+
GUARDIAN(): Promise<`0x${string}`>;
|
|
636
|
+
/**
|
|
637
|
+
* L2_ORACLE
|
|
594
638
|
* view
|
|
595
639
|
*/
|
|
596
|
-
|
|
640
|
+
L2_ORACLE(): Promise<`0x${string}`>;
|
|
641
|
+
/**
|
|
642
|
+
* RECOVERY_TIMESTAMP
|
|
643
|
+
* view
|
|
644
|
+
*/
|
|
645
|
+
RECOVERY_TIMESTAMP(): Promise<bigint>;
|
|
646
|
+
/**
|
|
647
|
+
* SYSTEM_CONFIG
|
|
648
|
+
* view
|
|
649
|
+
*/
|
|
650
|
+
SYSTEM_CONFIG(): Promise<`0x${string}`>;
|
|
651
|
+
/**
|
|
652
|
+
* claimedETH
|
|
653
|
+
* view
|
|
654
|
+
*/
|
|
655
|
+
claimedETH(arg0: `0x${string}`): Promise<bigint>;
|
|
597
656
|
/**
|
|
598
657
|
* finalizedWithdrawals
|
|
599
658
|
* view
|
|
@@ -619,6 +678,11 @@ export declare class OptimismPortal_json {
|
|
|
619
678
|
* view
|
|
620
679
|
*/
|
|
621
680
|
l2Sender(): Promise<`0x${string}`>;
|
|
681
|
+
/**
|
|
682
|
+
* merkleRootETH
|
|
683
|
+
* view
|
|
684
|
+
*/
|
|
685
|
+
merkleRootETH(): Promise<`0x${string}`>;
|
|
622
686
|
/**
|
|
623
687
|
* minimumGasLimit
|
|
624
688
|
* pure
|
|
@@ -639,11 +703,6 @@ export declare class OptimismPortal_json {
|
|
|
639
703
|
* view
|
|
640
704
|
*/
|
|
641
705
|
provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint, bigint]>;
|
|
642
|
-
/**
|
|
643
|
-
* superchainConfig
|
|
644
|
-
* view
|
|
645
|
-
*/
|
|
646
|
-
superchainConfig(): Promise<`0x${string}`>;
|
|
647
706
|
/**
|
|
648
707
|
* systemConfig
|
|
649
708
|
* view
|
|
@@ -651,15 +710,15 @@ export declare class OptimismPortal_json {
|
|
|
651
710
|
systemConfig(): Promise<`0x${string}`>;
|
|
652
711
|
/**
|
|
653
712
|
* version
|
|
654
|
-
*
|
|
713
|
+
* view
|
|
655
714
|
*/
|
|
656
715
|
version(): Promise<string>;
|
|
657
716
|
/**
|
|
658
|
-
*
|
|
717
|
+
* claimETH
|
|
659
718
|
* nonpayable
|
|
660
719
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
661
720
|
*/
|
|
662
|
-
|
|
721
|
+
claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
663
722
|
accessList?: import('viem').AccessList;
|
|
664
723
|
authorizationList?: import('viem').AuthorizationList;
|
|
665
724
|
chain?: import('viem').Chain | null;
|
|
@@ -727,7 +786,24 @@ export declare class OptimismPortal_json {
|
|
|
727
786
|
* nonpayable
|
|
728
787
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
729
788
|
*/
|
|
730
|
-
initialize(_l2Oracle: `0x${string}`,
|
|
789
|
+
initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
790
|
+
accessList?: import('viem').AccessList;
|
|
791
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
792
|
+
chain?: import('viem').Chain | null;
|
|
793
|
+
dataSuffix?: `0x${string}`;
|
|
794
|
+
gas?: bigint;
|
|
795
|
+
gasPrice?: bigint;
|
|
796
|
+
maxFeePerGas?: bigint;
|
|
797
|
+
maxPriorityFeePerGas?: bigint;
|
|
798
|
+
nonce?: number;
|
|
799
|
+
value?: bigint;
|
|
800
|
+
}): Promise<`0x${string}`>;
|
|
801
|
+
/**
|
|
802
|
+
* pause
|
|
803
|
+
* nonpayable
|
|
804
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
805
|
+
*/
|
|
806
|
+
pause(options?: {
|
|
731
807
|
accessList?: import('viem').AccessList;
|
|
732
808
|
authorizationList?: import('viem').AuthorizationList;
|
|
733
809
|
chain?: import('viem').Chain | null;
|
|
@@ -757,11 +833,45 @@ export declare class OptimismPortal_json {
|
|
|
757
833
|
value?: bigint;
|
|
758
834
|
}): Promise<`0x${string}`>;
|
|
759
835
|
/**
|
|
760
|
-
*
|
|
836
|
+
* recoverETH
|
|
761
837
|
* nonpayable
|
|
762
838
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
763
839
|
*/
|
|
764
|
-
|
|
840
|
+
recoverETH(_recipient: `0x${string}`, options?: {
|
|
841
|
+
accessList?: import('viem').AccessList;
|
|
842
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
843
|
+
chain?: import('viem').Chain | null;
|
|
844
|
+
dataSuffix?: `0x${string}`;
|
|
845
|
+
gas?: bigint;
|
|
846
|
+
gasPrice?: bigint;
|
|
847
|
+
maxFeePerGas?: bigint;
|
|
848
|
+
maxPriorityFeePerGas?: bigint;
|
|
849
|
+
nonce?: number;
|
|
850
|
+
value?: bigint;
|
|
851
|
+
}): Promise<`0x${string}`>;
|
|
852
|
+
/**
|
|
853
|
+
* setMerkleRootETH
|
|
854
|
+
* nonpayable
|
|
855
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
856
|
+
*/
|
|
857
|
+
setMerkleRootETH(_root: `0x${string}`, options?: {
|
|
858
|
+
accessList?: import('viem').AccessList;
|
|
859
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
860
|
+
chain?: import('viem').Chain | null;
|
|
861
|
+
dataSuffix?: `0x${string}`;
|
|
862
|
+
gas?: bigint;
|
|
863
|
+
gasPrice?: bigint;
|
|
864
|
+
maxFeePerGas?: bigint;
|
|
865
|
+
maxPriorityFeePerGas?: bigint;
|
|
866
|
+
nonce?: number;
|
|
867
|
+
value?: bigint;
|
|
868
|
+
}): Promise<`0x${string}`>;
|
|
869
|
+
/**
|
|
870
|
+
* unpause
|
|
871
|
+
* nonpayable
|
|
872
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
873
|
+
*/
|
|
874
|
+
unpause(options?: {
|
|
765
875
|
accessList?: import('viem').AccessList;
|
|
766
876
|
authorizationList?: import('viem').AuthorizationList;
|
|
767
877
|
chain?: import('viem').Chain | null;
|
|
@@ -783,11 +893,11 @@ export declare class OptimismPortal_json {
|
|
|
783
893
|
*/
|
|
784
894
|
get simulate(): {
|
|
785
895
|
/**
|
|
786
|
-
* Simulate
|
|
896
|
+
* Simulate claimETH
|
|
787
897
|
* Returns gas estimate and result without sending transaction
|
|
788
898
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
789
899
|
*/
|
|
790
|
-
|
|
900
|
+
claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
791
901
|
accessList?: import("viem").AccessList;
|
|
792
902
|
authorizationList?: import("viem").AuthorizationList;
|
|
793
903
|
chain?: import("viem").Chain | null;
|
|
@@ -855,7 +965,24 @@ export declare class OptimismPortal_json {
|
|
|
855
965
|
* Returns gas estimate and result without sending transaction
|
|
856
966
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
967
|
*/
|
|
858
|
-
initialize(_l2Oracle: `0x${string}`,
|
|
968
|
+
initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
969
|
+
accessList?: import("viem").AccessList;
|
|
970
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
971
|
+
chain?: import("viem").Chain | null;
|
|
972
|
+
dataSuffix?: `0x${string}`;
|
|
973
|
+
gas?: bigint;
|
|
974
|
+
gasPrice?: bigint;
|
|
975
|
+
maxFeePerGas?: bigint;
|
|
976
|
+
maxPriorityFeePerGas?: bigint;
|
|
977
|
+
nonce?: number;
|
|
978
|
+
value?: bigint;
|
|
979
|
+
}): Promise<void>;
|
|
980
|
+
/**
|
|
981
|
+
* Simulate pause
|
|
982
|
+
* Returns gas estimate and result without sending transaction
|
|
983
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
|
+
*/
|
|
985
|
+
pause(options?: {
|
|
859
986
|
accessList?: import("viem").AccessList;
|
|
860
987
|
authorizationList?: import("viem").AuthorizationList;
|
|
861
988
|
chain?: import("viem").Chain | null;
|
|
@@ -885,11 +1012,45 @@ export declare class OptimismPortal_json {
|
|
|
885
1012
|
value?: bigint;
|
|
886
1013
|
}): Promise<void>;
|
|
887
1014
|
/**
|
|
888
|
-
* Simulate
|
|
1015
|
+
* Simulate recoverETH
|
|
1016
|
+
* Returns gas estimate and result without sending transaction
|
|
1017
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
|
+
*/
|
|
1019
|
+
recoverETH(_recipient: `0x${string}`, options?: {
|
|
1020
|
+
accessList?: import("viem").AccessList;
|
|
1021
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1022
|
+
chain?: import("viem").Chain | null;
|
|
1023
|
+
dataSuffix?: `0x${string}`;
|
|
1024
|
+
gas?: bigint;
|
|
1025
|
+
gasPrice?: bigint;
|
|
1026
|
+
maxFeePerGas?: bigint;
|
|
1027
|
+
maxPriorityFeePerGas?: bigint;
|
|
1028
|
+
nonce?: number;
|
|
1029
|
+
value?: bigint;
|
|
1030
|
+
}): Promise<void>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Simulate setMerkleRootETH
|
|
1033
|
+
* Returns gas estimate and result without sending transaction
|
|
1034
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
|
+
*/
|
|
1036
|
+
setMerkleRootETH(_root: `0x${string}`, options?: {
|
|
1037
|
+
accessList?: import("viem").AccessList;
|
|
1038
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1039
|
+
chain?: import("viem").Chain | null;
|
|
1040
|
+
dataSuffix?: `0x${string}`;
|
|
1041
|
+
gas?: bigint;
|
|
1042
|
+
gasPrice?: bigint;
|
|
1043
|
+
maxFeePerGas?: bigint;
|
|
1044
|
+
maxPriorityFeePerGas?: bigint;
|
|
1045
|
+
nonce?: number;
|
|
1046
|
+
value?: bigint;
|
|
1047
|
+
}): Promise<void>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Simulate unpause
|
|
889
1050
|
* Returns gas estimate and result without sending transaction
|
|
890
1051
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
891
1052
|
*/
|
|
892
|
-
|
|
1053
|
+
unpause(options?: {
|
|
893
1054
|
accessList?: import("viem").AccessList;
|
|
894
1055
|
authorizationList?: import("viem").AuthorizationList;
|
|
895
1056
|
chain?: import("viem").Chain | null;
|
|
@@ -915,6 +1076,30 @@ export declare class OptimismPortal_json {
|
|
|
915
1076
|
* unwatch();
|
|
916
1077
|
*/
|
|
917
1078
|
get watch(): {
|
|
1079
|
+
/**
|
|
1080
|
+
* Watch ETHClaimed events
|
|
1081
|
+
* @param callback Function to call when event is emitted
|
|
1082
|
+
* @param filter Optional filter for indexed parameters
|
|
1083
|
+
* @returns Unwatch function to stop listening
|
|
1084
|
+
*/
|
|
1085
|
+
ETHClaimed: (callback: (event: {
|
|
1086
|
+
claimer: `0x${string}`;
|
|
1087
|
+
amount: bigint;
|
|
1088
|
+
}) => void, filter?: {
|
|
1089
|
+
claimer: `0x${string}`;
|
|
1090
|
+
}) => () => void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Watch ETHRecovered events
|
|
1093
|
+
* @param callback Function to call when event is emitted
|
|
1094
|
+
* @param filter Optional filter for indexed parameters
|
|
1095
|
+
* @returns Unwatch function to stop listening
|
|
1096
|
+
*/
|
|
1097
|
+
ETHRecovered: (callback: (event: {
|
|
1098
|
+
recipient: `0x${string}`;
|
|
1099
|
+
amount: bigint;
|
|
1100
|
+
}) => void, filter?: {
|
|
1101
|
+
recipient: `0x${string}`;
|
|
1102
|
+
}) => () => void;
|
|
918
1103
|
/**
|
|
919
1104
|
* Watch Initialized events
|
|
920
1105
|
* @param callback Function to call when event is emitted
|
|
@@ -924,6 +1109,28 @@ export declare class OptimismPortal_json {
|
|
|
924
1109
|
Initialized: (callback: (event: {
|
|
925
1110
|
version: bigint;
|
|
926
1111
|
}) => void) => () => void;
|
|
1112
|
+
/**
|
|
1113
|
+
* Watch MerkleRootETHSet 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
|
+
MerkleRootETHSet: (callback: (event: {
|
|
1119
|
+
root: `0x${string}`;
|
|
1120
|
+
setter: `0x${string}`;
|
|
1121
|
+
}) => void, filter?: {
|
|
1122
|
+
root: `0x${string}`;
|
|
1123
|
+
setter: `0x${string}`;
|
|
1124
|
+
}) => () => void;
|
|
1125
|
+
/**
|
|
1126
|
+
* Watch Paused events
|
|
1127
|
+
* @param callback Function to call when event is emitted
|
|
1128
|
+
* @param filter Optional filter for indexed parameters
|
|
1129
|
+
* @returns Unwatch function to stop listening
|
|
1130
|
+
*/
|
|
1131
|
+
Paused: (callback: (event: {
|
|
1132
|
+
account: `0x${string}`;
|
|
1133
|
+
}) => void) => () => void;
|
|
927
1134
|
/**
|
|
928
1135
|
* Watch TransactionDeposited events
|
|
929
1136
|
* @param callback Function to call when event is emitted
|
|
@@ -940,6 +1147,15 @@ export declare class OptimismPortal_json {
|
|
|
940
1147
|
to: `0x${string}`;
|
|
941
1148
|
version: bigint;
|
|
942
1149
|
}) => () => void;
|
|
1150
|
+
/**
|
|
1151
|
+
* Watch Unpaused events
|
|
1152
|
+
* @param callback Function to call when event is emitted
|
|
1153
|
+
* @param filter Optional filter for indexed parameters
|
|
1154
|
+
* @returns Unwatch function to stop listening
|
|
1155
|
+
*/
|
|
1156
|
+
Unpaused: (callback: (event: {
|
|
1157
|
+
account: `0x${string}`;
|
|
1158
|
+
}) => void) => () => void;
|
|
943
1159
|
/**
|
|
944
1160
|
* Watch WithdrawalFinalized events
|
|
945
1161
|
* @param callback Function to call when event is emitted
|