@gitmyabi/optimismportal 1.0.0 → 1.0.2
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/{OptimismPortal2_json.d.ts → OptimismPortal_json.d.ts} +169 -387
- package/contracts/{OptimismPortal2_json.js → OptimismPortal_json.js} +181 -497
- package/contracts/{OptimismPortal2_json.ts → OptimismPortal_json.ts} +209 -513
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -20,101 +20,57 @@ export type Types_OutputRootProof = {
|
|
|
20
20
|
latestBlockhash: `0x${string}`;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
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
|
|
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: "
|
|
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";
|
|
33
|
+
readonly name: "BadTarget";
|
|
58
34
|
readonly type: "error";
|
|
59
35
|
}, {
|
|
60
36
|
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "
|
|
37
|
+
readonly name: "CallPaused";
|
|
62
38
|
readonly type: "error";
|
|
63
39
|
}, {
|
|
64
40
|
readonly inputs: readonly [];
|
|
65
|
-
readonly name: "
|
|
66
|
-
readonly type: "error";
|
|
67
|
-
}, {
|
|
68
|
-
readonly inputs: readonly [];
|
|
69
|
-
readonly name: "OptimismPortal_GasEstimation";
|
|
70
|
-
readonly type: "error";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "OptimismPortal_GasLimitTooLow";
|
|
74
|
-
readonly type: "error";
|
|
75
|
-
}, {
|
|
76
|
-
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_InvalidLockboxState";
|
|
41
|
+
readonly name: "ContentLengthMismatch";
|
|
86
42
|
readonly type: "error";
|
|
87
43
|
}, {
|
|
88
44
|
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "
|
|
45
|
+
readonly name: "EmptyItem";
|
|
90
46
|
readonly type: "error";
|
|
91
47
|
}, {
|
|
92
48
|
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "
|
|
49
|
+
readonly name: "GasEstimation";
|
|
94
50
|
readonly type: "error";
|
|
95
51
|
}, {
|
|
96
52
|
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "
|
|
53
|
+
readonly name: "InvalidDataRemainder";
|
|
98
54
|
readonly type: "error";
|
|
99
55
|
}, {
|
|
100
56
|
readonly inputs: readonly [];
|
|
101
|
-
readonly name: "
|
|
57
|
+
readonly name: "InvalidHeader";
|
|
102
58
|
readonly type: "error";
|
|
103
59
|
}, {
|
|
104
60
|
readonly inputs: readonly [];
|
|
105
|
-
readonly name: "
|
|
61
|
+
readonly name: "LargeCalldata";
|
|
106
62
|
readonly type: "error";
|
|
107
63
|
}, {
|
|
108
64
|
readonly inputs: readonly [];
|
|
109
|
-
readonly name: "
|
|
65
|
+
readonly name: "NoValue";
|
|
110
66
|
readonly type: "error";
|
|
111
67
|
}, {
|
|
112
68
|
readonly inputs: readonly [];
|
|
113
|
-
readonly name: "
|
|
69
|
+
readonly name: "NonReentrant";
|
|
114
70
|
readonly type: "error";
|
|
115
71
|
}, {
|
|
116
72
|
readonly inputs: readonly [];
|
|
117
|
-
readonly name: "
|
|
73
|
+
readonly name: "OnlyCustomGasToken";
|
|
118
74
|
readonly type: "error";
|
|
119
75
|
}, {
|
|
120
76
|
readonly inputs: readonly [];
|
|
@@ -122,31 +78,15 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
122
78
|
readonly type: "error";
|
|
123
79
|
}, {
|
|
124
80
|
readonly inputs: readonly [];
|
|
125
|
-
readonly name: "
|
|
126
|
-
readonly type: "error";
|
|
127
|
-
}, {
|
|
128
|
-
readonly inputs: readonly [];
|
|
129
|
-
readonly name: "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner";
|
|
81
|
+
readonly name: "SmallGasLimit";
|
|
130
82
|
readonly type: "error";
|
|
131
83
|
}, {
|
|
132
84
|
readonly inputs: readonly [];
|
|
133
|
-
readonly name: "
|
|
85
|
+
readonly name: "TransferFailed";
|
|
134
86
|
readonly type: "error";
|
|
135
87
|
}, {
|
|
136
88
|
readonly inputs: readonly [];
|
|
137
|
-
readonly name: "
|
|
138
|
-
readonly type: "error";
|
|
139
|
-
}, {
|
|
140
|
-
readonly inputs: readonly [];
|
|
141
|
-
readonly name: "ProxyAdminOwnedBase_NotSharedProxyAdminOwner";
|
|
142
|
-
readonly type: "error";
|
|
143
|
-
}, {
|
|
144
|
-
readonly inputs: readonly [];
|
|
145
|
-
readonly name: "ProxyAdminOwnedBase_ProxyAdminNotFound";
|
|
146
|
-
readonly type: "error";
|
|
147
|
-
}, {
|
|
148
|
-
readonly inputs: readonly [];
|
|
149
|
-
readonly name: "ReinitializableBase_ZeroInitVersion";
|
|
89
|
+
readonly name: "Unauthorized";
|
|
150
90
|
readonly type: "error";
|
|
151
91
|
}, {
|
|
152
92
|
readonly inputs: readonly [];
|
|
@@ -226,44 +166,45 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
226
166
|
}];
|
|
227
167
|
readonly name: "WithdrawalProven";
|
|
228
168
|
readonly type: "event";
|
|
229
|
-
}, {
|
|
230
|
-
readonly anonymous: false;
|
|
231
|
-
readonly inputs: readonly [{
|
|
232
|
-
readonly indexed: true;
|
|
233
|
-
readonly internalType: "bytes32";
|
|
234
|
-
readonly name: "withdrawalHash";
|
|
235
|
-
readonly type: "bytes32";
|
|
236
|
-
}, {
|
|
237
|
-
readonly indexed: true;
|
|
238
|
-
readonly internalType: "address";
|
|
239
|
-
readonly name: "proofSubmitter";
|
|
240
|
-
readonly type: "address";
|
|
241
|
-
}];
|
|
242
|
-
readonly name: "WithdrawalProvenExtension1";
|
|
243
|
-
readonly type: "event";
|
|
244
169
|
}, {
|
|
245
170
|
readonly inputs: readonly [];
|
|
246
|
-
readonly name: "
|
|
171
|
+
readonly name: "balance";
|
|
247
172
|
readonly outputs: readonly [{
|
|
248
|
-
readonly internalType: "
|
|
173
|
+
readonly internalType: "uint256";
|
|
249
174
|
readonly name: "";
|
|
250
|
-
readonly type: "
|
|
175
|
+
readonly type: "uint256";
|
|
251
176
|
}];
|
|
252
177
|
readonly stateMutability: "view";
|
|
253
178
|
readonly type: "function";
|
|
254
179
|
}, {
|
|
255
180
|
readonly inputs: readonly [{
|
|
256
|
-
readonly internalType: "bytes32";
|
|
257
|
-
readonly name: "_withdrawalHash";
|
|
258
|
-
readonly type: "bytes32";
|
|
259
|
-
}, {
|
|
260
181
|
readonly internalType: "address";
|
|
261
|
-
readonly name: "
|
|
182
|
+
readonly name: "_to";
|
|
262
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";
|
|
263
204
|
}];
|
|
264
|
-
readonly name: "
|
|
205
|
+
readonly name: "depositERC20Transaction";
|
|
265
206
|
readonly outputs: readonly [];
|
|
266
|
-
readonly stateMutability: "
|
|
207
|
+
readonly stateMutability: "nonpayable";
|
|
267
208
|
readonly type: "function";
|
|
268
209
|
}, {
|
|
269
210
|
readonly inputs: readonly [{
|
|
@@ -291,56 +232,12 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
291
232
|
readonly outputs: readonly [];
|
|
292
233
|
readonly stateMutability: "payable";
|
|
293
234
|
readonly type: "function";
|
|
294
|
-
}, {
|
|
295
|
-
readonly inputs: readonly [{
|
|
296
|
-
readonly internalType: "contract IDisputeGame";
|
|
297
|
-
readonly name: "_disputeGame";
|
|
298
|
-
readonly type: "address";
|
|
299
|
-
}];
|
|
300
|
-
readonly name: "disputeGameBlacklist";
|
|
301
|
-
readonly outputs: readonly [{
|
|
302
|
-
readonly internalType: "bool";
|
|
303
|
-
readonly name: "";
|
|
304
|
-
readonly type: "bool";
|
|
305
|
-
}];
|
|
306
|
-
readonly stateMutability: "view";
|
|
307
|
-
readonly type: "function";
|
|
308
|
-
}, {
|
|
309
|
-
readonly inputs: readonly [];
|
|
310
|
-
readonly name: "disputeGameFactory";
|
|
311
|
-
readonly outputs: readonly [{
|
|
312
|
-
readonly internalType: "contract IDisputeGameFactory";
|
|
313
|
-
readonly name: "";
|
|
314
|
-
readonly type: "address";
|
|
315
|
-
}];
|
|
316
|
-
readonly stateMutability: "view";
|
|
317
|
-
readonly type: "function";
|
|
318
|
-
}, {
|
|
319
|
-
readonly inputs: readonly [];
|
|
320
|
-
readonly name: "disputeGameFinalityDelaySeconds";
|
|
321
|
-
readonly outputs: readonly [{
|
|
322
|
-
readonly internalType: "uint256";
|
|
323
|
-
readonly name: "";
|
|
324
|
-
readonly type: "uint256";
|
|
325
|
-
}];
|
|
326
|
-
readonly stateMutability: "view";
|
|
327
|
-
readonly type: "function";
|
|
328
235
|
}, {
|
|
329
236
|
readonly inputs: readonly [];
|
|
330
237
|
readonly name: "donateETH";
|
|
331
238
|
readonly outputs: readonly [];
|
|
332
239
|
readonly stateMutability: "payable";
|
|
333
240
|
readonly type: "function";
|
|
334
|
-
}, {
|
|
335
|
-
readonly inputs: readonly [];
|
|
336
|
-
readonly name: "ethLockbox";
|
|
337
|
-
readonly outputs: readonly [{
|
|
338
|
-
readonly internalType: "contract IETHLockbox";
|
|
339
|
-
readonly name: "";
|
|
340
|
-
readonly type: "address";
|
|
341
|
-
}];
|
|
342
|
-
readonly stateMutability: "view";
|
|
343
|
-
readonly type: "function";
|
|
344
241
|
}, {
|
|
345
242
|
readonly inputs: readonly [{
|
|
346
243
|
readonly components: readonly [{
|
|
@@ -376,45 +273,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
376
273
|
readonly outputs: readonly [];
|
|
377
274
|
readonly stateMutability: "nonpayable";
|
|
378
275
|
readonly type: "function";
|
|
379
|
-
}, {
|
|
380
|
-
readonly inputs: readonly [{
|
|
381
|
-
readonly components: readonly [{
|
|
382
|
-
readonly internalType: "uint256";
|
|
383
|
-
readonly name: "nonce";
|
|
384
|
-
readonly type: "uint256";
|
|
385
|
-
}, {
|
|
386
|
-
readonly internalType: "address";
|
|
387
|
-
readonly name: "sender";
|
|
388
|
-
readonly type: "address";
|
|
389
|
-
}, {
|
|
390
|
-
readonly internalType: "address";
|
|
391
|
-
readonly name: "target";
|
|
392
|
-
readonly type: "address";
|
|
393
|
-
}, {
|
|
394
|
-
readonly internalType: "uint256";
|
|
395
|
-
readonly name: "value";
|
|
396
|
-
readonly type: "uint256";
|
|
397
|
-
}, {
|
|
398
|
-
readonly internalType: "uint256";
|
|
399
|
-
readonly name: "gasLimit";
|
|
400
|
-
readonly type: "uint256";
|
|
401
|
-
}, {
|
|
402
|
-
readonly internalType: "bytes";
|
|
403
|
-
readonly name: "data";
|
|
404
|
-
readonly type: "bytes";
|
|
405
|
-
}];
|
|
406
|
-
readonly internalType: "struct Types.WithdrawalTransaction";
|
|
407
|
-
readonly name: "_tx";
|
|
408
|
-
readonly type: "tuple";
|
|
409
|
-
}, {
|
|
410
|
-
readonly internalType: "address";
|
|
411
|
-
readonly name: "_proofSubmitter";
|
|
412
|
-
readonly type: "address";
|
|
413
|
-
}];
|
|
414
|
-
readonly name: "finalizeWithdrawalTransactionExternalProof";
|
|
415
|
-
readonly outputs: readonly [];
|
|
416
|
-
readonly stateMutability: "nonpayable";
|
|
417
|
-
readonly type: "function";
|
|
418
276
|
}, {
|
|
419
277
|
readonly inputs: readonly [{
|
|
420
278
|
readonly internalType: "bytes32";
|
|
@@ -439,30 +297,48 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
439
297
|
}];
|
|
440
298
|
readonly stateMutability: "view";
|
|
441
299
|
readonly type: "function";
|
|
442
|
-
}, {
|
|
443
|
-
readonly inputs: readonly [];
|
|
444
|
-
readonly name: "initVersion";
|
|
445
|
-
readonly outputs: readonly [{
|
|
446
|
-
readonly internalType: "uint8";
|
|
447
|
-
readonly name: "";
|
|
448
|
-
readonly type: "uint8";
|
|
449
|
-
}];
|
|
450
|
-
readonly stateMutability: "view";
|
|
451
|
-
readonly type: "function";
|
|
452
300
|
}, {
|
|
453
301
|
readonly inputs: readonly [{
|
|
454
|
-
readonly internalType: "contract
|
|
302
|
+
readonly internalType: "contract L2OutputOracle";
|
|
303
|
+
readonly name: "_l2Oracle";
|
|
304
|
+
readonly type: "address";
|
|
305
|
+
}, {
|
|
306
|
+
readonly internalType: "contract SystemConfig";
|
|
455
307
|
readonly name: "_systemConfig";
|
|
456
308
|
readonly type: "address";
|
|
457
309
|
}, {
|
|
458
|
-
readonly internalType: "contract
|
|
459
|
-
readonly name: "
|
|
310
|
+
readonly internalType: "contract SuperchainConfig";
|
|
311
|
+
readonly name: "_superchainConfig";
|
|
460
312
|
readonly type: "address";
|
|
461
313
|
}];
|
|
462
314
|
readonly name: "initialize";
|
|
463
315
|
readonly outputs: readonly [];
|
|
464
316
|
readonly stateMutability: "nonpayable";
|
|
465
317
|
readonly type: "function";
|
|
318
|
+
}, {
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly internalType: "uint256";
|
|
321
|
+
readonly name: "_l2OutputIndex";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "isOutputFinalized";
|
|
325
|
+
readonly outputs: readonly [{
|
|
326
|
+
readonly internalType: "bool";
|
|
327
|
+
readonly name: "";
|
|
328
|
+
readonly type: "bool";
|
|
329
|
+
}];
|
|
330
|
+
readonly stateMutability: "view";
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
}, {
|
|
333
|
+
readonly inputs: readonly [];
|
|
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";
|
|
341
|
+
readonly type: "function";
|
|
466
342
|
}, {
|
|
467
343
|
readonly inputs: readonly [];
|
|
468
344
|
readonly name: "l2Sender";
|
|
@@ -487,20 +363,6 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
487
363
|
}];
|
|
488
364
|
readonly stateMutability: "pure";
|
|
489
365
|
readonly type: "function";
|
|
490
|
-
}, {
|
|
491
|
-
readonly inputs: readonly [{
|
|
492
|
-
readonly internalType: "bytes32";
|
|
493
|
-
readonly name: "_withdrawalHash";
|
|
494
|
-
readonly type: "bytes32";
|
|
495
|
-
}];
|
|
496
|
-
readonly name: "numProofSubmitters";
|
|
497
|
-
readonly outputs: readonly [{
|
|
498
|
-
readonly internalType: "uint256";
|
|
499
|
-
readonly name: "";
|
|
500
|
-
readonly type: "uint256";
|
|
501
|
-
}];
|
|
502
|
-
readonly stateMutability: "view";
|
|
503
|
-
readonly type: "function";
|
|
504
366
|
}, {
|
|
505
367
|
readonly inputs: readonly [];
|
|
506
368
|
readonly name: "params";
|
|
@@ -524,39 +386,11 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
524
386
|
readonly name: "paused";
|
|
525
387
|
readonly outputs: readonly [{
|
|
526
388
|
readonly internalType: "bool";
|
|
527
|
-
readonly name: "";
|
|
389
|
+
readonly name: "paused_";
|
|
528
390
|
readonly type: "bool";
|
|
529
391
|
}];
|
|
530
392
|
readonly stateMutability: "view";
|
|
531
393
|
readonly type: "function";
|
|
532
|
-
}, {
|
|
533
|
-
readonly inputs: readonly [];
|
|
534
|
-
readonly name: "proofMaturityDelaySeconds";
|
|
535
|
-
readonly outputs: readonly [{
|
|
536
|
-
readonly internalType: "uint256";
|
|
537
|
-
readonly name: "";
|
|
538
|
-
readonly type: "uint256";
|
|
539
|
-
}];
|
|
540
|
-
readonly stateMutability: "view";
|
|
541
|
-
readonly type: "function";
|
|
542
|
-
}, {
|
|
543
|
-
readonly inputs: readonly [{
|
|
544
|
-
readonly internalType: "bytes32";
|
|
545
|
-
readonly name: "";
|
|
546
|
-
readonly type: "bytes32";
|
|
547
|
-
}, {
|
|
548
|
-
readonly internalType: "uint256";
|
|
549
|
-
readonly name: "";
|
|
550
|
-
readonly type: "uint256";
|
|
551
|
-
}];
|
|
552
|
-
readonly name: "proofSubmitters";
|
|
553
|
-
readonly outputs: readonly [{
|
|
554
|
-
readonly internalType: "address";
|
|
555
|
-
readonly name: "";
|
|
556
|
-
readonly type: "address";
|
|
557
|
-
}];
|
|
558
|
-
readonly stateMutability: "view";
|
|
559
|
-
readonly type: "function";
|
|
560
394
|
}, {
|
|
561
395
|
readonly inputs: readonly [{
|
|
562
396
|
readonly components: readonly [{
|
|
@@ -589,7 +423,7 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
589
423
|
readonly type: "tuple";
|
|
590
424
|
}, {
|
|
591
425
|
readonly internalType: "uint256";
|
|
592
|
-
readonly name: "
|
|
426
|
+
readonly name: "_l2OutputIndex";
|
|
593
427
|
readonly type: "uint256";
|
|
594
428
|
}, {
|
|
595
429
|
readonly components: readonly [{
|
|
@@ -626,68 +460,50 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
626
460
|
readonly internalType: "bytes32";
|
|
627
461
|
readonly name: "";
|
|
628
462
|
readonly type: "bytes32";
|
|
629
|
-
}, {
|
|
630
|
-
readonly internalType: "address";
|
|
631
|
-
readonly name: "";
|
|
632
|
-
readonly type: "address";
|
|
633
463
|
}];
|
|
634
464
|
readonly name: "provenWithdrawals";
|
|
635
465
|
readonly outputs: readonly [{
|
|
636
|
-
readonly internalType: "
|
|
637
|
-
readonly name: "
|
|
638
|
-
readonly type: "
|
|
466
|
+
readonly internalType: "bytes32";
|
|
467
|
+
readonly name: "outputRoot";
|
|
468
|
+
readonly type: "bytes32";
|
|
639
469
|
}, {
|
|
640
|
-
readonly internalType: "
|
|
470
|
+
readonly internalType: "uint128";
|
|
641
471
|
readonly name: "timestamp";
|
|
642
|
-
readonly type: "
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
readonly inputs: readonly [];
|
|
648
|
-
readonly name: "proxyAdmin";
|
|
649
|
-
readonly outputs: readonly [{
|
|
650
|
-
readonly internalType: "contract IProxyAdmin";
|
|
651
|
-
readonly name: "";
|
|
652
|
-
readonly type: "address";
|
|
472
|
+
readonly type: "uint128";
|
|
473
|
+
}, {
|
|
474
|
+
readonly internalType: "uint128";
|
|
475
|
+
readonly name: "l2OutputIndex";
|
|
476
|
+
readonly type: "uint128";
|
|
653
477
|
}];
|
|
654
478
|
readonly stateMutability: "view";
|
|
655
479
|
readonly type: "function";
|
|
656
480
|
}, {
|
|
657
|
-
readonly inputs: readonly [
|
|
658
|
-
readonly name: "proxyAdminOwner";
|
|
659
|
-
readonly outputs: readonly [{
|
|
481
|
+
readonly inputs: readonly [{
|
|
660
482
|
readonly internalType: "address";
|
|
661
|
-
readonly name: "";
|
|
483
|
+
readonly name: "_token";
|
|
662
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";
|
|
663
497
|
}];
|
|
664
|
-
readonly
|
|
665
|
-
readonly
|
|
666
|
-
|
|
667
|
-
readonly inputs: readonly [];
|
|
668
|
-
readonly name: "respectedGameType";
|
|
669
|
-
readonly outputs: readonly [{
|
|
670
|
-
readonly internalType: "GameType";
|
|
671
|
-
readonly name: "";
|
|
672
|
-
readonly type: "uint32";
|
|
673
|
-
}];
|
|
674
|
-
readonly stateMutability: "view";
|
|
675
|
-
readonly type: "function";
|
|
676
|
-
}, {
|
|
677
|
-
readonly inputs: readonly [];
|
|
678
|
-
readonly name: "respectedGameTypeUpdatedAt";
|
|
679
|
-
readonly outputs: readonly [{
|
|
680
|
-
readonly internalType: "uint64";
|
|
681
|
-
readonly name: "";
|
|
682
|
-
readonly type: "uint64";
|
|
683
|
-
}];
|
|
684
|
-
readonly stateMutability: "view";
|
|
498
|
+
readonly name: "setGasPayingToken";
|
|
499
|
+
readonly outputs: readonly [];
|
|
500
|
+
readonly stateMutability: "nonpayable";
|
|
685
501
|
readonly type: "function";
|
|
686
502
|
}, {
|
|
687
503
|
readonly inputs: readonly [];
|
|
688
504
|
readonly name: "superchainConfig";
|
|
689
505
|
readonly outputs: readonly [{
|
|
690
|
-
readonly internalType: "contract
|
|
506
|
+
readonly internalType: "contract SuperchainConfig";
|
|
691
507
|
readonly name: "";
|
|
692
508
|
readonly type: "address";
|
|
693
509
|
}];
|
|
@@ -697,7 +513,7 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
697
513
|
readonly inputs: readonly [];
|
|
698
514
|
readonly name: "systemConfig";
|
|
699
515
|
readonly outputs: readonly [{
|
|
700
|
-
readonly internalType: "contract
|
|
516
|
+
readonly internalType: "contract SystemConfig";
|
|
701
517
|
readonly name: "";
|
|
702
518
|
readonly type: "address";
|
|
703
519
|
}];
|
|
@@ -718,15 +534,15 @@ export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
|
718
534
|
readonly type: "receive";
|
|
719
535
|
}];
|
|
720
536
|
/**
|
|
721
|
-
* Type-safe ABI for
|
|
537
|
+
* Type-safe ABI for OptimismPortal_json
|
|
722
538
|
*/
|
|
723
|
-
export type
|
|
539
|
+
export type OptimismPortal_jsonAbi = typeof OptimismPortal_jsonAbi;
|
|
724
540
|
/**
|
|
725
|
-
* Contract instance type for
|
|
541
|
+
* Contract instance type for OptimismPortal_json
|
|
726
542
|
*/
|
|
727
|
-
export type
|
|
543
|
+
export type OptimismPortal_jsonContract = any;
|
|
728
544
|
/**
|
|
729
|
-
*
|
|
545
|
+
* OptimismPortal_json Contract Class
|
|
730
546
|
*
|
|
731
547
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
732
548
|
*
|
|
@@ -734,12 +550,12 @@ export type OptimismPortal2_jsonContract = any;
|
|
|
734
550
|
* ```typescript
|
|
735
551
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
736
552
|
* import { mainnet } from 'viem/chains';
|
|
737
|
-
* import {
|
|
553
|
+
* import { OptimismPortal_json } from 'OptimismPortal_json';
|
|
738
554
|
*
|
|
739
555
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
740
556
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
741
557
|
*
|
|
742
|
-
* const contract = new
|
|
558
|
+
* const contract = new OptimismPortal_json('0x...', { publicClient, walletClient });
|
|
743
559
|
*
|
|
744
560
|
* // Read functions
|
|
745
561
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -757,7 +573,7 @@ export type OptimismPortal2_jsonContract = any;
|
|
|
757
573
|
* });
|
|
758
574
|
* ```
|
|
759
575
|
*/
|
|
760
|
-
export declare class
|
|
576
|
+
export declare class OptimismPortal_json {
|
|
761
577
|
private contract;
|
|
762
578
|
private contractAddress;
|
|
763
579
|
private publicClient;
|
|
@@ -772,37 +588,12 @@ export declare class OptimismPortal2_json {
|
|
|
772
588
|
/**
|
|
773
589
|
* Get the underlying viem contract instance
|
|
774
590
|
*/
|
|
775
|
-
getContract():
|
|
776
|
-
/**
|
|
777
|
-
* anchorStateRegistry
|
|
778
|
-
* view
|
|
779
|
-
*/
|
|
780
|
-
anchorStateRegistry(): Promise<`0x${string}`>;
|
|
781
|
-
/**
|
|
782
|
-
* checkWithdrawal
|
|
783
|
-
* view
|
|
784
|
-
*/
|
|
785
|
-
checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void>;
|
|
786
|
-
/**
|
|
787
|
-
* disputeGameBlacklist
|
|
788
|
-
* view
|
|
789
|
-
*/
|
|
790
|
-
disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean>;
|
|
791
|
-
/**
|
|
792
|
-
* disputeGameFactory
|
|
793
|
-
* view
|
|
794
|
-
*/
|
|
795
|
-
disputeGameFactory(): Promise<`0x${string}`>;
|
|
796
|
-
/**
|
|
797
|
-
* disputeGameFinalityDelaySeconds
|
|
798
|
-
* view
|
|
799
|
-
*/
|
|
800
|
-
disputeGameFinalityDelaySeconds(): Promise<bigint>;
|
|
591
|
+
getContract(): OptimismPortal_jsonContract;
|
|
801
592
|
/**
|
|
802
|
-
*
|
|
593
|
+
* balance
|
|
803
594
|
* view
|
|
804
595
|
*/
|
|
805
|
-
|
|
596
|
+
balance(): Promise<bigint>;
|
|
806
597
|
/**
|
|
807
598
|
* finalizedWithdrawals
|
|
808
599
|
* view
|
|
@@ -814,10 +605,15 @@ export declare class OptimismPortal2_json {
|
|
|
814
605
|
*/
|
|
815
606
|
guardian(): Promise<`0x${string}`>;
|
|
816
607
|
/**
|
|
817
|
-
*
|
|
608
|
+
* isOutputFinalized
|
|
818
609
|
* view
|
|
819
610
|
*/
|
|
820
|
-
|
|
611
|
+
isOutputFinalized(_l2OutputIndex: bigint): Promise<boolean>;
|
|
612
|
+
/**
|
|
613
|
+
* l2Oracle
|
|
614
|
+
* view
|
|
615
|
+
*/
|
|
616
|
+
l2Oracle(): Promise<`0x${string}`>;
|
|
821
617
|
/**
|
|
822
618
|
* l2Sender
|
|
823
619
|
* view
|
|
@@ -828,11 +624,6 @@ export declare class OptimismPortal2_json {
|
|
|
828
624
|
* pure
|
|
829
625
|
*/
|
|
830
626
|
minimumGasLimit(_byteCount: bigint): Promise<bigint>;
|
|
831
|
-
/**
|
|
832
|
-
* numProofSubmitters
|
|
833
|
-
* view
|
|
834
|
-
*/
|
|
835
|
-
numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint>;
|
|
836
627
|
/**
|
|
837
628
|
* params
|
|
838
629
|
* view
|
|
@@ -843,41 +634,11 @@ export declare class OptimismPortal2_json {
|
|
|
843
634
|
* view
|
|
844
635
|
*/
|
|
845
636
|
paused(): Promise<boolean>;
|
|
846
|
-
/**
|
|
847
|
-
* proofMaturityDelaySeconds
|
|
848
|
-
* view
|
|
849
|
-
*/
|
|
850
|
-
proofMaturityDelaySeconds(): Promise<bigint>;
|
|
851
|
-
/**
|
|
852
|
-
* proofSubmitters
|
|
853
|
-
* view
|
|
854
|
-
*/
|
|
855
|
-
proofSubmitters(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`>;
|
|
856
637
|
/**
|
|
857
638
|
* provenWithdrawals
|
|
858
639
|
* view
|
|
859
640
|
*/
|
|
860
|
-
provenWithdrawals(arg0: `0x${string}
|
|
861
|
-
/**
|
|
862
|
-
* proxyAdmin
|
|
863
|
-
* view
|
|
864
|
-
*/
|
|
865
|
-
proxyAdmin(): Promise<`0x${string}`>;
|
|
866
|
-
/**
|
|
867
|
-
* proxyAdminOwner
|
|
868
|
-
* view
|
|
869
|
-
*/
|
|
870
|
-
proxyAdminOwner(): Promise<`0x${string}`>;
|
|
871
|
-
/**
|
|
872
|
-
* respectedGameType
|
|
873
|
-
* view
|
|
874
|
-
*/
|
|
875
|
-
respectedGameType(): Promise<bigint>;
|
|
876
|
-
/**
|
|
877
|
-
* respectedGameTypeUpdatedAt
|
|
878
|
-
* view
|
|
879
|
-
*/
|
|
880
|
-
respectedGameTypeUpdatedAt(): Promise<bigint>;
|
|
641
|
+
provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint, bigint]>;
|
|
881
642
|
/**
|
|
882
643
|
* superchainConfig
|
|
883
644
|
* view
|
|
@@ -893,6 +654,23 @@ export declare class OptimismPortal2_json {
|
|
|
893
654
|
* pure
|
|
894
655
|
*/
|
|
895
656
|
version(): Promise<string>;
|
|
657
|
+
/**
|
|
658
|
+
* depositERC20Transaction
|
|
659
|
+
* nonpayable
|
|
660
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
661
|
+
*/
|
|
662
|
+
depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
|
|
663
|
+
accessList?: import('viem').AccessList;
|
|
664
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
665
|
+
chain?: import('viem').Chain | null;
|
|
666
|
+
dataSuffix?: `0x${string}`;
|
|
667
|
+
gas?: bigint;
|
|
668
|
+
gasPrice?: bigint;
|
|
669
|
+
maxFeePerGas?: bigint;
|
|
670
|
+
maxPriorityFeePerGas?: bigint;
|
|
671
|
+
nonce?: number;
|
|
672
|
+
value?: bigint;
|
|
673
|
+
}): Promise<`0x${string}`>;
|
|
896
674
|
/**
|
|
897
675
|
* depositTransaction
|
|
898
676
|
* payable
|
|
@@ -945,11 +723,11 @@ export declare class OptimismPortal2_json {
|
|
|
945
723
|
value?: bigint;
|
|
946
724
|
}): Promise<`0x${string}`>;
|
|
947
725
|
/**
|
|
948
|
-
*
|
|
726
|
+
* initialize
|
|
949
727
|
* nonpayable
|
|
950
728
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
951
729
|
*/
|
|
952
|
-
|
|
730
|
+
initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
|
|
953
731
|
accessList?: import('viem').AccessList;
|
|
954
732
|
authorizationList?: import('viem').AuthorizationList;
|
|
955
733
|
chain?: import('viem').Chain | null;
|
|
@@ -962,11 +740,11 @@ export declare class OptimismPortal2_json {
|
|
|
962
740
|
value?: bigint;
|
|
963
741
|
}): Promise<`0x${string}`>;
|
|
964
742
|
/**
|
|
965
|
-
*
|
|
743
|
+
* proveWithdrawalTransaction
|
|
966
744
|
* nonpayable
|
|
967
745
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
968
746
|
*/
|
|
969
|
-
|
|
747
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
970
748
|
accessList?: import('viem').AccessList;
|
|
971
749
|
authorizationList?: import('viem').AuthorizationList;
|
|
972
750
|
chain?: import('viem').Chain | null;
|
|
@@ -979,11 +757,11 @@ export declare class OptimismPortal2_json {
|
|
|
979
757
|
value?: bigint;
|
|
980
758
|
}): Promise<`0x${string}`>;
|
|
981
759
|
/**
|
|
982
|
-
*
|
|
760
|
+
* setGasPayingToken
|
|
983
761
|
* nonpayable
|
|
984
762
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
985
763
|
*/
|
|
986
|
-
|
|
764
|
+
setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
|
|
987
765
|
accessList?: import('viem').AccessList;
|
|
988
766
|
authorizationList?: import('viem').AuthorizationList;
|
|
989
767
|
chain?: import('viem').Chain | null;
|
|
@@ -1004,6 +782,23 @@ export declare class OptimismPortal2_json {
|
|
|
1004
782
|
* console.log('Would succeed:', result.result);
|
|
1005
783
|
*/
|
|
1006
784
|
get simulate(): {
|
|
785
|
+
/**
|
|
786
|
+
* Simulate depositERC20Transaction
|
|
787
|
+
* Returns gas estimate and result without sending transaction
|
|
788
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
789
|
+
*/
|
|
790
|
+
depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
|
|
791
|
+
accessList?: import("viem").AccessList;
|
|
792
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
793
|
+
chain?: import("viem").Chain | null;
|
|
794
|
+
dataSuffix?: `0x${string}`;
|
|
795
|
+
gas?: bigint;
|
|
796
|
+
gasPrice?: bigint;
|
|
797
|
+
maxFeePerGas?: bigint;
|
|
798
|
+
maxPriorityFeePerGas?: bigint;
|
|
799
|
+
nonce?: number;
|
|
800
|
+
value?: bigint;
|
|
801
|
+
}): Promise<void>;
|
|
1007
802
|
/**
|
|
1008
803
|
* Simulate depositTransaction
|
|
1009
804
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1056,11 +851,11 @@ export declare class OptimismPortal2_json {
|
|
|
1056
851
|
value?: bigint;
|
|
1057
852
|
}): Promise<void>;
|
|
1058
853
|
/**
|
|
1059
|
-
* Simulate
|
|
854
|
+
* Simulate initialize
|
|
1060
855
|
* Returns gas estimate and result without sending transaction
|
|
1061
856
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1062
857
|
*/
|
|
1063
|
-
|
|
858
|
+
initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
|
|
1064
859
|
accessList?: import("viem").AccessList;
|
|
1065
860
|
authorizationList?: import("viem").AuthorizationList;
|
|
1066
861
|
chain?: import("viem").Chain | null;
|
|
@@ -1073,11 +868,11 @@ export declare class OptimismPortal2_json {
|
|
|
1073
868
|
value?: bigint;
|
|
1074
869
|
}): Promise<void>;
|
|
1075
870
|
/**
|
|
1076
|
-
* Simulate
|
|
871
|
+
* Simulate proveWithdrawalTransaction
|
|
1077
872
|
* Returns gas estimate and result without sending transaction
|
|
1078
873
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1079
874
|
*/
|
|
1080
|
-
|
|
875
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _l2OutputIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
1081
876
|
accessList?: import("viem").AccessList;
|
|
1082
877
|
authorizationList?: import("viem").AuthorizationList;
|
|
1083
878
|
chain?: import("viem").Chain | null;
|
|
@@ -1090,11 +885,11 @@ export declare class OptimismPortal2_json {
|
|
|
1090
885
|
value?: bigint;
|
|
1091
886
|
}): Promise<void>;
|
|
1092
887
|
/**
|
|
1093
|
-
* Simulate
|
|
888
|
+
* Simulate setGasPayingToken
|
|
1094
889
|
* Returns gas estimate and result without sending transaction
|
|
1095
890
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1096
891
|
*/
|
|
1097
|
-
|
|
892
|
+
setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
|
|
1098
893
|
accessList?: import("viem").AccessList;
|
|
1099
894
|
authorizationList?: import("viem").AuthorizationList;
|
|
1100
895
|
chain?: import("viem").Chain | null;
|
|
@@ -1172,18 +967,5 @@ export declare class OptimismPortal2_json {
|
|
|
1172
967
|
from: `0x${string}`;
|
|
1173
968
|
to: `0x${string}`;
|
|
1174
969
|
}) => () => void;
|
|
1175
|
-
/**
|
|
1176
|
-
* Watch WithdrawalProvenExtension1 events
|
|
1177
|
-
* @param callback Function to call when event is emitted
|
|
1178
|
-
* @param filter Optional filter for indexed parameters
|
|
1179
|
-
* @returns Unwatch function to stop listening
|
|
1180
|
-
*/
|
|
1181
|
-
WithdrawalProvenExtension1: (callback: (event: {
|
|
1182
|
-
withdrawalHash: `0x${string}`;
|
|
1183
|
-
proofSubmitter: `0x${string}`;
|
|
1184
|
-
}) => void, filter?: {
|
|
1185
|
-
withdrawalHash: `0x${string}`;
|
|
1186
|
-
proofSubmitter: `0x${string}`;
|
|
1187
|
-
}) => () => void;
|
|
1188
970
|
};
|
|
1189
971
|
}
|