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