@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
|
@@ -24,34 +24,201 @@ export type Types_OutputRootProof = {
|
|
|
24
24
|
latestBlockhash: `0x${string}`;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* OptimismPortal2_json ABI
|
|
28
28
|
*
|
|
29
29
|
* This ABI is typed using viem's type system for full type safety.
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const OptimismPortal2_jsonAbi = [
|
|
32
32
|
{
|
|
33
|
-
"inputs": [],
|
|
34
|
-
"stateMutability": "nonpayable",
|
|
35
|
-
"type": "constructor"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"anonymous": false,
|
|
39
33
|
"inputs": [
|
|
40
34
|
{
|
|
41
|
-
"indexed": true,
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "claimer",
|
|
44
|
-
"type": "address"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"indexed": false,
|
|
48
35
|
"internalType": "uint256",
|
|
49
|
-
"name": "
|
|
36
|
+
"name": "_proofMaturityDelaySeconds",
|
|
50
37
|
"type": "uint256"
|
|
51
38
|
}
|
|
52
39
|
],
|
|
53
|
-
"
|
|
54
|
-
"type": "
|
|
40
|
+
"stateMutability": "nonpayable",
|
|
41
|
+
"type": "constructor"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"name": "ContentLengthMismatch",
|
|
46
|
+
"type": "error"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"inputs": [],
|
|
50
|
+
"name": "EmptyItem",
|
|
51
|
+
"type": "error"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputs": [],
|
|
55
|
+
"name": "InvalidDataRemainder",
|
|
56
|
+
"type": "error"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [],
|
|
60
|
+
"name": "InvalidHeader",
|
|
61
|
+
"type": "error"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [],
|
|
65
|
+
"name": "OptimismPortal_AlreadyFinalized",
|
|
66
|
+
"type": "error"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"inputs": [],
|
|
70
|
+
"name": "OptimismPortal_BadTarget",
|
|
71
|
+
"type": "error"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [],
|
|
75
|
+
"name": "OptimismPortal_CallPaused",
|
|
76
|
+
"type": "error"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"inputs": [],
|
|
80
|
+
"name": "OptimismPortal_CalldataTooLarge",
|
|
81
|
+
"type": "error"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"inputs": [],
|
|
85
|
+
"name": "OptimismPortal_GasEstimation",
|
|
86
|
+
"type": "error"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"inputs": [],
|
|
90
|
+
"name": "OptimismPortal_GasLimitTooLow",
|
|
91
|
+
"type": "error"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [],
|
|
95
|
+
"name": "OptimismPortal_ImproperDisputeGame",
|
|
96
|
+
"type": "error"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"inputs": [],
|
|
100
|
+
"name": "OptimismPortal_InvalidDisputeGame",
|
|
101
|
+
"type": "error"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "OptimismPortal_InvalidInteropState",
|
|
106
|
+
"type": "error"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"inputs": [],
|
|
110
|
+
"name": "OptimismPortal_InvalidLockboxState",
|
|
111
|
+
"type": "error"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"inputs": [],
|
|
115
|
+
"name": "OptimismPortal_InvalidMerkleProof",
|
|
116
|
+
"type": "error"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"name": "OptimismPortal_InvalidOutputRootProof",
|
|
121
|
+
"type": "error"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"inputs": [],
|
|
125
|
+
"name": "OptimismPortal_InvalidProofTimestamp",
|
|
126
|
+
"type": "error"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"inputs": [],
|
|
130
|
+
"name": "OptimismPortal_InvalidRootClaim",
|
|
131
|
+
"type": "error"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputs": [],
|
|
135
|
+
"name": "OptimismPortal_LockboxNotAuthorizedForPortal",
|
|
136
|
+
"type": "error"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"inputs": [],
|
|
140
|
+
"name": "OptimismPortal_MigratingToSameRegistry",
|
|
141
|
+
"type": "error"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"inputs": [],
|
|
145
|
+
"name": "OptimismPortal_NoReentrancy",
|
|
146
|
+
"type": "error"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [],
|
|
150
|
+
"name": "OptimismPortal_NotAllowedOnCGTMode",
|
|
151
|
+
"type": "error"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"inputs": [],
|
|
155
|
+
"name": "OptimismPortal_NotUsingInterop",
|
|
156
|
+
"type": "error"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"inputs": [],
|
|
160
|
+
"name": "OptimismPortal_ProofNotOldEnough",
|
|
161
|
+
"type": "error"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "OptimismPortal_Unproven",
|
|
166
|
+
"type": "error"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"inputs": [],
|
|
170
|
+
"name": "OptimismPortal_ZeroAddress",
|
|
171
|
+
"type": "error"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"inputs": [],
|
|
175
|
+
"name": "OutOfGas",
|
|
176
|
+
"type": "error"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"inputs": [],
|
|
180
|
+
"name": "ProxyAdminOwnedBase_NotProxyAdmin",
|
|
181
|
+
"type": "error"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"name": "ProxyAdminOwnedBase_NotProxyAdminOrProxyAdminOwner",
|
|
186
|
+
"type": "error"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"inputs": [],
|
|
190
|
+
"name": "ProxyAdminOwnedBase_NotProxyAdminOwner",
|
|
191
|
+
"type": "error"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [],
|
|
195
|
+
"name": "ProxyAdminOwnedBase_NotResolvedDelegateProxy",
|
|
196
|
+
"type": "error"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [],
|
|
200
|
+
"name": "ProxyAdminOwnedBase_NotSharedProxyAdminOwner",
|
|
201
|
+
"type": "error"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"inputs": [],
|
|
205
|
+
"name": "ProxyAdminOwnedBase_ProxyAdminNotFound",
|
|
206
|
+
"type": "error"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputs": [],
|
|
210
|
+
"name": "ReinitializableBase_ZeroInitVersion",
|
|
211
|
+
"type": "error"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [],
|
|
215
|
+
"name": "UnexpectedList",
|
|
216
|
+
"type": "error"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"inputs": [],
|
|
220
|
+
"name": "UnexpectedString",
|
|
221
|
+
"type": "error"
|
|
55
222
|
},
|
|
56
223
|
{
|
|
57
224
|
"anonymous": false,
|
|
@@ -59,17 +226,17 @@ export const OptimismPortal_jsonAbi = [
|
|
|
59
226
|
{
|
|
60
227
|
"indexed": true,
|
|
61
228
|
"internalType": "address",
|
|
62
|
-
"name": "
|
|
229
|
+
"name": "lockbox",
|
|
63
230
|
"type": "address"
|
|
64
231
|
},
|
|
65
232
|
{
|
|
66
233
|
"indexed": false,
|
|
67
234
|
"internalType": "uint256",
|
|
68
|
-
"name": "
|
|
235
|
+
"name": "balance",
|
|
69
236
|
"type": "uint256"
|
|
70
237
|
}
|
|
71
238
|
],
|
|
72
|
-
"name": "
|
|
239
|
+
"name": "ETHMigrated",
|
|
73
240
|
"type": "event"
|
|
74
241
|
},
|
|
75
242
|
{
|
|
@@ -89,32 +256,31 @@ export const OptimismPortal_jsonAbi = [
|
|
|
89
256
|
"anonymous": false,
|
|
90
257
|
"inputs": [
|
|
91
258
|
{
|
|
92
|
-
"indexed":
|
|
93
|
-
"internalType": "
|
|
94
|
-
"name": "
|
|
95
|
-
"type": "
|
|
259
|
+
"indexed": false,
|
|
260
|
+
"internalType": "contract IETHLockbox",
|
|
261
|
+
"name": "oldLockbox",
|
|
262
|
+
"type": "address"
|
|
96
263
|
},
|
|
97
264
|
{
|
|
98
|
-
"indexed":
|
|
99
|
-
"internalType": "
|
|
100
|
-
"name": "
|
|
265
|
+
"indexed": false,
|
|
266
|
+
"internalType": "contract IETHLockbox",
|
|
267
|
+
"name": "newLockbox",
|
|
101
268
|
"type": "address"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"name": "MerkleRootETHSet",
|
|
105
|
-
"type": "event"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"anonymous": false,
|
|
109
|
-
"inputs": [
|
|
269
|
+
},
|
|
110
270
|
{
|
|
111
271
|
"indexed": false,
|
|
112
|
-
"internalType": "
|
|
113
|
-
"name": "
|
|
272
|
+
"internalType": "contract IAnchorStateRegistry",
|
|
273
|
+
"name": "oldAnchorStateRegistry",
|
|
274
|
+
"type": "address"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"indexed": false,
|
|
278
|
+
"internalType": "contract IAnchorStateRegistry",
|
|
279
|
+
"name": "newAnchorStateRegistry",
|
|
114
280
|
"type": "address"
|
|
115
281
|
}
|
|
116
282
|
],
|
|
117
|
-
"name": "
|
|
283
|
+
"name": "PortalMigrated",
|
|
118
284
|
"type": "event"
|
|
119
285
|
},
|
|
120
286
|
{
|
|
@@ -148,19 +314,6 @@ export const OptimismPortal_jsonAbi = [
|
|
|
148
314
|
"name": "TransactionDeposited",
|
|
149
315
|
"type": "event"
|
|
150
316
|
},
|
|
151
|
-
{
|
|
152
|
-
"anonymous": false,
|
|
153
|
-
"inputs": [
|
|
154
|
-
{
|
|
155
|
-
"indexed": false,
|
|
156
|
-
"internalType": "address",
|
|
157
|
-
"name": "account",
|
|
158
|
-
"type": "address"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"name": "Unpaused",
|
|
162
|
-
"type": "event"
|
|
163
|
-
},
|
|
164
317
|
{
|
|
165
318
|
"anonymous": false,
|
|
166
319
|
"inputs": [
|
|
@@ -206,50 +359,30 @@ export const OptimismPortal_jsonAbi = [
|
|
|
206
359
|
"type": "event"
|
|
207
360
|
},
|
|
208
361
|
{
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"outputs": [
|
|
362
|
+
"anonymous": false,
|
|
363
|
+
"inputs": [
|
|
212
364
|
{
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"stateMutability": "view",
|
|
219
|
-
"type": "function"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"inputs": [],
|
|
223
|
-
"name": "L2_ORACLE",
|
|
224
|
-
"outputs": [
|
|
365
|
+
"indexed": true,
|
|
366
|
+
"internalType": "bytes32",
|
|
367
|
+
"name": "withdrawalHash",
|
|
368
|
+
"type": "bytes32"
|
|
369
|
+
},
|
|
225
370
|
{
|
|
226
|
-
"
|
|
227
|
-
"
|
|
371
|
+
"indexed": true,
|
|
372
|
+
"internalType": "address",
|
|
373
|
+
"name": "proofSubmitter",
|
|
228
374
|
"type": "address"
|
|
229
375
|
}
|
|
230
376
|
],
|
|
231
|
-
"
|
|
232
|
-
"type": "
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"inputs": [],
|
|
236
|
-
"name": "RECOVERY_TIMESTAMP",
|
|
237
|
-
"outputs": [
|
|
238
|
-
{
|
|
239
|
-
"internalType": "uint256",
|
|
240
|
-
"name": "",
|
|
241
|
-
"type": "uint256"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"stateMutability": "view",
|
|
245
|
-
"type": "function"
|
|
377
|
+
"name": "WithdrawalProvenExtension1",
|
|
378
|
+
"type": "event"
|
|
246
379
|
},
|
|
247
380
|
{
|
|
248
381
|
"inputs": [],
|
|
249
|
-
"name": "
|
|
382
|
+
"name": "anchorStateRegistry",
|
|
250
383
|
"outputs": [
|
|
251
384
|
{
|
|
252
|
-
"internalType": "contract
|
|
385
|
+
"internalType": "contract IAnchorStateRegistry",
|
|
253
386
|
"name": "",
|
|
254
387
|
"type": "address"
|
|
255
388
|
}
|
|
@@ -260,37 +393,18 @@ export const OptimismPortal_jsonAbi = [
|
|
|
260
393
|
{
|
|
261
394
|
"inputs": [
|
|
262
395
|
{
|
|
263
|
-
"internalType": "
|
|
264
|
-
"name": "
|
|
265
|
-
"type": "
|
|
396
|
+
"internalType": "bytes32",
|
|
397
|
+
"name": "_withdrawalHash",
|
|
398
|
+
"type": "bytes32"
|
|
266
399
|
},
|
|
267
|
-
{
|
|
268
|
-
"internalType": "bytes32[]",
|
|
269
|
-
"name": "_proof",
|
|
270
|
-
"type": "bytes32[]"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"name": "claimETH",
|
|
274
|
-
"outputs": [],
|
|
275
|
-
"stateMutability": "nonpayable",
|
|
276
|
-
"type": "function"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"inputs": [
|
|
280
400
|
{
|
|
281
401
|
"internalType": "address",
|
|
282
|
-
"name": "",
|
|
402
|
+
"name": "_proofSubmitter",
|
|
283
403
|
"type": "address"
|
|
284
404
|
}
|
|
285
405
|
],
|
|
286
|
-
"name": "
|
|
287
|
-
"outputs": [
|
|
288
|
-
{
|
|
289
|
-
"internalType": "uint256",
|
|
290
|
-
"name": "",
|
|
291
|
-
"type": "uint256"
|
|
292
|
-
}
|
|
293
|
-
],
|
|
406
|
+
"name": "checkWithdrawal",
|
|
407
|
+
"outputs": [],
|
|
294
408
|
"stateMutability": "view",
|
|
295
409
|
"type": "function"
|
|
296
410
|
},
|
|
@@ -327,6 +441,51 @@ export const OptimismPortal_jsonAbi = [
|
|
|
327
441
|
"stateMutability": "payable",
|
|
328
442
|
"type": "function"
|
|
329
443
|
},
|
|
444
|
+
{
|
|
445
|
+
"inputs": [
|
|
446
|
+
{
|
|
447
|
+
"internalType": "contract IDisputeGame",
|
|
448
|
+
"name": "_disputeGame",
|
|
449
|
+
"type": "address"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"name": "disputeGameBlacklist",
|
|
453
|
+
"outputs": [
|
|
454
|
+
{
|
|
455
|
+
"internalType": "bool",
|
|
456
|
+
"name": "",
|
|
457
|
+
"type": "bool"
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"stateMutability": "view",
|
|
461
|
+
"type": "function"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"inputs": [],
|
|
465
|
+
"name": "disputeGameFactory",
|
|
466
|
+
"outputs": [
|
|
467
|
+
{
|
|
468
|
+
"internalType": "contract IDisputeGameFactory",
|
|
469
|
+
"name": "",
|
|
470
|
+
"type": "address"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"stateMutability": "view",
|
|
474
|
+
"type": "function"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"inputs": [],
|
|
478
|
+
"name": "disputeGameFinalityDelaySeconds",
|
|
479
|
+
"outputs": [
|
|
480
|
+
{
|
|
481
|
+
"internalType": "uint256",
|
|
482
|
+
"name": "",
|
|
483
|
+
"type": "uint256"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"stateMutability": "view",
|
|
487
|
+
"type": "function"
|
|
488
|
+
},
|
|
330
489
|
{
|
|
331
490
|
"inputs": [],
|
|
332
491
|
"name": "donateETH",
|
|
@@ -334,6 +493,19 @@ export const OptimismPortal_jsonAbi = [
|
|
|
334
493
|
"stateMutability": "payable",
|
|
335
494
|
"type": "function"
|
|
336
495
|
},
|
|
496
|
+
{
|
|
497
|
+
"inputs": [],
|
|
498
|
+
"name": "ethLockbox",
|
|
499
|
+
"outputs": [
|
|
500
|
+
{
|
|
501
|
+
"internalType": "contract IETHLockbox",
|
|
502
|
+
"name": "",
|
|
503
|
+
"type": "address"
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"stateMutability": "view",
|
|
507
|
+
"type": "function"
|
|
508
|
+
},
|
|
337
509
|
{
|
|
338
510
|
"inputs": [
|
|
339
511
|
{
|
|
@@ -379,6 +551,56 @@ export const OptimismPortal_jsonAbi = [
|
|
|
379
551
|
"stateMutability": "nonpayable",
|
|
380
552
|
"type": "function"
|
|
381
553
|
},
|
|
554
|
+
{
|
|
555
|
+
"inputs": [
|
|
556
|
+
{
|
|
557
|
+
"components": [
|
|
558
|
+
{
|
|
559
|
+
"internalType": "uint256",
|
|
560
|
+
"name": "nonce",
|
|
561
|
+
"type": "uint256"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"internalType": "address",
|
|
565
|
+
"name": "sender",
|
|
566
|
+
"type": "address"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"internalType": "address",
|
|
570
|
+
"name": "target",
|
|
571
|
+
"type": "address"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"internalType": "uint256",
|
|
575
|
+
"name": "value",
|
|
576
|
+
"type": "uint256"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"internalType": "uint256",
|
|
580
|
+
"name": "gasLimit",
|
|
581
|
+
"type": "uint256"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"internalType": "bytes",
|
|
585
|
+
"name": "data",
|
|
586
|
+
"type": "bytes"
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
"internalType": "struct Types.WithdrawalTransaction",
|
|
590
|
+
"name": "_tx",
|
|
591
|
+
"type": "tuple"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"internalType": "address",
|
|
595
|
+
"name": "_proofSubmitter",
|
|
596
|
+
"type": "address"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"name": "finalizeWithdrawalTransactionExternalProof",
|
|
600
|
+
"outputs": [],
|
|
601
|
+
"stateMutability": "nonpayable",
|
|
602
|
+
"type": "function"
|
|
603
|
+
},
|
|
382
604
|
{
|
|
383
605
|
"inputs": [
|
|
384
606
|
{
|
|
@@ -411,27 +633,35 @@ export const OptimismPortal_jsonAbi = [
|
|
|
411
633
|
"stateMutability": "view",
|
|
412
634
|
"type": "function"
|
|
413
635
|
},
|
|
636
|
+
{
|
|
637
|
+
"inputs": [],
|
|
638
|
+
"name": "initVersion",
|
|
639
|
+
"outputs": [
|
|
640
|
+
{
|
|
641
|
+
"internalType": "uint8",
|
|
642
|
+
"name": "",
|
|
643
|
+
"type": "uint8"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"stateMutability": "view",
|
|
647
|
+
"type": "function"
|
|
648
|
+
},
|
|
414
649
|
{
|
|
415
650
|
"inputs": [
|
|
416
651
|
{
|
|
417
|
-
"internalType": "contract
|
|
418
|
-
"name": "
|
|
652
|
+
"internalType": "contract ISystemConfig",
|
|
653
|
+
"name": "_systemConfig",
|
|
419
654
|
"type": "address"
|
|
420
655
|
},
|
|
421
656
|
{
|
|
422
|
-
"internalType": "
|
|
423
|
-
"name": "
|
|
657
|
+
"internalType": "contract IAnchorStateRegistry",
|
|
658
|
+
"name": "_anchorStateRegistry",
|
|
424
659
|
"type": "address"
|
|
425
660
|
},
|
|
426
661
|
{
|
|
427
|
-
"internalType": "contract
|
|
428
|
-
"name": "
|
|
662
|
+
"internalType": "contract IETHLockbox",
|
|
663
|
+
"name": "_ethLockbox",
|
|
429
664
|
"type": "address"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"internalType": "bool",
|
|
433
|
-
"name": "_paused",
|
|
434
|
-
"type": "bool"
|
|
435
665
|
}
|
|
436
666
|
],
|
|
437
667
|
"name": "initialize",
|
|
@@ -439,31 +669,12 @@ export const OptimismPortal_jsonAbi = [
|
|
|
439
669
|
"stateMutability": "nonpayable",
|
|
440
670
|
"type": "function"
|
|
441
671
|
},
|
|
442
|
-
{
|
|
443
|
-
"inputs": [
|
|
444
|
-
{
|
|
445
|
-
"internalType": "uint256",
|
|
446
|
-
"name": "_l2OutputIndex",
|
|
447
|
-
"type": "uint256"
|
|
448
|
-
}
|
|
449
|
-
],
|
|
450
|
-
"name": "isOutputFinalized",
|
|
451
|
-
"outputs": [
|
|
452
|
-
{
|
|
453
|
-
"internalType": "bool",
|
|
454
|
-
"name": "",
|
|
455
|
-
"type": "bool"
|
|
456
|
-
}
|
|
457
|
-
],
|
|
458
|
-
"stateMutability": "view",
|
|
459
|
-
"type": "function"
|
|
460
|
-
},
|
|
461
672
|
{
|
|
462
673
|
"inputs": [],
|
|
463
|
-
"name": "
|
|
674
|
+
"name": "l2Sender",
|
|
464
675
|
"outputs": [
|
|
465
676
|
{
|
|
466
|
-
"internalType": "
|
|
677
|
+
"internalType": "address",
|
|
467
678
|
"name": "",
|
|
468
679
|
"type": "address"
|
|
469
680
|
}
|
|
@@ -473,28 +684,27 @@ export const OptimismPortal_jsonAbi = [
|
|
|
473
684
|
},
|
|
474
685
|
{
|
|
475
686
|
"inputs": [],
|
|
476
|
-
"name": "
|
|
477
|
-
"outputs": [
|
|
478
|
-
|
|
479
|
-
"internalType": "address",
|
|
480
|
-
"name": "",
|
|
481
|
-
"type": "address"
|
|
482
|
-
}
|
|
483
|
-
],
|
|
484
|
-
"stateMutability": "view",
|
|
687
|
+
"name": "migrateLiquidity",
|
|
688
|
+
"outputs": [],
|
|
689
|
+
"stateMutability": "nonpayable",
|
|
485
690
|
"type": "function"
|
|
486
691
|
},
|
|
487
692
|
{
|
|
488
|
-
"inputs": [
|
|
489
|
-
"name": "merkleRootETH",
|
|
490
|
-
"outputs": [
|
|
693
|
+
"inputs": [
|
|
491
694
|
{
|
|
492
|
-
"internalType": "
|
|
493
|
-
"name": "",
|
|
494
|
-
"type": "
|
|
695
|
+
"internalType": "contract IETHLockbox",
|
|
696
|
+
"name": "_newLockbox",
|
|
697
|
+
"type": "address"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"internalType": "contract IAnchorStateRegistry",
|
|
701
|
+
"name": "_newAnchorStateRegistry",
|
|
702
|
+
"type": "address"
|
|
495
703
|
}
|
|
496
704
|
],
|
|
497
|
-
"
|
|
705
|
+
"name": "migrateToSharedDisputeGame",
|
|
706
|
+
"outputs": [],
|
|
707
|
+
"stateMutability": "nonpayable",
|
|
498
708
|
"type": "function"
|
|
499
709
|
},
|
|
500
710
|
{
|
|
@@ -516,6 +726,25 @@ export const OptimismPortal_jsonAbi = [
|
|
|
516
726
|
"stateMutability": "pure",
|
|
517
727
|
"type": "function"
|
|
518
728
|
},
|
|
729
|
+
{
|
|
730
|
+
"inputs": [
|
|
731
|
+
{
|
|
732
|
+
"internalType": "bytes32",
|
|
733
|
+
"name": "_withdrawalHash",
|
|
734
|
+
"type": "bytes32"
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"name": "numProofSubmitters",
|
|
738
|
+
"outputs": [
|
|
739
|
+
{
|
|
740
|
+
"internalType": "uint256",
|
|
741
|
+
"name": "",
|
|
742
|
+
"type": "uint256"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"stateMutability": "view",
|
|
746
|
+
"type": "function"
|
|
747
|
+
},
|
|
519
748
|
{
|
|
520
749
|
"inputs": [],
|
|
521
750
|
"name": "params",
|
|
@@ -541,19 +770,49 @@ export const OptimismPortal_jsonAbi = [
|
|
|
541
770
|
},
|
|
542
771
|
{
|
|
543
772
|
"inputs": [],
|
|
544
|
-
"name": "
|
|
545
|
-
"outputs": [
|
|
546
|
-
|
|
773
|
+
"name": "paused",
|
|
774
|
+
"outputs": [
|
|
775
|
+
{
|
|
776
|
+
"internalType": "bool",
|
|
777
|
+
"name": "",
|
|
778
|
+
"type": "bool"
|
|
779
|
+
}
|
|
780
|
+
],
|
|
781
|
+
"stateMutability": "view",
|
|
547
782
|
"type": "function"
|
|
548
783
|
},
|
|
549
784
|
{
|
|
550
785
|
"inputs": [],
|
|
551
|
-
"name": "
|
|
786
|
+
"name": "proofMaturityDelaySeconds",
|
|
787
|
+
"outputs": [
|
|
788
|
+
{
|
|
789
|
+
"internalType": "uint256",
|
|
790
|
+
"name": "",
|
|
791
|
+
"type": "uint256"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"stateMutability": "view",
|
|
795
|
+
"type": "function"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"inputs": [
|
|
799
|
+
{
|
|
800
|
+
"internalType": "bytes32",
|
|
801
|
+
"name": "",
|
|
802
|
+
"type": "bytes32"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"internalType": "uint256",
|
|
806
|
+
"name": "",
|
|
807
|
+
"type": "uint256"
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"name": "proofSubmitters",
|
|
552
811
|
"outputs": [
|
|
553
812
|
{
|
|
554
|
-
"internalType": "
|
|
813
|
+
"internalType": "address",
|
|
555
814
|
"name": "",
|
|
556
|
-
"type": "
|
|
815
|
+
"type": "address"
|
|
557
816
|
}
|
|
558
817
|
],
|
|
559
818
|
"stateMutability": "view",
|
|
@@ -600,7 +859,7 @@ export const OptimismPortal_jsonAbi = [
|
|
|
600
859
|
},
|
|
601
860
|
{
|
|
602
861
|
"internalType": "uint256",
|
|
603
|
-
"name": "
|
|
862
|
+
"name": "_disputeGameIndex",
|
|
604
863
|
"type": "uint256"
|
|
605
864
|
},
|
|
606
865
|
{
|
|
@@ -647,61 +906,87 @@ export const OptimismPortal_jsonAbi = [
|
|
|
647
906
|
"internalType": "bytes32",
|
|
648
907
|
"name": "",
|
|
649
908
|
"type": "bytes32"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"internalType": "address",
|
|
912
|
+
"name": "",
|
|
913
|
+
"type": "address"
|
|
650
914
|
}
|
|
651
915
|
],
|
|
652
916
|
"name": "provenWithdrawals",
|
|
653
917
|
"outputs": [
|
|
654
918
|
{
|
|
655
|
-
"internalType": "
|
|
656
|
-
"name": "
|
|
657
|
-
"type": "
|
|
919
|
+
"internalType": "contract IDisputeGame",
|
|
920
|
+
"name": "disputeGameProxy",
|
|
921
|
+
"type": "address"
|
|
658
922
|
},
|
|
659
923
|
{
|
|
660
|
-
"internalType": "
|
|
924
|
+
"internalType": "uint64",
|
|
661
925
|
"name": "timestamp",
|
|
662
|
-
"type": "
|
|
663
|
-
}
|
|
926
|
+
"type": "uint64"
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"stateMutability": "view",
|
|
930
|
+
"type": "function"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"inputs": [],
|
|
934
|
+
"name": "proxyAdmin",
|
|
935
|
+
"outputs": [
|
|
664
936
|
{
|
|
665
|
-
"internalType": "
|
|
666
|
-
"name": "
|
|
667
|
-
"type": "
|
|
937
|
+
"internalType": "contract IProxyAdmin",
|
|
938
|
+
"name": "",
|
|
939
|
+
"type": "address"
|
|
668
940
|
}
|
|
669
941
|
],
|
|
670
942
|
"stateMutability": "view",
|
|
671
943
|
"type": "function"
|
|
672
944
|
},
|
|
673
945
|
{
|
|
674
|
-
"inputs": [
|
|
946
|
+
"inputs": [],
|
|
947
|
+
"name": "proxyAdminOwner",
|
|
948
|
+
"outputs": [
|
|
675
949
|
{
|
|
676
950
|
"internalType": "address",
|
|
677
|
-
"name": "
|
|
951
|
+
"name": "",
|
|
678
952
|
"type": "address"
|
|
679
953
|
}
|
|
680
954
|
],
|
|
681
|
-
"
|
|
682
|
-
"outputs": [],
|
|
683
|
-
"stateMutability": "nonpayable",
|
|
955
|
+
"stateMutability": "view",
|
|
684
956
|
"type": "function"
|
|
685
957
|
},
|
|
686
958
|
{
|
|
687
|
-
"inputs": [
|
|
959
|
+
"inputs": [],
|
|
960
|
+
"name": "respectedGameType",
|
|
961
|
+
"outputs": [
|
|
688
962
|
{
|
|
689
|
-
"internalType": "
|
|
690
|
-
"name": "
|
|
691
|
-
"type": "
|
|
963
|
+
"internalType": "GameType",
|
|
964
|
+
"name": "",
|
|
965
|
+
"type": "uint32"
|
|
692
966
|
}
|
|
693
967
|
],
|
|
694
|
-
"
|
|
695
|
-
"outputs": [],
|
|
696
|
-
"stateMutability": "nonpayable",
|
|
968
|
+
"stateMutability": "view",
|
|
697
969
|
"type": "function"
|
|
698
970
|
},
|
|
699
971
|
{
|
|
700
972
|
"inputs": [],
|
|
701
|
-
"name": "
|
|
973
|
+
"name": "respectedGameTypeUpdatedAt",
|
|
974
|
+
"outputs": [
|
|
975
|
+
{
|
|
976
|
+
"internalType": "uint64",
|
|
977
|
+
"name": "",
|
|
978
|
+
"type": "uint64"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"stateMutability": "view",
|
|
982
|
+
"type": "function"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"inputs": [],
|
|
986
|
+
"name": "superchainConfig",
|
|
702
987
|
"outputs": [
|
|
703
988
|
{
|
|
704
|
-
"internalType": "contract
|
|
989
|
+
"internalType": "contract ISuperchainConfig",
|
|
705
990
|
"name": "",
|
|
706
991
|
"type": "address"
|
|
707
992
|
}
|
|
@@ -711,9 +996,15 @@ export const OptimismPortal_jsonAbi = [
|
|
|
711
996
|
},
|
|
712
997
|
{
|
|
713
998
|
"inputs": [],
|
|
714
|
-
"name": "
|
|
715
|
-
"outputs": [
|
|
716
|
-
|
|
999
|
+
"name": "systemConfig",
|
|
1000
|
+
"outputs": [
|
|
1001
|
+
{
|
|
1002
|
+
"internalType": "contract ISystemConfig",
|
|
1003
|
+
"name": "",
|
|
1004
|
+
"type": "address"
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"stateMutability": "view",
|
|
717
1008
|
"type": "function"
|
|
718
1009
|
},
|
|
719
1010
|
{
|
|
@@ -726,7 +1017,7 @@ export const OptimismPortal_jsonAbi = [
|
|
|
726
1017
|
"type": "string"
|
|
727
1018
|
}
|
|
728
1019
|
],
|
|
729
|
-
"stateMutability": "
|
|
1020
|
+
"stateMutability": "pure",
|
|
730
1021
|
"type": "function"
|
|
731
1022
|
},
|
|
732
1023
|
{
|
|
@@ -736,19 +1027,19 @@ export const OptimismPortal_jsonAbi = [
|
|
|
736
1027
|
] as const satisfies Abi;
|
|
737
1028
|
|
|
738
1029
|
/**
|
|
739
|
-
* Type-safe ABI for
|
|
1030
|
+
* Type-safe ABI for OptimismPortal2_json
|
|
740
1031
|
*/
|
|
741
|
-
export type
|
|
1032
|
+
export type OptimismPortal2_jsonAbi = typeof OptimismPortal2_jsonAbi;
|
|
742
1033
|
|
|
743
1034
|
/**
|
|
744
|
-
* Contract instance type for
|
|
1035
|
+
* Contract instance type for OptimismPortal2_json
|
|
745
1036
|
*/
|
|
746
1037
|
// Use any for contract type to avoid complex viem type issues
|
|
747
1038
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
748
|
-
export type
|
|
1039
|
+
export type OptimismPortal2_jsonContract = any;
|
|
749
1040
|
|
|
750
1041
|
/**
|
|
751
|
-
*
|
|
1042
|
+
* OptimismPortal2_json Contract Class
|
|
752
1043
|
*
|
|
753
1044
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
754
1045
|
*
|
|
@@ -756,12 +1047,12 @@ export type OptimismPortal_jsonContract = any;
|
|
|
756
1047
|
* ```typescript
|
|
757
1048
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
758
1049
|
* import { mainnet } from 'viem/chains';
|
|
759
|
-
* import {
|
|
1050
|
+
* import { OptimismPortal2_json } from 'OptimismPortal2_json';
|
|
760
1051
|
*
|
|
761
1052
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
762
1053
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
763
1054
|
*
|
|
764
|
-
* const contract = new
|
|
1055
|
+
* const contract = new OptimismPortal2_json('0x...', { publicClient, walletClient });
|
|
765
1056
|
*
|
|
766
1057
|
* // Read functions
|
|
767
1058
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -779,8 +1070,8 @@ export type OptimismPortal_jsonContract = any;
|
|
|
779
1070
|
* });
|
|
780
1071
|
* ```
|
|
781
1072
|
*/
|
|
782
|
-
export class
|
|
783
|
-
private contract:
|
|
1073
|
+
export class OptimismPortal2_json {
|
|
1074
|
+
private contract: OptimismPortal2_jsonContract;
|
|
784
1075
|
private contractAddress: Address;
|
|
785
1076
|
private publicClient: PublicClient;
|
|
786
1077
|
|
|
@@ -795,7 +1086,7 @@ export class OptimismPortal_json {
|
|
|
795
1086
|
this.publicClient = clients.publicClient;
|
|
796
1087
|
this.contract = getContract({
|
|
797
1088
|
address,
|
|
798
|
-
abi:
|
|
1089
|
+
abi: OptimismPortal2_jsonAbi,
|
|
799
1090
|
client: {
|
|
800
1091
|
public: clients.publicClient,
|
|
801
1092
|
wallet: clients.walletClient,
|
|
@@ -813,48 +1104,56 @@ export class OptimismPortal_json {
|
|
|
813
1104
|
/**
|
|
814
1105
|
* Get the underlying viem contract instance
|
|
815
1106
|
*/
|
|
816
|
-
getContract():
|
|
1107
|
+
getContract(): OptimismPortal2_jsonContract {
|
|
817
1108
|
return this.contract;
|
|
818
1109
|
}
|
|
819
1110
|
|
|
820
1111
|
/**
|
|
821
|
-
*
|
|
1112
|
+
* anchorStateRegistry
|
|
1113
|
+
* view
|
|
1114
|
+
*/
|
|
1115
|
+
async anchorStateRegistry(): Promise<`0x${string}`> {
|
|
1116
|
+
return this.contract.read.anchorStateRegistry() as Promise<`0x${string}`>;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* checkWithdrawal
|
|
822
1121
|
* view
|
|
823
1122
|
*/
|
|
824
|
-
async
|
|
825
|
-
return this.contract.read.
|
|
1123
|
+
async checkWithdrawal(_withdrawalHash: `0x${string}`, _proofSubmitter: `0x${string}`): Promise<void> {
|
|
1124
|
+
return this.contract.read.checkWithdrawal([_withdrawalHash, _proofSubmitter] as const) as Promise<void>;
|
|
826
1125
|
}
|
|
827
1126
|
|
|
828
1127
|
/**
|
|
829
|
-
*
|
|
1128
|
+
* disputeGameBlacklist
|
|
830
1129
|
* view
|
|
831
1130
|
*/
|
|
832
|
-
async
|
|
833
|
-
return this.contract.read.
|
|
1131
|
+
async disputeGameBlacklist(_disputeGame: `0x${string}`): Promise<boolean> {
|
|
1132
|
+
return this.contract.read.disputeGameBlacklist([_disputeGame] as const) as Promise<boolean>;
|
|
834
1133
|
}
|
|
835
1134
|
|
|
836
1135
|
/**
|
|
837
|
-
*
|
|
1136
|
+
* disputeGameFactory
|
|
838
1137
|
* view
|
|
839
1138
|
*/
|
|
840
|
-
async
|
|
841
|
-
return this.contract.read.
|
|
1139
|
+
async disputeGameFactory(): Promise<`0x${string}`> {
|
|
1140
|
+
return this.contract.read.disputeGameFactory() as Promise<`0x${string}`>;
|
|
842
1141
|
}
|
|
843
1142
|
|
|
844
1143
|
/**
|
|
845
|
-
*
|
|
1144
|
+
* disputeGameFinalityDelaySeconds
|
|
846
1145
|
* view
|
|
847
1146
|
*/
|
|
848
|
-
async
|
|
849
|
-
return this.contract.read.
|
|
1147
|
+
async disputeGameFinalityDelaySeconds(): Promise<bigint> {
|
|
1148
|
+
return this.contract.read.disputeGameFinalityDelaySeconds() as Promise<bigint>;
|
|
850
1149
|
}
|
|
851
1150
|
|
|
852
1151
|
/**
|
|
853
|
-
*
|
|
1152
|
+
* ethLockbox
|
|
854
1153
|
* view
|
|
855
1154
|
*/
|
|
856
|
-
async
|
|
857
|
-
return this.contract.read.
|
|
1155
|
+
async ethLockbox(): Promise<`0x${string}`> {
|
|
1156
|
+
return this.contract.read.ethLockbox() as Promise<`0x${string}`>;
|
|
858
1157
|
}
|
|
859
1158
|
|
|
860
1159
|
/**
|
|
@@ -874,19 +1173,11 @@ export class OptimismPortal_json {
|
|
|
874
1173
|
}
|
|
875
1174
|
|
|
876
1175
|
/**
|
|
877
|
-
*
|
|
1176
|
+
* initVersion
|
|
878
1177
|
* view
|
|
879
1178
|
*/
|
|
880
|
-
async
|
|
881
|
-
return this.contract.read.
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* l2Oracle
|
|
886
|
-
* view
|
|
887
|
-
*/
|
|
888
|
-
async l2Oracle(): Promise<`0x${string}`> {
|
|
889
|
-
return this.contract.read.l2Oracle() as Promise<`0x${string}`>;
|
|
1179
|
+
async initVersion(): Promise<bigint> {
|
|
1180
|
+
return this.contract.read.initVersion() as Promise<bigint>;
|
|
890
1181
|
}
|
|
891
1182
|
|
|
892
1183
|
/**
|
|
@@ -897,14 +1188,6 @@ export class OptimismPortal_json {
|
|
|
897
1188
|
return this.contract.read.l2Sender() as Promise<`0x${string}`>;
|
|
898
1189
|
}
|
|
899
1190
|
|
|
900
|
-
/**
|
|
901
|
-
* merkleRootETH
|
|
902
|
-
* view
|
|
903
|
-
*/
|
|
904
|
-
async merkleRootETH(): Promise<`0x${string}`> {
|
|
905
|
-
return this.contract.read.merkleRootETH() as Promise<`0x${string}`>;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
1191
|
/**
|
|
909
1192
|
* minimumGasLimit
|
|
910
1193
|
* pure
|
|
@@ -913,6 +1196,14 @@ export class OptimismPortal_json {
|
|
|
913
1196
|
return this.contract.read.minimumGasLimit([_byteCount] as const) as Promise<bigint>;
|
|
914
1197
|
}
|
|
915
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
* numProofSubmitters
|
|
1201
|
+
* view
|
|
1202
|
+
*/
|
|
1203
|
+
async numProofSubmitters(_withdrawalHash: `0x${string}`): Promise<bigint> {
|
|
1204
|
+
return this.contract.read.numProofSubmitters([_withdrawalHash] as const) as Promise<bigint>;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
916
1207
|
/**
|
|
917
1208
|
* params
|
|
918
1209
|
* view
|
|
@@ -929,12 +1220,68 @@ export class OptimismPortal_json {
|
|
|
929
1220
|
return this.contract.read.paused() as Promise<boolean>;
|
|
930
1221
|
}
|
|
931
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* proofMaturityDelaySeconds
|
|
1225
|
+
* view
|
|
1226
|
+
*/
|
|
1227
|
+
async proofMaturityDelaySeconds(): Promise<bigint> {
|
|
1228
|
+
return this.contract.read.proofMaturityDelaySeconds() as Promise<bigint>;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* proofSubmitters
|
|
1233
|
+
* view
|
|
1234
|
+
*/
|
|
1235
|
+
async proofSubmitters(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`> {
|
|
1236
|
+
return this.contract.read.proofSubmitters([arg0, arg1] as const) as Promise<`0x${string}`>;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
932
1239
|
/**
|
|
933
1240
|
* provenWithdrawals
|
|
934
1241
|
* view
|
|
935
1242
|
*/
|
|
936
|
-
async provenWithdrawals(arg0: `0x${string}`): Promise<[`0x${string}`, bigint
|
|
937
|
-
return this.contract.read.provenWithdrawals([arg0] as const) as Promise<[`0x${string}`, bigint
|
|
1243
|
+
async provenWithdrawals(arg0: `0x${string}`, arg1: `0x${string}`): Promise<[`0x${string}`, bigint]> {
|
|
1244
|
+
return this.contract.read.provenWithdrawals([arg0, arg1] as const) as Promise<[`0x${string}`, bigint]>;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* proxyAdmin
|
|
1249
|
+
* view
|
|
1250
|
+
*/
|
|
1251
|
+
async proxyAdmin(): Promise<`0x${string}`> {
|
|
1252
|
+
return this.contract.read.proxyAdmin() as Promise<`0x${string}`>;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* proxyAdminOwner
|
|
1257
|
+
* view
|
|
1258
|
+
*/
|
|
1259
|
+
async proxyAdminOwner(): Promise<`0x${string}`> {
|
|
1260
|
+
return this.contract.read.proxyAdminOwner() as Promise<`0x${string}`>;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* respectedGameType
|
|
1265
|
+
* view
|
|
1266
|
+
*/
|
|
1267
|
+
async respectedGameType(): Promise<bigint> {
|
|
1268
|
+
return this.contract.read.respectedGameType() as Promise<bigint>;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* respectedGameTypeUpdatedAt
|
|
1273
|
+
* view
|
|
1274
|
+
*/
|
|
1275
|
+
async respectedGameTypeUpdatedAt(): Promise<bigint> {
|
|
1276
|
+
return this.contract.read.respectedGameTypeUpdatedAt() as Promise<bigint>;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* superchainConfig
|
|
1281
|
+
* view
|
|
1282
|
+
*/
|
|
1283
|
+
async superchainConfig(): Promise<`0x${string}`> {
|
|
1284
|
+
return this.contract.read.superchainConfig() as Promise<`0x${string}`>;
|
|
938
1285
|
}
|
|
939
1286
|
|
|
940
1287
|
/**
|
|
@@ -947,35 +1294,12 @@ export class OptimismPortal_json {
|
|
|
947
1294
|
|
|
948
1295
|
/**
|
|
949
1296
|
* version
|
|
950
|
-
*
|
|
1297
|
+
* pure
|
|
951
1298
|
*/
|
|
952
1299
|
async version(): Promise<string> {
|
|
953
1300
|
return this.contract.read.version() as Promise<string>;
|
|
954
1301
|
}
|
|
955
1302
|
|
|
956
|
-
/**
|
|
957
|
-
* claimETH
|
|
958
|
-
* nonpayable
|
|
959
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
960
|
-
*/
|
|
961
|
-
async claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
962
|
-
accessList?: import('viem').AccessList;
|
|
963
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
964
|
-
chain?: import('viem').Chain | null;
|
|
965
|
-
dataSuffix?: `0x${string}`;
|
|
966
|
-
gas?: bigint;
|
|
967
|
-
gasPrice?: bigint;
|
|
968
|
-
maxFeePerGas?: bigint;
|
|
969
|
-
maxPriorityFeePerGas?: bigint;
|
|
970
|
-
nonce?: number;
|
|
971
|
-
value?: bigint;
|
|
972
|
-
}): Promise<`0x${string}`> {
|
|
973
|
-
if (!this.contract.write) {
|
|
974
|
-
throw new Error('Wallet client is required for write operations');
|
|
975
|
-
}
|
|
976
|
-
return this.contract.write.claimETH([_amount, _proof] as const, options) as Promise<`0x${string}`>;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
1303
|
/**
|
|
980
1304
|
* depositTransaction
|
|
981
1305
|
* payable
|
|
@@ -1046,34 +1370,11 @@ export class OptimismPortal_json {
|
|
|
1046
1370
|
}
|
|
1047
1371
|
|
|
1048
1372
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
* nonpayable
|
|
1051
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1052
|
-
*/
|
|
1053
|
-
async initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
1054
|
-
accessList?: import('viem').AccessList;
|
|
1055
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1056
|
-
chain?: import('viem').Chain | null;
|
|
1057
|
-
dataSuffix?: `0x${string}`;
|
|
1058
|
-
gas?: bigint;
|
|
1059
|
-
gasPrice?: bigint;
|
|
1060
|
-
maxFeePerGas?: bigint;
|
|
1061
|
-
maxPriorityFeePerGas?: bigint;
|
|
1062
|
-
nonce?: number;
|
|
1063
|
-
value?: bigint;
|
|
1064
|
-
}): Promise<`0x${string}`> {
|
|
1065
|
-
if (!this.contract.write) {
|
|
1066
|
-
throw new Error('Wallet client is required for write operations');
|
|
1067
|
-
}
|
|
1068
|
-
return this.contract.write.initialize([_l2Oracle, _guardian, _systemConfig, _paused] as const, options) as Promise<`0x${string}`>;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* pause
|
|
1373
|
+
* finalizeWithdrawalTransactionExternalProof
|
|
1073
1374
|
* nonpayable
|
|
1074
1375
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1075
1376
|
*/
|
|
1076
|
-
async
|
|
1377
|
+
async finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
1077
1378
|
accessList?: import('viem').AccessList;
|
|
1078
1379
|
authorizationList?: import('viem').AuthorizationList;
|
|
1079
1380
|
chain?: import('viem').Chain | null;
|
|
@@ -1088,15 +1389,15 @@ export class OptimismPortal_json {
|
|
|
1088
1389
|
if (!this.contract.write) {
|
|
1089
1390
|
throw new Error('Wallet client is required for write operations');
|
|
1090
1391
|
}
|
|
1091
|
-
return this.contract.write.
|
|
1392
|
+
return this.contract.write.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter] as const, options) as Promise<`0x${string}`>;
|
|
1092
1393
|
}
|
|
1093
1394
|
|
|
1094
1395
|
/**
|
|
1095
|
-
*
|
|
1396
|
+
* initialize
|
|
1096
1397
|
* nonpayable
|
|
1097
1398
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1098
1399
|
*/
|
|
1099
|
-
async
|
|
1400
|
+
async initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
1100
1401
|
accessList?: import('viem').AccessList;
|
|
1101
1402
|
authorizationList?: import('viem').AuthorizationList;
|
|
1102
1403
|
chain?: import('viem').Chain | null;
|
|
@@ -1111,15 +1412,15 @@ export class OptimismPortal_json {
|
|
|
1111
1412
|
if (!this.contract.write) {
|
|
1112
1413
|
throw new Error('Wallet client is required for write operations');
|
|
1113
1414
|
}
|
|
1114
|
-
return this.contract.write.
|
|
1415
|
+
return this.contract.write.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox] as const, options) as Promise<`0x${string}`>;
|
|
1115
1416
|
}
|
|
1116
1417
|
|
|
1117
1418
|
/**
|
|
1118
|
-
*
|
|
1419
|
+
* migrateLiquidity
|
|
1119
1420
|
* nonpayable
|
|
1120
1421
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1121
1422
|
*/
|
|
1122
|
-
async
|
|
1423
|
+
async migrateLiquidity(options?: {
|
|
1123
1424
|
accessList?: import('viem').AccessList;
|
|
1124
1425
|
authorizationList?: import('viem').AuthorizationList;
|
|
1125
1426
|
chain?: import('viem').Chain | null;
|
|
@@ -1134,15 +1435,15 @@ export class OptimismPortal_json {
|
|
|
1134
1435
|
if (!this.contract.write) {
|
|
1135
1436
|
throw new Error('Wallet client is required for write operations');
|
|
1136
1437
|
}
|
|
1137
|
-
return this.contract.write.
|
|
1438
|
+
return this.contract.write.migrateLiquidity(options) as Promise<`0x${string}`>;
|
|
1138
1439
|
}
|
|
1139
1440
|
|
|
1140
1441
|
/**
|
|
1141
|
-
*
|
|
1442
|
+
* migrateToSharedDisputeGame
|
|
1142
1443
|
* nonpayable
|
|
1143
1444
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1144
1445
|
*/
|
|
1145
|
-
async
|
|
1446
|
+
async migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
1146
1447
|
accessList?: import('viem').AccessList;
|
|
1147
1448
|
authorizationList?: import('viem').AuthorizationList;
|
|
1148
1449
|
chain?: import('viem').Chain | null;
|
|
@@ -1157,15 +1458,15 @@ export class OptimismPortal_json {
|
|
|
1157
1458
|
if (!this.contract.write) {
|
|
1158
1459
|
throw new Error('Wallet client is required for write operations');
|
|
1159
1460
|
}
|
|
1160
|
-
return this.contract.write.
|
|
1461
|
+
return this.contract.write.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry] as const, options) as Promise<`0x${string}`>;
|
|
1161
1462
|
}
|
|
1162
1463
|
|
|
1163
1464
|
/**
|
|
1164
|
-
*
|
|
1465
|
+
* proveWithdrawalTransaction
|
|
1165
1466
|
* nonpayable
|
|
1166
1467
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1167
1468
|
*/
|
|
1168
|
-
async
|
|
1469
|
+
async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
1169
1470
|
accessList?: import('viem').AccessList;
|
|
1170
1471
|
authorizationList?: import('viem').AuthorizationList;
|
|
1171
1472
|
chain?: import('viem').Chain | null;
|
|
@@ -1180,7 +1481,7 @@ export class OptimismPortal_json {
|
|
|
1180
1481
|
if (!this.contract.write) {
|
|
1181
1482
|
throw new Error('Wallet client is required for write operations');
|
|
1182
1483
|
}
|
|
1183
|
-
return this.contract.write.
|
|
1484
|
+
return this.contract.write.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<`0x${string}`>;
|
|
1184
1485
|
}
|
|
1185
1486
|
|
|
1186
1487
|
|
|
@@ -1199,25 +1500,6 @@ export class OptimismPortal_json {
|
|
|
1199
1500
|
throw new Error('Public client is required for simulation');
|
|
1200
1501
|
}
|
|
1201
1502
|
return {
|
|
1202
|
-
/**
|
|
1203
|
-
* Simulate claimETH
|
|
1204
|
-
* Returns gas estimate and result without sending transaction
|
|
1205
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1206
|
-
*/
|
|
1207
|
-
async claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
|
|
1208
|
-
accessList?: import('viem').AccessList;
|
|
1209
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1210
|
-
chain?: import('viem').Chain | null;
|
|
1211
|
-
dataSuffix?: `0x${string}`;
|
|
1212
|
-
gas?: bigint;
|
|
1213
|
-
gasPrice?: bigint;
|
|
1214
|
-
maxFeePerGas?: bigint;
|
|
1215
|
-
maxPriorityFeePerGas?: bigint;
|
|
1216
|
-
nonce?: number;
|
|
1217
|
-
value?: bigint;
|
|
1218
|
-
}): Promise<void> {
|
|
1219
|
-
return contract.simulate.claimETH([_amount, _proof] as const, options) as Promise<void>;
|
|
1220
|
-
},
|
|
1221
1503
|
/**
|
|
1222
1504
|
* Simulate depositTransaction
|
|
1223
1505
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1276,30 +1558,11 @@ export class OptimismPortal_json {
|
|
|
1276
1558
|
return contract.simulate.finalizeWithdrawalTransaction([_tx] as const, options) as Promise<void>;
|
|
1277
1559
|
},
|
|
1278
1560
|
/**
|
|
1279
|
-
* Simulate
|
|
1280
|
-
* Returns gas estimate and result without sending transaction
|
|
1281
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1282
|
-
*/
|
|
1283
|
-
async initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
|
|
1284
|
-
accessList?: import('viem').AccessList;
|
|
1285
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1286
|
-
chain?: import('viem').Chain | null;
|
|
1287
|
-
dataSuffix?: `0x${string}`;
|
|
1288
|
-
gas?: bigint;
|
|
1289
|
-
gasPrice?: bigint;
|
|
1290
|
-
maxFeePerGas?: bigint;
|
|
1291
|
-
maxPriorityFeePerGas?: bigint;
|
|
1292
|
-
nonce?: number;
|
|
1293
|
-
value?: bigint;
|
|
1294
|
-
}): Promise<void> {
|
|
1295
|
-
return contract.simulate.initialize([_l2Oracle, _guardian, _systemConfig, _paused] as const, options) as Promise<void>;
|
|
1296
|
-
},
|
|
1297
|
-
/**
|
|
1298
|
-
* Simulate pause
|
|
1561
|
+
* Simulate finalizeWithdrawalTransactionExternalProof
|
|
1299
1562
|
* Returns gas estimate and result without sending transaction
|
|
1300
1563
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1301
1564
|
*/
|
|
1302
|
-
async
|
|
1565
|
+
async finalizeWithdrawalTransactionExternalProof(_tx: Types_WithdrawalTransaction, _proofSubmitter: `0x${string}`, options?: {
|
|
1303
1566
|
accessList?: import('viem').AccessList;
|
|
1304
1567
|
authorizationList?: import('viem').AuthorizationList;
|
|
1305
1568
|
chain?: import('viem').Chain | null;
|
|
@@ -1311,14 +1574,14 @@ export class OptimismPortal_json {
|
|
|
1311
1574
|
nonce?: number;
|
|
1312
1575
|
value?: bigint;
|
|
1313
1576
|
}): Promise<void> {
|
|
1314
|
-
return contract.simulate.
|
|
1577
|
+
return contract.simulate.finalizeWithdrawalTransactionExternalProof([_tx, _proofSubmitter] as const, options) as Promise<void>;
|
|
1315
1578
|
},
|
|
1316
1579
|
/**
|
|
1317
|
-
* Simulate
|
|
1580
|
+
* Simulate initialize
|
|
1318
1581
|
* Returns gas estimate and result without sending transaction
|
|
1319
1582
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1320
1583
|
*/
|
|
1321
|
-
async
|
|
1584
|
+
async initialize(_systemConfig: `0x${string}`, _anchorStateRegistry: `0x${string}`, _ethLockbox: `0x${string}`, options?: {
|
|
1322
1585
|
accessList?: import('viem').AccessList;
|
|
1323
1586
|
authorizationList?: import('viem').AuthorizationList;
|
|
1324
1587
|
chain?: import('viem').Chain | null;
|
|
@@ -1330,14 +1593,14 @@ export class OptimismPortal_json {
|
|
|
1330
1593
|
nonce?: number;
|
|
1331
1594
|
value?: bigint;
|
|
1332
1595
|
}): Promise<void> {
|
|
1333
|
-
return contract.simulate.
|
|
1596
|
+
return contract.simulate.initialize([_systemConfig, _anchorStateRegistry, _ethLockbox] as const, options) as Promise<void>;
|
|
1334
1597
|
},
|
|
1335
1598
|
/**
|
|
1336
|
-
* Simulate
|
|
1599
|
+
* Simulate migrateLiquidity
|
|
1337
1600
|
* Returns gas estimate and result without sending transaction
|
|
1338
1601
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1339
1602
|
*/
|
|
1340
|
-
async
|
|
1603
|
+
async migrateLiquidity(options?: {
|
|
1341
1604
|
accessList?: import('viem').AccessList;
|
|
1342
1605
|
authorizationList?: import('viem').AuthorizationList;
|
|
1343
1606
|
chain?: import('viem').Chain | null;
|
|
@@ -1349,14 +1612,14 @@ export class OptimismPortal_json {
|
|
|
1349
1612
|
nonce?: number;
|
|
1350
1613
|
value?: bigint;
|
|
1351
1614
|
}): Promise<void> {
|
|
1352
|
-
return contract.simulate.
|
|
1615
|
+
return contract.simulate.migrateLiquidity(options) as Promise<void>;
|
|
1353
1616
|
},
|
|
1354
1617
|
/**
|
|
1355
|
-
* Simulate
|
|
1618
|
+
* Simulate migrateToSharedDisputeGame
|
|
1356
1619
|
* Returns gas estimate and result without sending transaction
|
|
1357
1620
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1358
1621
|
*/
|
|
1359
|
-
async
|
|
1622
|
+
async migrateToSharedDisputeGame(_newLockbox: `0x${string}`, _newAnchorStateRegistry: `0x${string}`, options?: {
|
|
1360
1623
|
accessList?: import('viem').AccessList;
|
|
1361
1624
|
authorizationList?: import('viem').AuthorizationList;
|
|
1362
1625
|
chain?: import('viem').Chain | null;
|
|
@@ -1368,14 +1631,14 @@ export class OptimismPortal_json {
|
|
|
1368
1631
|
nonce?: number;
|
|
1369
1632
|
value?: bigint;
|
|
1370
1633
|
}): Promise<void> {
|
|
1371
|
-
return contract.simulate.
|
|
1634
|
+
return contract.simulate.migrateToSharedDisputeGame([_newLockbox, _newAnchorStateRegistry] as const, options) as Promise<void>;
|
|
1372
1635
|
},
|
|
1373
1636
|
/**
|
|
1374
|
-
* Simulate
|
|
1637
|
+
* Simulate proveWithdrawalTransaction
|
|
1375
1638
|
* Returns gas estimate and result without sending transaction
|
|
1376
1639
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1377
1640
|
*/
|
|
1378
|
-
async
|
|
1641
|
+
async proveWithdrawalTransaction(_tx: Types_WithdrawalTransaction, _disputeGameIndex: bigint, _outputRootProof: Types_OutputRootProof, _withdrawalProof: `0x${string}`[], options?: {
|
|
1379
1642
|
accessList?: import('viem').AccessList;
|
|
1380
1643
|
authorizationList?: import('viem').AuthorizationList;
|
|
1381
1644
|
chain?: import('viem').Chain | null;
|
|
@@ -1387,7 +1650,7 @@ export class OptimismPortal_json {
|
|
|
1387
1650
|
nonce?: number;
|
|
1388
1651
|
value?: bigint;
|
|
1389
1652
|
}): Promise<void> {
|
|
1390
|
-
return contract.simulate.
|
|
1653
|
+
return contract.simulate.proveWithdrawalTransaction([_tx, _disputeGameIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<void>;
|
|
1391
1654
|
}
|
|
1392
1655
|
};
|
|
1393
1656
|
}
|
|
@@ -1407,35 +1670,16 @@ export class OptimismPortal_json {
|
|
|
1407
1670
|
get watch() {
|
|
1408
1671
|
return {
|
|
1409
1672
|
/**
|
|
1410
|
-
* Watch
|
|
1411
|
-
* @param callback Function to call when event is emitted
|
|
1412
|
-
* @param filter Optional filter for indexed parameters
|
|
1413
|
-
* @returns Unwatch function to stop listening
|
|
1414
|
-
*/
|
|
1415
|
-
ETHClaimed: (callback: (event: { claimer: `0x${string}`; amount: bigint }) => void, filter?: { claimer: `0x${string}` }) => {
|
|
1416
|
-
return this.publicClient.watchContractEvent({
|
|
1417
|
-
address: this.contractAddress,
|
|
1418
|
-
abi: OptimismPortal_jsonAbi,
|
|
1419
|
-
eventName: 'ETHClaimed',
|
|
1420
|
-
args: filter,
|
|
1421
|
-
onLogs: (logs: any[]) => {
|
|
1422
|
-
logs.forEach((log: any) => {
|
|
1423
|
-
callback(log.args as any);
|
|
1424
|
-
});
|
|
1425
|
-
},
|
|
1426
|
-
}) as () => void;
|
|
1427
|
-
},
|
|
1428
|
-
/**
|
|
1429
|
-
* Watch ETHRecovered events
|
|
1673
|
+
* Watch ETHMigrated events
|
|
1430
1674
|
* @param callback Function to call when event is emitted
|
|
1431
1675
|
* @param filter Optional filter for indexed parameters
|
|
1432
1676
|
* @returns Unwatch function to stop listening
|
|
1433
1677
|
*/
|
|
1434
|
-
|
|
1678
|
+
ETHMigrated: (callback: (event: { lockbox: `0x${string}`; balance: bigint }) => void, filter?: { lockbox: `0x${string}` }) => {
|
|
1435
1679
|
return this.publicClient.watchContractEvent({
|
|
1436
1680
|
address: this.contractAddress,
|
|
1437
|
-
abi:
|
|
1438
|
-
eventName: '
|
|
1681
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1682
|
+
eventName: 'ETHMigrated',
|
|
1439
1683
|
args: filter,
|
|
1440
1684
|
onLogs: (logs: any[]) => {
|
|
1441
1685
|
logs.forEach((log: any) => {
|
|
@@ -1453,7 +1697,7 @@ export class OptimismPortal_json {
|
|
|
1453
1697
|
Initialized: (callback: (event: { version: bigint }) => void) => {
|
|
1454
1698
|
return this.publicClient.watchContractEvent({
|
|
1455
1699
|
address: this.contractAddress,
|
|
1456
|
-
abi:
|
|
1700
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1457
1701
|
eventName: 'Initialized',
|
|
1458
1702
|
|
|
1459
1703
|
onLogs: (logs: any[]) => {
|
|
@@ -1464,35 +1708,16 @@ export class OptimismPortal_json {
|
|
|
1464
1708
|
}) as () => void;
|
|
1465
1709
|
},
|
|
1466
1710
|
/**
|
|
1467
|
-
* Watch
|
|
1468
|
-
* @param callback Function to call when event is emitted
|
|
1469
|
-
* @param filter Optional filter for indexed parameters
|
|
1470
|
-
* @returns Unwatch function to stop listening
|
|
1471
|
-
*/
|
|
1472
|
-
MerkleRootETHSet: (callback: (event: { root: `0x${string}`; setter: `0x${string}` }) => void, filter?: { root: `0x${string}`; setter: `0x${string}` }) => {
|
|
1473
|
-
return this.publicClient.watchContractEvent({
|
|
1474
|
-
address: this.contractAddress,
|
|
1475
|
-
abi: OptimismPortal_jsonAbi,
|
|
1476
|
-
eventName: 'MerkleRootETHSet',
|
|
1477
|
-
args: filter,
|
|
1478
|
-
onLogs: (logs: any[]) => {
|
|
1479
|
-
logs.forEach((log: any) => {
|
|
1480
|
-
callback(log.args as any);
|
|
1481
|
-
});
|
|
1482
|
-
},
|
|
1483
|
-
}) as () => void;
|
|
1484
|
-
},
|
|
1485
|
-
/**
|
|
1486
|
-
* Watch Paused events
|
|
1711
|
+
* Watch PortalMigrated events
|
|
1487
1712
|
* @param callback Function to call when event is emitted
|
|
1488
1713
|
* @param filter Optional filter for indexed parameters
|
|
1489
1714
|
* @returns Unwatch function to stop listening
|
|
1490
1715
|
*/
|
|
1491
|
-
|
|
1716
|
+
PortalMigrated: (callback: (event: { oldLockbox: `0x${string}`; newLockbox: `0x${string}`; oldAnchorStateRegistry: `0x${string}`; newAnchorStateRegistry: `0x${string}` }) => void) => {
|
|
1492
1717
|
return this.publicClient.watchContractEvent({
|
|
1493
1718
|
address: this.contractAddress,
|
|
1494
|
-
abi:
|
|
1495
|
-
eventName: '
|
|
1719
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1720
|
+
eventName: 'PortalMigrated',
|
|
1496
1721
|
|
|
1497
1722
|
onLogs: (logs: any[]) => {
|
|
1498
1723
|
logs.forEach((log: any) => {
|
|
@@ -1510,7 +1735,7 @@ export class OptimismPortal_json {
|
|
|
1510
1735
|
TransactionDeposited: (callback: (event: { from: `0x${string}`; to: `0x${string}`; version: bigint; opaqueData: `0x${string}` }) => void, filter?: { from: `0x${string}`; to: `0x${string}`; version: bigint }) => {
|
|
1511
1736
|
return this.publicClient.watchContractEvent({
|
|
1512
1737
|
address: this.contractAddress,
|
|
1513
|
-
abi:
|
|
1738
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1514
1739
|
eventName: 'TransactionDeposited',
|
|
1515
1740
|
args: filter,
|
|
1516
1741
|
onLogs: (logs: any[]) => {
|
|
@@ -1521,17 +1746,17 @@ export class OptimismPortal_json {
|
|
|
1521
1746
|
}) as () => void;
|
|
1522
1747
|
},
|
|
1523
1748
|
/**
|
|
1524
|
-
* Watch
|
|
1749
|
+
* Watch WithdrawalFinalized events
|
|
1525
1750
|
* @param callback Function to call when event is emitted
|
|
1526
1751
|
* @param filter Optional filter for indexed parameters
|
|
1527
1752
|
* @returns Unwatch function to stop listening
|
|
1528
1753
|
*/
|
|
1529
|
-
|
|
1754
|
+
WithdrawalFinalized: (callback: (event: { withdrawalHash: `0x${string}`; success: boolean }) => void, filter?: { withdrawalHash: `0x${string}` }) => {
|
|
1530
1755
|
return this.publicClient.watchContractEvent({
|
|
1531
1756
|
address: this.contractAddress,
|
|
1532
|
-
abi:
|
|
1533
|
-
eventName: '
|
|
1534
|
-
|
|
1757
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1758
|
+
eventName: 'WithdrawalFinalized',
|
|
1759
|
+
args: filter,
|
|
1535
1760
|
onLogs: (logs: any[]) => {
|
|
1536
1761
|
logs.forEach((log: any) => {
|
|
1537
1762
|
callback(log.args as any);
|
|
@@ -1540,16 +1765,16 @@ export class OptimismPortal_json {
|
|
|
1540
1765
|
}) as () => void;
|
|
1541
1766
|
},
|
|
1542
1767
|
/**
|
|
1543
|
-
* Watch
|
|
1768
|
+
* Watch WithdrawalProven events
|
|
1544
1769
|
* @param callback Function to call when event is emitted
|
|
1545
1770
|
* @param filter Optional filter for indexed parameters
|
|
1546
1771
|
* @returns Unwatch function to stop listening
|
|
1547
1772
|
*/
|
|
1548
|
-
|
|
1773
|
+
WithdrawalProven: (callback: (event: { withdrawalHash: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => void, filter?: { withdrawalHash: `0x${string}`; from: `0x${string}`; to: `0x${string}` }) => {
|
|
1549
1774
|
return this.publicClient.watchContractEvent({
|
|
1550
1775
|
address: this.contractAddress,
|
|
1551
|
-
abi:
|
|
1552
|
-
eventName: '
|
|
1776
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1777
|
+
eventName: 'WithdrawalProven',
|
|
1553
1778
|
args: filter,
|
|
1554
1779
|
onLogs: (logs: any[]) => {
|
|
1555
1780
|
logs.forEach((log: any) => {
|
|
@@ -1559,16 +1784,16 @@ export class OptimismPortal_json {
|
|
|
1559
1784
|
}) as () => void;
|
|
1560
1785
|
},
|
|
1561
1786
|
/**
|
|
1562
|
-
* Watch
|
|
1787
|
+
* Watch WithdrawalProvenExtension1 events
|
|
1563
1788
|
* @param callback Function to call when event is emitted
|
|
1564
1789
|
* @param filter Optional filter for indexed parameters
|
|
1565
1790
|
* @returns Unwatch function to stop listening
|
|
1566
1791
|
*/
|
|
1567
|
-
|
|
1792
|
+
WithdrawalProvenExtension1: (callback: (event: { withdrawalHash: `0x${string}`; proofSubmitter: `0x${string}` }) => void, filter?: { withdrawalHash: `0x${string}`; proofSubmitter: `0x${string}` }) => {
|
|
1568
1793
|
return this.publicClient.watchContractEvent({
|
|
1569
1794
|
address: this.contractAddress,
|
|
1570
|
-
abi:
|
|
1571
|
-
eventName: '
|
|
1795
|
+
abi: OptimismPortal2_jsonAbi,
|
|
1796
|
+
eventName: 'WithdrawalProvenExtension1',
|
|
1572
1797
|
args: filter,
|
|
1573
1798
|
onLogs: (logs: any[]) => {
|
|
1574
1799
|
logs.forEach((log: any) => {
|