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