@gitmyabi/optimismportal 1.0.6 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{OptimismPortal_json.d.ts → OptimismPortal2_json.d.ts} +541 -147
- package/contracts/{OptimismPortal_json.js → OptimismPortal2_json.js} +667 -171
- package/contracts/{OptimismPortal_json.ts → OptimismPortal2_json.ts} +714 -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,121 @@ 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";
|
|
58
70
|
readonly type: "error";
|
|
59
71
|
}, {
|
|
60
72
|
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "
|
|
73
|
+
readonly name: "OptimismPortal_GasLimitTooLow";
|
|
62
74
|
readonly type: "error";
|
|
63
75
|
}, {
|
|
64
76
|
readonly inputs: readonly [];
|
|
65
|
-
readonly name: "
|
|
77
|
+
readonly name: "OptimismPortal_ImproperDisputeGame";
|
|
66
78
|
readonly type: "error";
|
|
67
79
|
}, {
|
|
68
80
|
readonly inputs: readonly [];
|
|
69
|
-
readonly name: "
|
|
81
|
+
readonly name: "OptimismPortal_InvalidDisputeGame";
|
|
70
82
|
readonly type: "error";
|
|
71
83
|
}, {
|
|
72
84
|
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "
|
|
85
|
+
readonly name: "OptimismPortal_InvalidInteropState";
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
}, {
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
readonly name: "OptimismPortal_InvalidLockboxState";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "OptimismPortal_InvalidMerkleProof";
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "OptimismPortal_InvalidOutputRootProof";
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly name: "OptimismPortal_InvalidProofTimestamp";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly name: "OptimismPortal_InvalidRootClaim";
|
|
106
|
+
readonly type: "error";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly name: "OptimismPortal_LockboxNotAuthorizedForPortal";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "OptimismPortal_MigratingToSameRegistry";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [];
|
|
117
|
+
readonly name: "OptimismPortal_NoReentrancy";
|
|
118
|
+
readonly type: "error";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly name: "OptimismPortal_NotAllowedOnCGTMode";
|
|
122
|
+
readonly type: "error";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly name: "OptimismPortal_NotUsingInterop";
|
|
126
|
+
readonly type: "error";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [];
|
|
129
|
+
readonly name: "OptimismPortal_ProofNotOldEnough";
|
|
130
|
+
readonly type: "error";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "OptimismPortal_Unproven";
|
|
134
|
+
readonly type: "error";
|
|
135
|
+
}, {
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
readonly name: "OptimismPortal_ZeroAddress";
|
|
74
138
|
readonly type: "error";
|
|
75
139
|
}, {
|
|
76
140
|
readonly inputs: readonly [];
|
|
@@ -78,15 +142,31 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
78
142
|
readonly type: "error";
|
|
79
143
|
}, {
|
|
80
144
|
readonly inputs: readonly [];
|
|
81
|
-
readonly name: "
|
|
145
|
+
readonly name: "ProxyAdminOwnedBase_NotProxyAdmin";
|
|
82
146
|
readonly type: "error";
|
|
83
147
|
}, {
|
|
84
148
|
readonly inputs: readonly [];
|
|
85
|
-
readonly name: "
|
|
149
|
+
readonly name: "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner";
|
|
86
150
|
readonly type: "error";
|
|
87
151
|
}, {
|
|
88
152
|
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "
|
|
153
|
+
readonly name: "ProxyAdminOwnedBase_NotProxyAdminOwner";
|
|
154
|
+
readonly type: "error";
|
|
155
|
+
}, {
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
readonly name: "ProxyAdminOwnedBase_NotResolvedDelegateProxy";
|
|
158
|
+
readonly type: "error";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "ProxyAdminOwnedBase_NotSharedProxyAdminOwner";
|
|
162
|
+
readonly type: "error";
|
|
163
|
+
}, {
|
|
164
|
+
readonly inputs: readonly [];
|
|
165
|
+
readonly name: "ProxyAdminOwnedBase_ProxyAdminNotFound";
|
|
166
|
+
readonly type: "error";
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "ReinitializableBase_ZeroInitVersion";
|
|
90
170
|
readonly type: "error";
|
|
91
171
|
}, {
|
|
92
172
|
readonly inputs: readonly [];
|
|
@@ -96,6 +176,21 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
96
176
|
readonly inputs: readonly [];
|
|
97
177
|
readonly name: "UnexpectedString";
|
|
98
178
|
readonly type: "error";
|
|
179
|
+
}, {
|
|
180
|
+
readonly anonymous: false;
|
|
181
|
+
readonly inputs: readonly [{
|
|
182
|
+
readonly indexed: true;
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
readonly name: "lockbox";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}, {
|
|
187
|
+
readonly indexed: false;
|
|
188
|
+
readonly internalType: "uint256";
|
|
189
|
+
readonly name: "balance";
|
|
190
|
+
readonly type: "uint256";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "ETHMigrated";
|
|
193
|
+
readonly type: "event";
|
|
99
194
|
}, {
|
|
100
195
|
readonly anonymous: false;
|
|
101
196
|
readonly inputs: readonly [{
|
|
@@ -106,6 +201,31 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
106
201
|
}];
|
|
107
202
|
readonly name: "Initialized";
|
|
108
203
|
readonly type: "event";
|
|
204
|
+
}, {
|
|
205
|
+
readonly anonymous: false;
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly indexed: false;
|
|
208
|
+
readonly internalType: "contract IETHLockbox";
|
|
209
|
+
readonly name: "oldLockbox";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}, {
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly internalType: "contract IETHLockbox";
|
|
214
|
+
readonly name: "newLockbox";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
}, {
|
|
217
|
+
readonly indexed: false;
|
|
218
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
219
|
+
readonly name: "oldAnchorStateRegistry";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly indexed: false;
|
|
223
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
224
|
+
readonly name: "newAnchorStateRegistry";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "PortalMigrated";
|
|
228
|
+
readonly type: "event";
|
|
109
229
|
}, {
|
|
110
230
|
readonly anonymous: false;
|
|
111
231
|
readonly inputs: readonly [{
|
|
@@ -166,45 +286,44 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
166
286
|
}];
|
|
167
287
|
readonly name: "WithdrawalProven";
|
|
168
288
|
readonly type: "event";
|
|
289
|
+
}, {
|
|
290
|
+
readonly anonymous: false;
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly indexed: true;
|
|
293
|
+
readonly internalType: "bytes32";
|
|
294
|
+
readonly name: "withdrawalHash";
|
|
295
|
+
readonly type: "bytes32";
|
|
296
|
+
}, {
|
|
297
|
+
readonly indexed: true;
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly name: "proofSubmitter";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "WithdrawalProvenExtension1";
|
|
303
|
+
readonly type: "event";
|
|
169
304
|
}, {
|
|
170
305
|
readonly inputs: readonly [];
|
|
171
|
-
readonly name: "
|
|
306
|
+
readonly name: "anchorStateRegistry";
|
|
172
307
|
readonly outputs: readonly [{
|
|
173
|
-
readonly internalType: "
|
|
308
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
174
309
|
readonly name: "";
|
|
175
|
-
readonly type: "
|
|
310
|
+
readonly type: "address";
|
|
176
311
|
}];
|
|
177
312
|
readonly stateMutability: "view";
|
|
178
313
|
readonly type: "function";
|
|
179
314
|
}, {
|
|
180
315
|
readonly inputs: readonly [{
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
readonly name: "_withdrawalHash";
|
|
318
|
+
readonly type: "bytes32";
|
|
319
|
+
}, {
|
|
181
320
|
readonly internalType: "address";
|
|
182
|
-
readonly name: "
|
|
321
|
+
readonly name: "_proofSubmitter";
|
|
183
322
|
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
323
|
}];
|
|
205
|
-
readonly name: "
|
|
324
|
+
readonly name: "checkWithdrawal";
|
|
206
325
|
readonly outputs: readonly [];
|
|
207
|
-
readonly stateMutability: "
|
|
326
|
+
readonly stateMutability: "view";
|
|
208
327
|
readonly type: "function";
|
|
209
328
|
}, {
|
|
210
329
|
readonly inputs: readonly [{
|
|
@@ -232,12 +351,56 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
232
351
|
readonly outputs: readonly [];
|
|
233
352
|
readonly stateMutability: "payable";
|
|
234
353
|
readonly type: "function";
|
|
354
|
+
}, {
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly internalType: "contract IDisputeGame";
|
|
357
|
+
readonly name: "_disputeGame";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "disputeGameBlacklist";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly internalType: "bool";
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly type: "bool";
|
|
365
|
+
}];
|
|
366
|
+
readonly stateMutability: "view";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly inputs: readonly [];
|
|
370
|
+
readonly name: "disputeGameFactory";
|
|
371
|
+
readonly outputs: readonly [{
|
|
372
|
+
readonly internalType: "contract IDisputeGameFactory";
|
|
373
|
+
readonly name: "";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
}];
|
|
376
|
+
readonly stateMutability: "view";
|
|
377
|
+
readonly type: "function";
|
|
378
|
+
}, {
|
|
379
|
+
readonly inputs: readonly [];
|
|
380
|
+
readonly name: "disputeGameFinalityDelaySeconds";
|
|
381
|
+
readonly outputs: readonly [{
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
readonly name: "";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
}];
|
|
386
|
+
readonly stateMutability: "view";
|
|
387
|
+
readonly type: "function";
|
|
235
388
|
}, {
|
|
236
389
|
readonly inputs: readonly [];
|
|
237
390
|
readonly name: "donateETH";
|
|
238
391
|
readonly outputs: readonly [];
|
|
239
392
|
readonly stateMutability: "payable";
|
|
240
393
|
readonly type: "function";
|
|
394
|
+
}, {
|
|
395
|
+
readonly inputs: readonly [];
|
|
396
|
+
readonly name: "ethLockbox";
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly internalType: "contract IETHLockbox";
|
|
399
|
+
readonly name: "";
|
|
400
|
+
readonly type: "address";
|
|
401
|
+
}];
|
|
402
|
+
readonly stateMutability: "view";
|
|
403
|
+
readonly type: "function";
|
|
241
404
|
}, {
|
|
242
405
|
readonly inputs: readonly [{
|
|
243
406
|
readonly components: readonly [{
|
|
@@ -273,6 +436,45 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
273
436
|
readonly outputs: readonly [];
|
|
274
437
|
readonly stateMutability: "nonpayable";
|
|
275
438
|
readonly type: "function";
|
|
439
|
+
}, {
|
|
440
|
+
readonly inputs: readonly [{
|
|
441
|
+
readonly components: readonly [{
|
|
442
|
+
readonly internalType: "uint256";
|
|
443
|
+
readonly name: "nonce";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
}, {
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
readonly name: "sender";
|
|
448
|
+
readonly type: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly internalType: "address";
|
|
451
|
+
readonly name: "target";
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
}, {
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly name: "value";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "uint256";
|
|
459
|
+
readonly name: "gasLimit";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}, {
|
|
462
|
+
readonly internalType: "bytes";
|
|
463
|
+
readonly name: "data";
|
|
464
|
+
readonly type: "bytes";
|
|
465
|
+
}];
|
|
466
|
+
readonly internalType: "struct Types.WithdrawalTransaction";
|
|
467
|
+
readonly name: "_tx";
|
|
468
|
+
readonly type: "tuple";
|
|
469
|
+
}, {
|
|
470
|
+
readonly internalType: "address";
|
|
471
|
+
readonly name: "_proofSubmitter";
|
|
472
|
+
readonly type: "address";
|
|
473
|
+
}];
|
|
474
|
+
readonly name: "finalizeWithdrawalTransactionExternalProof";
|
|
475
|
+
readonly outputs: readonly [];
|
|
476
|
+
readonly stateMutability: "nonpayable";
|
|
477
|
+
readonly type: "function";
|
|
276
478
|
}, {
|
|
277
479
|
readonly inputs: readonly [{
|
|
278
480
|
readonly internalType: "bytes32";
|
|
@@ -297,43 +499,39 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
297
499
|
}];
|
|
298
500
|
readonly stateMutability: "view";
|
|
299
501
|
readonly type: "function";
|
|
502
|
+
}, {
|
|
503
|
+
readonly inputs: readonly [];
|
|
504
|
+
readonly name: "initVersion";
|
|
505
|
+
readonly outputs: readonly [{
|
|
506
|
+
readonly internalType: "uint8";
|
|
507
|
+
readonly name: "";
|
|
508
|
+
readonly type: "uint8";
|
|
509
|
+
}];
|
|
510
|
+
readonly stateMutability: "view";
|
|
511
|
+
readonly type: "function";
|
|
300
512
|
}, {
|
|
301
513
|
readonly inputs: readonly [{
|
|
302
|
-
readonly internalType: "contract
|
|
303
|
-
readonly name: "
|
|
514
|
+
readonly internalType: "contract ISystemConfig";
|
|
515
|
+
readonly name: "_systemConfig";
|
|
304
516
|
readonly type: "address";
|
|
305
517
|
}, {
|
|
306
|
-
readonly internalType: "contract
|
|
307
|
-
readonly name: "
|
|
518
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
519
|
+
readonly name: "_anchorStateRegistry";
|
|
308
520
|
readonly type: "address";
|
|
309
521
|
}, {
|
|
310
|
-
readonly internalType: "contract
|
|
311
|
-
readonly name: "
|
|
522
|
+
readonly internalType: "contract IETHLockbox";
|
|
523
|
+
readonly name: "_ethLockbox";
|
|
312
524
|
readonly type: "address";
|
|
313
525
|
}];
|
|
314
526
|
readonly name: "initialize";
|
|
315
527
|
readonly outputs: readonly [];
|
|
316
528
|
readonly stateMutability: "nonpayable";
|
|
317
529
|
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
530
|
}, {
|
|
333
531
|
readonly inputs: readonly [];
|
|
334
|
-
readonly name: "
|
|
532
|
+
readonly name: "l2Sender";
|
|
335
533
|
readonly outputs: readonly [{
|
|
336
|
-
readonly internalType: "
|
|
534
|
+
readonly internalType: "address";
|
|
337
535
|
readonly name: "";
|
|
338
536
|
readonly type: "address";
|
|
339
537
|
}];
|
|
@@ -341,13 +539,23 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
341
539
|
readonly type: "function";
|
|
342
540
|
}, {
|
|
343
541
|
readonly inputs: readonly [];
|
|
344
|
-
readonly name: "
|
|
345
|
-
readonly outputs: readonly [
|
|
346
|
-
|
|
347
|
-
|
|
542
|
+
readonly name: "migrateLiquidity";
|
|
543
|
+
readonly outputs: readonly [];
|
|
544
|
+
readonly stateMutability: "nonpayable";
|
|
545
|
+
readonly type: "function";
|
|
546
|
+
}, {
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly internalType: "contract IETHLockbox";
|
|
549
|
+
readonly name: "_newLockbox";
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
}, {
|
|
552
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
553
|
+
readonly name: "_newAnchorStateRegistry";
|
|
348
554
|
readonly type: "address";
|
|
349
555
|
}];
|
|
350
|
-
readonly
|
|
556
|
+
readonly name: "migrateToSharedDisputeGame";
|
|
557
|
+
readonly outputs: readonly [];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
351
559
|
readonly type: "function";
|
|
352
560
|
}, {
|
|
353
561
|
readonly inputs: readonly [{
|
|
@@ -363,6 +571,20 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
363
571
|
}];
|
|
364
572
|
readonly stateMutability: "pure";
|
|
365
573
|
readonly type: "function";
|
|
574
|
+
}, {
|
|
575
|
+
readonly inputs: readonly [{
|
|
576
|
+
readonly internalType: "bytes32";
|
|
577
|
+
readonly name: "_withdrawalHash";
|
|
578
|
+
readonly type: "bytes32";
|
|
579
|
+
}];
|
|
580
|
+
readonly name: "numProofSubmitters";
|
|
581
|
+
readonly outputs: readonly [{
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
readonly name: "";
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
}];
|
|
586
|
+
readonly stateMutability: "view";
|
|
587
|
+
readonly type: "function";
|
|
366
588
|
}, {
|
|
367
589
|
readonly inputs: readonly [];
|
|
368
590
|
readonly name: "params";
|
|
@@ -386,11 +608,39 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
386
608
|
readonly name: "paused";
|
|
387
609
|
readonly outputs: readonly [{
|
|
388
610
|
readonly internalType: "bool";
|
|
389
|
-
readonly name: "
|
|
611
|
+
readonly name: "";
|
|
390
612
|
readonly type: "bool";
|
|
391
613
|
}];
|
|
392
614
|
readonly stateMutability: "view";
|
|
393
615
|
readonly type: "function";
|
|
616
|
+
}, {
|
|
617
|
+
readonly inputs: readonly [];
|
|
618
|
+
readonly name: "proofMaturityDelaySeconds";
|
|
619
|
+
readonly outputs: readonly [{
|
|
620
|
+
readonly internalType: "uint256";
|
|
621
|
+
readonly name: "";
|
|
622
|
+
readonly type: "uint256";
|
|
623
|
+
}];
|
|
624
|
+
readonly stateMutability: "view";
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
}, {
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly internalType: "bytes32";
|
|
629
|
+
readonly name: "";
|
|
630
|
+
readonly type: "bytes32";
|
|
631
|
+
}, {
|
|
632
|
+
readonly internalType: "uint256";
|
|
633
|
+
readonly name: "";
|
|
634
|
+
readonly type: "uint256";
|
|
635
|
+
}];
|
|
636
|
+
readonly name: "proofSubmitters";
|
|
637
|
+
readonly outputs: readonly [{
|
|
638
|
+
readonly internalType: "address";
|
|
639
|
+
readonly name: "";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
}];
|
|
642
|
+
readonly stateMutability: "view";
|
|
643
|
+
readonly type: "function";
|
|
394
644
|
}, {
|
|
395
645
|
readonly inputs: readonly [{
|
|
396
646
|
readonly components: readonly [{
|
|
@@ -423,7 +673,7 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
423
673
|
readonly type: "tuple";
|
|
424
674
|
}, {
|
|
425
675
|
readonly internalType: "uint256";
|
|
426
|
-
readonly name: "
|
|
676
|
+
readonly name: "_disputeGameIndex";
|
|
427
677
|
readonly type: "uint256";
|
|
428
678
|
}, {
|
|
429
679
|
readonly components: readonly [{
|
|
@@ -460,50 +710,68 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
460
710
|
readonly internalType: "bytes32";
|
|
461
711
|
readonly name: "";
|
|
462
712
|
readonly type: "bytes32";
|
|
713
|
+
}, {
|
|
714
|
+
readonly internalType: "address";
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "address";
|
|
463
717
|
}];
|
|
464
718
|
readonly name: "provenWithdrawals";
|
|
465
719
|
readonly outputs: readonly [{
|
|
466
|
-
readonly internalType: "
|
|
467
|
-
readonly name: "
|
|
468
|
-
readonly type: "
|
|
720
|
+
readonly internalType: "contract IDisputeGame";
|
|
721
|
+
readonly name: "disputeGameProxy";
|
|
722
|
+
readonly type: "address";
|
|
469
723
|
}, {
|
|
470
|
-
readonly internalType: "
|
|
724
|
+
readonly internalType: "uint64";
|
|
471
725
|
readonly name: "timestamp";
|
|
472
|
-
readonly type: "
|
|
473
|
-
}, {
|
|
474
|
-
readonly internalType: "uint128";
|
|
475
|
-
readonly name: "l2OutputIndex";
|
|
476
|
-
readonly type: "uint128";
|
|
726
|
+
readonly type: "uint64";
|
|
477
727
|
}];
|
|
478
728
|
readonly stateMutability: "view";
|
|
479
729
|
readonly type: "function";
|
|
480
730
|
}, {
|
|
481
|
-
readonly inputs: readonly [
|
|
731
|
+
readonly inputs: readonly [];
|
|
732
|
+
readonly name: "proxyAdmin";
|
|
733
|
+
readonly outputs: readonly [{
|
|
734
|
+
readonly internalType: "contract IProxyAdmin";
|
|
735
|
+
readonly name: "";
|
|
736
|
+
readonly type: "address";
|
|
737
|
+
}];
|
|
738
|
+
readonly stateMutability: "view";
|
|
739
|
+
readonly type: "function";
|
|
740
|
+
}, {
|
|
741
|
+
readonly inputs: readonly [];
|
|
742
|
+
readonly name: "proxyAdminOwner";
|
|
743
|
+
readonly outputs: readonly [{
|
|
482
744
|
readonly internalType: "address";
|
|
483
|
-
readonly name: "
|
|
745
|
+
readonly name: "";
|
|
484
746
|
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
747
|
}];
|
|
498
|
-
readonly
|
|
499
|
-
readonly
|
|
500
|
-
|
|
748
|
+
readonly stateMutability: "view";
|
|
749
|
+
readonly type: "function";
|
|
750
|
+
}, {
|
|
751
|
+
readonly inputs: readonly [];
|
|
752
|
+
readonly name: "respectedGameType";
|
|
753
|
+
readonly outputs: readonly [{
|
|
754
|
+
readonly internalType: "GameType";
|
|
755
|
+
readonly name: "";
|
|
756
|
+
readonly type: "uint32";
|
|
757
|
+
}];
|
|
758
|
+
readonly stateMutability: "view";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
}, {
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
readonly name: "respectedGameTypeUpdatedAt";
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly internalType: "uint64";
|
|
765
|
+
readonly name: "";
|
|
766
|
+
readonly type: "uint64";
|
|
767
|
+
}];
|
|
768
|
+
readonly stateMutability: "view";
|
|
501
769
|
readonly type: "function";
|
|
502
770
|
}, {
|
|
503
771
|
readonly inputs: readonly [];
|
|
504
772
|
readonly name: "superchainConfig";
|
|
505
773
|
readonly outputs: readonly [{
|
|
506
|
-
readonly internalType: "contract
|
|
774
|
+
readonly internalType: "contract ISuperchainConfig";
|
|
507
775
|
readonly name: "";
|
|
508
776
|
readonly type: "address";
|
|
509
777
|
}];
|
|
@@ -513,7 +781,7 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
513
781
|
readonly inputs: readonly [];
|
|
514
782
|
readonly name: "systemConfig";
|
|
515
783
|
readonly outputs: readonly [{
|
|
516
|
-
readonly internalType: "contract
|
|
784
|
+
readonly internalType: "contract ISystemConfig";
|
|
517
785
|
readonly name: "";
|
|
518
786
|
readonly type: "address";
|
|
519
787
|
}];
|
|
@@ -534,15 +802,15 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
534
802
|
readonly type: "receive";
|
|
535
803
|
}];
|
|
536
804
|
/**
|
|
537
|
-
* Type-safe ABI for
|
|
805
|
+
* Type-safe ABI for OptimismPortal2_json
|
|
538
806
|
*/
|
|
539
|
-
export type
|
|
807
|
+
export type OptimismPortal2_jsonAbi = typeof OptimismPortal2_jsonAbi;
|
|
540
808
|
/**
|
|
541
|
-
* Contract instance type for
|
|
809
|
+
* Contract instance type for OptimismPortal2_json
|
|
542
810
|
*/
|
|
543
|
-
export type
|
|
811
|
+
export type OptimismPortal2_jsonContract = any;
|
|
544
812
|
/**
|
|
545
|
-
*
|
|
813
|
+
* OptimismPortal2_json Contract Class
|
|
546
814
|
*
|
|
547
815
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
548
816
|
*
|
|
@@ -550,12 +818,12 @@ export type OptimismPortal_jsonContract = any;
|
|
|
550
818
|
* ```typescript
|
|
551
819
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
552
820
|
* import { mainnet } from 'viem/chains';
|
|
553
|
-
* import {
|
|
821
|
+
* import { OptimismPortal2_json } from 'OptimismPortal2_json';
|
|
554
822
|
*
|
|
555
823
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
556
824
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
557
825
|
*
|
|
558
|
-
* const contract = new
|
|
826
|
+
* const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
|
|
559
827
|
*
|
|
560
828
|
* // Read functions
|
|
561
829
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -573,7 +841,7 @@ export type OptimismPortal_jsonContract = any;
|
|
|
573
841
|
* });
|
|
574
842
|
* ```
|
|
575
843
|
*/
|
|
576
|
-
export declare class
|
|
844
|
+
export declare class OptimismPortal2_json {
|
|
577
845
|
private contract;
|
|
578
846
|
private contractAddress;
|
|
579
847
|
private publicClient;
|
|
@@ -588,12 +856,37 @@ export declare class OptimismPortal_json {
|
|
|
588
856
|
/**
|
|
589
857
|
* Get the underlying viem contract instance
|
|
590
858
|
*/
|
|
591
|
-
getContract():
|
|
859
|
+
getContract(): OptimismPortal2_jsonContract;
|
|
592
860
|
/**
|
|
593
|
-
*
|
|
861
|
+
* anchorStateRegistry
|
|
594
862
|
* view
|
|
595
863
|
*/
|
|
596
|
-
|
|
864
|
+
anchorStateRegistry(): Promise<`0x${string}`>;
|
|
865
|
+
/**
|
|
866
|
+
* checkWithdrawal
|
|
867
|
+
* view
|
|
868
|
+
*/
|
|
869
|
+
checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void>;
|
|
870
|
+
/**
|
|
871
|
+
* disputeGameBlacklist
|
|
872
|
+
* view
|
|
873
|
+
*/
|
|
874
|
+
disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean>;
|
|
875
|
+
/**
|
|
876
|
+
* disputeGameFactory
|
|
877
|
+
* view
|
|
878
|
+
*/
|
|
879
|
+
disputeGameFactory(): Promise<`0x${string}`>;
|
|
880
|
+
/**
|
|
881
|
+
* disputeGameFinalityDelaySeconds
|
|
882
|
+
* view
|
|
883
|
+
*/
|
|
884
|
+
disputeGameFinalityDelaySeconds(): Promise<bigint>;
|
|
885
|
+
/**
|
|
886
|
+
* ethLockbox
|
|
887
|
+
* view
|
|
888
|
+
*/
|
|
889
|
+
ethLockbox(): Promise<`0x${string}`>;
|
|
597
890
|
/**
|
|
598
891
|
* finalizedWithdrawals
|
|
599
892
|
* view
|
|
@@ -605,15 +898,10 @@ export declare class OptimismPortal_json {
|
|
|
605
898
|
*/
|
|
606
899
|
guardian(): Promise<`0x${string}`>;
|
|
607
900
|
/**
|
|
608
|
-
*
|
|
901
|
+
* initVersion
|
|
609
902
|
* view
|
|
610
903
|
*/
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* l2Oracle
|
|
614
|
-
* view
|
|
615
|
-
*/
|
|
616
|
-
l2Oracle(): Promise<`0x${string}`>;
|
|
904
|
+
initVersion(): Promise<bigint>;
|
|
617
905
|
/**
|
|
618
906
|
* l2Sender
|
|
619
907
|
* view
|
|
@@ -624,6 +912,11 @@ export declare class OptimismPortal_json {
|
|
|
624
912
|
* pure
|
|
625
913
|
*/
|
|
626
914
|
minimumGasLimit(_byteCount: bigint): Promise<bigint>;
|
|
915
|
+
/**
|
|
916
|
+
* numProofSubmitters
|
|
917
|
+
* view
|
|
918
|
+
*/
|
|
919
|
+
numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint>;
|
|
627
920
|
/**
|
|
628
921
|
* params
|
|
629
922
|
* view
|
|
@@ -634,11 +927,41 @@ export declare class OptimismPortal_json {
|
|
|
634
927
|
* view
|
|
635
928
|
*/
|
|
636
929
|
paused(): Promise<boolean>;
|
|
930
|
+
/**
|
|
931
|
+
* proofMaturityDelaySeconds
|
|
932
|
+
* view
|
|
933
|
+
*/
|
|
934
|
+
proofMaturityDelaySeconds(): Promise<bigint>;
|
|
935
|
+
/**
|
|
936
|
+
* proofSubmitters
|
|
937
|
+
* view
|
|
938
|
+
*/
|
|
939
|
+
proofSubmitters(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`>;
|
|
637
940
|
/**
|
|
638
941
|
* provenWithdrawals
|
|
639
942
|
* view
|
|
640
943
|
*/
|
|
641
|
-
provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint
|
|
944
|
+
provenWithdrawals(arg0: `0x${string}`, arg1: `0x${string}`): Promise<[`0x${string}`, bigint]>;
|
|
945
|
+
/**
|
|
946
|
+
* proxyAdmin
|
|
947
|
+
* view
|
|
948
|
+
*/
|
|
949
|
+
proxyAdmin(): Promise<`0x${string}`>;
|
|
950
|
+
/**
|
|
951
|
+
* proxyAdminOwner
|
|
952
|
+
* view
|
|
953
|
+
*/
|
|
954
|
+
proxyAdminOwner(): Promise<`0x${string}`>;
|
|
955
|
+
/**
|
|
956
|
+
* respectedGameType
|
|
957
|
+
* view
|
|
958
|
+
*/
|
|
959
|
+
respectedGameType(): Promise<bigint>;
|
|
960
|
+
/**
|
|
961
|
+
* respectedGameTypeUpdatedAt
|
|
962
|
+
* view
|
|
963
|
+
*/
|
|
964
|
+
respectedGameTypeUpdatedAt(): Promise<bigint>;
|
|
642
965
|
/**
|
|
643
966
|
* superchainConfig
|
|
644
967
|
* view
|
|
@@ -655,11 +978,11 @@ export declare class OptimismPortal_json {
|
|
|
655
978
|
*/
|
|
656
979
|
version(): Promise<string>;
|
|
657
980
|
/**
|
|
658
|
-
*
|
|
659
|
-
*
|
|
981
|
+
* depositTransaction
|
|
982
|
+
* payable
|
|
660
983
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
661
984
|
*/
|
|
662
|
-
|
|
985
|
+
depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
|
|
663
986
|
accessList?: import('viem').AccessList;
|
|
664
987
|
authorizationList?: import('viem').AuthorizationList;
|
|
665
988
|
chain?: import('viem').Chain | null;
|
|
@@ -672,11 +995,11 @@ export declare class OptimismPortal_json {
|
|
|
672
995
|
value?: bigint;
|
|
673
996
|
}): Promise<`0x${string}`>;
|
|
674
997
|
/**
|
|
675
|
-
*
|
|
998
|
+
* donateETH
|
|
676
999
|
* payable
|
|
677
1000
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
678
1001
|
*/
|
|
679
|
-
|
|
1002
|
+
donateETH(options?: {
|
|
680
1003
|
accessList?: import('viem').AccessList;
|
|
681
1004
|
authorizationList?: import('viem').AuthorizationList;
|
|
682
1005
|
chain?: import('viem').Chain | null;
|
|
@@ -689,11 +1012,11 @@ export declare class OptimismPortal_json {
|
|
|
689
1012
|
value?: bigint;
|
|
690
1013
|
}): Promise<`0x${string}`>;
|
|
691
1014
|
/**
|
|
692
|
-
*
|
|
693
|
-
*
|
|
1015
|
+
* finalizeWithdrawalTransaction
|
|
1016
|
+
* nonpayable
|
|
694
1017
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
695
1018
|
*/
|
|
696
|
-
|
|
1019
|
+
finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
|
|
697
1020
|
accessList?: import('viem').AccessList;
|
|
698
1021
|
authorizationList?: import('viem').AuthorizationList;
|
|
699
1022
|
chain?: import('viem').Chain | null;
|
|
@@ -706,11 +1029,11 @@ export declare class OptimismPortal_json {
|
|
|
706
1029
|
value?: bigint;
|
|
707
1030
|
}): Promise<`0x${string}`>;
|
|
708
1031
|
/**
|
|
709
|
-
*
|
|
1032
|
+
* finalizeWithdrawalTransactionExternalProof
|
|
710
1033
|
* nonpayable
|
|
711
1034
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
712
1035
|
*/
|
|
713
|
-
|
|
1036
|
+
finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
714
1037
|
accessList?: import('viem').AccessList;
|
|
715
1038
|
authorizationList?: import('viem').AuthorizationList;
|
|
716
1039
|
chain?: import('viem').Chain | null;
|
|
@@ -727,7 +1050,7 @@ export declare class OptimismPortal_json {
|
|
|
727
1050
|
* nonpayable
|
|
728
1051
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
729
1052
|
*/
|
|
730
|
-
initialize(
|
|
1053
|
+
initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
731
1054
|
accessList?: import('viem').AccessList;
|
|
732
1055
|
authorizationList?: import('viem').AuthorizationList;
|
|
733
1056
|
chain?: import('viem').Chain | null;
|
|
@@ -740,11 +1063,28 @@ export declare class OptimismPortal_json {
|
|
|
740
1063
|
value?: bigint;
|
|
741
1064
|
}): Promise<`0x${string}`>;
|
|
742
1065
|
/**
|
|
743
|
-
*
|
|
1066
|
+
* migrateLiquidity
|
|
1067
|
+
* nonpayable
|
|
1068
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1069
|
+
*/
|
|
1070
|
+
migrateLiquidity(options?: {
|
|
1071
|
+
accessList?: import('viem').AccessList;
|
|
1072
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1073
|
+
chain?: import('viem').Chain | null;
|
|
1074
|
+
dataSuffix?: `0x${string}`;
|
|
1075
|
+
gas?: bigint;
|
|
1076
|
+
gasPrice?: bigint;
|
|
1077
|
+
maxFeePerGas?: bigint;
|
|
1078
|
+
maxPriorityFeePerGas?: bigint;
|
|
1079
|
+
nonce?: number;
|
|
1080
|
+
value?: bigint;
|
|
1081
|
+
}): Promise<`0x${string}`>;
|
|
1082
|
+
/**
|
|
1083
|
+
* migrateToSharedDisputeGame
|
|
744
1084
|
* nonpayable
|
|
745
1085
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
746
1086
|
*/
|
|
747
|
-
|
|
1087
|
+
migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
748
1088
|
accessList?: import('viem').AccessList;
|
|
749
1089
|
authorizationList?: import('viem').AuthorizationList;
|
|
750
1090
|
chain?: import('viem').Chain | null;
|
|
@@ -757,11 +1097,11 @@ export declare class OptimismPortal_json {
|
|
|
757
1097
|
value?: bigint;
|
|
758
1098
|
}): Promise<`0x${string}`>;
|
|
759
1099
|
/**
|
|
760
|
-
*
|
|
1100
|
+
* proveWithdrawalTransaction
|
|
761
1101
|
* nonpayable
|
|
762
1102
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
763
1103
|
*/
|
|
764
|
-
|
|
1104
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
765
1105
|
accessList?: import('viem').AccessList;
|
|
766
1106
|
authorizationList?: import('viem').AuthorizationList;
|
|
767
1107
|
chain?: import('viem').Chain | null;
|
|
@@ -783,11 +1123,11 @@ export declare class OptimismPortal_json {
|
|
|
783
1123
|
*/
|
|
784
1124
|
get simulate(): {
|
|
785
1125
|
/**
|
|
786
|
-
* Simulate
|
|
1126
|
+
* Simulate depositTransaction
|
|
787
1127
|
* Returns gas estimate and result without sending transaction
|
|
788
1128
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
789
1129
|
*/
|
|
790
|
-
|
|
1130
|
+
depositTransaction(_to: `0x${string}`, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
|
|
791
1131
|
accessList?: import("viem").AccessList;
|
|
792
1132
|
authorizationList?: import("viem").AuthorizationList;
|
|
793
1133
|
chain?: import("viem").Chain | null;
|
|
@@ -800,11 +1140,11 @@ export declare class OptimismPortal_json {
|
|
|
800
1140
|
value?: bigint;
|
|
801
1141
|
}): Promise<void>;
|
|
802
1142
|
/**
|
|
803
|
-
* Simulate
|
|
1143
|
+
* Simulate donateETH
|
|
804
1144
|
* Returns gas estimate and result without sending transaction
|
|
805
1145
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
806
1146
|
*/
|
|
807
|
-
|
|
1147
|
+
donateETH(options?: {
|
|
808
1148
|
accessList?: import("viem").AccessList;
|
|
809
1149
|
authorizationList?: import("viem").AuthorizationList;
|
|
810
1150
|
chain?: import("viem").Chain | null;
|
|
@@ -817,11 +1157,11 @@ export declare class OptimismPortal_json {
|
|
|
817
1157
|
value?: bigint;
|
|
818
1158
|
}): Promise<void>;
|
|
819
1159
|
/**
|
|
820
|
-
* Simulate
|
|
1160
|
+
* Simulate finalizeWithdrawalTransaction
|
|
821
1161
|
* Returns gas estimate and result without sending transaction
|
|
822
1162
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
823
1163
|
*/
|
|
824
|
-
|
|
1164
|
+
finalizeWithdrawalTransaction(_tx: Types_WithdrawalTransaction, options?: {
|
|
825
1165
|
accessList?: import("viem").AccessList;
|
|
826
1166
|
authorizationList?: import("viem").AuthorizationList;
|
|
827
1167
|
chain?: import("viem").Chain | null;
|
|
@@ -834,11 +1174,11 @@ export declare class OptimismPortal_json {
|
|
|
834
1174
|
value?: bigint;
|
|
835
1175
|
}): Promise<void>;
|
|
836
1176
|
/**
|
|
837
|
-
* Simulate
|
|
1177
|
+
* Simulate finalizeWithdrawalTransactionExternalProof
|
|
838
1178
|
* Returns gas estimate and result without sending transaction
|
|
839
1179
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
840
1180
|
*/
|
|
841
|
-
|
|
1181
|
+
finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
842
1182
|
accessList?: import("viem").AccessList;
|
|
843
1183
|
authorizationList?: import("viem").AuthorizationList;
|
|
844
1184
|
chain?: import("viem").Chain | null;
|
|
@@ -855,7 +1195,7 @@ export declare class OptimismPortal_json {
|
|
|
855
1195
|
* Returns gas estimate and result without sending transaction
|
|
856
1196
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
857
1197
|
*/
|
|
858
|
-
initialize(
|
|
1198
|
+
initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
859
1199
|
accessList?: import("viem").AccessList;
|
|
860
1200
|
authorizationList?: import("viem").AuthorizationList;
|
|
861
1201
|
chain?: import("viem").Chain | null;
|
|
@@ -868,11 +1208,28 @@ export declare class OptimismPortal_json {
|
|
|
868
1208
|
value?: bigint;
|
|
869
1209
|
}): Promise<void>;
|
|
870
1210
|
/**
|
|
871
|
-
* Simulate
|
|
1211
|
+
* Simulate migrateLiquidity
|
|
1212
|
+
* Returns gas estimate and result without sending transaction
|
|
1213
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1214
|
+
*/
|
|
1215
|
+
migrateLiquidity(options?: {
|
|
1216
|
+
accessList?: import("viem").AccessList;
|
|
1217
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1218
|
+
chain?: import("viem").Chain | null;
|
|
1219
|
+
dataSuffix?: `0x${string}`;
|
|
1220
|
+
gas?: bigint;
|
|
1221
|
+
gasPrice?: bigint;
|
|
1222
|
+
maxFeePerGas?: bigint;
|
|
1223
|
+
maxPriorityFeePerGas?: bigint;
|
|
1224
|
+
nonce?: number;
|
|
1225
|
+
value?: bigint;
|
|
1226
|
+
}): Promise<void>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Simulate migrateToSharedDisputeGame
|
|
872
1229
|
* Returns gas estimate and result without sending transaction
|
|
873
1230
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
874
1231
|
*/
|
|
875
|
-
|
|
1232
|
+
migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
876
1233
|
accessList?: import("viem").AccessList;
|
|
877
1234
|
authorizationList?: import("viem").AuthorizationList;
|
|
878
1235
|
chain?: import("viem").Chain | null;
|
|
@@ -885,11 +1242,11 @@ export declare class OptimismPortal_json {
|
|
|
885
1242
|
value?: bigint;
|
|
886
1243
|
}): Promise<void>;
|
|
887
1244
|
/**
|
|
888
|
-
* Simulate
|
|
1245
|
+
* Simulate proveWithdrawalTransaction
|
|
889
1246
|
* Returns gas estimate and result without sending transaction
|
|
890
1247
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
891
1248
|
*/
|
|
892
|
-
|
|
1249
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
893
1250
|
accessList?: import("viem").AccessList;
|
|
894
1251
|
authorizationList?: import("viem").AuthorizationList;
|
|
895
1252
|
chain?: import("viem").Chain | null;
|
|
@@ -915,6 +1272,18 @@ export declare class OptimismPortal_json {
|
|
|
915
1272
|
* unwatch();
|
|
916
1273
|
*/
|
|
917
1274
|
get watch(): {
|
|
1275
|
+
/**
|
|
1276
|
+
* Watch ETHMigrated events
|
|
1277
|
+
* @param callback Function to call when event is emitted
|
|
1278
|
+
* @param filter Optional filter for indexed parameters
|
|
1279
|
+
* @returns Unwatch function to stop listening
|
|
1280
|
+
*/
|
|
1281
|
+
ETHMigrated: (callback: (event: {
|
|
1282
|
+
lockbox: `0x${string}`;
|
|
1283
|
+
balance: bigint;
|
|
1284
|
+
}) => void, filter?: {
|
|
1285
|
+
lockbox: `0x${string}`;
|
|
1286
|
+
}) => () => void;
|
|
918
1287
|
/**
|
|
919
1288
|
* Watch Initialized events
|
|
920
1289
|
* @param callback Function to call when event is emitted
|
|
@@ -924,6 +1293,18 @@ export declare class OptimismPortal_json {
|
|
|
924
1293
|
Initialized: (callback: (event: {
|
|
925
1294
|
version: bigint;
|
|
926
1295
|
}) => void) => () => void;
|
|
1296
|
+
/**
|
|
1297
|
+
* Watch PortalMigrated events
|
|
1298
|
+
* @param callback Function to call when event is emitted
|
|
1299
|
+
* @param filter Optional filter for indexed parameters
|
|
1300
|
+
* @returns Unwatch function to stop listening
|
|
1301
|
+
*/
|
|
1302
|
+
PortalMigrated: (callback: (event: {
|
|
1303
|
+
oldLockbox: `0x${string}`;
|
|
1304
|
+
newLockbox: `0x${string}`;
|
|
1305
|
+
oldAnchorStateRegistry: `0x${string}`;
|
|
1306
|
+
newAnchorStateRegistry: `0x${string}`;
|
|
1307
|
+
}) => void) => () => void;
|
|
927
1308
|
/**
|
|
928
1309
|
* Watch TransactionDeposited events
|
|
929
1310
|
* @param callback Function to call when event is emitted
|
|
@@ -967,5 +1348,18 @@ export declare class OptimismPortal_json {
|
|
|
967
1348
|
from: `0x${string}`;
|
|
968
1349
|
to: `0x${string}`;
|
|
969
1350
|
}) => () => void;
|
|
1351
|
+
/**
|
|
1352
|
+
* Watch WithdrawalProvenExtension1 events
|
|
1353
|
+
* @param callback Function to call when event is emitted
|
|
1354
|
+
* @param filter Optional filter for indexed parameters
|
|
1355
|
+
* @returns Unwatch function to stop listening
|
|
1356
|
+
*/
|
|
1357
|
+
WithdrawalProvenExtension1: (callback: (event: {
|
|
1358
|
+
withdrawalHash: `0x${string}`;
|
|
1359
|
+
proofSubmitter: `0x${string}`;
|
|
1360
|
+
}) => void, filter?: {
|
|
1361
|
+
withdrawalHash: `0x${string}`;
|
|
1362
|
+
proofSubmitter: `0x${string}`;
|
|
1363
|
+
}) => () => void;
|
|
970
1364
|
};
|
|
971
1365
|
}
|