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