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