@gitmyabi/vault 1.0.3 → 1.0.5
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 +5 -5
- package/contracts/Vault_json.d.ts +175 -2460
- package/contracts/Vault_json.js +185 -2727
- package/contracts/Vault_json.ts +240 -3265
- package/contracts/index.d.ts +0 -2
- package/contracts/index.js +1 -4
- package/contracts/index.ts +0 -2
- package/package.json +3 -3
- package/contracts/MigratableEntityProxy_json.d.ts +0 -233
- package/contracts/MigratableEntityProxy_json.js +0 -277
- package/contracts/MigratableEntityProxy_json.ts +0 -329
|
@@ -6,2315 +6,223 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const Vault_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
|
-
readonly internalType: "address";
|
|
10
|
-
readonly name: "delegatorFactory";
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}, {
|
|
13
|
-
readonly internalType: "address";
|
|
14
|
-
readonly name: "slasherFactory";
|
|
15
|
-
readonly type: "address";
|
|
16
|
-
}, {
|
|
17
|
-
readonly internalType: "address";
|
|
18
|
-
readonly name: "vaultFactory";
|
|
19
|
-
readonly type: "address";
|
|
20
|
-
}];
|
|
21
|
-
readonly stateMutability: "nonpayable";
|
|
22
|
-
readonly type: "constructor";
|
|
23
|
-
}, {
|
|
24
|
-
readonly inputs: readonly [];
|
|
25
|
-
readonly name: "AccessControlBadConfirmation";
|
|
26
|
-
readonly type: "error";
|
|
27
|
-
}, {
|
|
28
|
-
readonly inputs: readonly [{
|
|
29
|
-
readonly internalType: "address";
|
|
30
|
-
readonly name: "account";
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}, {
|
|
33
9
|
readonly internalType: "bytes32";
|
|
34
|
-
readonly name: "
|
|
10
|
+
readonly name: "seal_";
|
|
35
11
|
readonly type: "bytes32";
|
|
36
12
|
}];
|
|
37
|
-
readonly
|
|
38
|
-
readonly type: "
|
|
39
|
-
}, {
|
|
40
|
-
readonly inputs: readonly [{
|
|
41
|
-
readonly internalType: "address";
|
|
42
|
-
readonly name: "target";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}];
|
|
45
|
-
readonly name: "AddressEmptyCode";
|
|
46
|
-
readonly type: "error";
|
|
47
|
-
}, {
|
|
48
|
-
readonly inputs: readonly [{
|
|
49
|
-
readonly internalType: "address";
|
|
50
|
-
readonly name: "account";
|
|
51
|
-
readonly type: "address";
|
|
52
|
-
}];
|
|
53
|
-
readonly name: "AddressInsufficientBalance";
|
|
54
|
-
readonly type: "error";
|
|
55
|
-
}, {
|
|
56
|
-
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "AlreadyClaimed";
|
|
58
|
-
readonly type: "error";
|
|
59
|
-
}, {
|
|
60
|
-
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "AlreadyInitialized";
|
|
62
|
-
readonly type: "error";
|
|
63
|
-
}, {
|
|
64
|
-
readonly inputs: readonly [];
|
|
65
|
-
readonly name: "AlreadySet";
|
|
66
|
-
readonly type: "error";
|
|
67
|
-
}, {
|
|
68
|
-
readonly inputs: readonly [];
|
|
69
|
-
readonly name: "CheckpointUnorderedInsertion";
|
|
70
|
-
readonly type: "error";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "DelegatorAlreadyInitialized";
|
|
74
|
-
readonly type: "error";
|
|
75
|
-
}, {
|
|
76
|
-
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "DepositLimitReached";
|
|
78
|
-
readonly type: "error";
|
|
79
|
-
}, {
|
|
80
|
-
readonly inputs: readonly [];
|
|
81
|
-
readonly name: "FailedInnerCall";
|
|
82
|
-
readonly type: "error";
|
|
83
|
-
}, {
|
|
84
|
-
readonly inputs: readonly [];
|
|
85
|
-
readonly name: "InsufficientClaim";
|
|
86
|
-
readonly type: "error";
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "InsufficientDeposit";
|
|
90
|
-
readonly type: "error";
|
|
91
|
-
}, {
|
|
92
|
-
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "InsufficientRedemption";
|
|
94
|
-
readonly type: "error";
|
|
95
|
-
}, {
|
|
96
|
-
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "InsufficientWithdrawal";
|
|
98
|
-
readonly type: "error";
|
|
99
|
-
}, {
|
|
100
|
-
readonly inputs: readonly [];
|
|
101
|
-
readonly name: "InvalidAccount";
|
|
102
|
-
readonly type: "error";
|
|
103
|
-
}, {
|
|
104
|
-
readonly inputs: readonly [];
|
|
105
|
-
readonly name: "InvalidCaptureEpoch";
|
|
106
|
-
readonly type: "error";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
|
-
readonly name: "InvalidClaimer";
|
|
110
|
-
readonly type: "error";
|
|
111
|
-
}, {
|
|
112
|
-
readonly inputs: readonly [];
|
|
113
|
-
readonly name: "InvalidCollateral";
|
|
114
|
-
readonly type: "error";
|
|
115
|
-
}, {
|
|
116
|
-
readonly inputs: readonly [];
|
|
117
|
-
readonly name: "InvalidDelegator";
|
|
118
|
-
readonly type: "error";
|
|
119
|
-
}, {
|
|
120
|
-
readonly inputs: readonly [];
|
|
121
|
-
readonly name: "InvalidEpoch";
|
|
122
|
-
readonly type: "error";
|
|
123
|
-
}, {
|
|
124
|
-
readonly inputs: readonly [];
|
|
125
|
-
readonly name: "InvalidEpochDuration";
|
|
126
|
-
readonly type: "error";
|
|
127
|
-
}, {
|
|
128
|
-
readonly inputs: readonly [];
|
|
129
|
-
readonly name: "InvalidInitialization";
|
|
130
|
-
readonly type: "error";
|
|
131
|
-
}, {
|
|
132
|
-
readonly inputs: readonly [];
|
|
133
|
-
readonly name: "InvalidLengthEpochs";
|
|
134
|
-
readonly type: "error";
|
|
135
|
-
}, {
|
|
136
|
-
readonly inputs: readonly [];
|
|
137
|
-
readonly name: "InvalidOnBehalfOf";
|
|
138
|
-
readonly type: "error";
|
|
139
|
-
}, {
|
|
140
|
-
readonly inputs: readonly [];
|
|
141
|
-
readonly name: "InvalidRecipient";
|
|
142
|
-
readonly type: "error";
|
|
143
|
-
}, {
|
|
144
|
-
readonly inputs: readonly [];
|
|
145
|
-
readonly name: "InvalidSlasher";
|
|
146
|
-
readonly type: "error";
|
|
147
|
-
}, {
|
|
148
|
-
readonly inputs: readonly [];
|
|
149
|
-
readonly name: "InvalidTimestamp";
|
|
150
|
-
readonly type: "error";
|
|
151
|
-
}, {
|
|
152
|
-
readonly inputs: readonly [];
|
|
153
|
-
readonly name: "MathOverflowedMulDiv";
|
|
154
|
-
readonly type: "error";
|
|
155
|
-
}, {
|
|
156
|
-
readonly inputs: readonly [];
|
|
157
|
-
readonly name: "MissingRoles";
|
|
158
|
-
readonly type: "error";
|
|
159
|
-
}, {
|
|
160
|
-
readonly inputs: readonly [];
|
|
161
|
-
readonly name: "NoPreviousEpoch";
|
|
162
|
-
readonly type: "error";
|
|
163
|
-
}, {
|
|
164
|
-
readonly inputs: readonly [];
|
|
165
|
-
readonly name: "NotDelegator";
|
|
166
|
-
readonly type: "error";
|
|
167
|
-
}, {
|
|
168
|
-
readonly inputs: readonly [];
|
|
169
|
-
readonly name: "NotFactory";
|
|
170
|
-
readonly type: "error";
|
|
171
|
-
}, {
|
|
172
|
-
readonly inputs: readonly [];
|
|
173
|
-
readonly name: "NotInitialized";
|
|
174
|
-
readonly type: "error";
|
|
175
|
-
}, {
|
|
176
|
-
readonly inputs: readonly [];
|
|
177
|
-
readonly name: "NotInitializing";
|
|
178
|
-
readonly type: "error";
|
|
179
|
-
}, {
|
|
180
|
-
readonly inputs: readonly [];
|
|
181
|
-
readonly name: "NotSlasher";
|
|
182
|
-
readonly type: "error";
|
|
183
|
-
}, {
|
|
184
|
-
readonly inputs: readonly [];
|
|
185
|
-
readonly name: "NotWhitelistedDepositor";
|
|
186
|
-
readonly type: "error";
|
|
187
|
-
}, {
|
|
188
|
-
readonly inputs: readonly [{
|
|
189
|
-
readonly internalType: "address";
|
|
190
|
-
readonly name: "owner";
|
|
191
|
-
readonly type: "address";
|
|
192
|
-
}];
|
|
193
|
-
readonly name: "OwnableInvalidOwner";
|
|
194
|
-
readonly type: "error";
|
|
195
|
-
}, {
|
|
196
|
-
readonly inputs: readonly [{
|
|
197
|
-
readonly internalType: "address";
|
|
198
|
-
readonly name: "account";
|
|
199
|
-
readonly type: "address";
|
|
200
|
-
}];
|
|
201
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
202
|
-
readonly type: "error";
|
|
203
|
-
}, {
|
|
204
|
-
readonly inputs: readonly [];
|
|
205
|
-
readonly name: "ReentrancyGuardReentrantCall";
|
|
206
|
-
readonly type: "error";
|
|
207
|
-
}, {
|
|
208
|
-
readonly inputs: readonly [{
|
|
209
|
-
readonly internalType: "uint8";
|
|
210
|
-
readonly name: "bits";
|
|
211
|
-
readonly type: "uint8";
|
|
212
|
-
}, {
|
|
213
|
-
readonly internalType: "uint256";
|
|
214
|
-
readonly name: "value";
|
|
215
|
-
readonly type: "uint256";
|
|
216
|
-
}];
|
|
217
|
-
readonly name: "SafeCastOverflowedUintDowncast";
|
|
218
|
-
readonly type: "error";
|
|
219
|
-
}, {
|
|
220
|
-
readonly inputs: readonly [{
|
|
221
|
-
readonly internalType: "address";
|
|
222
|
-
readonly name: "token";
|
|
223
|
-
readonly type: "address";
|
|
224
|
-
}];
|
|
225
|
-
readonly name: "SafeERC20FailedOperation";
|
|
226
|
-
readonly type: "error";
|
|
227
|
-
}, {
|
|
228
|
-
readonly inputs: readonly [];
|
|
229
|
-
readonly name: "SlasherAlreadyInitialized";
|
|
230
|
-
readonly type: "error";
|
|
231
|
-
}, {
|
|
232
|
-
readonly inputs: readonly [];
|
|
233
|
-
readonly name: "TooMuchRedeem";
|
|
234
|
-
readonly type: "error";
|
|
235
|
-
}, {
|
|
236
|
-
readonly inputs: readonly [];
|
|
237
|
-
readonly name: "TooMuchWithdraw";
|
|
238
|
-
readonly type: "error";
|
|
239
|
-
}, {
|
|
240
|
-
readonly anonymous: false;
|
|
241
|
-
readonly inputs: readonly [{
|
|
242
|
-
readonly indexed: true;
|
|
243
|
-
readonly internalType: "address";
|
|
244
|
-
readonly name: "claimer";
|
|
245
|
-
readonly type: "address";
|
|
246
|
-
}, {
|
|
247
|
-
readonly indexed: true;
|
|
248
|
-
readonly internalType: "address";
|
|
249
|
-
readonly name: "recipient";
|
|
250
|
-
readonly type: "address";
|
|
251
|
-
}, {
|
|
252
|
-
readonly indexed: false;
|
|
253
|
-
readonly internalType: "uint256";
|
|
254
|
-
readonly name: "epoch";
|
|
255
|
-
readonly type: "uint256";
|
|
256
|
-
}, {
|
|
257
|
-
readonly indexed: false;
|
|
258
|
-
readonly internalType: "uint256";
|
|
259
|
-
readonly name: "amount";
|
|
260
|
-
readonly type: "uint256";
|
|
261
|
-
}];
|
|
262
|
-
readonly name: "Claim";
|
|
263
|
-
readonly type: "event";
|
|
13
|
+
readonly stateMutability: "nonpayable";
|
|
14
|
+
readonly type: "constructor";
|
|
264
15
|
}, {
|
|
265
16
|
readonly anonymous: false;
|
|
266
17
|
readonly inputs: readonly [{
|
|
267
18
|
readonly indexed: true;
|
|
268
19
|
readonly internalType: "address";
|
|
269
|
-
readonly name: "
|
|
270
|
-
readonly type: "address";
|
|
271
|
-
}, {
|
|
272
|
-
readonly indexed: true;
|
|
273
|
-
readonly internalType: "address";
|
|
274
|
-
readonly name: "recipient";
|
|
20
|
+
readonly name: "to";
|
|
275
21
|
readonly type: "address";
|
|
276
|
-
}, {
|
|
277
|
-
readonly indexed: false;
|
|
278
|
-
readonly internalType: "uint256[]";
|
|
279
|
-
readonly name: "epochs";
|
|
280
|
-
readonly type: "uint256[]";
|
|
281
22
|
}, {
|
|
282
23
|
readonly indexed: false;
|
|
283
24
|
readonly internalType: "uint256";
|
|
284
25
|
readonly name: "amount";
|
|
285
26
|
readonly type: "uint256";
|
|
286
27
|
}];
|
|
287
|
-
readonly name: "
|
|
28
|
+
readonly name: "Found";
|
|
288
29
|
readonly type: "event";
|
|
289
30
|
}, {
|
|
290
31
|
readonly anonymous: false;
|
|
291
32
|
readonly inputs: readonly [{
|
|
292
33
|
readonly indexed: true;
|
|
293
34
|
readonly internalType: "address";
|
|
294
|
-
readonly name: "
|
|
295
|
-
readonly type: "address";
|
|
296
|
-
}, {
|
|
297
|
-
readonly indexed: true;
|
|
298
|
-
readonly internalType: "address";
|
|
299
|
-
readonly name: "onBehalfOf";
|
|
35
|
+
readonly name: "from";
|
|
300
36
|
readonly type: "address";
|
|
301
37
|
}, {
|
|
302
38
|
readonly indexed: false;
|
|
303
39
|
readonly internalType: "uint256";
|
|
304
40
|
readonly name: "amount";
|
|
305
41
|
readonly type: "uint256";
|
|
306
|
-
}, {
|
|
307
|
-
readonly indexed: false;
|
|
308
|
-
readonly internalType: "uint256";
|
|
309
|
-
readonly name: "shares";
|
|
310
|
-
readonly type: "uint256";
|
|
311
42
|
}];
|
|
312
|
-
readonly name: "
|
|
43
|
+
readonly name: "Funded";
|
|
313
44
|
readonly type: "event";
|
|
314
45
|
}, {
|
|
315
|
-
readonly
|
|
316
|
-
readonly
|
|
317
|
-
|
|
318
|
-
readonly internalType: "
|
|
319
|
-
readonly name: "
|
|
320
|
-
readonly type: "
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "SEAL";
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly internalType: "bytes32";
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "bytes32";
|
|
321
52
|
}];
|
|
322
|
-
readonly
|
|
323
|
-
readonly type: "
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
readonly type: "function";
|
|
324
55
|
}, {
|
|
325
|
-
readonly
|
|
326
|
-
readonly
|
|
327
|
-
|
|
328
|
-
readonly internalType: "uint256";
|
|
329
|
-
readonly name: "amount";
|
|
330
|
-
readonly type: "uint256";
|
|
331
|
-
}, {
|
|
332
|
-
readonly indexed: false;
|
|
333
|
-
readonly internalType: "uint48";
|
|
334
|
-
readonly name: "captureTimestamp";
|
|
335
|
-
readonly type: "uint48";
|
|
336
|
-
}, {
|
|
337
|
-
readonly indexed: false;
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "balance";
|
|
58
|
+
readonly outputs: readonly [{
|
|
338
59
|
readonly internalType: "uint256";
|
|
339
|
-
readonly name: "
|
|
60
|
+
readonly name: "";
|
|
340
61
|
readonly type: "uint256";
|
|
341
62
|
}];
|
|
342
|
-
readonly
|
|
343
|
-
readonly type: "
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
readonly type: "function";
|
|
344
65
|
}, {
|
|
345
|
-
readonly
|
|
346
|
-
readonly
|
|
347
|
-
|
|
348
|
-
readonly internalType: "
|
|
349
|
-
readonly name: "
|
|
350
|
-
readonly type: "
|
|
351
|
-
}, {
|
|
352
|
-
readonly indexed: true;
|
|
353
|
-
readonly internalType: "address";
|
|
354
|
-
readonly name: "newOwner";
|
|
355
|
-
readonly type: "address";
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "found";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "bool";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "bool";
|
|
356
72
|
}];
|
|
357
|
-
readonly
|
|
358
|
-
readonly type: "
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
359
75
|
}, {
|
|
360
|
-
readonly
|
|
361
|
-
readonly
|
|
362
|
-
|
|
363
|
-
readonly internalType: "
|
|
364
|
-
readonly name: "
|
|
365
|
-
readonly type: "
|
|
366
|
-
}, {
|
|
367
|
-
readonly indexed: true;
|
|
368
|
-
readonly internalType: "bytes32";
|
|
369
|
-
readonly name: "previousAdminRole";
|
|
370
|
-
readonly type: "bytes32";
|
|
371
|
-
}, {
|
|
372
|
-
readonly indexed: true;
|
|
373
|
-
readonly internalType: "bytes32";
|
|
374
|
-
readonly name: "newAdminRole";
|
|
375
|
-
readonly type: "bytes32";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "rules";
|
|
78
|
+
readonly outputs: readonly [{
|
|
79
|
+
readonly internalType: "string";
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "string";
|
|
376
82
|
}];
|
|
377
|
-
readonly
|
|
378
|
-
readonly type: "
|
|
83
|
+
readonly stateMutability: "pure";
|
|
84
|
+
readonly type: "function";
|
|
379
85
|
}, {
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
382
|
-
|
|
383
|
-
readonly internalType: "
|
|
384
|
-
readonly name: "
|
|
385
|
-
readonly type: "
|
|
386
|
-
}, {
|
|
387
|
-
readonly indexed: true;
|
|
388
|
-
readonly internalType: "address";
|
|
389
|
-
readonly name: "account";
|
|
390
|
-
readonly type: "address";
|
|
391
|
-
}, {
|
|
392
|
-
readonly indexed: true;
|
|
393
|
-
readonly internalType: "address";
|
|
394
|
-
readonly name: "sender";
|
|
395
|
-
readonly type: "address";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "state";
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly internalType: "string";
|
|
90
|
+
readonly name: "";
|
|
91
|
+
readonly type: "string";
|
|
396
92
|
}];
|
|
397
|
-
readonly
|
|
398
|
-
readonly type: "
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
readonly type: "function";
|
|
399
95
|
}, {
|
|
400
|
-
readonly anonymous: false;
|
|
401
96
|
readonly inputs: readonly [{
|
|
402
|
-
readonly
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
readonly type: "bytes32";
|
|
406
|
-
}, {
|
|
407
|
-
readonly indexed: true;
|
|
408
|
-
readonly internalType: "address";
|
|
409
|
-
readonly name: "account";
|
|
410
|
-
readonly type: "address";
|
|
97
|
+
readonly internalType: "bytes";
|
|
98
|
+
readonly name: "secret";
|
|
99
|
+
readonly type: "bytes";
|
|
411
100
|
}, {
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly name: "sender";
|
|
101
|
+
readonly internalType: "address payable";
|
|
102
|
+
readonly name: "to";
|
|
415
103
|
readonly type: "address";
|
|
416
104
|
}];
|
|
417
|
-
readonly name: "
|
|
418
|
-
readonly
|
|
419
|
-
|
|
420
|
-
readonly
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
readonly stateMutability: "view";
|
|
533
|
-
readonly type: "function";
|
|
534
|
-
}, {
|
|
535
|
-
readonly inputs: readonly [];
|
|
536
|
-
readonly name: "DEPOSITOR_WHITELIST_ROLE";
|
|
537
|
-
readonly outputs: readonly [{
|
|
538
|
-
readonly internalType: "bytes32";
|
|
539
|
-
readonly name: "";
|
|
540
|
-
readonly type: "bytes32";
|
|
541
|
-
}];
|
|
542
|
-
readonly stateMutability: "view";
|
|
543
|
-
readonly type: "function";
|
|
544
|
-
}, {
|
|
545
|
-
readonly inputs: readonly [];
|
|
546
|
-
readonly name: "DEPOSIT_LIMIT_SET_ROLE";
|
|
547
|
-
readonly outputs: readonly [{
|
|
548
|
-
readonly internalType: "bytes32";
|
|
549
|
-
readonly name: "";
|
|
550
|
-
readonly type: "bytes32";
|
|
551
|
-
}];
|
|
552
|
-
readonly stateMutability: "view";
|
|
553
|
-
readonly type: "function";
|
|
554
|
-
}, {
|
|
555
|
-
readonly inputs: readonly [];
|
|
556
|
-
readonly name: "DEPOSIT_WHITELIST_SET_ROLE";
|
|
557
|
-
readonly outputs: readonly [{
|
|
558
|
-
readonly internalType: "bytes32";
|
|
559
|
-
readonly name: "";
|
|
560
|
-
readonly type: "bytes32";
|
|
561
|
-
}];
|
|
562
|
-
readonly stateMutability: "view";
|
|
563
|
-
readonly type: "function";
|
|
564
|
-
}, {
|
|
565
|
-
readonly inputs: readonly [];
|
|
566
|
-
readonly name: "FACTORY";
|
|
567
|
-
readonly outputs: readonly [{
|
|
568
|
-
readonly internalType: "address";
|
|
569
|
-
readonly name: "";
|
|
570
|
-
readonly type: "address";
|
|
571
|
-
}];
|
|
572
|
-
readonly stateMutability: "view";
|
|
573
|
-
readonly type: "function";
|
|
574
|
-
}, {
|
|
575
|
-
readonly inputs: readonly [];
|
|
576
|
-
readonly name: "IS_DEPOSIT_LIMIT_SET_ROLE";
|
|
577
|
-
readonly outputs: readonly [{
|
|
578
|
-
readonly internalType: "bytes32";
|
|
579
|
-
readonly name: "";
|
|
580
|
-
readonly type: "bytes32";
|
|
581
|
-
}];
|
|
582
|
-
readonly stateMutability: "view";
|
|
583
|
-
readonly type: "function";
|
|
584
|
-
}, {
|
|
585
|
-
readonly inputs: readonly [];
|
|
586
|
-
readonly name: "SLASHER_FACTORY";
|
|
587
|
-
readonly outputs: readonly [{
|
|
588
|
-
readonly internalType: "address";
|
|
589
|
-
readonly name: "";
|
|
590
|
-
readonly type: "address";
|
|
591
|
-
}];
|
|
592
|
-
readonly stateMutability: "view";
|
|
593
|
-
readonly type: "function";
|
|
594
|
-
}, {
|
|
595
|
-
readonly inputs: readonly [{
|
|
596
|
-
readonly internalType: "address";
|
|
597
|
-
readonly name: "account";
|
|
598
|
-
readonly type: "address";
|
|
599
|
-
}];
|
|
600
|
-
readonly name: "activeBalanceOf";
|
|
601
|
-
readonly outputs: readonly [{
|
|
602
|
-
readonly internalType: "uint256";
|
|
603
|
-
readonly name: "";
|
|
604
|
-
readonly type: "uint256";
|
|
605
|
-
}];
|
|
606
|
-
readonly stateMutability: "view";
|
|
607
|
-
readonly type: "function";
|
|
608
|
-
}, {
|
|
609
|
-
readonly inputs: readonly [{
|
|
610
|
-
readonly internalType: "address";
|
|
611
|
-
readonly name: "account";
|
|
612
|
-
readonly type: "address";
|
|
613
|
-
}, {
|
|
614
|
-
readonly internalType: "uint48";
|
|
615
|
-
readonly name: "timestamp";
|
|
616
|
-
readonly type: "uint48";
|
|
617
|
-
}, {
|
|
618
|
-
readonly internalType: "bytes";
|
|
619
|
-
readonly name: "hints";
|
|
620
|
-
readonly type: "bytes";
|
|
621
|
-
}];
|
|
622
|
-
readonly name: "activeBalanceOfAt";
|
|
623
|
-
readonly outputs: readonly [{
|
|
624
|
-
readonly internalType: "uint256";
|
|
625
|
-
readonly name: "";
|
|
626
|
-
readonly type: "uint256";
|
|
627
|
-
}];
|
|
628
|
-
readonly stateMutability: "view";
|
|
629
|
-
readonly type: "function";
|
|
630
|
-
}, {
|
|
631
|
-
readonly inputs: readonly [];
|
|
632
|
-
readonly name: "activeShares";
|
|
633
|
-
readonly outputs: readonly [{
|
|
634
|
-
readonly internalType: "uint256";
|
|
635
|
-
readonly name: "";
|
|
636
|
-
readonly type: "uint256";
|
|
637
|
-
}];
|
|
638
|
-
readonly stateMutability: "view";
|
|
639
|
-
readonly type: "function";
|
|
640
|
-
}, {
|
|
641
|
-
readonly inputs: readonly [{
|
|
642
|
-
readonly internalType: "uint48";
|
|
643
|
-
readonly name: "timestamp";
|
|
644
|
-
readonly type: "uint48";
|
|
645
|
-
}, {
|
|
646
|
-
readonly internalType: "bytes";
|
|
647
|
-
readonly name: "hint";
|
|
648
|
-
readonly type: "bytes";
|
|
649
|
-
}];
|
|
650
|
-
readonly name: "activeSharesAt";
|
|
651
|
-
readonly outputs: readonly [{
|
|
652
|
-
readonly internalType: "uint256";
|
|
653
|
-
readonly name: "";
|
|
654
|
-
readonly type: "uint256";
|
|
655
|
-
}];
|
|
656
|
-
readonly stateMutability: "view";
|
|
657
|
-
readonly type: "function";
|
|
658
|
-
}, {
|
|
659
|
-
readonly inputs: readonly [{
|
|
660
|
-
readonly internalType: "address";
|
|
661
|
-
readonly name: "account";
|
|
662
|
-
readonly type: "address";
|
|
663
|
-
}];
|
|
664
|
-
readonly name: "activeSharesOf";
|
|
665
|
-
readonly outputs: readonly [{
|
|
666
|
-
readonly internalType: "uint256";
|
|
667
|
-
readonly name: "";
|
|
668
|
-
readonly type: "uint256";
|
|
669
|
-
}];
|
|
670
|
-
readonly stateMutability: "view";
|
|
671
|
-
readonly type: "function";
|
|
672
|
-
}, {
|
|
673
|
-
readonly inputs: readonly [{
|
|
674
|
-
readonly internalType: "address";
|
|
675
|
-
readonly name: "account";
|
|
676
|
-
readonly type: "address";
|
|
677
|
-
}, {
|
|
678
|
-
readonly internalType: "uint48";
|
|
679
|
-
readonly name: "timestamp";
|
|
680
|
-
readonly type: "uint48";
|
|
681
|
-
}, {
|
|
682
|
-
readonly internalType: "bytes";
|
|
683
|
-
readonly name: "hint";
|
|
684
|
-
readonly type: "bytes";
|
|
685
|
-
}];
|
|
686
|
-
readonly name: "activeSharesOfAt";
|
|
687
|
-
readonly outputs: readonly [{
|
|
688
|
-
readonly internalType: "uint256";
|
|
689
|
-
readonly name: "";
|
|
690
|
-
readonly type: "uint256";
|
|
691
|
-
}];
|
|
692
|
-
readonly stateMutability: "view";
|
|
693
|
-
readonly type: "function";
|
|
694
|
-
}, {
|
|
695
|
-
readonly inputs: readonly [];
|
|
696
|
-
readonly name: "activeStake";
|
|
697
|
-
readonly outputs: readonly [{
|
|
698
|
-
readonly internalType: "uint256";
|
|
699
|
-
readonly name: "";
|
|
700
|
-
readonly type: "uint256";
|
|
701
|
-
}];
|
|
702
|
-
readonly stateMutability: "view";
|
|
703
|
-
readonly type: "function";
|
|
704
|
-
}, {
|
|
705
|
-
readonly inputs: readonly [{
|
|
706
|
-
readonly internalType: "uint48";
|
|
707
|
-
readonly name: "timestamp";
|
|
708
|
-
readonly type: "uint48";
|
|
709
|
-
}, {
|
|
710
|
-
readonly internalType: "bytes";
|
|
711
|
-
readonly name: "hint";
|
|
712
|
-
readonly type: "bytes";
|
|
713
|
-
}];
|
|
714
|
-
readonly name: "activeStakeAt";
|
|
715
|
-
readonly outputs: readonly [{
|
|
716
|
-
readonly internalType: "uint256";
|
|
717
|
-
readonly name: "";
|
|
718
|
-
readonly type: "uint256";
|
|
719
|
-
}];
|
|
720
|
-
readonly stateMutability: "view";
|
|
721
|
-
readonly type: "function";
|
|
722
|
-
}, {
|
|
723
|
-
readonly inputs: readonly [];
|
|
724
|
-
readonly name: "burner";
|
|
725
|
-
readonly outputs: readonly [{
|
|
726
|
-
readonly internalType: "address";
|
|
727
|
-
readonly name: "";
|
|
728
|
-
readonly type: "address";
|
|
729
|
-
}];
|
|
730
|
-
readonly stateMutability: "view";
|
|
731
|
-
readonly type: "function";
|
|
732
|
-
}, {
|
|
733
|
-
readonly inputs: readonly [{
|
|
734
|
-
readonly internalType: "address";
|
|
735
|
-
readonly name: "recipient";
|
|
736
|
-
readonly type: "address";
|
|
737
|
-
}, {
|
|
738
|
-
readonly internalType: "uint256";
|
|
739
|
-
readonly name: "epoch";
|
|
740
|
-
readonly type: "uint256";
|
|
741
|
-
}];
|
|
742
|
-
readonly name: "claim";
|
|
743
|
-
readonly outputs: readonly [{
|
|
744
|
-
readonly internalType: "uint256";
|
|
745
|
-
readonly name: "amount";
|
|
746
|
-
readonly type: "uint256";
|
|
747
|
-
}];
|
|
748
|
-
readonly stateMutability: "nonpayable";
|
|
749
|
-
readonly type: "function";
|
|
750
|
-
}, {
|
|
751
|
-
readonly inputs: readonly [{
|
|
752
|
-
readonly internalType: "address";
|
|
753
|
-
readonly name: "recipient";
|
|
754
|
-
readonly type: "address";
|
|
755
|
-
}, {
|
|
756
|
-
readonly internalType: "uint256[]";
|
|
757
|
-
readonly name: "epochs";
|
|
758
|
-
readonly type: "uint256[]";
|
|
759
|
-
}];
|
|
760
|
-
readonly name: "claimBatch";
|
|
761
|
-
readonly outputs: readonly [{
|
|
762
|
-
readonly internalType: "uint256";
|
|
763
|
-
readonly name: "amount";
|
|
764
|
-
readonly type: "uint256";
|
|
765
|
-
}];
|
|
766
|
-
readonly stateMutability: "nonpayable";
|
|
767
|
-
readonly type: "function";
|
|
768
|
-
}, {
|
|
769
|
-
readonly inputs: readonly [];
|
|
770
|
-
readonly name: "collateral";
|
|
771
|
-
readonly outputs: readonly [{
|
|
772
|
-
readonly internalType: "address";
|
|
773
|
-
readonly name: "";
|
|
774
|
-
readonly type: "address";
|
|
775
|
-
}];
|
|
776
|
-
readonly stateMutability: "view";
|
|
777
|
-
readonly type: "function";
|
|
778
|
-
}, {
|
|
779
|
-
readonly inputs: readonly [];
|
|
780
|
-
readonly name: "currentEpoch";
|
|
781
|
-
readonly outputs: readonly [{
|
|
782
|
-
readonly internalType: "uint256";
|
|
783
|
-
readonly name: "";
|
|
784
|
-
readonly type: "uint256";
|
|
785
|
-
}];
|
|
786
|
-
readonly stateMutability: "view";
|
|
787
|
-
readonly type: "function";
|
|
788
|
-
}, {
|
|
789
|
-
readonly inputs: readonly [];
|
|
790
|
-
readonly name: "currentEpochStart";
|
|
791
|
-
readonly outputs: readonly [{
|
|
792
|
-
readonly internalType: "uint48";
|
|
793
|
-
readonly name: "";
|
|
794
|
-
readonly type: "uint48";
|
|
795
|
-
}];
|
|
796
|
-
readonly stateMutability: "view";
|
|
797
|
-
readonly type: "function";
|
|
798
|
-
}, {
|
|
799
|
-
readonly inputs: readonly [];
|
|
800
|
-
readonly name: "delegator";
|
|
801
|
-
readonly outputs: readonly [{
|
|
802
|
-
readonly internalType: "address";
|
|
803
|
-
readonly name: "";
|
|
804
|
-
readonly type: "address";
|
|
805
|
-
}];
|
|
806
|
-
readonly stateMutability: "view";
|
|
807
|
-
readonly type: "function";
|
|
808
|
-
}, {
|
|
809
|
-
readonly inputs: readonly [{
|
|
810
|
-
readonly internalType: "address";
|
|
811
|
-
readonly name: "onBehalfOf";
|
|
812
|
-
readonly type: "address";
|
|
813
|
-
}, {
|
|
814
|
-
readonly internalType: "uint256";
|
|
815
|
-
readonly name: "amount";
|
|
816
|
-
readonly type: "uint256";
|
|
817
|
-
}];
|
|
818
|
-
readonly name: "deposit";
|
|
819
|
-
readonly outputs: readonly [{
|
|
820
|
-
readonly internalType: "uint256";
|
|
821
|
-
readonly name: "depositedAmount";
|
|
822
|
-
readonly type: "uint256";
|
|
823
|
-
}, {
|
|
824
|
-
readonly internalType: "uint256";
|
|
825
|
-
readonly name: "mintedShares";
|
|
826
|
-
readonly type: "uint256";
|
|
827
|
-
}];
|
|
828
|
-
readonly stateMutability: "nonpayable";
|
|
829
|
-
readonly type: "function";
|
|
830
|
-
}, {
|
|
831
|
-
readonly inputs: readonly [];
|
|
832
|
-
readonly name: "depositLimit";
|
|
833
|
-
readonly outputs: readonly [{
|
|
834
|
-
readonly internalType: "uint256";
|
|
835
|
-
readonly name: "";
|
|
836
|
-
readonly type: "uint256";
|
|
837
|
-
}];
|
|
838
|
-
readonly stateMutability: "view";
|
|
839
|
-
readonly type: "function";
|
|
840
|
-
}, {
|
|
841
|
-
readonly inputs: readonly [];
|
|
842
|
-
readonly name: "depositWhitelist";
|
|
843
|
-
readonly outputs: readonly [{
|
|
844
|
-
readonly internalType: "bool";
|
|
845
|
-
readonly name: "";
|
|
846
|
-
readonly type: "bool";
|
|
847
|
-
}];
|
|
848
|
-
readonly stateMutability: "view";
|
|
849
|
-
readonly type: "function";
|
|
850
|
-
}, {
|
|
851
|
-
readonly inputs: readonly [{
|
|
852
|
-
readonly internalType: "uint48";
|
|
853
|
-
readonly name: "timestamp";
|
|
854
|
-
readonly type: "uint48";
|
|
855
|
-
}];
|
|
856
|
-
readonly name: "epochAt";
|
|
857
|
-
readonly outputs: readonly [{
|
|
858
|
-
readonly internalType: "uint256";
|
|
859
|
-
readonly name: "";
|
|
860
|
-
readonly type: "uint256";
|
|
861
|
-
}];
|
|
862
|
-
readonly stateMutability: "view";
|
|
863
|
-
readonly type: "function";
|
|
864
|
-
}, {
|
|
865
|
-
readonly inputs: readonly [];
|
|
866
|
-
readonly name: "epochDuration";
|
|
867
|
-
readonly outputs: readonly [{
|
|
868
|
-
readonly internalType: "uint48";
|
|
869
|
-
readonly name: "";
|
|
870
|
-
readonly type: "uint48";
|
|
871
|
-
}];
|
|
872
|
-
readonly stateMutability: "view";
|
|
873
|
-
readonly type: "function";
|
|
874
|
-
}, {
|
|
875
|
-
readonly inputs: readonly [];
|
|
876
|
-
readonly name: "epochDurationInit";
|
|
877
|
-
readonly outputs: readonly [{
|
|
878
|
-
readonly internalType: "uint48";
|
|
879
|
-
readonly name: "";
|
|
880
|
-
readonly type: "uint48";
|
|
881
|
-
}];
|
|
882
|
-
readonly stateMutability: "view";
|
|
883
|
-
readonly type: "function";
|
|
884
|
-
}, {
|
|
885
|
-
readonly inputs: readonly [{
|
|
886
|
-
readonly internalType: "bytes32";
|
|
887
|
-
readonly name: "role";
|
|
888
|
-
readonly type: "bytes32";
|
|
889
|
-
}];
|
|
890
|
-
readonly name: "getRoleAdmin";
|
|
891
|
-
readonly outputs: readonly [{
|
|
892
|
-
readonly internalType: "bytes32";
|
|
893
|
-
readonly name: "";
|
|
894
|
-
readonly type: "bytes32";
|
|
895
|
-
}];
|
|
896
|
-
readonly stateMutability: "view";
|
|
897
|
-
readonly type: "function";
|
|
898
|
-
}, {
|
|
899
|
-
readonly inputs: readonly [{
|
|
900
|
-
readonly internalType: "bytes32";
|
|
901
|
-
readonly name: "role";
|
|
902
|
-
readonly type: "bytes32";
|
|
903
|
-
}, {
|
|
904
|
-
readonly internalType: "address";
|
|
905
|
-
readonly name: "account";
|
|
906
|
-
readonly type: "address";
|
|
907
|
-
}];
|
|
908
|
-
readonly name: "grantRole";
|
|
909
|
-
readonly outputs: readonly [];
|
|
910
|
-
readonly stateMutability: "nonpayable";
|
|
911
|
-
readonly type: "function";
|
|
912
|
-
}, {
|
|
913
|
-
readonly inputs: readonly [{
|
|
914
|
-
readonly internalType: "bytes32";
|
|
915
|
-
readonly name: "role";
|
|
916
|
-
readonly type: "bytes32";
|
|
917
|
-
}, {
|
|
918
|
-
readonly internalType: "address";
|
|
919
|
-
readonly name: "account";
|
|
920
|
-
readonly type: "address";
|
|
921
|
-
}];
|
|
922
|
-
readonly name: "hasRole";
|
|
923
|
-
readonly outputs: readonly [{
|
|
924
|
-
readonly internalType: "bool";
|
|
925
|
-
readonly name: "";
|
|
926
|
-
readonly type: "bool";
|
|
927
|
-
}];
|
|
928
|
-
readonly stateMutability: "view";
|
|
929
|
-
readonly type: "function";
|
|
930
|
-
}, {
|
|
931
|
-
readonly inputs: readonly [{
|
|
932
|
-
readonly internalType: "uint64";
|
|
933
|
-
readonly name: "initialVersion";
|
|
934
|
-
readonly type: "uint64";
|
|
935
|
-
}, {
|
|
936
|
-
readonly internalType: "address";
|
|
937
|
-
readonly name: "owner_";
|
|
938
|
-
readonly type: "address";
|
|
939
|
-
}, {
|
|
940
|
-
readonly internalType: "bytes";
|
|
941
|
-
readonly name: "data";
|
|
942
|
-
readonly type: "bytes";
|
|
943
|
-
}];
|
|
944
|
-
readonly name: "initialize";
|
|
945
|
-
readonly outputs: readonly [];
|
|
946
|
-
readonly stateMutability: "nonpayable";
|
|
947
|
-
readonly type: "function";
|
|
948
|
-
}, {
|
|
949
|
-
readonly inputs: readonly [];
|
|
950
|
-
readonly name: "isDelegatorInitialized";
|
|
951
|
-
readonly outputs: readonly [{
|
|
952
|
-
readonly internalType: "bool";
|
|
953
|
-
readonly name: "";
|
|
954
|
-
readonly type: "bool";
|
|
955
|
-
}];
|
|
956
|
-
readonly stateMutability: "view";
|
|
957
|
-
readonly type: "function";
|
|
958
|
-
}, {
|
|
959
|
-
readonly inputs: readonly [];
|
|
960
|
-
readonly name: "isDepositLimit";
|
|
961
|
-
readonly outputs: readonly [{
|
|
962
|
-
readonly internalType: "bool";
|
|
963
|
-
readonly name: "";
|
|
964
|
-
readonly type: "bool";
|
|
965
|
-
}];
|
|
966
|
-
readonly stateMutability: "view";
|
|
967
|
-
readonly type: "function";
|
|
968
|
-
}, {
|
|
969
|
-
readonly inputs: readonly [{
|
|
970
|
-
readonly internalType: "address";
|
|
971
|
-
readonly name: "account";
|
|
972
|
-
readonly type: "address";
|
|
973
|
-
}];
|
|
974
|
-
readonly name: "isDepositorWhitelisted";
|
|
975
|
-
readonly outputs: readonly [{
|
|
976
|
-
readonly internalType: "bool";
|
|
977
|
-
readonly name: "value";
|
|
978
|
-
readonly type: "bool";
|
|
979
|
-
}];
|
|
980
|
-
readonly stateMutability: "view";
|
|
981
|
-
readonly type: "function";
|
|
982
|
-
}, {
|
|
983
|
-
readonly inputs: readonly [];
|
|
984
|
-
readonly name: "isInitialized";
|
|
985
|
-
readonly outputs: readonly [{
|
|
986
|
-
readonly internalType: "bool";
|
|
987
|
-
readonly name: "";
|
|
988
|
-
readonly type: "bool";
|
|
989
|
-
}];
|
|
990
|
-
readonly stateMutability: "view";
|
|
991
|
-
readonly type: "function";
|
|
992
|
-
}, {
|
|
993
|
-
readonly inputs: readonly [];
|
|
994
|
-
readonly name: "isSlasherInitialized";
|
|
995
|
-
readonly outputs: readonly [{
|
|
996
|
-
readonly internalType: "bool";
|
|
997
|
-
readonly name: "";
|
|
998
|
-
readonly type: "bool";
|
|
999
|
-
}];
|
|
1000
|
-
readonly stateMutability: "view";
|
|
1001
|
-
readonly type: "function";
|
|
1002
|
-
}, {
|
|
1003
|
-
readonly inputs: readonly [{
|
|
1004
|
-
readonly internalType: "uint256";
|
|
1005
|
-
readonly name: "epoch";
|
|
1006
|
-
readonly type: "uint256";
|
|
1007
|
-
}, {
|
|
1008
|
-
readonly internalType: "address";
|
|
1009
|
-
readonly name: "account";
|
|
1010
|
-
readonly type: "address";
|
|
1011
|
-
}];
|
|
1012
|
-
readonly name: "isWithdrawalsClaimed";
|
|
1013
|
-
readonly outputs: readonly [{
|
|
1014
|
-
readonly internalType: "bool";
|
|
1015
|
-
readonly name: "value";
|
|
1016
|
-
readonly type: "bool";
|
|
1017
|
-
}];
|
|
1018
|
-
readonly stateMutability: "view";
|
|
1019
|
-
readonly type: "function";
|
|
1020
|
-
}, {
|
|
1021
|
-
readonly inputs: readonly [{
|
|
1022
|
-
readonly internalType: "uint64";
|
|
1023
|
-
readonly name: "newVersion";
|
|
1024
|
-
readonly type: "uint64";
|
|
1025
|
-
}, {
|
|
1026
|
-
readonly internalType: "bytes";
|
|
1027
|
-
readonly name: "data";
|
|
1028
|
-
readonly type: "bytes";
|
|
1029
|
-
}];
|
|
1030
|
-
readonly name: "migrate";
|
|
1031
|
-
readonly outputs: readonly [];
|
|
1032
|
-
readonly stateMutability: "nonpayable";
|
|
1033
|
-
readonly type: "function";
|
|
1034
|
-
}, {
|
|
1035
|
-
readonly inputs: readonly [];
|
|
1036
|
-
readonly name: "nextEpochStart";
|
|
1037
|
-
readonly outputs: readonly [{
|
|
1038
|
-
readonly internalType: "uint48";
|
|
1039
|
-
readonly name: "";
|
|
1040
|
-
readonly type: "uint48";
|
|
1041
|
-
}];
|
|
1042
|
-
readonly stateMutability: "view";
|
|
1043
|
-
readonly type: "function";
|
|
1044
|
-
}, {
|
|
1045
|
-
readonly inputs: readonly [{
|
|
1046
|
-
readonly internalType: "uint256";
|
|
1047
|
-
readonly name: "amount";
|
|
1048
|
-
readonly type: "uint256";
|
|
1049
|
-
}, {
|
|
1050
|
-
readonly internalType: "uint48";
|
|
1051
|
-
readonly name: "captureTimestamp";
|
|
1052
|
-
readonly type: "uint48";
|
|
1053
|
-
}];
|
|
1054
|
-
readonly name: "onSlash";
|
|
1055
|
-
readonly outputs: readonly [{
|
|
1056
|
-
readonly internalType: "uint256";
|
|
1057
|
-
readonly name: "slashedAmount";
|
|
1058
|
-
readonly type: "uint256";
|
|
1059
|
-
}];
|
|
1060
|
-
readonly stateMutability: "nonpayable";
|
|
1061
|
-
readonly type: "function";
|
|
1062
|
-
}, {
|
|
1063
|
-
readonly inputs: readonly [];
|
|
1064
|
-
readonly name: "owner";
|
|
1065
|
-
readonly outputs: readonly [{
|
|
1066
|
-
readonly internalType: "address";
|
|
1067
|
-
readonly name: "";
|
|
1068
|
-
readonly type: "address";
|
|
1069
|
-
}];
|
|
1070
|
-
readonly stateMutability: "view";
|
|
1071
|
-
readonly type: "function";
|
|
1072
|
-
}, {
|
|
1073
|
-
readonly inputs: readonly [];
|
|
1074
|
-
readonly name: "previousEpochStart";
|
|
1075
|
-
readonly outputs: readonly [{
|
|
1076
|
-
readonly internalType: "uint48";
|
|
1077
|
-
readonly name: "";
|
|
1078
|
-
readonly type: "uint48";
|
|
1079
|
-
}];
|
|
1080
|
-
readonly stateMutability: "view";
|
|
1081
|
-
readonly type: "function";
|
|
1082
|
-
}, {
|
|
1083
|
-
readonly inputs: readonly [{
|
|
1084
|
-
readonly internalType: "address";
|
|
1085
|
-
readonly name: "claimer";
|
|
1086
|
-
readonly type: "address";
|
|
1087
|
-
}, {
|
|
1088
|
-
readonly internalType: "uint256";
|
|
1089
|
-
readonly name: "shares";
|
|
1090
|
-
readonly type: "uint256";
|
|
1091
|
-
}];
|
|
1092
|
-
readonly name: "redeem";
|
|
1093
|
-
readonly outputs: readonly [{
|
|
1094
|
-
readonly internalType: "uint256";
|
|
1095
|
-
readonly name: "withdrawnAssets";
|
|
1096
|
-
readonly type: "uint256";
|
|
1097
|
-
}, {
|
|
1098
|
-
readonly internalType: "uint256";
|
|
1099
|
-
readonly name: "mintedShares";
|
|
1100
|
-
readonly type: "uint256";
|
|
1101
|
-
}];
|
|
1102
|
-
readonly stateMutability: "nonpayable";
|
|
1103
|
-
readonly type: "function";
|
|
1104
|
-
}, {
|
|
1105
|
-
readonly inputs: readonly [];
|
|
1106
|
-
readonly name: "renounceOwnership";
|
|
1107
|
-
readonly outputs: readonly [];
|
|
1108
|
-
readonly stateMutability: "nonpayable";
|
|
1109
|
-
readonly type: "function";
|
|
1110
|
-
}, {
|
|
1111
|
-
readonly inputs: readonly [{
|
|
1112
|
-
readonly internalType: "bytes32";
|
|
1113
|
-
readonly name: "role";
|
|
1114
|
-
readonly type: "bytes32";
|
|
1115
|
-
}, {
|
|
1116
|
-
readonly internalType: "address";
|
|
1117
|
-
readonly name: "callerConfirmation";
|
|
1118
|
-
readonly type: "address";
|
|
1119
|
-
}];
|
|
1120
|
-
readonly name: "renounceRole";
|
|
1121
|
-
readonly outputs: readonly [];
|
|
1122
|
-
readonly stateMutability: "nonpayable";
|
|
1123
|
-
readonly type: "function";
|
|
1124
|
-
}, {
|
|
1125
|
-
readonly inputs: readonly [{
|
|
1126
|
-
readonly internalType: "bytes32";
|
|
1127
|
-
readonly name: "role";
|
|
1128
|
-
readonly type: "bytes32";
|
|
1129
|
-
}, {
|
|
1130
|
-
readonly internalType: "address";
|
|
1131
|
-
readonly name: "account";
|
|
1132
|
-
readonly type: "address";
|
|
1133
|
-
}];
|
|
1134
|
-
readonly name: "revokeRole";
|
|
1135
|
-
readonly outputs: readonly [];
|
|
1136
|
-
readonly stateMutability: "nonpayable";
|
|
1137
|
-
readonly type: "function";
|
|
1138
|
-
}, {
|
|
1139
|
-
readonly inputs: readonly [{
|
|
1140
|
-
readonly internalType: "address";
|
|
1141
|
-
readonly name: "delegator_";
|
|
1142
|
-
readonly type: "address";
|
|
1143
|
-
}];
|
|
1144
|
-
readonly name: "setDelegator";
|
|
1145
|
-
readonly outputs: readonly [];
|
|
1146
|
-
readonly stateMutability: "nonpayable";
|
|
1147
|
-
readonly type: "function";
|
|
1148
|
-
}, {
|
|
1149
|
-
readonly inputs: readonly [{
|
|
1150
|
-
readonly internalType: "uint256";
|
|
1151
|
-
readonly name: "limit";
|
|
1152
|
-
readonly type: "uint256";
|
|
1153
|
-
}];
|
|
1154
|
-
readonly name: "setDepositLimit";
|
|
1155
|
-
readonly outputs: readonly [];
|
|
1156
|
-
readonly stateMutability: "nonpayable";
|
|
1157
|
-
readonly type: "function";
|
|
1158
|
-
}, {
|
|
1159
|
-
readonly inputs: readonly [{
|
|
1160
|
-
readonly internalType: "bool";
|
|
1161
|
-
readonly name: "status";
|
|
1162
|
-
readonly type: "bool";
|
|
1163
|
-
}];
|
|
1164
|
-
readonly name: "setDepositWhitelist";
|
|
1165
|
-
readonly outputs: readonly [];
|
|
1166
|
-
readonly stateMutability: "nonpayable";
|
|
1167
|
-
readonly type: "function";
|
|
1168
|
-
}, {
|
|
1169
|
-
readonly inputs: readonly [{
|
|
1170
|
-
readonly internalType: "address";
|
|
1171
|
-
readonly name: "account";
|
|
1172
|
-
readonly type: "address";
|
|
1173
|
-
}, {
|
|
1174
|
-
readonly internalType: "bool";
|
|
1175
|
-
readonly name: "status";
|
|
1176
|
-
readonly type: "bool";
|
|
1177
|
-
}];
|
|
1178
|
-
readonly name: "setDepositorWhitelistStatus";
|
|
1179
|
-
readonly outputs: readonly [];
|
|
1180
|
-
readonly stateMutability: "nonpayable";
|
|
1181
|
-
readonly type: "function";
|
|
1182
|
-
}, {
|
|
1183
|
-
readonly inputs: readonly [{
|
|
1184
|
-
readonly internalType: "bool";
|
|
1185
|
-
readonly name: "status";
|
|
1186
|
-
readonly type: "bool";
|
|
1187
|
-
}];
|
|
1188
|
-
readonly name: "setIsDepositLimit";
|
|
1189
|
-
readonly outputs: readonly [];
|
|
1190
|
-
readonly stateMutability: "nonpayable";
|
|
1191
|
-
readonly type: "function";
|
|
1192
|
-
}, {
|
|
1193
|
-
readonly inputs: readonly [{
|
|
1194
|
-
readonly internalType: "address";
|
|
1195
|
-
readonly name: "slasher_";
|
|
1196
|
-
readonly type: "address";
|
|
1197
|
-
}];
|
|
1198
|
-
readonly name: "setSlasher";
|
|
1199
|
-
readonly outputs: readonly [];
|
|
1200
|
-
readonly stateMutability: "nonpayable";
|
|
1201
|
-
readonly type: "function";
|
|
1202
|
-
}, {
|
|
1203
|
-
readonly inputs: readonly [{
|
|
1204
|
-
readonly internalType: "address";
|
|
1205
|
-
readonly name: "account";
|
|
1206
|
-
readonly type: "address";
|
|
1207
|
-
}];
|
|
1208
|
-
readonly name: "slashableBalanceOf";
|
|
1209
|
-
readonly outputs: readonly [{
|
|
1210
|
-
readonly internalType: "uint256";
|
|
1211
|
-
readonly name: "";
|
|
1212
|
-
readonly type: "uint256";
|
|
1213
|
-
}];
|
|
1214
|
-
readonly stateMutability: "view";
|
|
1215
|
-
readonly type: "function";
|
|
1216
|
-
}, {
|
|
1217
|
-
readonly inputs: readonly [];
|
|
1218
|
-
readonly name: "slasher";
|
|
1219
|
-
readonly outputs: readonly [{
|
|
1220
|
-
readonly internalType: "address";
|
|
1221
|
-
readonly name: "";
|
|
1222
|
-
readonly type: "address";
|
|
1223
|
-
}];
|
|
1224
|
-
readonly stateMutability: "view";
|
|
1225
|
-
readonly type: "function";
|
|
1226
|
-
}, {
|
|
1227
|
-
readonly inputs: readonly [{
|
|
1228
|
-
readonly internalType: "address";
|
|
1229
|
-
readonly name: "target";
|
|
1230
|
-
readonly type: "address";
|
|
1231
|
-
}, {
|
|
1232
|
-
readonly internalType: "bytes";
|
|
1233
|
-
readonly name: "data";
|
|
1234
|
-
readonly type: "bytes";
|
|
1235
|
-
}];
|
|
1236
|
-
readonly name: "staticDelegateCall";
|
|
1237
|
-
readonly outputs: readonly [];
|
|
1238
|
-
readonly stateMutability: "nonpayable";
|
|
1239
|
-
readonly type: "function";
|
|
1240
|
-
}, {
|
|
1241
|
-
readonly inputs: readonly [{
|
|
1242
|
-
readonly internalType: "bytes4";
|
|
1243
|
-
readonly name: "interfaceId";
|
|
1244
|
-
readonly type: "bytes4";
|
|
1245
|
-
}];
|
|
1246
|
-
readonly name: "supportsInterface";
|
|
1247
|
-
readonly outputs: readonly [{
|
|
1248
|
-
readonly internalType: "bool";
|
|
1249
|
-
readonly name: "";
|
|
1250
|
-
readonly type: "bool";
|
|
1251
|
-
}];
|
|
1252
|
-
readonly stateMutability: "view";
|
|
1253
|
-
readonly type: "function";
|
|
1254
|
-
}, {
|
|
1255
|
-
readonly inputs: readonly [];
|
|
1256
|
-
readonly name: "totalStake";
|
|
1257
|
-
readonly outputs: readonly [{
|
|
1258
|
-
readonly internalType: "uint256";
|
|
1259
|
-
readonly name: "";
|
|
1260
|
-
readonly type: "uint256";
|
|
1261
|
-
}];
|
|
1262
|
-
readonly stateMutability: "view";
|
|
1263
|
-
readonly type: "function";
|
|
1264
|
-
}, {
|
|
1265
|
-
readonly inputs: readonly [{
|
|
1266
|
-
readonly internalType: "address";
|
|
1267
|
-
readonly name: "newOwner";
|
|
1268
|
-
readonly type: "address";
|
|
1269
|
-
}];
|
|
1270
|
-
readonly name: "transferOwnership";
|
|
1271
|
-
readonly outputs: readonly [];
|
|
1272
|
-
readonly stateMutability: "nonpayable";
|
|
1273
|
-
readonly type: "function";
|
|
1274
|
-
}, {
|
|
1275
|
-
readonly inputs: readonly [];
|
|
1276
|
-
readonly name: "version";
|
|
1277
|
-
readonly outputs: readonly [{
|
|
1278
|
-
readonly internalType: "uint64";
|
|
1279
|
-
readonly name: "";
|
|
1280
|
-
readonly type: "uint64";
|
|
1281
|
-
}];
|
|
1282
|
-
readonly stateMutability: "view";
|
|
1283
|
-
readonly type: "function";
|
|
1284
|
-
}, {
|
|
1285
|
-
readonly inputs: readonly [{
|
|
1286
|
-
readonly internalType: "address";
|
|
1287
|
-
readonly name: "claimer";
|
|
1288
|
-
readonly type: "address";
|
|
1289
|
-
}, {
|
|
1290
|
-
readonly internalType: "uint256";
|
|
1291
|
-
readonly name: "amount";
|
|
1292
|
-
readonly type: "uint256";
|
|
1293
|
-
}];
|
|
1294
|
-
readonly name: "withdraw";
|
|
1295
|
-
readonly outputs: readonly [{
|
|
1296
|
-
readonly internalType: "uint256";
|
|
1297
|
-
readonly name: "burnedShares";
|
|
1298
|
-
readonly type: "uint256";
|
|
1299
|
-
}, {
|
|
1300
|
-
readonly internalType: "uint256";
|
|
1301
|
-
readonly name: "mintedShares";
|
|
1302
|
-
readonly type: "uint256";
|
|
1303
|
-
}];
|
|
1304
|
-
readonly stateMutability: "nonpayable";
|
|
1305
|
-
readonly type: "function";
|
|
1306
|
-
}, {
|
|
1307
|
-
readonly inputs: readonly [{
|
|
1308
|
-
readonly internalType: "uint256";
|
|
1309
|
-
readonly name: "epoch";
|
|
1310
|
-
readonly type: "uint256";
|
|
1311
|
-
}];
|
|
1312
|
-
readonly name: "withdrawalShares";
|
|
1313
|
-
readonly outputs: readonly [{
|
|
1314
|
-
readonly internalType: "uint256";
|
|
1315
|
-
readonly name: "amount";
|
|
1316
|
-
readonly type: "uint256";
|
|
1317
|
-
}];
|
|
1318
|
-
readonly stateMutability: "view";
|
|
1319
|
-
readonly type: "function";
|
|
1320
|
-
}, {
|
|
1321
|
-
readonly inputs: readonly [{
|
|
1322
|
-
readonly internalType: "uint256";
|
|
1323
|
-
readonly name: "epoch";
|
|
1324
|
-
readonly type: "uint256";
|
|
1325
|
-
}, {
|
|
1326
|
-
readonly internalType: "address";
|
|
1327
|
-
readonly name: "account";
|
|
1328
|
-
readonly type: "address";
|
|
1329
|
-
}];
|
|
1330
|
-
readonly name: "withdrawalSharesOf";
|
|
1331
|
-
readonly outputs: readonly [{
|
|
1332
|
-
readonly internalType: "uint256";
|
|
1333
|
-
readonly name: "amount";
|
|
1334
|
-
readonly type: "uint256";
|
|
1335
|
-
}];
|
|
1336
|
-
readonly stateMutability: "view";
|
|
1337
|
-
readonly type: "function";
|
|
1338
|
-
}, {
|
|
1339
|
-
readonly inputs: readonly [{
|
|
1340
|
-
readonly internalType: "uint256";
|
|
1341
|
-
readonly name: "epoch";
|
|
1342
|
-
readonly type: "uint256";
|
|
1343
|
-
}];
|
|
1344
|
-
readonly name: "withdrawals";
|
|
1345
|
-
readonly outputs: readonly [{
|
|
1346
|
-
readonly internalType: "uint256";
|
|
1347
|
-
readonly name: "amount";
|
|
1348
|
-
readonly type: "uint256";
|
|
1349
|
-
}];
|
|
1350
|
-
readonly stateMutability: "view";
|
|
1351
|
-
readonly type: "function";
|
|
1352
|
-
}, {
|
|
1353
|
-
readonly inputs: readonly [{
|
|
1354
|
-
readonly internalType: "uint256";
|
|
1355
|
-
readonly name: "epoch";
|
|
1356
|
-
readonly type: "uint256";
|
|
1357
|
-
}, {
|
|
1358
|
-
readonly internalType: "address";
|
|
1359
|
-
readonly name: "account";
|
|
1360
|
-
readonly type: "address";
|
|
1361
|
-
}];
|
|
1362
|
-
readonly name: "withdrawalsOf";
|
|
1363
|
-
readonly outputs: readonly [{
|
|
1364
|
-
readonly internalType: "uint256";
|
|
1365
|
-
readonly name: "";
|
|
1366
|
-
readonly type: "uint256";
|
|
1367
|
-
}];
|
|
1368
|
-
readonly stateMutability: "view";
|
|
1369
|
-
readonly type: "function";
|
|
1370
|
-
}];
|
|
1371
|
-
/**
|
|
1372
|
-
* Type-safe ABI for Vault_json
|
|
1373
|
-
*/
|
|
1374
|
-
export type Vault_jsonAbi = typeof Vault_jsonAbi;
|
|
1375
|
-
/**
|
|
1376
|
-
* Contract instance type for Vault_json
|
|
1377
|
-
*/
|
|
1378
|
-
export type Vault_jsonContract = any;
|
|
1379
|
-
/**
|
|
1380
|
-
* Vault_json Contract Class
|
|
1381
|
-
*
|
|
1382
|
-
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1383
|
-
*
|
|
1384
|
-
* @example
|
|
1385
|
-
* ```typescript
|
|
1386
|
-
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1387
|
-
* import { mainnet } from 'viem/chains';
|
|
1388
|
-
* import { Vault_json } from 'Vault_json';
|
|
1389
|
-
*
|
|
1390
|
-
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1391
|
-
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1392
|
-
*
|
|
1393
|
-
* const contract = new Vault_json('0x...', { publicClient, walletClient });
|
|
1394
|
-
*
|
|
1395
|
-
* // Read functions
|
|
1396
|
-
* const result = await contract.balanceOf('0x...');
|
|
1397
|
-
*
|
|
1398
|
-
* // Write functions
|
|
1399
|
-
* const hash = await contract.transfer('0x...', 1000n);
|
|
1400
|
-
*
|
|
1401
|
-
* // Simulate transactions (dry-run)
|
|
1402
|
-
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1403
|
-
* console.log('Gas estimate:', simulation.request.gas);
|
|
1404
|
-
*
|
|
1405
|
-
* // Watch events
|
|
1406
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
1407
|
-
* console.log('Transfer event:', event);
|
|
1408
|
-
* });
|
|
1409
|
-
* ```
|
|
1410
|
-
*/
|
|
1411
|
-
export declare class Vault_json {
|
|
1412
|
-
private contract;
|
|
1413
|
-
private contractAddress;
|
|
1414
|
-
private publicClient;
|
|
1415
|
-
constructor(address: Address, clients: {
|
|
1416
|
-
publicClient: PublicClient;
|
|
1417
|
-
walletClient?: WalletClient;
|
|
1418
|
-
});
|
|
1419
|
-
/**
|
|
1420
|
-
* Get the contract address
|
|
1421
|
-
*/
|
|
1422
|
-
get address(): Address;
|
|
1423
|
-
/**
|
|
1424
|
-
* Get the underlying viem contract instance
|
|
1425
|
-
*/
|
|
1426
|
-
getContract(): Vault_jsonContract;
|
|
1427
|
-
/**
|
|
1428
|
-
* DEFAULT_ADMIN_ROLE
|
|
1429
|
-
* view
|
|
1430
|
-
*/
|
|
1431
|
-
DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`>;
|
|
1432
|
-
/**
|
|
1433
|
-
* DELEGATOR_FACTORY
|
|
1434
|
-
* view
|
|
1435
|
-
*/
|
|
1436
|
-
DELEGATOR_FACTORY(): Promise<`0x${string}`>;
|
|
1437
|
-
/**
|
|
1438
|
-
* DEPOSITOR_WHITELIST_ROLE
|
|
1439
|
-
* view
|
|
1440
|
-
*/
|
|
1441
|
-
DEPOSITOR_WHITELIST_ROLE(): Promise<`0x${string}`>;
|
|
1442
|
-
/**
|
|
1443
|
-
* DEPOSIT_LIMIT_SET_ROLE
|
|
1444
|
-
* view
|
|
1445
|
-
*/
|
|
1446
|
-
DEPOSIT_LIMIT_SET_ROLE(): Promise<`0x${string}`>;
|
|
1447
|
-
/**
|
|
1448
|
-
* DEPOSIT_WHITELIST_SET_ROLE
|
|
1449
|
-
* view
|
|
1450
|
-
*/
|
|
1451
|
-
DEPOSIT_WHITELIST_SET_ROLE(): Promise<`0x${string}`>;
|
|
1452
|
-
/**
|
|
1453
|
-
* FACTORY
|
|
1454
|
-
* view
|
|
1455
|
-
*/
|
|
1456
|
-
FACTORY(): Promise<`0x${string}`>;
|
|
1457
|
-
/**
|
|
1458
|
-
* IS_DEPOSIT_LIMIT_SET_ROLE
|
|
1459
|
-
* view
|
|
1460
|
-
*/
|
|
1461
|
-
IS_DEPOSIT_LIMIT_SET_ROLE(): Promise<`0x${string}`>;
|
|
1462
|
-
/**
|
|
1463
|
-
* SLASHER_FACTORY
|
|
1464
|
-
* view
|
|
1465
|
-
*/
|
|
1466
|
-
SLASHER_FACTORY(): Promise<`0x${string}`>;
|
|
1467
|
-
/**
|
|
1468
|
-
* activeBalanceOf
|
|
1469
|
-
* view
|
|
1470
|
-
*/
|
|
1471
|
-
activeBalanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1472
|
-
/**
|
|
1473
|
-
* activeBalanceOfAt
|
|
1474
|
-
* view
|
|
1475
|
-
*/
|
|
1476
|
-
activeBalanceOfAt(account: `0x${string}`, timestamp: bigint, hints: `0x${string}`): Promise<bigint>;
|
|
1477
|
-
/**
|
|
1478
|
-
* activeShares
|
|
1479
|
-
* view
|
|
1480
|
-
*/
|
|
1481
|
-
activeShares(): Promise<bigint>;
|
|
1482
|
-
/**
|
|
1483
|
-
* activeSharesAt
|
|
1484
|
-
* view
|
|
1485
|
-
*/
|
|
1486
|
-
activeSharesAt(timestamp: bigint, hint: `0x${string}`): Promise<bigint>;
|
|
1487
|
-
/**
|
|
1488
|
-
* activeSharesOf
|
|
1489
|
-
* view
|
|
1490
|
-
*/
|
|
1491
|
-
activeSharesOf(account: `0x${string}`): Promise<bigint>;
|
|
1492
|
-
/**
|
|
1493
|
-
* activeSharesOfAt
|
|
1494
|
-
* view
|
|
1495
|
-
*/
|
|
1496
|
-
activeSharesOfAt(account: `0x${string}`, timestamp: bigint, hint: `0x${string}`): Promise<bigint>;
|
|
1497
|
-
/**
|
|
1498
|
-
* activeStake
|
|
1499
|
-
* view
|
|
1500
|
-
*/
|
|
1501
|
-
activeStake(): Promise<bigint>;
|
|
1502
|
-
/**
|
|
1503
|
-
* activeStakeAt
|
|
1504
|
-
* view
|
|
1505
|
-
*/
|
|
1506
|
-
activeStakeAt(timestamp: bigint, hint: `0x${string}`): Promise<bigint>;
|
|
1507
|
-
/**
|
|
1508
|
-
* burner
|
|
1509
|
-
* view
|
|
1510
|
-
*/
|
|
1511
|
-
burner(): Promise<`0x${string}`>;
|
|
1512
|
-
/**
|
|
1513
|
-
* collateral
|
|
1514
|
-
* view
|
|
1515
|
-
*/
|
|
1516
|
-
collateral(): Promise<`0x${string}`>;
|
|
1517
|
-
/**
|
|
1518
|
-
* currentEpoch
|
|
1519
|
-
* view
|
|
1520
|
-
*/
|
|
1521
|
-
currentEpoch(): Promise<bigint>;
|
|
1522
|
-
/**
|
|
1523
|
-
* currentEpochStart
|
|
1524
|
-
* view
|
|
1525
|
-
*/
|
|
1526
|
-
currentEpochStart(): Promise<bigint>;
|
|
1527
|
-
/**
|
|
1528
|
-
* delegator
|
|
1529
|
-
* view
|
|
1530
|
-
*/
|
|
1531
|
-
delegator(): Promise<`0x${string}`>;
|
|
1532
|
-
/**
|
|
1533
|
-
* depositLimit
|
|
1534
|
-
* view
|
|
1535
|
-
*/
|
|
1536
|
-
depositLimit(): Promise<bigint>;
|
|
1537
|
-
/**
|
|
1538
|
-
* depositWhitelist
|
|
1539
|
-
* view
|
|
1540
|
-
*/
|
|
1541
|
-
depositWhitelist(): Promise<boolean>;
|
|
1542
|
-
/**
|
|
1543
|
-
* epochAt
|
|
1544
|
-
* view
|
|
1545
|
-
*/
|
|
1546
|
-
epochAt(timestamp: bigint): Promise<bigint>;
|
|
1547
|
-
/**
|
|
1548
|
-
* epochDuration
|
|
1549
|
-
* view
|
|
1550
|
-
*/
|
|
1551
|
-
epochDuration(): Promise<bigint>;
|
|
1552
|
-
/**
|
|
1553
|
-
* epochDurationInit
|
|
1554
|
-
* view
|
|
1555
|
-
*/
|
|
1556
|
-
epochDurationInit(): Promise<bigint>;
|
|
1557
|
-
/**
|
|
1558
|
-
* getRoleAdmin
|
|
1559
|
-
* view
|
|
1560
|
-
*/
|
|
1561
|
-
getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`>;
|
|
1562
|
-
/**
|
|
1563
|
-
* hasRole
|
|
1564
|
-
* view
|
|
1565
|
-
*/
|
|
1566
|
-
hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean>;
|
|
1567
|
-
/**
|
|
1568
|
-
* isDelegatorInitialized
|
|
1569
|
-
* view
|
|
1570
|
-
*/
|
|
1571
|
-
isDelegatorInitialized(): Promise<boolean>;
|
|
1572
|
-
/**
|
|
1573
|
-
* isDepositLimit
|
|
1574
|
-
* view
|
|
1575
|
-
*/
|
|
1576
|
-
isDepositLimit(): Promise<boolean>;
|
|
1577
|
-
/**
|
|
1578
|
-
* isDepositorWhitelisted
|
|
1579
|
-
* view
|
|
1580
|
-
*/
|
|
1581
|
-
isDepositorWhitelisted(account: `0x${string}`): Promise<boolean>;
|
|
1582
|
-
/**
|
|
1583
|
-
* isInitialized
|
|
1584
|
-
* view
|
|
1585
|
-
*/
|
|
1586
|
-
isInitialized(): Promise<boolean>;
|
|
1587
|
-
/**
|
|
1588
|
-
* isSlasherInitialized
|
|
1589
|
-
* view
|
|
1590
|
-
*/
|
|
1591
|
-
isSlasherInitialized(): Promise<boolean>;
|
|
1592
|
-
/**
|
|
1593
|
-
* isWithdrawalsClaimed
|
|
1594
|
-
* view
|
|
1595
|
-
*/
|
|
1596
|
-
isWithdrawalsClaimed(epoch: bigint, account: `0x${string}`): Promise<boolean>;
|
|
1597
|
-
/**
|
|
1598
|
-
* nextEpochStart
|
|
1599
|
-
* view
|
|
1600
|
-
*/
|
|
1601
|
-
nextEpochStart(): Promise<bigint>;
|
|
1602
|
-
/**
|
|
1603
|
-
* owner
|
|
1604
|
-
* view
|
|
1605
|
-
*/
|
|
1606
|
-
owner(): Promise<`0x${string}`>;
|
|
1607
|
-
/**
|
|
1608
|
-
* previousEpochStart
|
|
1609
|
-
* view
|
|
1610
|
-
*/
|
|
1611
|
-
previousEpochStart(): Promise<bigint>;
|
|
1612
|
-
/**
|
|
1613
|
-
* slashableBalanceOf
|
|
1614
|
-
* view
|
|
1615
|
-
*/
|
|
1616
|
-
slashableBalanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1617
|
-
/**
|
|
1618
|
-
* slasher
|
|
1619
|
-
* view
|
|
1620
|
-
*/
|
|
1621
|
-
slasher(): Promise<`0x${string}`>;
|
|
1622
|
-
/**
|
|
1623
|
-
* supportsInterface
|
|
1624
|
-
* view
|
|
1625
|
-
*/
|
|
1626
|
-
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
1627
|
-
/**
|
|
1628
|
-
* totalStake
|
|
1629
|
-
* view
|
|
1630
|
-
*/
|
|
1631
|
-
totalStake(): Promise<bigint>;
|
|
1632
|
-
/**
|
|
1633
|
-
* version
|
|
1634
|
-
* view
|
|
1635
|
-
*/
|
|
1636
|
-
version(): Promise<bigint>;
|
|
1637
|
-
/**
|
|
1638
|
-
* withdrawalShares
|
|
1639
|
-
* view
|
|
1640
|
-
*/
|
|
1641
|
-
withdrawalShares(epoch: bigint): Promise<bigint>;
|
|
1642
|
-
/**
|
|
1643
|
-
* withdrawalSharesOf
|
|
1644
|
-
* view
|
|
1645
|
-
*/
|
|
1646
|
-
withdrawalSharesOf(epoch: bigint, account: `0x${string}`): Promise<bigint>;
|
|
1647
|
-
/**
|
|
1648
|
-
* withdrawals
|
|
1649
|
-
* view
|
|
1650
|
-
*/
|
|
1651
|
-
withdrawals(epoch: bigint): Promise<bigint>;
|
|
1652
|
-
/**
|
|
1653
|
-
* withdrawalsOf
|
|
1654
|
-
* view
|
|
1655
|
-
*/
|
|
1656
|
-
withdrawalsOf(epoch: bigint, account: `0x${string}`): Promise<bigint>;
|
|
1657
|
-
/**
|
|
1658
|
-
* claim
|
|
1659
|
-
* nonpayable
|
|
1660
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1661
|
-
*/
|
|
1662
|
-
claim(recipient: `0x${string}`, epoch: bigint, options?: {
|
|
1663
|
-
accessList?: import('viem').AccessList;
|
|
1664
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1665
|
-
chain?: import('viem').Chain | null;
|
|
1666
|
-
dataSuffix?: `0x${string}`;
|
|
1667
|
-
gas?: bigint;
|
|
1668
|
-
gasPrice?: bigint;
|
|
1669
|
-
maxFeePerGas?: bigint;
|
|
1670
|
-
maxPriorityFeePerGas?: bigint;
|
|
1671
|
-
nonce?: number;
|
|
1672
|
-
value?: bigint;
|
|
1673
|
-
}): Promise<`0x${string}`>;
|
|
1674
|
-
/**
|
|
1675
|
-
* claimBatch
|
|
1676
|
-
* nonpayable
|
|
1677
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1678
|
-
*/
|
|
1679
|
-
claimBatch(recipient: `0x${string}`, epochs: bigint[], options?: {
|
|
1680
|
-
accessList?: import('viem').AccessList;
|
|
1681
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1682
|
-
chain?: import('viem').Chain | null;
|
|
1683
|
-
dataSuffix?: `0x${string}`;
|
|
1684
|
-
gas?: bigint;
|
|
1685
|
-
gasPrice?: bigint;
|
|
1686
|
-
maxFeePerGas?: bigint;
|
|
1687
|
-
maxPriorityFeePerGas?: bigint;
|
|
1688
|
-
nonce?: number;
|
|
1689
|
-
value?: bigint;
|
|
1690
|
-
}): Promise<`0x${string}`>;
|
|
1691
|
-
/**
|
|
1692
|
-
* deposit
|
|
1693
|
-
* nonpayable
|
|
1694
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1695
|
-
*/
|
|
1696
|
-
deposit(onBehalfOf: `0x${string}`, amount: bigint, options?: {
|
|
1697
|
-
accessList?: import('viem').AccessList;
|
|
1698
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1699
|
-
chain?: import('viem').Chain | null;
|
|
1700
|
-
dataSuffix?: `0x${string}`;
|
|
1701
|
-
gas?: bigint;
|
|
1702
|
-
gasPrice?: bigint;
|
|
1703
|
-
maxFeePerGas?: bigint;
|
|
1704
|
-
maxPriorityFeePerGas?: bigint;
|
|
1705
|
-
nonce?: number;
|
|
1706
|
-
value?: bigint;
|
|
1707
|
-
}): Promise<`0x${string}`>;
|
|
1708
|
-
/**
|
|
1709
|
-
* grantRole
|
|
1710
|
-
* nonpayable
|
|
1711
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1712
|
-
*/
|
|
1713
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1714
|
-
accessList?: import('viem').AccessList;
|
|
1715
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1716
|
-
chain?: import('viem').Chain | null;
|
|
1717
|
-
dataSuffix?: `0x${string}`;
|
|
1718
|
-
gas?: bigint;
|
|
1719
|
-
gasPrice?: bigint;
|
|
1720
|
-
maxFeePerGas?: bigint;
|
|
1721
|
-
maxPriorityFeePerGas?: bigint;
|
|
1722
|
-
nonce?: number;
|
|
1723
|
-
value?: bigint;
|
|
1724
|
-
}): Promise<`0x${string}`>;
|
|
1725
|
-
/**
|
|
1726
|
-
* initialize
|
|
1727
|
-
* nonpayable
|
|
1728
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1729
|
-
*/
|
|
1730
|
-
initialize(initialVersion: bigint, owner_: `0x${string}`, data: `0x${string}`, options?: {
|
|
1731
|
-
accessList?: import('viem').AccessList;
|
|
1732
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1733
|
-
chain?: import('viem').Chain | null;
|
|
1734
|
-
dataSuffix?: `0x${string}`;
|
|
1735
|
-
gas?: bigint;
|
|
1736
|
-
gasPrice?: bigint;
|
|
1737
|
-
maxFeePerGas?: bigint;
|
|
1738
|
-
maxPriorityFeePerGas?: bigint;
|
|
1739
|
-
nonce?: number;
|
|
1740
|
-
value?: bigint;
|
|
1741
|
-
}): Promise<`0x${string}`>;
|
|
1742
|
-
/**
|
|
1743
|
-
* migrate
|
|
1744
|
-
* nonpayable
|
|
1745
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1746
|
-
*/
|
|
1747
|
-
migrate(newVersion: bigint, data: `0x${string}`, options?: {
|
|
1748
|
-
accessList?: import('viem').AccessList;
|
|
1749
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1750
|
-
chain?: import('viem').Chain | null;
|
|
1751
|
-
dataSuffix?: `0x${string}`;
|
|
1752
|
-
gas?: bigint;
|
|
1753
|
-
gasPrice?: bigint;
|
|
1754
|
-
maxFeePerGas?: bigint;
|
|
1755
|
-
maxPriorityFeePerGas?: bigint;
|
|
1756
|
-
nonce?: number;
|
|
1757
|
-
value?: bigint;
|
|
1758
|
-
}): Promise<`0x${string}`>;
|
|
1759
|
-
/**
|
|
1760
|
-
* onSlash
|
|
1761
|
-
* nonpayable
|
|
1762
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1763
|
-
*/
|
|
1764
|
-
onSlash(amount: bigint, captureTimestamp: bigint, options?: {
|
|
1765
|
-
accessList?: import('viem').AccessList;
|
|
1766
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1767
|
-
chain?: import('viem').Chain | null;
|
|
1768
|
-
dataSuffix?: `0x${string}`;
|
|
1769
|
-
gas?: bigint;
|
|
1770
|
-
gasPrice?: bigint;
|
|
1771
|
-
maxFeePerGas?: bigint;
|
|
1772
|
-
maxPriorityFeePerGas?: bigint;
|
|
1773
|
-
nonce?: number;
|
|
1774
|
-
value?: bigint;
|
|
1775
|
-
}): Promise<`0x${string}`>;
|
|
1776
|
-
/**
|
|
1777
|
-
* redeem
|
|
1778
|
-
* nonpayable
|
|
1779
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1780
|
-
*/
|
|
1781
|
-
redeem(claimer: `0x${string}`, shares: bigint, options?: {
|
|
1782
|
-
accessList?: import('viem').AccessList;
|
|
1783
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1784
|
-
chain?: import('viem').Chain | null;
|
|
1785
|
-
dataSuffix?: `0x${string}`;
|
|
1786
|
-
gas?: bigint;
|
|
1787
|
-
gasPrice?: bigint;
|
|
1788
|
-
maxFeePerGas?: bigint;
|
|
1789
|
-
maxPriorityFeePerGas?: bigint;
|
|
1790
|
-
nonce?: number;
|
|
1791
|
-
value?: bigint;
|
|
1792
|
-
}): Promise<`0x${string}`>;
|
|
1793
|
-
/**
|
|
1794
|
-
* renounceOwnership
|
|
1795
|
-
* nonpayable
|
|
1796
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1797
|
-
*/
|
|
1798
|
-
renounceOwnership(options?: {
|
|
1799
|
-
accessList?: import('viem').AccessList;
|
|
1800
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1801
|
-
chain?: import('viem').Chain | null;
|
|
1802
|
-
dataSuffix?: `0x${string}`;
|
|
1803
|
-
gas?: bigint;
|
|
1804
|
-
gasPrice?: bigint;
|
|
1805
|
-
maxFeePerGas?: bigint;
|
|
1806
|
-
maxPriorityFeePerGas?: bigint;
|
|
1807
|
-
nonce?: number;
|
|
1808
|
-
value?: bigint;
|
|
1809
|
-
}): Promise<`0x${string}`>;
|
|
1810
|
-
/**
|
|
1811
|
-
* renounceRole
|
|
1812
|
-
* nonpayable
|
|
1813
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1814
|
-
*/
|
|
1815
|
-
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
1816
|
-
accessList?: import('viem').AccessList;
|
|
1817
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1818
|
-
chain?: import('viem').Chain | null;
|
|
1819
|
-
dataSuffix?: `0x${string}`;
|
|
1820
|
-
gas?: bigint;
|
|
1821
|
-
gasPrice?: bigint;
|
|
1822
|
-
maxFeePerGas?: bigint;
|
|
1823
|
-
maxPriorityFeePerGas?: bigint;
|
|
1824
|
-
nonce?: number;
|
|
1825
|
-
value?: bigint;
|
|
1826
|
-
}): Promise<`0x${string}`>;
|
|
1827
|
-
/**
|
|
1828
|
-
* revokeRole
|
|
1829
|
-
* nonpayable
|
|
1830
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1831
|
-
*/
|
|
1832
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
1833
|
-
accessList?: import('viem').AccessList;
|
|
1834
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1835
|
-
chain?: import('viem').Chain | null;
|
|
1836
|
-
dataSuffix?: `0x${string}`;
|
|
1837
|
-
gas?: bigint;
|
|
1838
|
-
gasPrice?: bigint;
|
|
1839
|
-
maxFeePerGas?: bigint;
|
|
1840
|
-
maxPriorityFeePerGas?: bigint;
|
|
1841
|
-
nonce?: number;
|
|
1842
|
-
value?: bigint;
|
|
1843
|
-
}): Promise<`0x${string}`>;
|
|
1844
|
-
/**
|
|
1845
|
-
* setDelegator
|
|
1846
|
-
* nonpayable
|
|
1847
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1848
|
-
*/
|
|
1849
|
-
setDelegator(delegator_: `0x${string}`, options?: {
|
|
1850
|
-
accessList?: import('viem').AccessList;
|
|
1851
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1852
|
-
chain?: import('viem').Chain | null;
|
|
1853
|
-
dataSuffix?: `0x${string}`;
|
|
1854
|
-
gas?: bigint;
|
|
1855
|
-
gasPrice?: bigint;
|
|
1856
|
-
maxFeePerGas?: bigint;
|
|
1857
|
-
maxPriorityFeePerGas?: bigint;
|
|
1858
|
-
nonce?: number;
|
|
1859
|
-
value?: bigint;
|
|
1860
|
-
}): Promise<`0x${string}`>;
|
|
1861
|
-
/**
|
|
1862
|
-
* setDepositLimit
|
|
1863
|
-
* nonpayable
|
|
1864
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1865
|
-
*/
|
|
1866
|
-
setDepositLimit(limit: bigint, options?: {
|
|
1867
|
-
accessList?: import('viem').AccessList;
|
|
1868
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1869
|
-
chain?: import('viem').Chain | null;
|
|
1870
|
-
dataSuffix?: `0x${string}`;
|
|
1871
|
-
gas?: bigint;
|
|
1872
|
-
gasPrice?: bigint;
|
|
1873
|
-
maxFeePerGas?: bigint;
|
|
1874
|
-
maxPriorityFeePerGas?: bigint;
|
|
1875
|
-
nonce?: number;
|
|
1876
|
-
value?: bigint;
|
|
1877
|
-
}): Promise<`0x${string}`>;
|
|
1878
|
-
/**
|
|
1879
|
-
* setDepositWhitelist
|
|
1880
|
-
* nonpayable
|
|
1881
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1882
|
-
*/
|
|
1883
|
-
setDepositWhitelist(status: boolean, options?: {
|
|
1884
|
-
accessList?: import('viem').AccessList;
|
|
1885
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1886
|
-
chain?: import('viem').Chain | null;
|
|
1887
|
-
dataSuffix?: `0x${string}`;
|
|
1888
|
-
gas?: bigint;
|
|
1889
|
-
gasPrice?: bigint;
|
|
1890
|
-
maxFeePerGas?: bigint;
|
|
1891
|
-
maxPriorityFeePerGas?: bigint;
|
|
1892
|
-
nonce?: number;
|
|
1893
|
-
value?: bigint;
|
|
1894
|
-
}): Promise<`0x${string}`>;
|
|
1895
|
-
/**
|
|
1896
|
-
* setDepositorWhitelistStatus
|
|
1897
|
-
* nonpayable
|
|
1898
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1899
|
-
*/
|
|
1900
|
-
setDepositorWhitelistStatus(account: `0x${string}`, status: boolean, options?: {
|
|
1901
|
-
accessList?: import('viem').AccessList;
|
|
1902
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1903
|
-
chain?: import('viem').Chain | null;
|
|
1904
|
-
dataSuffix?: `0x${string}`;
|
|
1905
|
-
gas?: bigint;
|
|
1906
|
-
gasPrice?: bigint;
|
|
1907
|
-
maxFeePerGas?: bigint;
|
|
1908
|
-
maxPriorityFeePerGas?: bigint;
|
|
1909
|
-
nonce?: number;
|
|
1910
|
-
value?: bigint;
|
|
1911
|
-
}): Promise<`0x${string}`>;
|
|
1912
|
-
/**
|
|
1913
|
-
* setIsDepositLimit
|
|
1914
|
-
* nonpayable
|
|
1915
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1916
|
-
*/
|
|
1917
|
-
setIsDepositLimit(status: boolean, options?: {
|
|
1918
|
-
accessList?: import('viem').AccessList;
|
|
1919
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1920
|
-
chain?: import('viem').Chain | null;
|
|
1921
|
-
dataSuffix?: `0x${string}`;
|
|
1922
|
-
gas?: bigint;
|
|
1923
|
-
gasPrice?: bigint;
|
|
1924
|
-
maxFeePerGas?: bigint;
|
|
1925
|
-
maxPriorityFeePerGas?: bigint;
|
|
1926
|
-
nonce?: number;
|
|
1927
|
-
value?: bigint;
|
|
1928
|
-
}): Promise<`0x${string}`>;
|
|
1929
|
-
/**
|
|
1930
|
-
* setSlasher
|
|
1931
|
-
* nonpayable
|
|
1932
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1933
|
-
*/
|
|
1934
|
-
setSlasher(slasher_: `0x${string}`, options?: {
|
|
1935
|
-
accessList?: import('viem').AccessList;
|
|
1936
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1937
|
-
chain?: import('viem').Chain | null;
|
|
1938
|
-
dataSuffix?: `0x${string}`;
|
|
1939
|
-
gas?: bigint;
|
|
1940
|
-
gasPrice?: bigint;
|
|
1941
|
-
maxFeePerGas?: bigint;
|
|
1942
|
-
maxPriorityFeePerGas?: bigint;
|
|
1943
|
-
nonce?: number;
|
|
1944
|
-
value?: bigint;
|
|
1945
|
-
}): Promise<`0x${string}`>;
|
|
1946
|
-
/**
|
|
1947
|
-
* staticDelegateCall
|
|
1948
|
-
* nonpayable
|
|
1949
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1950
|
-
*/
|
|
1951
|
-
staticDelegateCall(target: `0x${string}`, data: `0x${string}`, options?: {
|
|
1952
|
-
accessList?: import('viem').AccessList;
|
|
1953
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1954
|
-
chain?: import('viem').Chain | null;
|
|
1955
|
-
dataSuffix?: `0x${string}`;
|
|
1956
|
-
gas?: bigint;
|
|
1957
|
-
gasPrice?: bigint;
|
|
1958
|
-
maxFeePerGas?: bigint;
|
|
1959
|
-
maxPriorityFeePerGas?: bigint;
|
|
1960
|
-
nonce?: number;
|
|
1961
|
-
value?: bigint;
|
|
1962
|
-
}): Promise<`0x${string}`>;
|
|
1963
|
-
/**
|
|
1964
|
-
* transferOwnership
|
|
1965
|
-
* nonpayable
|
|
1966
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1967
|
-
*/
|
|
1968
|
-
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1969
|
-
accessList?: import('viem').AccessList;
|
|
1970
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1971
|
-
chain?: import('viem').Chain | null;
|
|
1972
|
-
dataSuffix?: `0x${string}`;
|
|
1973
|
-
gas?: bigint;
|
|
1974
|
-
gasPrice?: bigint;
|
|
1975
|
-
maxFeePerGas?: bigint;
|
|
1976
|
-
maxPriorityFeePerGas?: bigint;
|
|
1977
|
-
nonce?: number;
|
|
1978
|
-
value?: bigint;
|
|
1979
|
-
}): Promise<`0x${string}`>;
|
|
1980
|
-
/**
|
|
1981
|
-
* withdraw
|
|
1982
|
-
* nonpayable
|
|
1983
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1984
|
-
*/
|
|
1985
|
-
withdraw(claimer: `0x${string}`, amount: bigint, options?: {
|
|
1986
|
-
accessList?: import('viem').AccessList;
|
|
1987
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1988
|
-
chain?: import('viem').Chain | null;
|
|
1989
|
-
dataSuffix?: `0x${string}`;
|
|
1990
|
-
gas?: bigint;
|
|
1991
|
-
gasPrice?: bigint;
|
|
1992
|
-
maxFeePerGas?: bigint;
|
|
1993
|
-
maxPriorityFeePerGas?: bigint;
|
|
1994
|
-
nonce?: number;
|
|
1995
|
-
value?: bigint;
|
|
1996
|
-
}): Promise<`0x${string}`>;
|
|
1997
|
-
/**
|
|
1998
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
1999
|
-
*
|
|
2000
|
-
* @example
|
|
2001
|
-
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2002
|
-
* console.log('Gas estimate:', result.request.gas);
|
|
2003
|
-
* console.log('Would succeed:', result.result);
|
|
2004
|
-
*/
|
|
2005
|
-
get simulate(): {
|
|
2006
|
-
/**
|
|
2007
|
-
* Simulate claim
|
|
2008
|
-
* Returns gas estimate and result without sending transaction
|
|
2009
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2010
|
-
*/
|
|
2011
|
-
claim(recipient: `0x${string}`, epoch: bigint, options?: {
|
|
2012
|
-
accessList?: import("viem").AccessList;
|
|
2013
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2014
|
-
chain?: import("viem").Chain | null;
|
|
2015
|
-
dataSuffix?: `0x${string}`;
|
|
2016
|
-
gas?: bigint;
|
|
2017
|
-
gasPrice?: bigint;
|
|
2018
|
-
maxFeePerGas?: bigint;
|
|
2019
|
-
maxPriorityFeePerGas?: bigint;
|
|
2020
|
-
nonce?: number;
|
|
2021
|
-
value?: bigint;
|
|
2022
|
-
}): Promise<bigint>;
|
|
2023
|
-
/**
|
|
2024
|
-
* Simulate claimBatch
|
|
2025
|
-
* Returns gas estimate and result without sending transaction
|
|
2026
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2027
|
-
*/
|
|
2028
|
-
claimBatch(recipient: `0x${string}`, epochs: bigint[], options?: {
|
|
2029
|
-
accessList?: import("viem").AccessList;
|
|
2030
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2031
|
-
chain?: import("viem").Chain | null;
|
|
2032
|
-
dataSuffix?: `0x${string}`;
|
|
2033
|
-
gas?: bigint;
|
|
2034
|
-
gasPrice?: bigint;
|
|
2035
|
-
maxFeePerGas?: bigint;
|
|
2036
|
-
maxPriorityFeePerGas?: bigint;
|
|
2037
|
-
nonce?: number;
|
|
2038
|
-
value?: bigint;
|
|
2039
|
-
}): Promise<bigint>;
|
|
2040
|
-
/**
|
|
2041
|
-
* Simulate deposit
|
|
2042
|
-
* Returns gas estimate and result without sending transaction
|
|
2043
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2044
|
-
*/
|
|
2045
|
-
deposit(onBehalfOf: `0x${string}`, amount: bigint, options?: {
|
|
2046
|
-
accessList?: import("viem").AccessList;
|
|
2047
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2048
|
-
chain?: import("viem").Chain | null;
|
|
2049
|
-
dataSuffix?: `0x${string}`;
|
|
2050
|
-
gas?: bigint;
|
|
2051
|
-
gasPrice?: bigint;
|
|
2052
|
-
maxFeePerGas?: bigint;
|
|
2053
|
-
maxPriorityFeePerGas?: bigint;
|
|
2054
|
-
nonce?: number;
|
|
2055
|
-
value?: bigint;
|
|
2056
|
-
}): Promise<[bigint, bigint]>;
|
|
2057
|
-
/**
|
|
2058
|
-
* Simulate grantRole
|
|
2059
|
-
* Returns gas estimate and result without sending transaction
|
|
2060
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2061
|
-
*/
|
|
2062
|
-
grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
2063
|
-
accessList?: import("viem").AccessList;
|
|
2064
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2065
|
-
chain?: import("viem").Chain | null;
|
|
2066
|
-
dataSuffix?: `0x${string}`;
|
|
2067
|
-
gas?: bigint;
|
|
2068
|
-
gasPrice?: bigint;
|
|
2069
|
-
maxFeePerGas?: bigint;
|
|
2070
|
-
maxPriorityFeePerGas?: bigint;
|
|
2071
|
-
nonce?: number;
|
|
2072
|
-
value?: bigint;
|
|
2073
|
-
}): Promise<void>;
|
|
2074
|
-
/**
|
|
2075
|
-
* Simulate initialize
|
|
2076
|
-
* Returns gas estimate and result without sending transaction
|
|
2077
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2078
|
-
*/
|
|
2079
|
-
initialize(initialVersion: bigint, owner_: `0x${string}`, data: `0x${string}`, options?: {
|
|
2080
|
-
accessList?: import("viem").AccessList;
|
|
2081
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2082
|
-
chain?: import("viem").Chain | null;
|
|
2083
|
-
dataSuffix?: `0x${string}`;
|
|
2084
|
-
gas?: bigint;
|
|
2085
|
-
gasPrice?: bigint;
|
|
2086
|
-
maxFeePerGas?: bigint;
|
|
2087
|
-
maxPriorityFeePerGas?: bigint;
|
|
2088
|
-
nonce?: number;
|
|
2089
|
-
value?: bigint;
|
|
2090
|
-
}): Promise<void>;
|
|
2091
|
-
/**
|
|
2092
|
-
* Simulate migrate
|
|
2093
|
-
* Returns gas estimate and result without sending transaction
|
|
2094
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2095
|
-
*/
|
|
2096
|
-
migrate(newVersion: bigint, data: `0x${string}`, options?: {
|
|
2097
|
-
accessList?: import("viem").AccessList;
|
|
2098
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2099
|
-
chain?: import("viem").Chain | null;
|
|
2100
|
-
dataSuffix?: `0x${string}`;
|
|
2101
|
-
gas?: bigint;
|
|
2102
|
-
gasPrice?: bigint;
|
|
2103
|
-
maxFeePerGas?: bigint;
|
|
2104
|
-
maxPriorityFeePerGas?: bigint;
|
|
2105
|
-
nonce?: number;
|
|
2106
|
-
value?: bigint;
|
|
2107
|
-
}): Promise<void>;
|
|
2108
|
-
/**
|
|
2109
|
-
* Simulate onSlash
|
|
2110
|
-
* Returns gas estimate and result without sending transaction
|
|
2111
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2112
|
-
*/
|
|
2113
|
-
onSlash(amount: bigint, captureTimestamp: bigint, options?: {
|
|
2114
|
-
accessList?: import("viem").AccessList;
|
|
2115
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2116
|
-
chain?: import("viem").Chain | null;
|
|
2117
|
-
dataSuffix?: `0x${string}`;
|
|
2118
|
-
gas?: bigint;
|
|
2119
|
-
gasPrice?: bigint;
|
|
2120
|
-
maxFeePerGas?: bigint;
|
|
2121
|
-
maxPriorityFeePerGas?: bigint;
|
|
2122
|
-
nonce?: number;
|
|
2123
|
-
value?: bigint;
|
|
2124
|
-
}): Promise<bigint>;
|
|
2125
|
-
/**
|
|
2126
|
-
* Simulate redeem
|
|
2127
|
-
* Returns gas estimate and result without sending transaction
|
|
2128
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2129
|
-
*/
|
|
2130
|
-
redeem(claimer: `0x${string}`, shares: bigint, options?: {
|
|
2131
|
-
accessList?: import("viem").AccessList;
|
|
2132
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2133
|
-
chain?: import("viem").Chain | null;
|
|
2134
|
-
dataSuffix?: `0x${string}`;
|
|
2135
|
-
gas?: bigint;
|
|
2136
|
-
gasPrice?: bigint;
|
|
2137
|
-
maxFeePerGas?: bigint;
|
|
2138
|
-
maxPriorityFeePerGas?: bigint;
|
|
2139
|
-
nonce?: number;
|
|
2140
|
-
value?: bigint;
|
|
2141
|
-
}): Promise<[bigint, bigint]>;
|
|
2142
|
-
/**
|
|
2143
|
-
* Simulate renounceOwnership
|
|
2144
|
-
* Returns gas estimate and result without sending transaction
|
|
2145
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2146
|
-
*/
|
|
2147
|
-
renounceOwnership(options?: {
|
|
2148
|
-
accessList?: import("viem").AccessList;
|
|
2149
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2150
|
-
chain?: import("viem").Chain | null;
|
|
2151
|
-
dataSuffix?: `0x${string}`;
|
|
2152
|
-
gas?: bigint;
|
|
2153
|
-
gasPrice?: bigint;
|
|
2154
|
-
maxFeePerGas?: bigint;
|
|
2155
|
-
maxPriorityFeePerGas?: bigint;
|
|
2156
|
-
nonce?: number;
|
|
2157
|
-
value?: bigint;
|
|
2158
|
-
}): Promise<void>;
|
|
2159
|
-
/**
|
|
2160
|
-
* Simulate renounceRole
|
|
2161
|
-
* Returns gas estimate and result without sending transaction
|
|
2162
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2163
|
-
*/
|
|
2164
|
-
renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
|
|
2165
|
-
accessList?: import("viem").AccessList;
|
|
2166
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2167
|
-
chain?: import("viem").Chain | null;
|
|
2168
|
-
dataSuffix?: `0x${string}`;
|
|
2169
|
-
gas?: bigint;
|
|
2170
|
-
gasPrice?: bigint;
|
|
2171
|
-
maxFeePerGas?: bigint;
|
|
2172
|
-
maxPriorityFeePerGas?: bigint;
|
|
2173
|
-
nonce?: number;
|
|
2174
|
-
value?: bigint;
|
|
2175
|
-
}): Promise<void>;
|
|
2176
|
-
/**
|
|
2177
|
-
* Simulate revokeRole
|
|
2178
|
-
* Returns gas estimate and result without sending transaction
|
|
2179
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2180
|
-
*/
|
|
2181
|
-
revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
|
|
2182
|
-
accessList?: import("viem").AccessList;
|
|
2183
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2184
|
-
chain?: import("viem").Chain | null;
|
|
2185
|
-
dataSuffix?: `0x${string}`;
|
|
2186
|
-
gas?: bigint;
|
|
2187
|
-
gasPrice?: bigint;
|
|
2188
|
-
maxFeePerGas?: bigint;
|
|
2189
|
-
maxPriorityFeePerGas?: bigint;
|
|
2190
|
-
nonce?: number;
|
|
2191
|
-
value?: bigint;
|
|
2192
|
-
}): Promise<void>;
|
|
2193
|
-
/**
|
|
2194
|
-
* Simulate setDelegator
|
|
2195
|
-
* Returns gas estimate and result without sending transaction
|
|
2196
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2197
|
-
*/
|
|
2198
|
-
setDelegator(delegator_: `0x${string}`, options?: {
|
|
2199
|
-
accessList?: import("viem").AccessList;
|
|
2200
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2201
|
-
chain?: import("viem").Chain | null;
|
|
2202
|
-
dataSuffix?: `0x${string}`;
|
|
2203
|
-
gas?: bigint;
|
|
2204
|
-
gasPrice?: bigint;
|
|
2205
|
-
maxFeePerGas?: bigint;
|
|
2206
|
-
maxPriorityFeePerGas?: bigint;
|
|
2207
|
-
nonce?: number;
|
|
2208
|
-
value?: bigint;
|
|
2209
|
-
}): Promise<void>;
|
|
2210
|
-
/**
|
|
2211
|
-
* Simulate setDepositLimit
|
|
2212
|
-
* Returns gas estimate and result without sending transaction
|
|
2213
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2214
|
-
*/
|
|
2215
|
-
setDepositLimit(limit: bigint, options?: {
|
|
2216
|
-
accessList?: import("viem").AccessList;
|
|
2217
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2218
|
-
chain?: import("viem").Chain | null;
|
|
2219
|
-
dataSuffix?: `0x${string}`;
|
|
2220
|
-
gas?: bigint;
|
|
2221
|
-
gasPrice?: bigint;
|
|
2222
|
-
maxFeePerGas?: bigint;
|
|
2223
|
-
maxPriorityFeePerGas?: bigint;
|
|
2224
|
-
nonce?: number;
|
|
2225
|
-
value?: bigint;
|
|
2226
|
-
}): Promise<void>;
|
|
2227
|
-
/**
|
|
2228
|
-
* Simulate setDepositWhitelist
|
|
2229
|
-
* Returns gas estimate and result without sending transaction
|
|
2230
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2231
|
-
*/
|
|
2232
|
-
setDepositWhitelist(status: boolean, options?: {
|
|
2233
|
-
accessList?: import("viem").AccessList;
|
|
2234
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2235
|
-
chain?: import("viem").Chain | null;
|
|
2236
|
-
dataSuffix?: `0x${string}`;
|
|
2237
|
-
gas?: bigint;
|
|
2238
|
-
gasPrice?: bigint;
|
|
2239
|
-
maxFeePerGas?: bigint;
|
|
2240
|
-
maxPriorityFeePerGas?: bigint;
|
|
2241
|
-
nonce?: number;
|
|
2242
|
-
value?: bigint;
|
|
2243
|
-
}): Promise<void>;
|
|
2244
|
-
/**
|
|
2245
|
-
* Simulate setDepositorWhitelistStatus
|
|
2246
|
-
* Returns gas estimate and result without sending transaction
|
|
2247
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2248
|
-
*/
|
|
2249
|
-
setDepositorWhitelistStatus(account: `0x${string}`, status: boolean, options?: {
|
|
2250
|
-
accessList?: import("viem").AccessList;
|
|
2251
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2252
|
-
chain?: import("viem").Chain | null;
|
|
2253
|
-
dataSuffix?: `0x${string}`;
|
|
2254
|
-
gas?: bigint;
|
|
2255
|
-
gasPrice?: bigint;
|
|
2256
|
-
maxFeePerGas?: bigint;
|
|
2257
|
-
maxPriorityFeePerGas?: bigint;
|
|
2258
|
-
nonce?: number;
|
|
2259
|
-
value?: bigint;
|
|
2260
|
-
}): Promise<void>;
|
|
2261
|
-
/**
|
|
2262
|
-
* Simulate setIsDepositLimit
|
|
2263
|
-
* Returns gas estimate and result without sending transaction
|
|
2264
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2265
|
-
*/
|
|
2266
|
-
setIsDepositLimit(status: boolean, options?: {
|
|
2267
|
-
accessList?: import("viem").AccessList;
|
|
2268
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2269
|
-
chain?: import("viem").Chain | null;
|
|
2270
|
-
dataSuffix?: `0x${string}`;
|
|
2271
|
-
gas?: bigint;
|
|
2272
|
-
gasPrice?: bigint;
|
|
2273
|
-
maxFeePerGas?: bigint;
|
|
2274
|
-
maxPriorityFeePerGas?: bigint;
|
|
2275
|
-
nonce?: number;
|
|
2276
|
-
value?: bigint;
|
|
2277
|
-
}): Promise<void>;
|
|
2278
|
-
/**
|
|
2279
|
-
* Simulate setSlasher
|
|
2280
|
-
* Returns gas estimate and result without sending transaction
|
|
2281
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2282
|
-
*/
|
|
2283
|
-
setSlasher(slasher_: `0x${string}`, options?: {
|
|
2284
|
-
accessList?: import("viem").AccessList;
|
|
2285
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2286
|
-
chain?: import("viem").Chain | null;
|
|
2287
|
-
dataSuffix?: `0x${string}`;
|
|
2288
|
-
gas?: bigint;
|
|
2289
|
-
gasPrice?: bigint;
|
|
2290
|
-
maxFeePerGas?: bigint;
|
|
2291
|
-
maxPriorityFeePerGas?: bigint;
|
|
2292
|
-
nonce?: number;
|
|
2293
|
-
value?: bigint;
|
|
2294
|
-
}): Promise<void>;
|
|
2295
|
-
/**
|
|
2296
|
-
* Simulate staticDelegateCall
|
|
2297
|
-
* Returns gas estimate and result without sending transaction
|
|
2298
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2299
|
-
*/
|
|
2300
|
-
staticDelegateCall(target: `0x${string}`, data: `0x${string}`, options?: {
|
|
2301
|
-
accessList?: import("viem").AccessList;
|
|
2302
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2303
|
-
chain?: import("viem").Chain | null;
|
|
2304
|
-
dataSuffix?: `0x${string}`;
|
|
2305
|
-
gas?: bigint;
|
|
2306
|
-
gasPrice?: bigint;
|
|
2307
|
-
maxFeePerGas?: bigint;
|
|
2308
|
-
maxPriorityFeePerGas?: bigint;
|
|
2309
|
-
nonce?: number;
|
|
2310
|
-
value?: bigint;
|
|
2311
|
-
}): Promise<void>;
|
|
105
|
+
readonly name: "unlock";
|
|
106
|
+
readonly outputs: readonly [];
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly stateMutability: "payable";
|
|
111
|
+
readonly type: "receive";
|
|
112
|
+
}];
|
|
113
|
+
/**
|
|
114
|
+
* Type-safe ABI for Vault_json
|
|
115
|
+
*/
|
|
116
|
+
export type Vault_jsonAbi = typeof Vault_jsonAbi;
|
|
117
|
+
/**
|
|
118
|
+
* Contract instance type for Vault_json
|
|
119
|
+
*/
|
|
120
|
+
export type Vault_jsonContract = any;
|
|
121
|
+
/**
|
|
122
|
+
* Vault_json Contract Class
|
|
123
|
+
*
|
|
124
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```typescript
|
|
128
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
129
|
+
* import { mainnet } from 'viem/chains';
|
|
130
|
+
* import { Vault_json } from 'Vault_json';
|
|
131
|
+
*
|
|
132
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
133
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
134
|
+
*
|
|
135
|
+
* const contract = new Vault_json('0x...', { publicClient, walletClient });
|
|
136
|
+
*
|
|
137
|
+
* // Read functions
|
|
138
|
+
* const result = await contract.balanceOf('0x...');
|
|
139
|
+
*
|
|
140
|
+
* // Write functions
|
|
141
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
142
|
+
*
|
|
143
|
+
* // Simulate transactions (dry-run)
|
|
144
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
145
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
146
|
+
*
|
|
147
|
+
* // Watch events
|
|
148
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
149
|
+
* console.log('Transfer event:', event);
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
export declare class Vault_json {
|
|
154
|
+
private contract;
|
|
155
|
+
private contractAddress;
|
|
156
|
+
private publicClient;
|
|
157
|
+
constructor(address: Address, clients: {
|
|
158
|
+
publicClient: PublicClient;
|
|
159
|
+
walletClient?: WalletClient;
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* Get the contract address
|
|
163
|
+
*/
|
|
164
|
+
get address(): Address;
|
|
165
|
+
/**
|
|
166
|
+
* Get the underlying viem contract instance
|
|
167
|
+
*/
|
|
168
|
+
getContract(): Vault_jsonContract;
|
|
169
|
+
/**
|
|
170
|
+
* SEAL
|
|
171
|
+
* view
|
|
172
|
+
*/
|
|
173
|
+
SEAL(): Promise<`0x${string}`>;
|
|
174
|
+
/**
|
|
175
|
+
* balance
|
|
176
|
+
* view
|
|
177
|
+
*/
|
|
178
|
+
balance(): Promise<bigint>;
|
|
179
|
+
/**
|
|
180
|
+
* found
|
|
181
|
+
* view
|
|
182
|
+
*/
|
|
183
|
+
found(): Promise<boolean>;
|
|
184
|
+
/**
|
|
185
|
+
* rules
|
|
186
|
+
* pure
|
|
187
|
+
*/
|
|
188
|
+
rules(): Promise<string>;
|
|
189
|
+
/**
|
|
190
|
+
* state
|
|
191
|
+
* view
|
|
192
|
+
*/
|
|
193
|
+
state(): Promise<string>;
|
|
194
|
+
/**
|
|
195
|
+
* unlock
|
|
196
|
+
* nonpayable
|
|
197
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
198
|
+
*/
|
|
199
|
+
unlock(secret: `0x${string}`, to: `0x${string}`, options?: {
|
|
200
|
+
accessList?: import('viem').AccessList;
|
|
201
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
202
|
+
chain?: import('viem').Chain | null;
|
|
203
|
+
dataSuffix?: `0x${string}`;
|
|
204
|
+
gas?: bigint;
|
|
205
|
+
gasPrice?: bigint;
|
|
206
|
+
maxFeePerGas?: bigint;
|
|
207
|
+
maxPriorityFeePerGas?: bigint;
|
|
208
|
+
nonce?: number;
|
|
209
|
+
value?: bigint;
|
|
210
|
+
}): Promise<`0x${string}`>;
|
|
211
|
+
/**
|
|
212
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
216
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
217
|
+
* console.log('Would succeed:', result.result);
|
|
218
|
+
*/
|
|
219
|
+
get simulate(): {
|
|
2312
220
|
/**
|
|
2313
|
-
* Simulate
|
|
221
|
+
* Simulate unlock
|
|
2314
222
|
* Returns gas estimate and result without sending transaction
|
|
2315
223
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2316
224
|
*/
|
|
2317
|
-
|
|
225
|
+
unlock(secret: `0x${string}`, to: `0x${string}`, options?: {
|
|
2318
226
|
accessList?: import("viem").AccessList;
|
|
2319
227
|
authorizationList?: import("viem").AuthorizationList;
|
|
2320
228
|
chain?: import("viem").Chain | null;
|
|
@@ -2326,23 +234,6 @@ export declare class Vault_json {
|
|
|
2326
234
|
nonce?: number;
|
|
2327
235
|
value?: bigint;
|
|
2328
236
|
}): Promise<void>;
|
|
2329
|
-
/**
|
|
2330
|
-
* Simulate withdraw
|
|
2331
|
-
* Returns gas estimate and result without sending transaction
|
|
2332
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2333
|
-
*/
|
|
2334
|
-
withdraw(claimer: `0x${string}`, amount: bigint, options?: {
|
|
2335
|
-
accessList?: import("viem").AccessList;
|
|
2336
|
-
authorizationList?: import("viem").AuthorizationList;
|
|
2337
|
-
chain?: import("viem").Chain | null;
|
|
2338
|
-
dataSuffix?: `0x${string}`;
|
|
2339
|
-
gas?: bigint;
|
|
2340
|
-
gasPrice?: bigint;
|
|
2341
|
-
maxFeePerGas?: bigint;
|
|
2342
|
-
maxPriorityFeePerGas?: bigint;
|
|
2343
|
-
nonce?: number;
|
|
2344
|
-
value?: bigint;
|
|
2345
|
-
}): Promise<[bigint, bigint]>;
|
|
2346
237
|
};
|
|
2347
238
|
/**
|
|
2348
239
|
* Watch contract events
|
|
@@ -2358,204 +249,28 @@ export declare class Vault_json {
|
|
|
2358
249
|
*/
|
|
2359
250
|
get watch(): {
|
|
2360
251
|
/**
|
|
2361
|
-
* Watch
|
|
2362
|
-
* @param callback Function to call when event is emitted
|
|
2363
|
-
* @param filter Optional filter for indexed parameters
|
|
2364
|
-
* @returns Unwatch function to stop listening
|
|
2365
|
-
*/
|
|
2366
|
-
Claim: (callback: (event: {
|
|
2367
|
-
claimer: `0x${string}`;
|
|
2368
|
-
recipient: `0x${string}`;
|
|
2369
|
-
epoch: bigint;
|
|
2370
|
-
amount: bigint;
|
|
2371
|
-
}) => void, filter?: {
|
|
2372
|
-
claimer: `0x${string}`;
|
|
2373
|
-
recipient: `0x${string}`;
|
|
2374
|
-
}) => () => void;
|
|
2375
|
-
/**
|
|
2376
|
-
* Watch ClaimBatch events
|
|
2377
|
-
* @param callback Function to call when event is emitted
|
|
2378
|
-
* @param filter Optional filter for indexed parameters
|
|
2379
|
-
* @returns Unwatch function to stop listening
|
|
2380
|
-
*/
|
|
2381
|
-
ClaimBatch: (callback: (event: {
|
|
2382
|
-
claimer: `0x${string}`;
|
|
2383
|
-
recipient: `0x${string}`;
|
|
2384
|
-
epochs: bigint[];
|
|
2385
|
-
amount: bigint;
|
|
2386
|
-
}) => void, filter?: {
|
|
2387
|
-
claimer: `0x${string}`;
|
|
2388
|
-
recipient: `0x${string}`;
|
|
2389
|
-
}) => () => void;
|
|
2390
|
-
/**
|
|
2391
|
-
* Watch Deposit events
|
|
2392
|
-
* @param callback Function to call when event is emitted
|
|
2393
|
-
* @param filter Optional filter for indexed parameters
|
|
2394
|
-
* @returns Unwatch function to stop listening
|
|
2395
|
-
*/
|
|
2396
|
-
Deposit: (callback: (event: {
|
|
2397
|
-
depositor: `0x${string}`;
|
|
2398
|
-
onBehalfOf: `0x${string}`;
|
|
2399
|
-
amount: bigint;
|
|
2400
|
-
shares: bigint;
|
|
2401
|
-
}) => void, filter?: {
|
|
2402
|
-
depositor: `0x${string}`;
|
|
2403
|
-
onBehalfOf: `0x${string}`;
|
|
2404
|
-
}) => () => void;
|
|
2405
|
-
/**
|
|
2406
|
-
* Watch Initialized events
|
|
2407
|
-
* @param callback Function to call when event is emitted
|
|
2408
|
-
* @param filter Optional filter for indexed parameters
|
|
2409
|
-
* @returns Unwatch function to stop listening
|
|
2410
|
-
*/
|
|
2411
|
-
Initialized: (callback: (event: {
|
|
2412
|
-
version: bigint;
|
|
2413
|
-
}) => void) => () => void;
|
|
2414
|
-
/**
|
|
2415
|
-
* Watch OnSlash events
|
|
252
|
+
* Watch Found events
|
|
2416
253
|
* @param callback Function to call when event is emitted
|
|
2417
254
|
* @param filter Optional filter for indexed parameters
|
|
2418
255
|
* @returns Unwatch function to stop listening
|
|
2419
256
|
*/
|
|
2420
|
-
|
|
257
|
+
Found: (callback: (event: {
|
|
258
|
+
to: `0x${string}`;
|
|
2421
259
|
amount: bigint;
|
|
2422
|
-
captureTimestamp: bigint;
|
|
2423
|
-
slashedAmount: bigint;
|
|
2424
|
-
}) => void) => () => void;
|
|
2425
|
-
/**
|
|
2426
|
-
* Watch OwnershipTransferred events
|
|
2427
|
-
* @param callback Function to call when event is emitted
|
|
2428
|
-
* @param filter Optional filter for indexed parameters
|
|
2429
|
-
* @returns Unwatch function to stop listening
|
|
2430
|
-
*/
|
|
2431
|
-
OwnershipTransferred: (callback: (event: {
|
|
2432
|
-
previousOwner: `0x${string}`;
|
|
2433
|
-
newOwner: `0x${string}`;
|
|
2434
|
-
}) => void, filter?: {
|
|
2435
|
-
previousOwner: `0x${string}`;
|
|
2436
|
-
newOwner: `0x${string}`;
|
|
2437
|
-
}) => () => void;
|
|
2438
|
-
/**
|
|
2439
|
-
* Watch RoleAdminChanged events
|
|
2440
|
-
* @param callback Function to call when event is emitted
|
|
2441
|
-
* @param filter Optional filter for indexed parameters
|
|
2442
|
-
* @returns Unwatch function to stop listening
|
|
2443
|
-
*/
|
|
2444
|
-
RoleAdminChanged: (callback: (event: {
|
|
2445
|
-
role: `0x${string}`;
|
|
2446
|
-
previousAdminRole: `0x${string}`;
|
|
2447
|
-
newAdminRole: `0x${string}`;
|
|
2448
|
-
}) => void, filter?: {
|
|
2449
|
-
role: `0x${string}`;
|
|
2450
|
-
previousAdminRole: `0x${string}`;
|
|
2451
|
-
newAdminRole: `0x${string}`;
|
|
2452
|
-
}) => () => void;
|
|
2453
|
-
/**
|
|
2454
|
-
* Watch RoleGranted events
|
|
2455
|
-
* @param callback Function to call when event is emitted
|
|
2456
|
-
* @param filter Optional filter for indexed parameters
|
|
2457
|
-
* @returns Unwatch function to stop listening
|
|
2458
|
-
*/
|
|
2459
|
-
RoleGranted: (callback: (event: {
|
|
2460
|
-
role: `0x${string}`;
|
|
2461
|
-
account: `0x${string}`;
|
|
2462
|
-
sender: `0x${string}`;
|
|
2463
|
-
}) => void, filter?: {
|
|
2464
|
-
role: `0x${string}`;
|
|
2465
|
-
account: `0x${string}`;
|
|
2466
|
-
sender: `0x${string}`;
|
|
2467
|
-
}) => () => void;
|
|
2468
|
-
/**
|
|
2469
|
-
* Watch RoleRevoked events
|
|
2470
|
-
* @param callback Function to call when event is emitted
|
|
2471
|
-
* @param filter Optional filter for indexed parameters
|
|
2472
|
-
* @returns Unwatch function to stop listening
|
|
2473
|
-
*/
|
|
2474
|
-
RoleRevoked: (callback: (event: {
|
|
2475
|
-
role: `0x${string}`;
|
|
2476
|
-
account: `0x${string}`;
|
|
2477
|
-
sender: `0x${string}`;
|
|
2478
|
-
}) => void, filter?: {
|
|
2479
|
-
role: `0x${string}`;
|
|
2480
|
-
account: `0x${string}`;
|
|
2481
|
-
sender: `0x${string}`;
|
|
2482
|
-
}) => () => void;
|
|
2483
|
-
/**
|
|
2484
|
-
* Watch SetDelegator events
|
|
2485
|
-
* @param callback Function to call when event is emitted
|
|
2486
|
-
* @param filter Optional filter for indexed parameters
|
|
2487
|
-
* @returns Unwatch function to stop listening
|
|
2488
|
-
*/
|
|
2489
|
-
SetDelegator: (callback: (event: {
|
|
2490
|
-
delegator: `0x${string}`;
|
|
2491
|
-
}) => void, filter?: {
|
|
2492
|
-
delegator: `0x${string}`;
|
|
2493
|
-
}) => () => void;
|
|
2494
|
-
/**
|
|
2495
|
-
* Watch SetDepositLimit events
|
|
2496
|
-
* @param callback Function to call when event is emitted
|
|
2497
|
-
* @param filter Optional filter for indexed parameters
|
|
2498
|
-
* @returns Unwatch function to stop listening
|
|
2499
|
-
*/
|
|
2500
|
-
SetDepositLimit: (callback: (event: {
|
|
2501
|
-
limit: bigint;
|
|
2502
|
-
}) => void) => () => void;
|
|
2503
|
-
/**
|
|
2504
|
-
* Watch SetDepositWhitelist events
|
|
2505
|
-
* @param callback Function to call when event is emitted
|
|
2506
|
-
* @param filter Optional filter for indexed parameters
|
|
2507
|
-
* @returns Unwatch function to stop listening
|
|
2508
|
-
*/
|
|
2509
|
-
SetDepositWhitelist: (callback: (event: {
|
|
2510
|
-
status: boolean;
|
|
2511
|
-
}) => void) => () => void;
|
|
2512
|
-
/**
|
|
2513
|
-
* Watch SetDepositorWhitelistStatus events
|
|
2514
|
-
* @param callback Function to call when event is emitted
|
|
2515
|
-
* @param filter Optional filter for indexed parameters
|
|
2516
|
-
* @returns Unwatch function to stop listening
|
|
2517
|
-
*/
|
|
2518
|
-
SetDepositorWhitelistStatus: (callback: (event: {
|
|
2519
|
-
account: `0x${string}`;
|
|
2520
|
-
status: boolean;
|
|
2521
|
-
}) => void, filter?: {
|
|
2522
|
-
account: `0x${string}`;
|
|
2523
|
-
}) => () => void;
|
|
2524
|
-
/**
|
|
2525
|
-
* Watch SetIsDepositLimit events
|
|
2526
|
-
* @param callback Function to call when event is emitted
|
|
2527
|
-
* @param filter Optional filter for indexed parameters
|
|
2528
|
-
* @returns Unwatch function to stop listening
|
|
2529
|
-
*/
|
|
2530
|
-
SetIsDepositLimit: (callback: (event: {
|
|
2531
|
-
status: boolean;
|
|
2532
|
-
}) => void) => () => void;
|
|
2533
|
-
/**
|
|
2534
|
-
* Watch SetSlasher events
|
|
2535
|
-
* @param callback Function to call when event is emitted
|
|
2536
|
-
* @param filter Optional filter for indexed parameters
|
|
2537
|
-
* @returns Unwatch function to stop listening
|
|
2538
|
-
*/
|
|
2539
|
-
SetSlasher: (callback: (event: {
|
|
2540
|
-
slasher: `0x${string}`;
|
|
2541
260
|
}) => void, filter?: {
|
|
2542
|
-
|
|
261
|
+
to: `0x${string}`;
|
|
2543
262
|
}) => () => void;
|
|
2544
263
|
/**
|
|
2545
|
-
* Watch
|
|
264
|
+
* Watch Funded events
|
|
2546
265
|
* @param callback Function to call when event is emitted
|
|
2547
266
|
* @param filter Optional filter for indexed parameters
|
|
2548
267
|
* @returns Unwatch function to stop listening
|
|
2549
268
|
*/
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
claimer: `0x${string}`;
|
|
269
|
+
Funded: (callback: (event: {
|
|
270
|
+
from: `0x${string}`;
|
|
2553
271
|
amount: bigint;
|
|
2554
|
-
burnedShares: bigint;
|
|
2555
|
-
mintedShares: bigint;
|
|
2556
272
|
}) => void, filter?: {
|
|
2557
|
-
|
|
2558
|
-
claimer: `0x${string}`;
|
|
273
|
+
from: `0x${string}`;
|
|
2559
274
|
}) => () => void;
|
|
2560
275
|
};
|
|
2561
276
|
}
|