@gitmyabi/optimismportal 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{OptimismPortal_json.d.ts → OptimismPortal2_json.d.ts} +510 -332
- package/contracts/{OptimismPortal_json.js → OptimismPortal2_json.js} +628 -363
- package/contracts/{OptimismPortal_json.ts → OptimismPortal2_json.ts} +641 -416
- 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,43 +20,176 @@ 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 [];
|
|
29
|
-
readonly stateMutability: "nonpayable";
|
|
30
|
-
readonly type: "constructor";
|
|
31
|
-
}, {
|
|
32
|
-
readonly anonymous: false;
|
|
27
|
+
export declare const OptimismPortal2_jsonAbi: readonly [{
|
|
33
28
|
readonly inputs: readonly [{
|
|
34
|
-
readonly indexed: true;
|
|
35
|
-
readonly internalType: "address";
|
|
36
|
-
readonly name: "claimer";
|
|
37
|
-
readonly type: "address";
|
|
38
|
-
}, {
|
|
39
|
-
readonly indexed: false;
|
|
40
29
|
readonly internalType: "uint256";
|
|
41
|
-
readonly name: "
|
|
30
|
+
readonly name: "_proofMaturityDelaySeconds";
|
|
42
31
|
readonly type: "uint256";
|
|
43
32
|
}];
|
|
44
|
-
readonly
|
|
45
|
-
readonly type: "
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
readonly type: "constructor";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "ContentLengthMismatch";
|
|
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";
|
|
58
|
+
readonly type: "error";
|
|
59
|
+
}, {
|
|
60
|
+
readonly inputs: readonly [];
|
|
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";
|
|
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";
|
|
138
|
+
readonly type: "error";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly name: "OutOfGas";
|
|
142
|
+
readonly type: "error";
|
|
143
|
+
}, {
|
|
144
|
+
readonly inputs: readonly [];
|
|
145
|
+
readonly name: "ProxyAdminOwnedBase_NotProxyAdmin";
|
|
146
|
+
readonly type: "error";
|
|
147
|
+
}, {
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
readonly name: "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner";
|
|
150
|
+
readonly type: "error";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [];
|
|
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";
|
|
170
|
+
readonly type: "error";
|
|
171
|
+
}, {
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "UnexpectedList";
|
|
174
|
+
readonly type: "error";
|
|
175
|
+
}, {
|
|
176
|
+
readonly inputs: readonly [];
|
|
177
|
+
readonly name: "UnexpectedString";
|
|
178
|
+
readonly type: "error";
|
|
46
179
|
}, {
|
|
47
180
|
readonly anonymous: false;
|
|
48
181
|
readonly inputs: readonly [{
|
|
49
182
|
readonly indexed: true;
|
|
50
183
|
readonly internalType: "address";
|
|
51
|
-
readonly name: "
|
|
184
|
+
readonly name: "lockbox";
|
|
52
185
|
readonly type: "address";
|
|
53
186
|
}, {
|
|
54
187
|
readonly indexed: false;
|
|
55
188
|
readonly internalType: "uint256";
|
|
56
|
-
readonly name: "
|
|
189
|
+
readonly name: "balance";
|
|
57
190
|
readonly type: "uint256";
|
|
58
191
|
}];
|
|
59
|
-
readonly name: "
|
|
192
|
+
readonly name: "ETHMigrated";
|
|
60
193
|
readonly type: "event";
|
|
61
194
|
}, {
|
|
62
195
|
readonly anonymous: false;
|
|
@@ -71,27 +204,27 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
71
204
|
}, {
|
|
72
205
|
readonly anonymous: false;
|
|
73
206
|
readonly inputs: readonly [{
|
|
74
|
-
readonly indexed:
|
|
75
|
-
readonly internalType: "
|
|
76
|
-
readonly name: "
|
|
77
|
-
readonly type: "
|
|
207
|
+
readonly indexed: false;
|
|
208
|
+
readonly internalType: "contract IETHLockbox";
|
|
209
|
+
readonly name: "oldLockbox";
|
|
210
|
+
readonly type: "address";
|
|
78
211
|
}, {
|
|
79
|
-
readonly indexed:
|
|
80
|
-
readonly internalType: "
|
|
81
|
-
readonly name: "
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly internalType: "contract IETHLockbox";
|
|
214
|
+
readonly name: "newLockbox";
|
|
82
215
|
readonly type: "address";
|
|
83
|
-
}
|
|
84
|
-
readonly name: "MerkleRootETHSet";
|
|
85
|
-
readonly type: "event";
|
|
86
|
-
}, {
|
|
87
|
-
readonly anonymous: false;
|
|
88
|
-
readonly inputs: readonly [{
|
|
216
|
+
}, {
|
|
89
217
|
readonly indexed: false;
|
|
90
|
-
readonly internalType: "
|
|
91
|
-
readonly name: "
|
|
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";
|
|
92
225
|
readonly type: "address";
|
|
93
226
|
}];
|
|
94
|
-
readonly name: "
|
|
227
|
+
readonly name: "PortalMigrated";
|
|
95
228
|
readonly type: "event";
|
|
96
229
|
}, {
|
|
97
230
|
readonly anonymous: false;
|
|
@@ -118,16 +251,6 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
118
251
|
}];
|
|
119
252
|
readonly name: "TransactionDeposited";
|
|
120
253
|
readonly type: "event";
|
|
121
|
-
}, {
|
|
122
|
-
readonly anonymous: false;
|
|
123
|
-
readonly inputs: readonly [{
|
|
124
|
-
readonly indexed: false;
|
|
125
|
-
readonly internalType: "address";
|
|
126
|
-
readonly name: "account";
|
|
127
|
-
readonly type: "address";
|
|
128
|
-
}];
|
|
129
|
-
readonly name: "Unpaused";
|
|
130
|
-
readonly type: "event";
|
|
131
254
|
}, {
|
|
132
255
|
readonly anonymous: false;
|
|
133
256
|
readonly inputs: readonly [{
|
|
@@ -164,40 +287,25 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
164
287
|
readonly name: "WithdrawalProven";
|
|
165
288
|
readonly type: "event";
|
|
166
289
|
}, {
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
|
|
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;
|
|
170
298
|
readonly internalType: "address";
|
|
171
|
-
readonly name: "";
|
|
172
|
-
readonly type: "address";
|
|
173
|
-
}];
|
|
174
|
-
readonly stateMutability: "view";
|
|
175
|
-
readonly type: "function";
|
|
176
|
-
}, {
|
|
177
|
-
readonly inputs: readonly [];
|
|
178
|
-
readonly name: "L2_ORACLE";
|
|
179
|
-
readonly outputs: readonly [{
|
|
180
|
-
readonly internalType: "contract L2OutputOracle";
|
|
181
|
-
readonly name: "";
|
|
299
|
+
readonly name: "proofSubmitter";
|
|
182
300
|
readonly type: "address";
|
|
183
301
|
}];
|
|
184
|
-
readonly
|
|
185
|
-
readonly type: "
|
|
186
|
-
}, {
|
|
187
|
-
readonly inputs: readonly [];
|
|
188
|
-
readonly name: "RECOVERY_TIMESTAMP";
|
|
189
|
-
readonly outputs: readonly [{
|
|
190
|
-
readonly internalType: "uint256";
|
|
191
|
-
readonly name: "";
|
|
192
|
-
readonly type: "uint256";
|
|
193
|
-
}];
|
|
194
|
-
readonly stateMutability: "view";
|
|
195
|
-
readonly type: "function";
|
|
302
|
+
readonly name: "WithdrawalProvenExtension1";
|
|
303
|
+
readonly type: "event";
|
|
196
304
|
}, {
|
|
197
305
|
readonly inputs: readonly [];
|
|
198
|
-
readonly name: "
|
|
306
|
+
readonly name: "anchorStateRegistry";
|
|
199
307
|
readonly outputs: readonly [{
|
|
200
|
-
readonly internalType: "contract
|
|
308
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
201
309
|
readonly name: "";
|
|
202
310
|
readonly type: "address";
|
|
203
311
|
}];
|
|
@@ -205,30 +313,16 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
205
313
|
readonly type: "function";
|
|
206
314
|
}, {
|
|
207
315
|
readonly inputs: readonly [{
|
|
208
|
-
readonly internalType: "
|
|
209
|
-
readonly name: "
|
|
210
|
-
readonly type: "
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
readonly name: "_withdrawalHash";
|
|
318
|
+
readonly type: "bytes32";
|
|
211
319
|
}, {
|
|
212
|
-
readonly internalType: "bytes32[]";
|
|
213
|
-
readonly name: "_proof";
|
|
214
|
-
readonly type: "bytes32[]";
|
|
215
|
-
}];
|
|
216
|
-
readonly name: "claimETH";
|
|
217
|
-
readonly outputs: readonly [];
|
|
218
|
-
readonly stateMutability: "nonpayable";
|
|
219
|
-
readonly type: "function";
|
|
220
|
-
}, {
|
|
221
|
-
readonly inputs: readonly [{
|
|
222
320
|
readonly internalType: "address";
|
|
223
|
-
readonly name: "";
|
|
321
|
+
readonly name: "_proofSubmitter";
|
|
224
322
|
readonly type: "address";
|
|
225
323
|
}];
|
|
226
|
-
readonly name: "
|
|
227
|
-
readonly outputs: readonly [
|
|
228
|
-
readonly internalType: "uint256";
|
|
229
|
-
readonly name: "";
|
|
230
|
-
readonly type: "uint256";
|
|
231
|
-
}];
|
|
324
|
+
readonly name: "checkWithdrawal";
|
|
325
|
+
readonly outputs: readonly [];
|
|
232
326
|
readonly stateMutability: "view";
|
|
233
327
|
readonly type: "function";
|
|
234
328
|
}, {
|
|
@@ -257,12 +351,56 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
257
351
|
readonly outputs: readonly [];
|
|
258
352
|
readonly stateMutability: "payable";
|
|
259
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";
|
|
260
388
|
}, {
|
|
261
389
|
readonly inputs: readonly [];
|
|
262
390
|
readonly name: "donateETH";
|
|
263
391
|
readonly outputs: readonly [];
|
|
264
392
|
readonly stateMutability: "payable";
|
|
265
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";
|
|
266
404
|
}, {
|
|
267
405
|
readonly inputs: readonly [{
|
|
268
406
|
readonly components: readonly [{
|
|
@@ -298,6 +436,45 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
298
436
|
readonly outputs: readonly [];
|
|
299
437
|
readonly stateMutability: "nonpayable";
|
|
300
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";
|
|
301
478
|
}, {
|
|
302
479
|
readonly inputs: readonly [{
|
|
303
480
|
readonly internalType: "bytes32";
|
|
@@ -323,50 +500,32 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
323
500
|
readonly stateMutability: "view";
|
|
324
501
|
readonly type: "function";
|
|
325
502
|
}, {
|
|
326
|
-
readonly inputs: readonly [
|
|
327
|
-
|
|
328
|
-
readonly name: "_l2Oracle";
|
|
329
|
-
readonly type: "address";
|
|
330
|
-
}, {
|
|
331
|
-
readonly internalType: "address";
|
|
332
|
-
readonly name: "_guardian";
|
|
333
|
-
readonly type: "address";
|
|
334
|
-
}, {
|
|
335
|
-
readonly internalType: "contract SystemConfig";
|
|
336
|
-
readonly name: "_systemConfig";
|
|
337
|
-
readonly type: "address";
|
|
338
|
-
}, {
|
|
339
|
-
readonly internalType: "bool";
|
|
340
|
-
readonly name: "_paused";
|
|
341
|
-
readonly type: "bool";
|
|
342
|
-
}];
|
|
343
|
-
readonly name: "initialize";
|
|
344
|
-
readonly outputs: readonly [];
|
|
345
|
-
readonly stateMutability: "nonpayable";
|
|
346
|
-
readonly type: "function";
|
|
347
|
-
}, {
|
|
348
|
-
readonly inputs: readonly [{
|
|
349
|
-
readonly internalType: "uint256";
|
|
350
|
-
readonly name: "_l2OutputIndex";
|
|
351
|
-
readonly type: "uint256";
|
|
352
|
-
}];
|
|
353
|
-
readonly name: "isOutputFinalized";
|
|
503
|
+
readonly inputs: readonly [];
|
|
504
|
+
readonly name: "initVersion";
|
|
354
505
|
readonly outputs: readonly [{
|
|
355
|
-
readonly internalType: "
|
|
506
|
+
readonly internalType: "uint8";
|
|
356
507
|
readonly name: "";
|
|
357
|
-
readonly type: "
|
|
508
|
+
readonly type: "uint8";
|
|
358
509
|
}];
|
|
359
510
|
readonly stateMutability: "view";
|
|
360
511
|
readonly type: "function";
|
|
361
512
|
}, {
|
|
362
|
-
readonly inputs: readonly [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
readonly
|
|
366
|
-
|
|
513
|
+
readonly inputs: readonly [{
|
|
514
|
+
readonly internalType: "contract ISystemConfig";
|
|
515
|
+
readonly name: "_systemConfig";
|
|
516
|
+
readonly type: "address";
|
|
517
|
+
}, {
|
|
518
|
+
readonly internalType: "contract IAnchorStateRegistry";
|
|
519
|
+
readonly name: "_anchorStateRegistry";
|
|
520
|
+
readonly type: "address";
|
|
521
|
+
}, {
|
|
522
|
+
readonly internalType: "contract IETHLockbox";
|
|
523
|
+
readonly name: "_ethLockbox";
|
|
367
524
|
readonly type: "address";
|
|
368
525
|
}];
|
|
369
|
-
readonly
|
|
526
|
+
readonly name: "initialize";
|
|
527
|
+
readonly outputs: readonly [];
|
|
528
|
+
readonly stateMutability: "nonpayable";
|
|
370
529
|
readonly type: "function";
|
|
371
530
|
}, {
|
|
372
531
|
readonly inputs: readonly [];
|
|
@@ -380,13 +539,23 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
380
539
|
readonly type: "function";
|
|
381
540
|
}, {
|
|
382
541
|
readonly inputs: readonly [];
|
|
383
|
-
readonly name: "
|
|
384
|
-
readonly outputs: readonly [
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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";
|
|
554
|
+
readonly type: "address";
|
|
388
555
|
}];
|
|
389
|
-
readonly
|
|
556
|
+
readonly name: "migrateToSharedDisputeGame";
|
|
557
|
+
readonly outputs: readonly [];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
390
559
|
readonly type: "function";
|
|
391
560
|
}, {
|
|
392
561
|
readonly inputs: readonly [{
|
|
@@ -402,6 +571,20 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
402
571
|
}];
|
|
403
572
|
readonly stateMutability: "pure";
|
|
404
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";
|
|
405
588
|
}, {
|
|
406
589
|
readonly inputs: readonly [];
|
|
407
590
|
readonly name: "params";
|
|
@@ -420,12 +603,6 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
420
603
|
}];
|
|
421
604
|
readonly stateMutability: "view";
|
|
422
605
|
readonly type: "function";
|
|
423
|
-
}, {
|
|
424
|
-
readonly inputs: readonly [];
|
|
425
|
-
readonly name: "pause";
|
|
426
|
-
readonly outputs: readonly [];
|
|
427
|
-
readonly stateMutability: "nonpayable";
|
|
428
|
-
readonly type: "function";
|
|
429
606
|
}, {
|
|
430
607
|
readonly inputs: readonly [];
|
|
431
608
|
readonly name: "paused";
|
|
@@ -436,6 +613,34 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
436
613
|
}];
|
|
437
614
|
readonly stateMutability: "view";
|
|
438
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";
|
|
439
644
|
}, {
|
|
440
645
|
readonly inputs: readonly [{
|
|
441
646
|
readonly components: readonly [{
|
|
@@ -468,7 +673,7 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
468
673
|
readonly type: "tuple";
|
|
469
674
|
}, {
|
|
470
675
|
readonly internalType: "uint256";
|
|
471
|
-
readonly name: "
|
|
676
|
+
readonly name: "_disputeGameIndex";
|
|
472
677
|
readonly type: "uint256";
|
|
473
678
|
}, {
|
|
474
679
|
readonly components: readonly [{
|
|
@@ -505,48 +710,68 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
505
710
|
readonly internalType: "bytes32";
|
|
506
711
|
readonly name: "";
|
|
507
712
|
readonly type: "bytes32";
|
|
713
|
+
}, {
|
|
714
|
+
readonly internalType: "address";
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "address";
|
|
508
717
|
}];
|
|
509
718
|
readonly name: "provenWithdrawals";
|
|
510
719
|
readonly outputs: readonly [{
|
|
511
|
-
readonly internalType: "
|
|
512
|
-
readonly name: "
|
|
513
|
-
readonly type: "
|
|
720
|
+
readonly internalType: "contract IDisputeGame";
|
|
721
|
+
readonly name: "disputeGameProxy";
|
|
722
|
+
readonly type: "address";
|
|
514
723
|
}, {
|
|
515
|
-
readonly internalType: "
|
|
724
|
+
readonly internalType: "uint64";
|
|
516
725
|
readonly name: "timestamp";
|
|
517
|
-
readonly type: "
|
|
518
|
-
}, {
|
|
519
|
-
readonly internalType: "uint128";
|
|
520
|
-
readonly name: "l2OutputIndex";
|
|
521
|
-
readonly type: "uint128";
|
|
726
|
+
readonly type: "uint64";
|
|
522
727
|
}];
|
|
523
728
|
readonly stateMutability: "view";
|
|
524
729
|
readonly type: "function";
|
|
525
730
|
}, {
|
|
526
|
-
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 [{
|
|
527
744
|
readonly internalType: "address";
|
|
528
|
-
readonly name: "
|
|
745
|
+
readonly name: "";
|
|
529
746
|
readonly type: "address";
|
|
530
747
|
}];
|
|
531
|
-
readonly
|
|
532
|
-
readonly outputs: readonly [];
|
|
533
|
-
readonly stateMutability: "nonpayable";
|
|
748
|
+
readonly stateMutability: "view";
|
|
534
749
|
readonly type: "function";
|
|
535
750
|
}, {
|
|
536
|
-
readonly inputs: readonly [
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
readonly
|
|
751
|
+
readonly inputs: readonly [];
|
|
752
|
+
readonly name: "respectedGameType";
|
|
753
|
+
readonly outputs: readonly [{
|
|
754
|
+
readonly internalType: "GameType";
|
|
755
|
+
readonly name: "";
|
|
756
|
+
readonly type: "uint32";
|
|
540
757
|
}];
|
|
541
|
-
readonly
|
|
542
|
-
readonly outputs: readonly [];
|
|
543
|
-
readonly stateMutability: "nonpayable";
|
|
758
|
+
readonly stateMutability: "view";
|
|
544
759
|
readonly type: "function";
|
|
545
760
|
}, {
|
|
546
761
|
readonly inputs: readonly [];
|
|
547
|
-
readonly name: "
|
|
762
|
+
readonly name: "respectedGameTypeUpdatedAt";
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly internalType: "uint64";
|
|
765
|
+
readonly name: "";
|
|
766
|
+
readonly type: "uint64";
|
|
767
|
+
}];
|
|
768
|
+
readonly stateMutability: "view";
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
}, {
|
|
771
|
+
readonly inputs: readonly [];
|
|
772
|
+
readonly name: "superchainConfig";
|
|
548
773
|
readonly outputs: readonly [{
|
|
549
|
-
readonly internalType: "contract
|
|
774
|
+
readonly internalType: "contract ISuperchainConfig";
|
|
550
775
|
readonly name: "";
|
|
551
776
|
readonly type: "address";
|
|
552
777
|
}];
|
|
@@ -554,9 +779,13 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
554
779
|
readonly type: "function";
|
|
555
780
|
}, {
|
|
556
781
|
readonly inputs: readonly [];
|
|
557
|
-
readonly name: "
|
|
558
|
-
readonly outputs: readonly [
|
|
559
|
-
|
|
782
|
+
readonly name: "systemConfig";
|
|
783
|
+
readonly outputs: readonly [{
|
|
784
|
+
readonly internalType: "contract ISystemConfig";
|
|
785
|
+
readonly name: "";
|
|
786
|
+
readonly type: "address";
|
|
787
|
+
}];
|
|
788
|
+
readonly stateMutability: "view";
|
|
560
789
|
readonly type: "function";
|
|
561
790
|
}, {
|
|
562
791
|
readonly inputs: readonly [];
|
|
@@ -566,22 +795,22 @@ export declare const OptimismPortal_jsonAbi: readonly [{
|
|
|
566
795
|
readonly name: "";
|
|
567
796
|
readonly type: "string";
|
|
568
797
|
}];
|
|
569
|
-
readonly stateMutability: "
|
|
798
|
+
readonly stateMutability: "pure";
|
|
570
799
|
readonly type: "function";
|
|
571
800
|
}, {
|
|
572
801
|
readonly stateMutability: "payable";
|
|
573
802
|
readonly type: "receive";
|
|
574
803
|
}];
|
|
575
804
|
/**
|
|
576
|
-
* Type-safe ABI for
|
|
805
|
+
* Type-safe ABI for OptimismPortal2_json
|
|
577
806
|
*/
|
|
578
|
-
export type
|
|
807
|
+
export type OptimismPortal2_jsonAbi = typeof OptimismPortal2_jsonAbi;
|
|
579
808
|
/**
|
|
580
|
-
* Contract instance type for
|
|
809
|
+
* Contract instance type for OptimismPortal2_json
|
|
581
810
|
*/
|
|
582
|
-
export type
|
|
811
|
+
export type OptimismPortal2_jsonContract = any;
|
|
583
812
|
/**
|
|
584
|
-
*
|
|
813
|
+
* OptimismPortal2_json Contract Class
|
|
585
814
|
*
|
|
586
815
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
587
816
|
*
|
|
@@ -589,12 +818,12 @@ export type OptimismPortal_jsonContract = any;
|
|
|
589
818
|
* ```typescript
|
|
590
819
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
591
820
|
* import { mainnet } from 'viem/chains';
|
|
592
|
-
* import {
|
|
821
|
+
* import { OptimismPortal2_json } from 'OptimismPortal2_json';
|
|
593
822
|
*
|
|
594
823
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
595
824
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
596
825
|
*
|
|
597
|
-
* const contract = new
|
|
826
|
+
* const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
|
|
598
827
|
*
|
|
599
828
|
* // Read functions
|
|
600
829
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -612,7 +841,7 @@ export type OptimismPortal_jsonContract = any;
|
|
|
612
841
|
* });
|
|
613
842
|
* ```
|
|
614
843
|
*/
|
|
615
|
-
export declare class
|
|
844
|
+
export declare class OptimismPortal2_json {
|
|
616
845
|
private contract;
|
|
617
846
|
private contractAddress;
|
|
618
847
|
private publicClient;
|
|
@@ -627,32 +856,37 @@ export declare class OptimismPortal_json {
|
|
|
627
856
|
/**
|
|
628
857
|
* Get the underlying viem contract instance
|
|
629
858
|
*/
|
|
630
|
-
getContract():
|
|
859
|
+
getContract(): OptimismPortal2_jsonContract;
|
|
631
860
|
/**
|
|
632
|
-
*
|
|
861
|
+
* anchorStateRegistry
|
|
633
862
|
* view
|
|
634
863
|
*/
|
|
635
|
-
|
|
864
|
+
anchorStateRegistry(): Promise<`0x${string}`>;
|
|
636
865
|
/**
|
|
637
|
-
*
|
|
866
|
+
* checkWithdrawal
|
|
638
867
|
* view
|
|
639
868
|
*/
|
|
640
|
-
|
|
869
|
+
checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void>;
|
|
641
870
|
/**
|
|
642
|
-
*
|
|
871
|
+
* disputeGameBlacklist
|
|
643
872
|
* view
|
|
644
873
|
*/
|
|
645
|
-
|
|
874
|
+
disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean>;
|
|
646
875
|
/**
|
|
647
|
-
*
|
|
876
|
+
* disputeGameFactory
|
|
648
877
|
* view
|
|
649
878
|
*/
|
|
650
|
-
|
|
879
|
+
disputeGameFactory(): Promise<`0x${string}`>;
|
|
651
880
|
/**
|
|
652
|
-
*
|
|
881
|
+
* disputeGameFinalityDelaySeconds
|
|
653
882
|
* view
|
|
654
883
|
*/
|
|
655
|
-
|
|
884
|
+
disputeGameFinalityDelaySeconds(): Promise<bigint>;
|
|
885
|
+
/**
|
|
886
|
+
* ethLockbox
|
|
887
|
+
* view
|
|
888
|
+
*/
|
|
889
|
+
ethLockbox(): Promise<`0x${string}`>;
|
|
656
890
|
/**
|
|
657
891
|
* finalizedWithdrawals
|
|
658
892
|
* view
|
|
@@ -664,30 +898,25 @@ export declare class OptimismPortal_json {
|
|
|
664
898
|
*/
|
|
665
899
|
guardian(): Promise<`0x${string}`>;
|
|
666
900
|
/**
|
|
667
|
-
*
|
|
668
|
-
* view
|
|
669
|
-
*/
|
|
670
|
-
isOutputFinalized(_l2OutputIndex: bigint): Promise<boolean>;
|
|
671
|
-
/**
|
|
672
|
-
* l2Oracle
|
|
901
|
+
* initVersion
|
|
673
902
|
* view
|
|
674
903
|
*/
|
|
675
|
-
|
|
904
|
+
initVersion(): Promise<bigint>;
|
|
676
905
|
/**
|
|
677
906
|
* l2Sender
|
|
678
907
|
* view
|
|
679
908
|
*/
|
|
680
909
|
l2Sender(): Promise<`0x${string}`>;
|
|
681
|
-
/**
|
|
682
|
-
* merkleRootETH
|
|
683
|
-
* view
|
|
684
|
-
*/
|
|
685
|
-
merkleRootETH(): Promise<`0x${string}`>;
|
|
686
910
|
/**
|
|
687
911
|
* minimumGasLimit
|
|
688
912
|
* pure
|
|
689
913
|
*/
|
|
690
914
|
minimumGasLimit(_byteCount: bigint): Promise<bigint>;
|
|
915
|
+
/**
|
|
916
|
+
* numProofSubmitters
|
|
917
|
+
* view
|
|
918
|
+
*/
|
|
919
|
+
numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint>;
|
|
691
920
|
/**
|
|
692
921
|
* params
|
|
693
922
|
* view
|
|
@@ -698,11 +927,46 @@ export declare class OptimismPortal_json {
|
|
|
698
927
|
* view
|
|
699
928
|
*/
|
|
700
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}`>;
|
|
701
940
|
/**
|
|
702
941
|
* provenWithdrawals
|
|
703
942
|
* view
|
|
704
943
|
*/
|
|
705
|
-
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>;
|
|
965
|
+
/**
|
|
966
|
+
* superchainConfig
|
|
967
|
+
* view
|
|
968
|
+
*/
|
|
969
|
+
superchainConfig(): Promise<`0x${string}`>;
|
|
706
970
|
/**
|
|
707
971
|
* systemConfig
|
|
708
972
|
* view
|
|
@@ -710,26 +974,9 @@ export declare class OptimismPortal_json {
|
|
|
710
974
|
systemConfig(): Promise<`0x${string}`>;
|
|
711
975
|
/**
|
|
712
976
|
* version
|
|
713
|
-
*
|
|
977
|
+
* pure
|
|
714
978
|
*/
|
|
715
979
|
version(): Promise<string>;
|
|
716
|
-
/**
|
|
717
|
-
* claimETH
|
|
718
|
-
* nonpayable
|
|
719
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
720
|
-
*/
|
|
721
|
-
claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
722
|
-
accessList?: import('viem').AccessList;
|
|
723
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
724
|
-
chain?: import('viem').Chain | null;
|
|
725
|
-
dataSuffix?: `0x${string}`;
|
|
726
|
-
gas?: bigint;
|
|
727
|
-
gasPrice?: bigint;
|
|
728
|
-
maxFeePerGas?: bigint;
|
|
729
|
-
maxPriorityFeePerGas?: bigint;
|
|
730
|
-
nonce?: number;
|
|
731
|
-
value?: bigint;
|
|
732
|
-
}): Promise<`0x${string}`>;
|
|
733
980
|
/**
|
|
734
981
|
* depositTransaction
|
|
735
982
|
* payable
|
|
@@ -782,28 +1029,11 @@ export declare class OptimismPortal_json {
|
|
|
782
1029
|
value?: bigint;
|
|
783
1030
|
}): Promise<`0x${string}`>;
|
|
784
1031
|
/**
|
|
785
|
-
*
|
|
786
|
-
* nonpayable
|
|
787
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
788
|
-
*/
|
|
789
|
-
initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
790
|
-
accessList?: import('viem').AccessList;
|
|
791
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
792
|
-
chain?: import('viem').Chain | null;
|
|
793
|
-
dataSuffix?: `0x${string}`;
|
|
794
|
-
gas?: bigint;
|
|
795
|
-
gasPrice?: bigint;
|
|
796
|
-
maxFeePerGas?: bigint;
|
|
797
|
-
maxPriorityFeePerGas?: bigint;
|
|
798
|
-
nonce?: number;
|
|
799
|
-
value?: bigint;
|
|
800
|
-
}): Promise<`0x${string}`>;
|
|
801
|
-
/**
|
|
802
|
-
* pause
|
|
1032
|
+
* finalizeWithdrawalTransactionExternalProof
|
|
803
1033
|
* nonpayable
|
|
804
1034
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
805
1035
|
*/
|
|
806
|
-
|
|
1036
|
+
finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
807
1037
|
accessList?: import('viem').AccessList;
|
|
808
1038
|
authorizationList?: import('viem').AuthorizationList;
|
|
809
1039
|
chain?: import('viem').Chain | null;
|
|
@@ -816,11 +1046,11 @@ export declare class OptimismPortal_json {
|
|
|
816
1046
|
value?: bigint;
|
|
817
1047
|
}): Promise<`0x${string}`>;
|
|
818
1048
|
/**
|
|
819
|
-
*
|
|
1049
|
+
* initialize
|
|
820
1050
|
* nonpayable
|
|
821
1051
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
822
1052
|
*/
|
|
823
|
-
|
|
1053
|
+
initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
824
1054
|
accessList?: import('viem').AccessList;
|
|
825
1055
|
authorizationList?: import('viem').AuthorizationList;
|
|
826
1056
|
chain?: import('viem').Chain | null;
|
|
@@ -833,11 +1063,11 @@ export declare class OptimismPortal_json {
|
|
|
833
1063
|
value?: bigint;
|
|
834
1064
|
}): Promise<`0x${string}`>;
|
|
835
1065
|
/**
|
|
836
|
-
*
|
|
1066
|
+
* migrateLiquidity
|
|
837
1067
|
* nonpayable
|
|
838
1068
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
839
1069
|
*/
|
|
840
|
-
|
|
1070
|
+
migrateLiquidity(options?: {
|
|
841
1071
|
accessList?: import('viem').AccessList;
|
|
842
1072
|
authorizationList?: import('viem').AuthorizationList;
|
|
843
1073
|
chain?: import('viem').Chain | null;
|
|
@@ -850,11 +1080,11 @@ export declare class OptimismPortal_json {
|
|
|
850
1080
|
value?: bigint;
|
|
851
1081
|
}): Promise<`0x${string}`>;
|
|
852
1082
|
/**
|
|
853
|
-
*
|
|
1083
|
+
* migrateToSharedDisputeGame
|
|
854
1084
|
* nonpayable
|
|
855
1085
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
856
1086
|
*/
|
|
857
|
-
|
|
1087
|
+
migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
858
1088
|
accessList?: import('viem').AccessList;
|
|
859
1089
|
authorizationList?: import('viem').AuthorizationList;
|
|
860
1090
|
chain?: import('viem').Chain | null;
|
|
@@ -867,11 +1097,11 @@ export declare class OptimismPortal_json {
|
|
|
867
1097
|
value?: bigint;
|
|
868
1098
|
}): Promise<`0x${string}`>;
|
|
869
1099
|
/**
|
|
870
|
-
*
|
|
1100
|
+
* proveWithdrawalTransaction
|
|
871
1101
|
* nonpayable
|
|
872
1102
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
873
1103
|
*/
|
|
874
|
-
|
|
1104
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
875
1105
|
accessList?: import('viem').AccessList;
|
|
876
1106
|
authorizationList?: import('viem').AuthorizationList;
|
|
877
1107
|
chain?: import('viem').Chain | null;
|
|
@@ -892,23 +1122,6 @@ export declare class OptimismPortal_json {
|
|
|
892
1122
|
* console.log('Would succeed:', result.result);
|
|
893
1123
|
*/
|
|
894
1124
|
get simulate(): {
|
|
895
|
-
/**
|
|
896
|
-
* Simulate claimETH
|
|
897
|
-
* Returns gas estimate and result without sending transaction
|
|
898
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
899
|
-
*/
|
|
900
|
-
claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
901
|
-
accessList?: import("viem").AccessList;
|
|
902
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
903
|
-
chain?: import("viem").Chain | null;
|
|
904
|
-
dataSuffix?: `0x${string}`;
|
|
905
|
-
gas?: bigint;
|
|
906
|
-
gasPrice?: bigint;
|
|
907
|
-
maxFeePerGas?: bigint;
|
|
908
|
-
maxPriorityFeePerGas?: bigint;
|
|
909
|
-
nonce?: number;
|
|
910
|
-
value?: bigint;
|
|
911
|
-
}): Promise<void>;
|
|
912
1125
|
/**
|
|
913
1126
|
* Simulate depositTransaction
|
|
914
1127
|
* Returns gas estimate and result without sending transaction
|
|
@@ -961,28 +1174,11 @@ export declare class OptimismPortal_json {
|
|
|
961
1174
|
value?: bigint;
|
|
962
1175
|
}): Promise<void>;
|
|
963
1176
|
/**
|
|
964
|
-
* Simulate
|
|
965
|
-
* Returns gas estimate and result without sending transaction
|
|
966
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
967
|
-
*/
|
|
968
|
-
initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
969
|
-
accessList?: import("viem").AccessList;
|
|
970
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
971
|
-
chain?: import("viem").Chain | null;
|
|
972
|
-
dataSuffix?: `0x${string}`;
|
|
973
|
-
gas?: bigint;
|
|
974
|
-
gasPrice?: bigint;
|
|
975
|
-
maxFeePerGas?: bigint;
|
|
976
|
-
maxPriorityFeePerGas?: bigint;
|
|
977
|
-
nonce?: number;
|
|
978
|
-
value?: bigint;
|
|
979
|
-
}): Promise<void>;
|
|
980
|
-
/**
|
|
981
|
-
* Simulate pause
|
|
1177
|
+
* Simulate finalizeWithdrawalTransactionExternalProof
|
|
982
1178
|
* Returns gas estimate and result without sending transaction
|
|
983
1179
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
1180
|
*/
|
|
985
|
-
|
|
1181
|
+
finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
986
1182
|
accessList?: import("viem").AccessList;
|
|
987
1183
|
authorizationList?: import("viem").AuthorizationList;
|
|
988
1184
|
chain?: import("viem").Chain | null;
|
|
@@ -995,11 +1191,11 @@ export declare class OptimismPortal_json {
|
|
|
995
1191
|
value?: bigint;
|
|
996
1192
|
}): Promise<void>;
|
|
997
1193
|
/**
|
|
998
|
-
* Simulate
|
|
1194
|
+
* Simulate initialize
|
|
999
1195
|
* Returns gas estimate and result without sending transaction
|
|
1000
1196
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1001
1197
|
*/
|
|
1002
|
-
|
|
1198
|
+
initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
1003
1199
|
accessList?: import("viem").AccessList;
|
|
1004
1200
|
authorizationList?: import("viem").AuthorizationList;
|
|
1005
1201
|
chain?: import("viem").Chain | null;
|
|
@@ -1012,11 +1208,11 @@ export declare class OptimismPortal_json {
|
|
|
1012
1208
|
value?: bigint;
|
|
1013
1209
|
}): Promise<void>;
|
|
1014
1210
|
/**
|
|
1015
|
-
* Simulate
|
|
1211
|
+
* Simulate migrateLiquidity
|
|
1016
1212
|
* Returns gas estimate and result without sending transaction
|
|
1017
1213
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
1214
|
*/
|
|
1019
|
-
|
|
1215
|
+
migrateLiquidity(options?: {
|
|
1020
1216
|
accessList?: import("viem").AccessList;
|
|
1021
1217
|
authorizationList?: import("viem").AuthorizationList;
|
|
1022
1218
|
chain?: import("viem").Chain | null;
|
|
@@ -1029,11 +1225,11 @@ export declare class OptimismPortal_json {
|
|
|
1029
1225
|
value?: bigint;
|
|
1030
1226
|
}): Promise<void>;
|
|
1031
1227
|
/**
|
|
1032
|
-
* Simulate
|
|
1228
|
+
* Simulate migrateToSharedDisputeGame
|
|
1033
1229
|
* Returns gas estimate and result without sending transaction
|
|
1034
1230
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
1231
|
*/
|
|
1036
|
-
|
|
1232
|
+
migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
1037
1233
|
accessList?: import("viem").AccessList;
|
|
1038
1234
|
authorizationList?: import("viem").AuthorizationList;
|
|
1039
1235
|
chain?: import("viem").Chain | null;
|
|
@@ -1046,11 +1242,11 @@ export declare class OptimismPortal_json {
|
|
|
1046
1242
|
value?: bigint;
|
|
1047
1243
|
}): Promise<void>;
|
|
1048
1244
|
/**
|
|
1049
|
-
* Simulate
|
|
1245
|
+
* Simulate proveWithdrawalTransaction
|
|
1050
1246
|
* Returns gas estimate and result without sending transaction
|
|
1051
1247
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1052
1248
|
*/
|
|
1053
|
-
|
|
1249
|
+
proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
1054
1250
|
accessList?: import("viem").AccessList;
|
|
1055
1251
|
authorizationList?: import("viem").AuthorizationList;
|
|
1056
1252
|
chain?: import("viem").Chain | null;
|
|
@@ -1077,28 +1273,16 @@ export declare class OptimismPortal_json {
|
|
|
1077
1273
|
*/
|
|
1078
1274
|
get watch(): {
|
|
1079
1275
|
/**
|
|
1080
|
-
* Watch
|
|
1081
|
-
* @param callback Function to call when event is emitted
|
|
1082
|
-
* @param filter Optional filter for indexed parameters
|
|
1083
|
-
* @returns Unwatch function to stop listening
|
|
1084
|
-
*/
|
|
1085
|
-
ETHClaimed: (callback: (event: {
|
|
1086
|
-
claimer: `0x${string}`;
|
|
1087
|
-
amount: bigint;
|
|
1088
|
-
}) => void, filter?: {
|
|
1089
|
-
claimer: `0x${string}`;
|
|
1090
|
-
}) => () => void;
|
|
1091
|
-
/**
|
|
1092
|
-
* Watch ETHRecovered events
|
|
1276
|
+
* Watch ETHMigrated events
|
|
1093
1277
|
* @param callback Function to call when event is emitted
|
|
1094
1278
|
* @param filter Optional filter for indexed parameters
|
|
1095
1279
|
* @returns Unwatch function to stop listening
|
|
1096
1280
|
*/
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1281
|
+
ETHMigrated: (callback: (event: {
|
|
1282
|
+
lockbox: `0x${string}`;
|
|
1283
|
+
balance: bigint;
|
|
1100
1284
|
}) => void, filter?: {
|
|
1101
|
-
|
|
1285
|
+
lockbox: `0x${string}`;
|
|
1102
1286
|
}) => () => void;
|
|
1103
1287
|
/**
|
|
1104
1288
|
* Watch Initialized events
|
|
@@ -1110,26 +1294,16 @@ export declare class OptimismPortal_json {
|
|
|
1110
1294
|
version: bigint;
|
|
1111
1295
|
}) => void) => () => void;
|
|
1112
1296
|
/**
|
|
1113
|
-
* Watch
|
|
1114
|
-
* @param callback Function to call when event is emitted
|
|
1115
|
-
* @param filter Optional filter for indexed parameters
|
|
1116
|
-
* @returns Unwatch function to stop listening
|
|
1117
|
-
*/
|
|
1118
|
-
MerkleRootETHSet: (callback: (event: {
|
|
1119
|
-
root: `0x${string}`;
|
|
1120
|
-
setter: `0x${string}`;
|
|
1121
|
-
}) => void, filter?: {
|
|
1122
|
-
root: `0x${string}`;
|
|
1123
|
-
setter: `0x${string}`;
|
|
1124
|
-
}) => () => void;
|
|
1125
|
-
/**
|
|
1126
|
-
* Watch Paused events
|
|
1297
|
+
* Watch PortalMigrated events
|
|
1127
1298
|
* @param callback Function to call when event is emitted
|
|
1128
1299
|
* @param filter Optional filter for indexed parameters
|
|
1129
1300
|
* @returns Unwatch function to stop listening
|
|
1130
1301
|
*/
|
|
1131
|
-
|
|
1132
|
-
|
|
1302
|
+
PortalMigrated: (callback: (event: {
|
|
1303
|
+
oldLockbox: `0x${string}`;
|
|
1304
|
+
newLockbox: `0x${string}`;
|
|
1305
|
+
oldAnchorStateRegistry: `0x${string}`;
|
|
1306
|
+
newAnchorStateRegistry: `0x${string}`;
|
|
1133
1307
|
}) => void) => () => void;
|
|
1134
1308
|
/**
|
|
1135
1309
|
* Watch TransactionDeposited events
|
|
@@ -1147,15 +1321,6 @@ export declare class OptimismPortal_json {
|
|
|
1147
1321
|
to: `0x${string}`;
|
|
1148
1322
|
version: bigint;
|
|
1149
1323
|
}) => () => void;
|
|
1150
|
-
/**
|
|
1151
|
-
* Watch Unpaused events
|
|
1152
|
-
* @param callback Function to call when event is emitted
|
|
1153
|
-
* @param filter Optional filter for indexed parameters
|
|
1154
|
-
* @returns Unwatch function to stop listening
|
|
1155
|
-
*/
|
|
1156
|
-
Unpaused: (callback: (event: {
|
|
1157
|
-
account: `0x${string}`;
|
|
1158
|
-
}) => void) => () => void;
|
|
1159
1324
|
/**
|
|
1160
1325
|
* Watch WithdrawalFinalized events
|
|
1161
1326
|
* @param callback Function to call when event is emitted
|
|
@@ -1183,5 +1348,18 @@ export declare class OptimismPortal_json {
|
|
|
1183
1348
|
from: `0x${string}`;
|
|
1184
1349
|
to: `0x${string}`;
|
|
1185
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;
|
|
1186
1364
|
};
|
|
1187
1365
|
}
|