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