@gitmyabi/steaketh 1.0.1
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/VaultV2_json.d.ts +4402 -0
- package/contracts/VaultV2_json.js +4774 -0
- package/contracts/VaultV2_json.ts +5828 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,4774 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VaultV2_json = exports.VaultV2_jsonAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* VaultV2_json ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.VaultV2_jsonAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "_owner",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "_asset",
|
|
21
|
+
"type": "address"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "nonpayable",
|
|
25
|
+
"type": "constructor"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "Abdicated",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "AbsoluteCapExceeded",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "AbsoluteCapNotDecreasing",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [],
|
|
44
|
+
"name": "AbsoluteCapNotIncreasing",
|
|
45
|
+
"type": "error"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "AutomaticallyTimelocked",
|
|
50
|
+
"type": "error"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputs": [],
|
|
54
|
+
"name": "CannotReceiveAssets",
|
|
55
|
+
"type": "error"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputs": [],
|
|
59
|
+
"name": "CannotReceiveShares",
|
|
60
|
+
"type": "error"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [],
|
|
64
|
+
"name": "CannotSendAssets",
|
|
65
|
+
"type": "error"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [],
|
|
69
|
+
"name": "CannotSendShares",
|
|
70
|
+
"type": "error"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"inputs": [],
|
|
74
|
+
"name": "CastOverflow",
|
|
75
|
+
"type": "error"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "DataAlreadyPending",
|
|
80
|
+
"type": "error"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [],
|
|
84
|
+
"name": "DataNotTimelocked",
|
|
85
|
+
"type": "error"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"inputs": [],
|
|
89
|
+
"name": "FeeInvariantBroken",
|
|
90
|
+
"type": "error"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"inputs": [],
|
|
94
|
+
"name": "FeeTooHigh",
|
|
95
|
+
"type": "error"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"inputs": [],
|
|
99
|
+
"name": "InvalidSigner",
|
|
100
|
+
"type": "error"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"inputs": [],
|
|
104
|
+
"name": "MaxRateTooHigh",
|
|
105
|
+
"type": "error"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"name": "NoCode",
|
|
110
|
+
"type": "error"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"inputs": [],
|
|
114
|
+
"name": "NotAdapter",
|
|
115
|
+
"type": "error"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"inputs": [],
|
|
119
|
+
"name": "NotInAdapterRegistry",
|
|
120
|
+
"type": "error"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [],
|
|
124
|
+
"name": "PenaltyTooHigh",
|
|
125
|
+
"type": "error"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputs": [],
|
|
129
|
+
"name": "PermitDeadlineExpired",
|
|
130
|
+
"type": "error"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "RelativeCapAboveOne",
|
|
135
|
+
"type": "error"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "RelativeCapExceeded",
|
|
140
|
+
"type": "error"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "RelativeCapNotDecreasing",
|
|
145
|
+
"type": "error"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"inputs": [],
|
|
149
|
+
"name": "RelativeCapNotIncreasing",
|
|
150
|
+
"type": "error"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [],
|
|
154
|
+
"name": "TimelockNotDecreasing",
|
|
155
|
+
"type": "error"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [],
|
|
159
|
+
"name": "TimelockNotExpired",
|
|
160
|
+
"type": "error"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"inputs": [],
|
|
164
|
+
"name": "TimelockNotIncreasing",
|
|
165
|
+
"type": "error"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [],
|
|
169
|
+
"name": "TransferFromReturnedFalse",
|
|
170
|
+
"type": "error"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"inputs": [],
|
|
174
|
+
"name": "TransferFromReverted",
|
|
175
|
+
"type": "error"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"inputs": [],
|
|
179
|
+
"name": "TransferReturnedFalse",
|
|
180
|
+
"type": "error"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [],
|
|
184
|
+
"name": "TransferReverted",
|
|
185
|
+
"type": "error"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"inputs": [],
|
|
189
|
+
"name": "Unauthorized",
|
|
190
|
+
"type": "error"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"inputs": [],
|
|
194
|
+
"name": "ZeroAbsoluteCap",
|
|
195
|
+
"type": "error"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"inputs": [],
|
|
199
|
+
"name": "ZeroAddress",
|
|
200
|
+
"type": "error"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [],
|
|
204
|
+
"name": "ZeroAllocation",
|
|
205
|
+
"type": "error"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"anonymous": false,
|
|
209
|
+
"inputs": [
|
|
210
|
+
{
|
|
211
|
+
"indexed": true,
|
|
212
|
+
"internalType": "bytes4",
|
|
213
|
+
"name": "selector",
|
|
214
|
+
"type": "bytes4"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"name": "Abdicate",
|
|
218
|
+
"type": "event"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"anonymous": false,
|
|
222
|
+
"inputs": [
|
|
223
|
+
{
|
|
224
|
+
"indexed": true,
|
|
225
|
+
"internalType": "bytes4",
|
|
226
|
+
"name": "selector",
|
|
227
|
+
"type": "bytes4"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"indexed": false,
|
|
231
|
+
"internalType": "bytes",
|
|
232
|
+
"name": "data",
|
|
233
|
+
"type": "bytes"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"name": "Accept",
|
|
237
|
+
"type": "event"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"anonymous": false,
|
|
241
|
+
"inputs": [
|
|
242
|
+
{
|
|
243
|
+
"indexed": false,
|
|
244
|
+
"internalType": "uint256",
|
|
245
|
+
"name": "previousTotalAssets",
|
|
246
|
+
"type": "uint256"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"indexed": false,
|
|
250
|
+
"internalType": "uint256",
|
|
251
|
+
"name": "newTotalAssets",
|
|
252
|
+
"type": "uint256"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"indexed": false,
|
|
256
|
+
"internalType": "uint256",
|
|
257
|
+
"name": "performanceFeeShares",
|
|
258
|
+
"type": "uint256"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"indexed": false,
|
|
262
|
+
"internalType": "uint256",
|
|
263
|
+
"name": "managementFeeShares",
|
|
264
|
+
"type": "uint256"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"name": "AccrueInterest",
|
|
268
|
+
"type": "event"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"anonymous": false,
|
|
272
|
+
"inputs": [
|
|
273
|
+
{
|
|
274
|
+
"indexed": true,
|
|
275
|
+
"internalType": "address",
|
|
276
|
+
"name": "account",
|
|
277
|
+
"type": "address"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"name": "AddAdapter",
|
|
281
|
+
"type": "event"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"anonymous": false,
|
|
285
|
+
"inputs": [
|
|
286
|
+
{
|
|
287
|
+
"indexed": true,
|
|
288
|
+
"internalType": "address",
|
|
289
|
+
"name": "sender",
|
|
290
|
+
"type": "address"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"indexed": true,
|
|
294
|
+
"internalType": "address",
|
|
295
|
+
"name": "adapter",
|
|
296
|
+
"type": "address"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"indexed": false,
|
|
300
|
+
"internalType": "uint256",
|
|
301
|
+
"name": "assets",
|
|
302
|
+
"type": "uint256"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"indexed": false,
|
|
306
|
+
"internalType": "bytes32[]",
|
|
307
|
+
"name": "ids",
|
|
308
|
+
"type": "bytes32[]"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"indexed": false,
|
|
312
|
+
"internalType": "int256",
|
|
313
|
+
"name": "change",
|
|
314
|
+
"type": "int256"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"name": "Allocate",
|
|
318
|
+
"type": "event"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"anonymous": false,
|
|
322
|
+
"inputs": [
|
|
323
|
+
{
|
|
324
|
+
"indexed": true,
|
|
325
|
+
"internalType": "address",
|
|
326
|
+
"name": "owner",
|
|
327
|
+
"type": "address"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"indexed": true,
|
|
331
|
+
"internalType": "address",
|
|
332
|
+
"name": "spender",
|
|
333
|
+
"type": "address"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"indexed": false,
|
|
337
|
+
"internalType": "uint256",
|
|
338
|
+
"name": "shares",
|
|
339
|
+
"type": "uint256"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"name": "AllowanceUpdatedByTransferFrom",
|
|
343
|
+
"type": "event"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"anonymous": false,
|
|
347
|
+
"inputs": [
|
|
348
|
+
{
|
|
349
|
+
"indexed": true,
|
|
350
|
+
"internalType": "address",
|
|
351
|
+
"name": "owner",
|
|
352
|
+
"type": "address"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"indexed": true,
|
|
356
|
+
"internalType": "address",
|
|
357
|
+
"name": "spender",
|
|
358
|
+
"type": "address"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"indexed": false,
|
|
362
|
+
"internalType": "uint256",
|
|
363
|
+
"name": "shares",
|
|
364
|
+
"type": "uint256"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"name": "Approval",
|
|
368
|
+
"type": "event"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"anonymous": false,
|
|
372
|
+
"inputs": [
|
|
373
|
+
{
|
|
374
|
+
"indexed": true,
|
|
375
|
+
"internalType": "address",
|
|
376
|
+
"name": "owner",
|
|
377
|
+
"type": "address"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"indexed": true,
|
|
381
|
+
"internalType": "address",
|
|
382
|
+
"name": "asset",
|
|
383
|
+
"type": "address"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"name": "Constructor",
|
|
387
|
+
"type": "event"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"anonymous": false,
|
|
391
|
+
"inputs": [
|
|
392
|
+
{
|
|
393
|
+
"indexed": true,
|
|
394
|
+
"internalType": "address",
|
|
395
|
+
"name": "sender",
|
|
396
|
+
"type": "address"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"indexed": true,
|
|
400
|
+
"internalType": "address",
|
|
401
|
+
"name": "adapter",
|
|
402
|
+
"type": "address"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"indexed": false,
|
|
406
|
+
"internalType": "uint256",
|
|
407
|
+
"name": "assets",
|
|
408
|
+
"type": "uint256"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"indexed": false,
|
|
412
|
+
"internalType": "bytes32[]",
|
|
413
|
+
"name": "ids",
|
|
414
|
+
"type": "bytes32[]"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"indexed": false,
|
|
418
|
+
"internalType": "int256",
|
|
419
|
+
"name": "change",
|
|
420
|
+
"type": "int256"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"name": "Deallocate",
|
|
424
|
+
"type": "event"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"anonymous": false,
|
|
428
|
+
"inputs": [
|
|
429
|
+
{
|
|
430
|
+
"indexed": true,
|
|
431
|
+
"internalType": "address",
|
|
432
|
+
"name": "sender",
|
|
433
|
+
"type": "address"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"indexed": true,
|
|
437
|
+
"internalType": "bytes32",
|
|
438
|
+
"name": "id",
|
|
439
|
+
"type": "bytes32"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"indexed": false,
|
|
443
|
+
"internalType": "bytes",
|
|
444
|
+
"name": "idData",
|
|
445
|
+
"type": "bytes"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"indexed": false,
|
|
449
|
+
"internalType": "uint256",
|
|
450
|
+
"name": "newAbsoluteCap",
|
|
451
|
+
"type": "uint256"
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
"name": "DecreaseAbsoluteCap",
|
|
455
|
+
"type": "event"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"anonymous": false,
|
|
459
|
+
"inputs": [
|
|
460
|
+
{
|
|
461
|
+
"indexed": true,
|
|
462
|
+
"internalType": "address",
|
|
463
|
+
"name": "sender",
|
|
464
|
+
"type": "address"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"indexed": true,
|
|
468
|
+
"internalType": "bytes32",
|
|
469
|
+
"name": "id",
|
|
470
|
+
"type": "bytes32"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"indexed": false,
|
|
474
|
+
"internalType": "bytes",
|
|
475
|
+
"name": "idData",
|
|
476
|
+
"type": "bytes"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"indexed": false,
|
|
480
|
+
"internalType": "uint256",
|
|
481
|
+
"name": "newRelativeCap",
|
|
482
|
+
"type": "uint256"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"name": "DecreaseRelativeCap",
|
|
486
|
+
"type": "event"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"anonymous": false,
|
|
490
|
+
"inputs": [
|
|
491
|
+
{
|
|
492
|
+
"indexed": true,
|
|
493
|
+
"internalType": "bytes4",
|
|
494
|
+
"name": "selector",
|
|
495
|
+
"type": "bytes4"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"indexed": false,
|
|
499
|
+
"internalType": "uint256",
|
|
500
|
+
"name": "newDuration",
|
|
501
|
+
"type": "uint256"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"name": "DecreaseTimelock",
|
|
505
|
+
"type": "event"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"anonymous": false,
|
|
509
|
+
"inputs": [
|
|
510
|
+
{
|
|
511
|
+
"indexed": true,
|
|
512
|
+
"internalType": "address",
|
|
513
|
+
"name": "sender",
|
|
514
|
+
"type": "address"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"indexed": true,
|
|
518
|
+
"internalType": "address",
|
|
519
|
+
"name": "onBehalf",
|
|
520
|
+
"type": "address"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"indexed": false,
|
|
524
|
+
"internalType": "uint256",
|
|
525
|
+
"name": "assets",
|
|
526
|
+
"type": "uint256"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"indexed": false,
|
|
530
|
+
"internalType": "uint256",
|
|
531
|
+
"name": "shares",
|
|
532
|
+
"type": "uint256"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"name": "Deposit",
|
|
536
|
+
"type": "event"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"anonymous": false,
|
|
540
|
+
"inputs": [
|
|
541
|
+
{
|
|
542
|
+
"indexed": true,
|
|
543
|
+
"internalType": "address",
|
|
544
|
+
"name": "sender",
|
|
545
|
+
"type": "address"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"indexed": false,
|
|
549
|
+
"internalType": "address",
|
|
550
|
+
"name": "adapter",
|
|
551
|
+
"type": "address"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"indexed": false,
|
|
555
|
+
"internalType": "uint256",
|
|
556
|
+
"name": "assets",
|
|
557
|
+
"type": "uint256"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"indexed": true,
|
|
561
|
+
"internalType": "address",
|
|
562
|
+
"name": "onBehalf",
|
|
563
|
+
"type": "address"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"indexed": false,
|
|
567
|
+
"internalType": "bytes32[]",
|
|
568
|
+
"name": "ids",
|
|
569
|
+
"type": "bytes32[]"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"indexed": false,
|
|
573
|
+
"internalType": "uint256",
|
|
574
|
+
"name": "penaltyAssets",
|
|
575
|
+
"type": "uint256"
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"name": "ForceDeallocate",
|
|
579
|
+
"type": "event"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"anonymous": false,
|
|
583
|
+
"inputs": [
|
|
584
|
+
{
|
|
585
|
+
"indexed": true,
|
|
586
|
+
"internalType": "bytes32",
|
|
587
|
+
"name": "id",
|
|
588
|
+
"type": "bytes32"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"indexed": false,
|
|
592
|
+
"internalType": "bytes",
|
|
593
|
+
"name": "idData",
|
|
594
|
+
"type": "bytes"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"indexed": false,
|
|
598
|
+
"internalType": "uint256",
|
|
599
|
+
"name": "newAbsoluteCap",
|
|
600
|
+
"type": "uint256"
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"name": "IncreaseAbsoluteCap",
|
|
604
|
+
"type": "event"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"anonymous": false,
|
|
608
|
+
"inputs": [
|
|
609
|
+
{
|
|
610
|
+
"indexed": true,
|
|
611
|
+
"internalType": "bytes32",
|
|
612
|
+
"name": "id",
|
|
613
|
+
"type": "bytes32"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"indexed": false,
|
|
617
|
+
"internalType": "bytes",
|
|
618
|
+
"name": "idData",
|
|
619
|
+
"type": "bytes"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"indexed": false,
|
|
623
|
+
"internalType": "uint256",
|
|
624
|
+
"name": "newRelativeCap",
|
|
625
|
+
"type": "uint256"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"name": "IncreaseRelativeCap",
|
|
629
|
+
"type": "event"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"anonymous": false,
|
|
633
|
+
"inputs": [
|
|
634
|
+
{
|
|
635
|
+
"indexed": true,
|
|
636
|
+
"internalType": "bytes4",
|
|
637
|
+
"name": "selector",
|
|
638
|
+
"type": "bytes4"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"indexed": false,
|
|
642
|
+
"internalType": "uint256",
|
|
643
|
+
"name": "newDuration",
|
|
644
|
+
"type": "uint256"
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"name": "IncreaseTimelock",
|
|
648
|
+
"type": "event"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"anonymous": false,
|
|
652
|
+
"inputs": [
|
|
653
|
+
{
|
|
654
|
+
"indexed": true,
|
|
655
|
+
"internalType": "address",
|
|
656
|
+
"name": "owner",
|
|
657
|
+
"type": "address"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"indexed": true,
|
|
661
|
+
"internalType": "address",
|
|
662
|
+
"name": "spender",
|
|
663
|
+
"type": "address"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"indexed": false,
|
|
667
|
+
"internalType": "uint256",
|
|
668
|
+
"name": "shares",
|
|
669
|
+
"type": "uint256"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"indexed": false,
|
|
673
|
+
"internalType": "uint256",
|
|
674
|
+
"name": "nonce",
|
|
675
|
+
"type": "uint256"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"indexed": false,
|
|
679
|
+
"internalType": "uint256",
|
|
680
|
+
"name": "deadline",
|
|
681
|
+
"type": "uint256"
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
"name": "Permit",
|
|
685
|
+
"type": "event"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"anonymous": false,
|
|
689
|
+
"inputs": [
|
|
690
|
+
{
|
|
691
|
+
"indexed": true,
|
|
692
|
+
"internalType": "address",
|
|
693
|
+
"name": "account",
|
|
694
|
+
"type": "address"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"name": "RemoveAdapter",
|
|
698
|
+
"type": "event"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"anonymous": false,
|
|
702
|
+
"inputs": [
|
|
703
|
+
{
|
|
704
|
+
"indexed": true,
|
|
705
|
+
"internalType": "address",
|
|
706
|
+
"name": "sender",
|
|
707
|
+
"type": "address"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"indexed": true,
|
|
711
|
+
"internalType": "bytes4",
|
|
712
|
+
"name": "selector",
|
|
713
|
+
"type": "bytes4"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"indexed": false,
|
|
717
|
+
"internalType": "bytes",
|
|
718
|
+
"name": "data",
|
|
719
|
+
"type": "bytes"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"name": "Revoke",
|
|
723
|
+
"type": "event"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"anonymous": false,
|
|
727
|
+
"inputs": [
|
|
728
|
+
{
|
|
729
|
+
"indexed": true,
|
|
730
|
+
"internalType": "address",
|
|
731
|
+
"name": "newAdapterRegistry",
|
|
732
|
+
"type": "address"
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"name": "SetAdapterRegistry",
|
|
736
|
+
"type": "event"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"anonymous": false,
|
|
740
|
+
"inputs": [
|
|
741
|
+
{
|
|
742
|
+
"indexed": true,
|
|
743
|
+
"internalType": "address",
|
|
744
|
+
"name": "newCurator",
|
|
745
|
+
"type": "address"
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
"name": "SetCurator",
|
|
749
|
+
"type": "event"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"anonymous": false,
|
|
753
|
+
"inputs": [
|
|
754
|
+
{
|
|
755
|
+
"indexed": true,
|
|
756
|
+
"internalType": "address",
|
|
757
|
+
"name": "adapter",
|
|
758
|
+
"type": "address"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"indexed": false,
|
|
762
|
+
"internalType": "uint256",
|
|
763
|
+
"name": "forceDeallocatePenalty",
|
|
764
|
+
"type": "uint256"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"name": "SetForceDeallocatePenalty",
|
|
768
|
+
"type": "event"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"anonymous": false,
|
|
772
|
+
"inputs": [
|
|
773
|
+
{
|
|
774
|
+
"indexed": true,
|
|
775
|
+
"internalType": "address",
|
|
776
|
+
"name": "account",
|
|
777
|
+
"type": "address"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"indexed": false,
|
|
781
|
+
"internalType": "bool",
|
|
782
|
+
"name": "newIsAllocator",
|
|
783
|
+
"type": "bool"
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"name": "SetIsAllocator",
|
|
787
|
+
"type": "event"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"anonymous": false,
|
|
791
|
+
"inputs": [
|
|
792
|
+
{
|
|
793
|
+
"indexed": true,
|
|
794
|
+
"internalType": "address",
|
|
795
|
+
"name": "account",
|
|
796
|
+
"type": "address"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"indexed": false,
|
|
800
|
+
"internalType": "bool",
|
|
801
|
+
"name": "newIsSentinel",
|
|
802
|
+
"type": "bool"
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
"name": "SetIsSentinel",
|
|
806
|
+
"type": "event"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"anonymous": false,
|
|
810
|
+
"inputs": [
|
|
811
|
+
{
|
|
812
|
+
"indexed": true,
|
|
813
|
+
"internalType": "address",
|
|
814
|
+
"name": "sender",
|
|
815
|
+
"type": "address"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"indexed": true,
|
|
819
|
+
"internalType": "address",
|
|
820
|
+
"name": "newLiquidityAdapter",
|
|
821
|
+
"type": "address"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"indexed": true,
|
|
825
|
+
"internalType": "bytes",
|
|
826
|
+
"name": "newLiquidityData",
|
|
827
|
+
"type": "bytes"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"name": "SetLiquidityAdapterAndData",
|
|
831
|
+
"type": "event"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"anonymous": false,
|
|
835
|
+
"inputs": [
|
|
836
|
+
{
|
|
837
|
+
"indexed": false,
|
|
838
|
+
"internalType": "uint256",
|
|
839
|
+
"name": "newManagementFee",
|
|
840
|
+
"type": "uint256"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"name": "SetManagementFee",
|
|
844
|
+
"type": "event"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"anonymous": false,
|
|
848
|
+
"inputs": [
|
|
849
|
+
{
|
|
850
|
+
"indexed": true,
|
|
851
|
+
"internalType": "address",
|
|
852
|
+
"name": "newManagementFeeRecipient",
|
|
853
|
+
"type": "address"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"name": "SetManagementFeeRecipient",
|
|
857
|
+
"type": "event"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"anonymous": false,
|
|
861
|
+
"inputs": [
|
|
862
|
+
{
|
|
863
|
+
"indexed": false,
|
|
864
|
+
"internalType": "uint256",
|
|
865
|
+
"name": "newMaxRate",
|
|
866
|
+
"type": "uint256"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "SetMaxRate",
|
|
870
|
+
"type": "event"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"anonymous": false,
|
|
874
|
+
"inputs": [
|
|
875
|
+
{
|
|
876
|
+
"indexed": false,
|
|
877
|
+
"internalType": "string",
|
|
878
|
+
"name": "newName",
|
|
879
|
+
"type": "string"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"name": "SetName",
|
|
883
|
+
"type": "event"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"anonymous": false,
|
|
887
|
+
"inputs": [
|
|
888
|
+
{
|
|
889
|
+
"indexed": true,
|
|
890
|
+
"internalType": "address",
|
|
891
|
+
"name": "newOwner",
|
|
892
|
+
"type": "address"
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
"name": "SetOwner",
|
|
896
|
+
"type": "event"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"anonymous": false,
|
|
900
|
+
"inputs": [
|
|
901
|
+
{
|
|
902
|
+
"indexed": false,
|
|
903
|
+
"internalType": "uint256",
|
|
904
|
+
"name": "newPerformanceFee",
|
|
905
|
+
"type": "uint256"
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"name": "SetPerformanceFee",
|
|
909
|
+
"type": "event"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"anonymous": false,
|
|
913
|
+
"inputs": [
|
|
914
|
+
{
|
|
915
|
+
"indexed": true,
|
|
916
|
+
"internalType": "address",
|
|
917
|
+
"name": "newPerformanceFeeRecipient",
|
|
918
|
+
"type": "address"
|
|
919
|
+
}
|
|
920
|
+
],
|
|
921
|
+
"name": "SetPerformanceFeeRecipient",
|
|
922
|
+
"type": "event"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"anonymous": false,
|
|
926
|
+
"inputs": [
|
|
927
|
+
{
|
|
928
|
+
"indexed": true,
|
|
929
|
+
"internalType": "address",
|
|
930
|
+
"name": "newReceiveAssetsGate",
|
|
931
|
+
"type": "address"
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"name": "SetReceiveAssetsGate",
|
|
935
|
+
"type": "event"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"anonymous": false,
|
|
939
|
+
"inputs": [
|
|
940
|
+
{
|
|
941
|
+
"indexed": true,
|
|
942
|
+
"internalType": "address",
|
|
943
|
+
"name": "newReceiveSharesGate",
|
|
944
|
+
"type": "address"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"name": "SetReceiveSharesGate",
|
|
948
|
+
"type": "event"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"anonymous": false,
|
|
952
|
+
"inputs": [
|
|
953
|
+
{
|
|
954
|
+
"indexed": true,
|
|
955
|
+
"internalType": "address",
|
|
956
|
+
"name": "newSendAssetsGate",
|
|
957
|
+
"type": "address"
|
|
958
|
+
}
|
|
959
|
+
],
|
|
960
|
+
"name": "SetSendAssetsGate",
|
|
961
|
+
"type": "event"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"anonymous": false,
|
|
965
|
+
"inputs": [
|
|
966
|
+
{
|
|
967
|
+
"indexed": true,
|
|
968
|
+
"internalType": "address",
|
|
969
|
+
"name": "newSendSharesGate",
|
|
970
|
+
"type": "address"
|
|
971
|
+
}
|
|
972
|
+
],
|
|
973
|
+
"name": "SetSendSharesGate",
|
|
974
|
+
"type": "event"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"anonymous": false,
|
|
978
|
+
"inputs": [
|
|
979
|
+
{
|
|
980
|
+
"indexed": false,
|
|
981
|
+
"internalType": "string",
|
|
982
|
+
"name": "newSymbol",
|
|
983
|
+
"type": "string"
|
|
984
|
+
}
|
|
985
|
+
],
|
|
986
|
+
"name": "SetSymbol",
|
|
987
|
+
"type": "event"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"anonymous": false,
|
|
991
|
+
"inputs": [
|
|
992
|
+
{
|
|
993
|
+
"indexed": true,
|
|
994
|
+
"internalType": "bytes4",
|
|
995
|
+
"name": "selector",
|
|
996
|
+
"type": "bytes4"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"indexed": false,
|
|
1000
|
+
"internalType": "bytes",
|
|
1001
|
+
"name": "data",
|
|
1002
|
+
"type": "bytes"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"indexed": false,
|
|
1006
|
+
"internalType": "uint256",
|
|
1007
|
+
"name": "executableAt",
|
|
1008
|
+
"type": "uint256"
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"name": "Submit",
|
|
1012
|
+
"type": "event"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"anonymous": false,
|
|
1016
|
+
"inputs": [
|
|
1017
|
+
{
|
|
1018
|
+
"indexed": true,
|
|
1019
|
+
"internalType": "address",
|
|
1020
|
+
"name": "from",
|
|
1021
|
+
"type": "address"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"indexed": true,
|
|
1025
|
+
"internalType": "address",
|
|
1026
|
+
"name": "to",
|
|
1027
|
+
"type": "address"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"indexed": false,
|
|
1031
|
+
"internalType": "uint256",
|
|
1032
|
+
"name": "shares",
|
|
1033
|
+
"type": "uint256"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
"name": "Transfer",
|
|
1037
|
+
"type": "event"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"anonymous": false,
|
|
1041
|
+
"inputs": [
|
|
1042
|
+
{
|
|
1043
|
+
"indexed": true,
|
|
1044
|
+
"internalType": "address",
|
|
1045
|
+
"name": "sender",
|
|
1046
|
+
"type": "address"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"indexed": true,
|
|
1050
|
+
"internalType": "address",
|
|
1051
|
+
"name": "receiver",
|
|
1052
|
+
"type": "address"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"indexed": true,
|
|
1056
|
+
"internalType": "address",
|
|
1057
|
+
"name": "onBehalf",
|
|
1058
|
+
"type": "address"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"indexed": false,
|
|
1062
|
+
"internalType": "uint256",
|
|
1063
|
+
"name": "assets",
|
|
1064
|
+
"type": "uint256"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"indexed": false,
|
|
1068
|
+
"internalType": "uint256",
|
|
1069
|
+
"name": "shares",
|
|
1070
|
+
"type": "uint256"
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1073
|
+
"name": "Withdraw",
|
|
1074
|
+
"type": "event"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"inputs": [],
|
|
1078
|
+
"name": "DOMAIN_SEPARATOR",
|
|
1079
|
+
"outputs": [
|
|
1080
|
+
{
|
|
1081
|
+
"internalType": "bytes32",
|
|
1082
|
+
"name": "",
|
|
1083
|
+
"type": "bytes32"
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
"stateMutability": "view",
|
|
1087
|
+
"type": "function"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"inputs": [],
|
|
1091
|
+
"name": "_totalAssets",
|
|
1092
|
+
"outputs": [
|
|
1093
|
+
{
|
|
1094
|
+
"internalType": "uint128",
|
|
1095
|
+
"name": "",
|
|
1096
|
+
"type": "uint128"
|
|
1097
|
+
}
|
|
1098
|
+
],
|
|
1099
|
+
"stateMutability": "view",
|
|
1100
|
+
"type": "function"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"inputs": [
|
|
1104
|
+
{
|
|
1105
|
+
"internalType": "bytes4",
|
|
1106
|
+
"name": "selector",
|
|
1107
|
+
"type": "bytes4"
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
"name": "abdicate",
|
|
1111
|
+
"outputs": [],
|
|
1112
|
+
"stateMutability": "nonpayable",
|
|
1113
|
+
"type": "function"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"inputs": [
|
|
1117
|
+
{
|
|
1118
|
+
"internalType": "bytes4",
|
|
1119
|
+
"name": "selector",
|
|
1120
|
+
"type": "bytes4"
|
|
1121
|
+
}
|
|
1122
|
+
],
|
|
1123
|
+
"name": "abdicated",
|
|
1124
|
+
"outputs": [
|
|
1125
|
+
{
|
|
1126
|
+
"internalType": "bool",
|
|
1127
|
+
"name": "",
|
|
1128
|
+
"type": "bool"
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
"stateMutability": "view",
|
|
1132
|
+
"type": "function"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"inputs": [
|
|
1136
|
+
{
|
|
1137
|
+
"internalType": "bytes32",
|
|
1138
|
+
"name": "id",
|
|
1139
|
+
"type": "bytes32"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
"name": "absoluteCap",
|
|
1143
|
+
"outputs": [
|
|
1144
|
+
{
|
|
1145
|
+
"internalType": "uint256",
|
|
1146
|
+
"name": "",
|
|
1147
|
+
"type": "uint256"
|
|
1148
|
+
}
|
|
1149
|
+
],
|
|
1150
|
+
"stateMutability": "view",
|
|
1151
|
+
"type": "function"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"inputs": [],
|
|
1155
|
+
"name": "accrueInterest",
|
|
1156
|
+
"outputs": [],
|
|
1157
|
+
"stateMutability": "nonpayable",
|
|
1158
|
+
"type": "function"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"inputs": [],
|
|
1162
|
+
"name": "accrueInterestView",
|
|
1163
|
+
"outputs": [
|
|
1164
|
+
{
|
|
1165
|
+
"internalType": "uint256",
|
|
1166
|
+
"name": "",
|
|
1167
|
+
"type": "uint256"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"internalType": "uint256",
|
|
1171
|
+
"name": "",
|
|
1172
|
+
"type": "uint256"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"internalType": "uint256",
|
|
1176
|
+
"name": "",
|
|
1177
|
+
"type": "uint256"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"stateMutability": "view",
|
|
1181
|
+
"type": "function"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"inputs": [],
|
|
1185
|
+
"name": "adapterRegistry",
|
|
1186
|
+
"outputs": [
|
|
1187
|
+
{
|
|
1188
|
+
"internalType": "address",
|
|
1189
|
+
"name": "",
|
|
1190
|
+
"type": "address"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"stateMutability": "view",
|
|
1194
|
+
"type": "function"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"inputs": [
|
|
1198
|
+
{
|
|
1199
|
+
"internalType": "uint256",
|
|
1200
|
+
"name": "",
|
|
1201
|
+
"type": "uint256"
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"name": "adapters",
|
|
1205
|
+
"outputs": [
|
|
1206
|
+
{
|
|
1207
|
+
"internalType": "address",
|
|
1208
|
+
"name": "",
|
|
1209
|
+
"type": "address"
|
|
1210
|
+
}
|
|
1211
|
+
],
|
|
1212
|
+
"stateMutability": "view",
|
|
1213
|
+
"type": "function"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"inputs": [],
|
|
1217
|
+
"name": "adaptersLength",
|
|
1218
|
+
"outputs": [
|
|
1219
|
+
{
|
|
1220
|
+
"internalType": "uint256",
|
|
1221
|
+
"name": "",
|
|
1222
|
+
"type": "uint256"
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
"stateMutability": "view",
|
|
1226
|
+
"type": "function"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"inputs": [
|
|
1230
|
+
{
|
|
1231
|
+
"internalType": "address",
|
|
1232
|
+
"name": "account",
|
|
1233
|
+
"type": "address"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"name": "addAdapter",
|
|
1237
|
+
"outputs": [],
|
|
1238
|
+
"stateMutability": "nonpayable",
|
|
1239
|
+
"type": "function"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"inputs": [
|
|
1243
|
+
{
|
|
1244
|
+
"internalType": "address",
|
|
1245
|
+
"name": "adapter",
|
|
1246
|
+
"type": "address"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"internalType": "bytes",
|
|
1250
|
+
"name": "data",
|
|
1251
|
+
"type": "bytes"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"internalType": "uint256",
|
|
1255
|
+
"name": "assets",
|
|
1256
|
+
"type": "uint256"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
"name": "allocate",
|
|
1260
|
+
"outputs": [],
|
|
1261
|
+
"stateMutability": "nonpayable",
|
|
1262
|
+
"type": "function"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"inputs": [
|
|
1266
|
+
{
|
|
1267
|
+
"internalType": "bytes32",
|
|
1268
|
+
"name": "id",
|
|
1269
|
+
"type": "bytes32"
|
|
1270
|
+
}
|
|
1271
|
+
],
|
|
1272
|
+
"name": "allocation",
|
|
1273
|
+
"outputs": [
|
|
1274
|
+
{
|
|
1275
|
+
"internalType": "uint256",
|
|
1276
|
+
"name": "",
|
|
1277
|
+
"type": "uint256"
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"stateMutability": "view",
|
|
1281
|
+
"type": "function"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"inputs": [
|
|
1285
|
+
{
|
|
1286
|
+
"internalType": "address",
|
|
1287
|
+
"name": "owner",
|
|
1288
|
+
"type": "address"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"internalType": "address",
|
|
1292
|
+
"name": "spender",
|
|
1293
|
+
"type": "address"
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1296
|
+
"name": "allowance",
|
|
1297
|
+
"outputs": [
|
|
1298
|
+
{
|
|
1299
|
+
"internalType": "uint256",
|
|
1300
|
+
"name": "",
|
|
1301
|
+
"type": "uint256"
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"stateMutability": "view",
|
|
1305
|
+
"type": "function"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"inputs": [
|
|
1309
|
+
{
|
|
1310
|
+
"internalType": "address",
|
|
1311
|
+
"name": "spender",
|
|
1312
|
+
"type": "address"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"internalType": "uint256",
|
|
1316
|
+
"name": "shares",
|
|
1317
|
+
"type": "uint256"
|
|
1318
|
+
}
|
|
1319
|
+
],
|
|
1320
|
+
"name": "approve",
|
|
1321
|
+
"outputs": [
|
|
1322
|
+
{
|
|
1323
|
+
"internalType": "bool",
|
|
1324
|
+
"name": "",
|
|
1325
|
+
"type": "bool"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"stateMutability": "nonpayable",
|
|
1329
|
+
"type": "function"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"inputs": [],
|
|
1333
|
+
"name": "asset",
|
|
1334
|
+
"outputs": [
|
|
1335
|
+
{
|
|
1336
|
+
"internalType": "address",
|
|
1337
|
+
"name": "",
|
|
1338
|
+
"type": "address"
|
|
1339
|
+
}
|
|
1340
|
+
],
|
|
1341
|
+
"stateMutability": "view",
|
|
1342
|
+
"type": "function"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"inputs": [
|
|
1346
|
+
{
|
|
1347
|
+
"internalType": "address",
|
|
1348
|
+
"name": "account",
|
|
1349
|
+
"type": "address"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"name": "balanceOf",
|
|
1353
|
+
"outputs": [
|
|
1354
|
+
{
|
|
1355
|
+
"internalType": "uint256",
|
|
1356
|
+
"name": "",
|
|
1357
|
+
"type": "uint256"
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"stateMutability": "view",
|
|
1361
|
+
"type": "function"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"inputs": [
|
|
1365
|
+
{
|
|
1366
|
+
"internalType": "address",
|
|
1367
|
+
"name": "account",
|
|
1368
|
+
"type": "address"
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"name": "canReceiveAssets",
|
|
1372
|
+
"outputs": [
|
|
1373
|
+
{
|
|
1374
|
+
"internalType": "bool",
|
|
1375
|
+
"name": "",
|
|
1376
|
+
"type": "bool"
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1379
|
+
"stateMutability": "view",
|
|
1380
|
+
"type": "function"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"inputs": [
|
|
1384
|
+
{
|
|
1385
|
+
"internalType": "address",
|
|
1386
|
+
"name": "account",
|
|
1387
|
+
"type": "address"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"name": "canReceiveShares",
|
|
1391
|
+
"outputs": [
|
|
1392
|
+
{
|
|
1393
|
+
"internalType": "bool",
|
|
1394
|
+
"name": "",
|
|
1395
|
+
"type": "bool"
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1398
|
+
"stateMutability": "view",
|
|
1399
|
+
"type": "function"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"inputs": [
|
|
1403
|
+
{
|
|
1404
|
+
"internalType": "address",
|
|
1405
|
+
"name": "account",
|
|
1406
|
+
"type": "address"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"name": "canSendAssets",
|
|
1410
|
+
"outputs": [
|
|
1411
|
+
{
|
|
1412
|
+
"internalType": "bool",
|
|
1413
|
+
"name": "",
|
|
1414
|
+
"type": "bool"
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
"stateMutability": "view",
|
|
1418
|
+
"type": "function"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"inputs": [
|
|
1422
|
+
{
|
|
1423
|
+
"internalType": "address",
|
|
1424
|
+
"name": "account",
|
|
1425
|
+
"type": "address"
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
"name": "canSendShares",
|
|
1429
|
+
"outputs": [
|
|
1430
|
+
{
|
|
1431
|
+
"internalType": "bool",
|
|
1432
|
+
"name": "",
|
|
1433
|
+
"type": "bool"
|
|
1434
|
+
}
|
|
1435
|
+
],
|
|
1436
|
+
"stateMutability": "view",
|
|
1437
|
+
"type": "function"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"inputs": [
|
|
1441
|
+
{
|
|
1442
|
+
"internalType": "uint256",
|
|
1443
|
+
"name": "shares",
|
|
1444
|
+
"type": "uint256"
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
"name": "convertToAssets",
|
|
1448
|
+
"outputs": [
|
|
1449
|
+
{
|
|
1450
|
+
"internalType": "uint256",
|
|
1451
|
+
"name": "",
|
|
1452
|
+
"type": "uint256"
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
"stateMutability": "view",
|
|
1456
|
+
"type": "function"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"inputs": [
|
|
1460
|
+
{
|
|
1461
|
+
"internalType": "uint256",
|
|
1462
|
+
"name": "assets",
|
|
1463
|
+
"type": "uint256"
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
"name": "convertToShares",
|
|
1467
|
+
"outputs": [
|
|
1468
|
+
{
|
|
1469
|
+
"internalType": "uint256",
|
|
1470
|
+
"name": "",
|
|
1471
|
+
"type": "uint256"
|
|
1472
|
+
}
|
|
1473
|
+
],
|
|
1474
|
+
"stateMutability": "view",
|
|
1475
|
+
"type": "function"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"inputs": [],
|
|
1479
|
+
"name": "curator",
|
|
1480
|
+
"outputs": [
|
|
1481
|
+
{
|
|
1482
|
+
"internalType": "address",
|
|
1483
|
+
"name": "",
|
|
1484
|
+
"type": "address"
|
|
1485
|
+
}
|
|
1486
|
+
],
|
|
1487
|
+
"stateMutability": "view",
|
|
1488
|
+
"type": "function"
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"inputs": [
|
|
1492
|
+
{
|
|
1493
|
+
"internalType": "address",
|
|
1494
|
+
"name": "adapter",
|
|
1495
|
+
"type": "address"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"internalType": "bytes",
|
|
1499
|
+
"name": "data",
|
|
1500
|
+
"type": "bytes"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"internalType": "uint256",
|
|
1504
|
+
"name": "assets",
|
|
1505
|
+
"type": "uint256"
|
|
1506
|
+
}
|
|
1507
|
+
],
|
|
1508
|
+
"name": "deallocate",
|
|
1509
|
+
"outputs": [],
|
|
1510
|
+
"stateMutability": "nonpayable",
|
|
1511
|
+
"type": "function"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"inputs": [],
|
|
1515
|
+
"name": "decimals",
|
|
1516
|
+
"outputs": [
|
|
1517
|
+
{
|
|
1518
|
+
"internalType": "uint8",
|
|
1519
|
+
"name": "",
|
|
1520
|
+
"type": "uint8"
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
"stateMutability": "view",
|
|
1524
|
+
"type": "function"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"inputs": [
|
|
1528
|
+
{
|
|
1529
|
+
"internalType": "bytes",
|
|
1530
|
+
"name": "idData",
|
|
1531
|
+
"type": "bytes"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"internalType": "uint256",
|
|
1535
|
+
"name": "newAbsoluteCap",
|
|
1536
|
+
"type": "uint256"
|
|
1537
|
+
}
|
|
1538
|
+
],
|
|
1539
|
+
"name": "decreaseAbsoluteCap",
|
|
1540
|
+
"outputs": [],
|
|
1541
|
+
"stateMutability": "nonpayable",
|
|
1542
|
+
"type": "function"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"inputs": [
|
|
1546
|
+
{
|
|
1547
|
+
"internalType": "bytes",
|
|
1548
|
+
"name": "idData",
|
|
1549
|
+
"type": "bytes"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"internalType": "uint256",
|
|
1553
|
+
"name": "newRelativeCap",
|
|
1554
|
+
"type": "uint256"
|
|
1555
|
+
}
|
|
1556
|
+
],
|
|
1557
|
+
"name": "decreaseRelativeCap",
|
|
1558
|
+
"outputs": [],
|
|
1559
|
+
"stateMutability": "nonpayable",
|
|
1560
|
+
"type": "function"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"inputs": [
|
|
1564
|
+
{
|
|
1565
|
+
"internalType": "bytes4",
|
|
1566
|
+
"name": "selector",
|
|
1567
|
+
"type": "bytes4"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"internalType": "uint256",
|
|
1571
|
+
"name": "newDuration",
|
|
1572
|
+
"type": "uint256"
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1575
|
+
"name": "decreaseTimelock",
|
|
1576
|
+
"outputs": [],
|
|
1577
|
+
"stateMutability": "nonpayable",
|
|
1578
|
+
"type": "function"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"inputs": [
|
|
1582
|
+
{
|
|
1583
|
+
"internalType": "uint256",
|
|
1584
|
+
"name": "assets",
|
|
1585
|
+
"type": "uint256"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"internalType": "address",
|
|
1589
|
+
"name": "onBehalf",
|
|
1590
|
+
"type": "address"
|
|
1591
|
+
}
|
|
1592
|
+
],
|
|
1593
|
+
"name": "deposit",
|
|
1594
|
+
"outputs": [
|
|
1595
|
+
{
|
|
1596
|
+
"internalType": "uint256",
|
|
1597
|
+
"name": "",
|
|
1598
|
+
"type": "uint256"
|
|
1599
|
+
}
|
|
1600
|
+
],
|
|
1601
|
+
"stateMutability": "nonpayable",
|
|
1602
|
+
"type": "function"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"inputs": [
|
|
1606
|
+
{
|
|
1607
|
+
"internalType": "bytes",
|
|
1608
|
+
"name": "data",
|
|
1609
|
+
"type": "bytes"
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
"name": "executableAt",
|
|
1613
|
+
"outputs": [
|
|
1614
|
+
{
|
|
1615
|
+
"internalType": "uint256",
|
|
1616
|
+
"name": "",
|
|
1617
|
+
"type": "uint256"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
"stateMutability": "view",
|
|
1621
|
+
"type": "function"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"inputs": [],
|
|
1625
|
+
"name": "firstTotalAssets",
|
|
1626
|
+
"outputs": [
|
|
1627
|
+
{
|
|
1628
|
+
"internalType": "uint256",
|
|
1629
|
+
"name": "",
|
|
1630
|
+
"type": "uint256"
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"stateMutability": "view",
|
|
1634
|
+
"type": "function"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"inputs": [
|
|
1638
|
+
{
|
|
1639
|
+
"internalType": "address",
|
|
1640
|
+
"name": "adapter",
|
|
1641
|
+
"type": "address"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"internalType": "bytes",
|
|
1645
|
+
"name": "data",
|
|
1646
|
+
"type": "bytes"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"internalType": "uint256",
|
|
1650
|
+
"name": "assets",
|
|
1651
|
+
"type": "uint256"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"internalType": "address",
|
|
1655
|
+
"name": "onBehalf",
|
|
1656
|
+
"type": "address"
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1659
|
+
"name": "forceDeallocate",
|
|
1660
|
+
"outputs": [
|
|
1661
|
+
{
|
|
1662
|
+
"internalType": "uint256",
|
|
1663
|
+
"name": "",
|
|
1664
|
+
"type": "uint256"
|
|
1665
|
+
}
|
|
1666
|
+
],
|
|
1667
|
+
"stateMutability": "nonpayable",
|
|
1668
|
+
"type": "function"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"inputs": [
|
|
1672
|
+
{
|
|
1673
|
+
"internalType": "address",
|
|
1674
|
+
"name": "adapter",
|
|
1675
|
+
"type": "address"
|
|
1676
|
+
}
|
|
1677
|
+
],
|
|
1678
|
+
"name": "forceDeallocatePenalty",
|
|
1679
|
+
"outputs": [
|
|
1680
|
+
{
|
|
1681
|
+
"internalType": "uint256",
|
|
1682
|
+
"name": "",
|
|
1683
|
+
"type": "uint256"
|
|
1684
|
+
}
|
|
1685
|
+
],
|
|
1686
|
+
"stateMutability": "view",
|
|
1687
|
+
"type": "function"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"inputs": [
|
|
1691
|
+
{
|
|
1692
|
+
"internalType": "bytes",
|
|
1693
|
+
"name": "idData",
|
|
1694
|
+
"type": "bytes"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"internalType": "uint256",
|
|
1698
|
+
"name": "newAbsoluteCap",
|
|
1699
|
+
"type": "uint256"
|
|
1700
|
+
}
|
|
1701
|
+
],
|
|
1702
|
+
"name": "increaseAbsoluteCap",
|
|
1703
|
+
"outputs": [],
|
|
1704
|
+
"stateMutability": "nonpayable",
|
|
1705
|
+
"type": "function"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"inputs": [
|
|
1709
|
+
{
|
|
1710
|
+
"internalType": "bytes",
|
|
1711
|
+
"name": "idData",
|
|
1712
|
+
"type": "bytes"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"internalType": "uint256",
|
|
1716
|
+
"name": "newRelativeCap",
|
|
1717
|
+
"type": "uint256"
|
|
1718
|
+
}
|
|
1719
|
+
],
|
|
1720
|
+
"name": "increaseRelativeCap",
|
|
1721
|
+
"outputs": [],
|
|
1722
|
+
"stateMutability": "nonpayable",
|
|
1723
|
+
"type": "function"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"inputs": [
|
|
1727
|
+
{
|
|
1728
|
+
"internalType": "bytes4",
|
|
1729
|
+
"name": "selector",
|
|
1730
|
+
"type": "bytes4"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"internalType": "uint256",
|
|
1734
|
+
"name": "newDuration",
|
|
1735
|
+
"type": "uint256"
|
|
1736
|
+
}
|
|
1737
|
+
],
|
|
1738
|
+
"name": "increaseTimelock",
|
|
1739
|
+
"outputs": [],
|
|
1740
|
+
"stateMutability": "nonpayable",
|
|
1741
|
+
"type": "function"
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"inputs": [
|
|
1745
|
+
{
|
|
1746
|
+
"internalType": "address",
|
|
1747
|
+
"name": "account",
|
|
1748
|
+
"type": "address"
|
|
1749
|
+
}
|
|
1750
|
+
],
|
|
1751
|
+
"name": "isAdapter",
|
|
1752
|
+
"outputs": [
|
|
1753
|
+
{
|
|
1754
|
+
"internalType": "bool",
|
|
1755
|
+
"name": "",
|
|
1756
|
+
"type": "bool"
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
"stateMutability": "view",
|
|
1760
|
+
"type": "function"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"inputs": [
|
|
1764
|
+
{
|
|
1765
|
+
"internalType": "address",
|
|
1766
|
+
"name": "account",
|
|
1767
|
+
"type": "address"
|
|
1768
|
+
}
|
|
1769
|
+
],
|
|
1770
|
+
"name": "isAllocator",
|
|
1771
|
+
"outputs": [
|
|
1772
|
+
{
|
|
1773
|
+
"internalType": "bool",
|
|
1774
|
+
"name": "",
|
|
1775
|
+
"type": "bool"
|
|
1776
|
+
}
|
|
1777
|
+
],
|
|
1778
|
+
"stateMutability": "view",
|
|
1779
|
+
"type": "function"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"inputs": [
|
|
1783
|
+
{
|
|
1784
|
+
"internalType": "address",
|
|
1785
|
+
"name": "account",
|
|
1786
|
+
"type": "address"
|
|
1787
|
+
}
|
|
1788
|
+
],
|
|
1789
|
+
"name": "isSentinel",
|
|
1790
|
+
"outputs": [
|
|
1791
|
+
{
|
|
1792
|
+
"internalType": "bool",
|
|
1793
|
+
"name": "",
|
|
1794
|
+
"type": "bool"
|
|
1795
|
+
}
|
|
1796
|
+
],
|
|
1797
|
+
"stateMutability": "view",
|
|
1798
|
+
"type": "function"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"inputs": [],
|
|
1802
|
+
"name": "lastUpdate",
|
|
1803
|
+
"outputs": [
|
|
1804
|
+
{
|
|
1805
|
+
"internalType": "uint64",
|
|
1806
|
+
"name": "",
|
|
1807
|
+
"type": "uint64"
|
|
1808
|
+
}
|
|
1809
|
+
],
|
|
1810
|
+
"stateMutability": "view",
|
|
1811
|
+
"type": "function"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"inputs": [],
|
|
1815
|
+
"name": "liquidityAdapter",
|
|
1816
|
+
"outputs": [
|
|
1817
|
+
{
|
|
1818
|
+
"internalType": "address",
|
|
1819
|
+
"name": "",
|
|
1820
|
+
"type": "address"
|
|
1821
|
+
}
|
|
1822
|
+
],
|
|
1823
|
+
"stateMutability": "view",
|
|
1824
|
+
"type": "function"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"inputs": [],
|
|
1828
|
+
"name": "liquidityData",
|
|
1829
|
+
"outputs": [
|
|
1830
|
+
{
|
|
1831
|
+
"internalType": "bytes",
|
|
1832
|
+
"name": "",
|
|
1833
|
+
"type": "bytes"
|
|
1834
|
+
}
|
|
1835
|
+
],
|
|
1836
|
+
"stateMutability": "view",
|
|
1837
|
+
"type": "function"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"inputs": [],
|
|
1841
|
+
"name": "managementFee",
|
|
1842
|
+
"outputs": [
|
|
1843
|
+
{
|
|
1844
|
+
"internalType": "uint96",
|
|
1845
|
+
"name": "",
|
|
1846
|
+
"type": "uint96"
|
|
1847
|
+
}
|
|
1848
|
+
],
|
|
1849
|
+
"stateMutability": "view",
|
|
1850
|
+
"type": "function"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"inputs": [],
|
|
1854
|
+
"name": "managementFeeRecipient",
|
|
1855
|
+
"outputs": [
|
|
1856
|
+
{
|
|
1857
|
+
"internalType": "address",
|
|
1858
|
+
"name": "",
|
|
1859
|
+
"type": "address"
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
"stateMutability": "view",
|
|
1863
|
+
"type": "function"
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"inputs": [
|
|
1867
|
+
{
|
|
1868
|
+
"internalType": "address",
|
|
1869
|
+
"name": "",
|
|
1870
|
+
"type": "address"
|
|
1871
|
+
}
|
|
1872
|
+
],
|
|
1873
|
+
"name": "maxDeposit",
|
|
1874
|
+
"outputs": [
|
|
1875
|
+
{
|
|
1876
|
+
"internalType": "uint256",
|
|
1877
|
+
"name": "",
|
|
1878
|
+
"type": "uint256"
|
|
1879
|
+
}
|
|
1880
|
+
],
|
|
1881
|
+
"stateMutability": "pure",
|
|
1882
|
+
"type": "function"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"inputs": [
|
|
1886
|
+
{
|
|
1887
|
+
"internalType": "address",
|
|
1888
|
+
"name": "",
|
|
1889
|
+
"type": "address"
|
|
1890
|
+
}
|
|
1891
|
+
],
|
|
1892
|
+
"name": "maxMint",
|
|
1893
|
+
"outputs": [
|
|
1894
|
+
{
|
|
1895
|
+
"internalType": "uint256",
|
|
1896
|
+
"name": "",
|
|
1897
|
+
"type": "uint256"
|
|
1898
|
+
}
|
|
1899
|
+
],
|
|
1900
|
+
"stateMutability": "pure",
|
|
1901
|
+
"type": "function"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"inputs": [],
|
|
1905
|
+
"name": "maxRate",
|
|
1906
|
+
"outputs": [
|
|
1907
|
+
{
|
|
1908
|
+
"internalType": "uint64",
|
|
1909
|
+
"name": "",
|
|
1910
|
+
"type": "uint64"
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
"stateMutability": "view",
|
|
1914
|
+
"type": "function"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"inputs": [
|
|
1918
|
+
{
|
|
1919
|
+
"internalType": "address",
|
|
1920
|
+
"name": "",
|
|
1921
|
+
"type": "address"
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
"name": "maxRedeem",
|
|
1925
|
+
"outputs": [
|
|
1926
|
+
{
|
|
1927
|
+
"internalType": "uint256",
|
|
1928
|
+
"name": "",
|
|
1929
|
+
"type": "uint256"
|
|
1930
|
+
}
|
|
1931
|
+
],
|
|
1932
|
+
"stateMutability": "pure",
|
|
1933
|
+
"type": "function"
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
"inputs": [
|
|
1937
|
+
{
|
|
1938
|
+
"internalType": "address",
|
|
1939
|
+
"name": "",
|
|
1940
|
+
"type": "address"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
"name": "maxWithdraw",
|
|
1944
|
+
"outputs": [
|
|
1945
|
+
{
|
|
1946
|
+
"internalType": "uint256",
|
|
1947
|
+
"name": "",
|
|
1948
|
+
"type": "uint256"
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
"stateMutability": "pure",
|
|
1952
|
+
"type": "function"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"inputs": [
|
|
1956
|
+
{
|
|
1957
|
+
"internalType": "uint256",
|
|
1958
|
+
"name": "shares",
|
|
1959
|
+
"type": "uint256"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"internalType": "address",
|
|
1963
|
+
"name": "onBehalf",
|
|
1964
|
+
"type": "address"
|
|
1965
|
+
}
|
|
1966
|
+
],
|
|
1967
|
+
"name": "mint",
|
|
1968
|
+
"outputs": [
|
|
1969
|
+
{
|
|
1970
|
+
"internalType": "uint256",
|
|
1971
|
+
"name": "",
|
|
1972
|
+
"type": "uint256"
|
|
1973
|
+
}
|
|
1974
|
+
],
|
|
1975
|
+
"stateMutability": "nonpayable",
|
|
1976
|
+
"type": "function"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"inputs": [
|
|
1980
|
+
{
|
|
1981
|
+
"internalType": "bytes[]",
|
|
1982
|
+
"name": "data",
|
|
1983
|
+
"type": "bytes[]"
|
|
1984
|
+
}
|
|
1985
|
+
],
|
|
1986
|
+
"name": "multicall",
|
|
1987
|
+
"outputs": [],
|
|
1988
|
+
"stateMutability": "nonpayable",
|
|
1989
|
+
"type": "function"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
"inputs": [],
|
|
1993
|
+
"name": "name",
|
|
1994
|
+
"outputs": [
|
|
1995
|
+
{
|
|
1996
|
+
"internalType": "string",
|
|
1997
|
+
"name": "",
|
|
1998
|
+
"type": "string"
|
|
1999
|
+
}
|
|
2000
|
+
],
|
|
2001
|
+
"stateMutability": "view",
|
|
2002
|
+
"type": "function"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"inputs": [
|
|
2006
|
+
{
|
|
2007
|
+
"internalType": "address",
|
|
2008
|
+
"name": "account",
|
|
2009
|
+
"type": "address"
|
|
2010
|
+
}
|
|
2011
|
+
],
|
|
2012
|
+
"name": "nonces",
|
|
2013
|
+
"outputs": [
|
|
2014
|
+
{
|
|
2015
|
+
"internalType": "uint256",
|
|
2016
|
+
"name": "",
|
|
2017
|
+
"type": "uint256"
|
|
2018
|
+
}
|
|
2019
|
+
],
|
|
2020
|
+
"stateMutability": "view",
|
|
2021
|
+
"type": "function"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"inputs": [],
|
|
2025
|
+
"name": "owner",
|
|
2026
|
+
"outputs": [
|
|
2027
|
+
{
|
|
2028
|
+
"internalType": "address",
|
|
2029
|
+
"name": "",
|
|
2030
|
+
"type": "address"
|
|
2031
|
+
}
|
|
2032
|
+
],
|
|
2033
|
+
"stateMutability": "view",
|
|
2034
|
+
"type": "function"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"inputs": [],
|
|
2038
|
+
"name": "performanceFee",
|
|
2039
|
+
"outputs": [
|
|
2040
|
+
{
|
|
2041
|
+
"internalType": "uint96",
|
|
2042
|
+
"name": "",
|
|
2043
|
+
"type": "uint96"
|
|
2044
|
+
}
|
|
2045
|
+
],
|
|
2046
|
+
"stateMutability": "view",
|
|
2047
|
+
"type": "function"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"inputs": [],
|
|
2051
|
+
"name": "performanceFeeRecipient",
|
|
2052
|
+
"outputs": [
|
|
2053
|
+
{
|
|
2054
|
+
"internalType": "address",
|
|
2055
|
+
"name": "",
|
|
2056
|
+
"type": "address"
|
|
2057
|
+
}
|
|
2058
|
+
],
|
|
2059
|
+
"stateMutability": "view",
|
|
2060
|
+
"type": "function"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"inputs": [
|
|
2064
|
+
{
|
|
2065
|
+
"internalType": "address",
|
|
2066
|
+
"name": "_owner",
|
|
2067
|
+
"type": "address"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"internalType": "address",
|
|
2071
|
+
"name": "spender",
|
|
2072
|
+
"type": "address"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"internalType": "uint256",
|
|
2076
|
+
"name": "shares",
|
|
2077
|
+
"type": "uint256"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"internalType": "uint256",
|
|
2081
|
+
"name": "deadline",
|
|
2082
|
+
"type": "uint256"
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"internalType": "uint8",
|
|
2086
|
+
"name": "v",
|
|
2087
|
+
"type": "uint8"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"internalType": "bytes32",
|
|
2091
|
+
"name": "r",
|
|
2092
|
+
"type": "bytes32"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"internalType": "bytes32",
|
|
2096
|
+
"name": "s",
|
|
2097
|
+
"type": "bytes32"
|
|
2098
|
+
}
|
|
2099
|
+
],
|
|
2100
|
+
"name": "permit",
|
|
2101
|
+
"outputs": [],
|
|
2102
|
+
"stateMutability": "nonpayable",
|
|
2103
|
+
"type": "function"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"inputs": [
|
|
2107
|
+
{
|
|
2108
|
+
"internalType": "uint256",
|
|
2109
|
+
"name": "assets",
|
|
2110
|
+
"type": "uint256"
|
|
2111
|
+
}
|
|
2112
|
+
],
|
|
2113
|
+
"name": "previewDeposit",
|
|
2114
|
+
"outputs": [
|
|
2115
|
+
{
|
|
2116
|
+
"internalType": "uint256",
|
|
2117
|
+
"name": "",
|
|
2118
|
+
"type": "uint256"
|
|
2119
|
+
}
|
|
2120
|
+
],
|
|
2121
|
+
"stateMutability": "view",
|
|
2122
|
+
"type": "function"
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"inputs": [
|
|
2126
|
+
{
|
|
2127
|
+
"internalType": "uint256",
|
|
2128
|
+
"name": "shares",
|
|
2129
|
+
"type": "uint256"
|
|
2130
|
+
}
|
|
2131
|
+
],
|
|
2132
|
+
"name": "previewMint",
|
|
2133
|
+
"outputs": [
|
|
2134
|
+
{
|
|
2135
|
+
"internalType": "uint256",
|
|
2136
|
+
"name": "",
|
|
2137
|
+
"type": "uint256"
|
|
2138
|
+
}
|
|
2139
|
+
],
|
|
2140
|
+
"stateMutability": "view",
|
|
2141
|
+
"type": "function"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"inputs": [
|
|
2145
|
+
{
|
|
2146
|
+
"internalType": "uint256",
|
|
2147
|
+
"name": "shares",
|
|
2148
|
+
"type": "uint256"
|
|
2149
|
+
}
|
|
2150
|
+
],
|
|
2151
|
+
"name": "previewRedeem",
|
|
2152
|
+
"outputs": [
|
|
2153
|
+
{
|
|
2154
|
+
"internalType": "uint256",
|
|
2155
|
+
"name": "",
|
|
2156
|
+
"type": "uint256"
|
|
2157
|
+
}
|
|
2158
|
+
],
|
|
2159
|
+
"stateMutability": "view",
|
|
2160
|
+
"type": "function"
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
"inputs": [
|
|
2164
|
+
{
|
|
2165
|
+
"internalType": "uint256",
|
|
2166
|
+
"name": "assets",
|
|
2167
|
+
"type": "uint256"
|
|
2168
|
+
}
|
|
2169
|
+
],
|
|
2170
|
+
"name": "previewWithdraw",
|
|
2171
|
+
"outputs": [
|
|
2172
|
+
{
|
|
2173
|
+
"internalType": "uint256",
|
|
2174
|
+
"name": "",
|
|
2175
|
+
"type": "uint256"
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
"stateMutability": "view",
|
|
2179
|
+
"type": "function"
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"inputs": [],
|
|
2183
|
+
"name": "receiveAssetsGate",
|
|
2184
|
+
"outputs": [
|
|
2185
|
+
{
|
|
2186
|
+
"internalType": "address",
|
|
2187
|
+
"name": "",
|
|
2188
|
+
"type": "address"
|
|
2189
|
+
}
|
|
2190
|
+
],
|
|
2191
|
+
"stateMutability": "view",
|
|
2192
|
+
"type": "function"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"inputs": [],
|
|
2196
|
+
"name": "receiveSharesGate",
|
|
2197
|
+
"outputs": [
|
|
2198
|
+
{
|
|
2199
|
+
"internalType": "address",
|
|
2200
|
+
"name": "",
|
|
2201
|
+
"type": "address"
|
|
2202
|
+
}
|
|
2203
|
+
],
|
|
2204
|
+
"stateMutability": "view",
|
|
2205
|
+
"type": "function"
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"inputs": [
|
|
2209
|
+
{
|
|
2210
|
+
"internalType": "uint256",
|
|
2211
|
+
"name": "shares",
|
|
2212
|
+
"type": "uint256"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"internalType": "address",
|
|
2216
|
+
"name": "receiver",
|
|
2217
|
+
"type": "address"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"internalType": "address",
|
|
2221
|
+
"name": "onBehalf",
|
|
2222
|
+
"type": "address"
|
|
2223
|
+
}
|
|
2224
|
+
],
|
|
2225
|
+
"name": "redeem",
|
|
2226
|
+
"outputs": [
|
|
2227
|
+
{
|
|
2228
|
+
"internalType": "uint256",
|
|
2229
|
+
"name": "",
|
|
2230
|
+
"type": "uint256"
|
|
2231
|
+
}
|
|
2232
|
+
],
|
|
2233
|
+
"stateMutability": "nonpayable",
|
|
2234
|
+
"type": "function"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"inputs": [
|
|
2238
|
+
{
|
|
2239
|
+
"internalType": "bytes32",
|
|
2240
|
+
"name": "id",
|
|
2241
|
+
"type": "bytes32"
|
|
2242
|
+
}
|
|
2243
|
+
],
|
|
2244
|
+
"name": "relativeCap",
|
|
2245
|
+
"outputs": [
|
|
2246
|
+
{
|
|
2247
|
+
"internalType": "uint256",
|
|
2248
|
+
"name": "",
|
|
2249
|
+
"type": "uint256"
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"stateMutability": "view",
|
|
2253
|
+
"type": "function"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
"inputs": [
|
|
2257
|
+
{
|
|
2258
|
+
"internalType": "address",
|
|
2259
|
+
"name": "account",
|
|
2260
|
+
"type": "address"
|
|
2261
|
+
}
|
|
2262
|
+
],
|
|
2263
|
+
"name": "removeAdapter",
|
|
2264
|
+
"outputs": [],
|
|
2265
|
+
"stateMutability": "nonpayable",
|
|
2266
|
+
"type": "function"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
"inputs": [
|
|
2270
|
+
{
|
|
2271
|
+
"internalType": "bytes",
|
|
2272
|
+
"name": "data",
|
|
2273
|
+
"type": "bytes"
|
|
2274
|
+
}
|
|
2275
|
+
],
|
|
2276
|
+
"name": "revoke",
|
|
2277
|
+
"outputs": [],
|
|
2278
|
+
"stateMutability": "nonpayable",
|
|
2279
|
+
"type": "function"
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"inputs": [],
|
|
2283
|
+
"name": "sendAssetsGate",
|
|
2284
|
+
"outputs": [
|
|
2285
|
+
{
|
|
2286
|
+
"internalType": "address",
|
|
2287
|
+
"name": "",
|
|
2288
|
+
"type": "address"
|
|
2289
|
+
}
|
|
2290
|
+
],
|
|
2291
|
+
"stateMutability": "view",
|
|
2292
|
+
"type": "function"
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
"inputs": [],
|
|
2296
|
+
"name": "sendSharesGate",
|
|
2297
|
+
"outputs": [
|
|
2298
|
+
{
|
|
2299
|
+
"internalType": "address",
|
|
2300
|
+
"name": "",
|
|
2301
|
+
"type": "address"
|
|
2302
|
+
}
|
|
2303
|
+
],
|
|
2304
|
+
"stateMutability": "view",
|
|
2305
|
+
"type": "function"
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
"inputs": [
|
|
2309
|
+
{
|
|
2310
|
+
"internalType": "address",
|
|
2311
|
+
"name": "newAdapterRegistry",
|
|
2312
|
+
"type": "address"
|
|
2313
|
+
}
|
|
2314
|
+
],
|
|
2315
|
+
"name": "setAdapterRegistry",
|
|
2316
|
+
"outputs": [],
|
|
2317
|
+
"stateMutability": "nonpayable",
|
|
2318
|
+
"type": "function"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"inputs": [
|
|
2322
|
+
{
|
|
2323
|
+
"internalType": "address",
|
|
2324
|
+
"name": "newCurator",
|
|
2325
|
+
"type": "address"
|
|
2326
|
+
}
|
|
2327
|
+
],
|
|
2328
|
+
"name": "setCurator",
|
|
2329
|
+
"outputs": [],
|
|
2330
|
+
"stateMutability": "nonpayable",
|
|
2331
|
+
"type": "function"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"inputs": [
|
|
2335
|
+
{
|
|
2336
|
+
"internalType": "address",
|
|
2337
|
+
"name": "adapter",
|
|
2338
|
+
"type": "address"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"internalType": "uint256",
|
|
2342
|
+
"name": "newForceDeallocatePenalty",
|
|
2343
|
+
"type": "uint256"
|
|
2344
|
+
}
|
|
2345
|
+
],
|
|
2346
|
+
"name": "setForceDeallocatePenalty",
|
|
2347
|
+
"outputs": [],
|
|
2348
|
+
"stateMutability": "nonpayable",
|
|
2349
|
+
"type": "function"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"inputs": [
|
|
2353
|
+
{
|
|
2354
|
+
"internalType": "address",
|
|
2355
|
+
"name": "account",
|
|
2356
|
+
"type": "address"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"internalType": "bool",
|
|
2360
|
+
"name": "newIsAllocator",
|
|
2361
|
+
"type": "bool"
|
|
2362
|
+
}
|
|
2363
|
+
],
|
|
2364
|
+
"name": "setIsAllocator",
|
|
2365
|
+
"outputs": [],
|
|
2366
|
+
"stateMutability": "nonpayable",
|
|
2367
|
+
"type": "function"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"inputs": [
|
|
2371
|
+
{
|
|
2372
|
+
"internalType": "address",
|
|
2373
|
+
"name": "account",
|
|
2374
|
+
"type": "address"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"internalType": "bool",
|
|
2378
|
+
"name": "newIsSentinel",
|
|
2379
|
+
"type": "bool"
|
|
2380
|
+
}
|
|
2381
|
+
],
|
|
2382
|
+
"name": "setIsSentinel",
|
|
2383
|
+
"outputs": [],
|
|
2384
|
+
"stateMutability": "nonpayable",
|
|
2385
|
+
"type": "function"
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"inputs": [
|
|
2389
|
+
{
|
|
2390
|
+
"internalType": "address",
|
|
2391
|
+
"name": "newLiquidityAdapter",
|
|
2392
|
+
"type": "address"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"internalType": "bytes",
|
|
2396
|
+
"name": "newLiquidityData",
|
|
2397
|
+
"type": "bytes"
|
|
2398
|
+
}
|
|
2399
|
+
],
|
|
2400
|
+
"name": "setLiquidityAdapterAndData",
|
|
2401
|
+
"outputs": [],
|
|
2402
|
+
"stateMutability": "nonpayable",
|
|
2403
|
+
"type": "function"
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
"inputs": [
|
|
2407
|
+
{
|
|
2408
|
+
"internalType": "uint256",
|
|
2409
|
+
"name": "newManagementFee",
|
|
2410
|
+
"type": "uint256"
|
|
2411
|
+
}
|
|
2412
|
+
],
|
|
2413
|
+
"name": "setManagementFee",
|
|
2414
|
+
"outputs": [],
|
|
2415
|
+
"stateMutability": "nonpayable",
|
|
2416
|
+
"type": "function"
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
"inputs": [
|
|
2420
|
+
{
|
|
2421
|
+
"internalType": "address",
|
|
2422
|
+
"name": "newManagementFeeRecipient",
|
|
2423
|
+
"type": "address"
|
|
2424
|
+
}
|
|
2425
|
+
],
|
|
2426
|
+
"name": "setManagementFeeRecipient",
|
|
2427
|
+
"outputs": [],
|
|
2428
|
+
"stateMutability": "nonpayable",
|
|
2429
|
+
"type": "function"
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"inputs": [
|
|
2433
|
+
{
|
|
2434
|
+
"internalType": "uint256",
|
|
2435
|
+
"name": "newMaxRate",
|
|
2436
|
+
"type": "uint256"
|
|
2437
|
+
}
|
|
2438
|
+
],
|
|
2439
|
+
"name": "setMaxRate",
|
|
2440
|
+
"outputs": [],
|
|
2441
|
+
"stateMutability": "nonpayable",
|
|
2442
|
+
"type": "function"
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"inputs": [
|
|
2446
|
+
{
|
|
2447
|
+
"internalType": "string",
|
|
2448
|
+
"name": "newName",
|
|
2449
|
+
"type": "string"
|
|
2450
|
+
}
|
|
2451
|
+
],
|
|
2452
|
+
"name": "setName",
|
|
2453
|
+
"outputs": [],
|
|
2454
|
+
"stateMutability": "nonpayable",
|
|
2455
|
+
"type": "function"
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
"inputs": [
|
|
2459
|
+
{
|
|
2460
|
+
"internalType": "address",
|
|
2461
|
+
"name": "newOwner",
|
|
2462
|
+
"type": "address"
|
|
2463
|
+
}
|
|
2464
|
+
],
|
|
2465
|
+
"name": "setOwner",
|
|
2466
|
+
"outputs": [],
|
|
2467
|
+
"stateMutability": "nonpayable",
|
|
2468
|
+
"type": "function"
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"inputs": [
|
|
2472
|
+
{
|
|
2473
|
+
"internalType": "uint256",
|
|
2474
|
+
"name": "newPerformanceFee",
|
|
2475
|
+
"type": "uint256"
|
|
2476
|
+
}
|
|
2477
|
+
],
|
|
2478
|
+
"name": "setPerformanceFee",
|
|
2479
|
+
"outputs": [],
|
|
2480
|
+
"stateMutability": "nonpayable",
|
|
2481
|
+
"type": "function"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"inputs": [
|
|
2485
|
+
{
|
|
2486
|
+
"internalType": "address",
|
|
2487
|
+
"name": "newPerformanceFeeRecipient",
|
|
2488
|
+
"type": "address"
|
|
2489
|
+
}
|
|
2490
|
+
],
|
|
2491
|
+
"name": "setPerformanceFeeRecipient",
|
|
2492
|
+
"outputs": [],
|
|
2493
|
+
"stateMutability": "nonpayable",
|
|
2494
|
+
"type": "function"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"inputs": [
|
|
2498
|
+
{
|
|
2499
|
+
"internalType": "address",
|
|
2500
|
+
"name": "newReceiveAssetsGate",
|
|
2501
|
+
"type": "address"
|
|
2502
|
+
}
|
|
2503
|
+
],
|
|
2504
|
+
"name": "setReceiveAssetsGate",
|
|
2505
|
+
"outputs": [],
|
|
2506
|
+
"stateMutability": "nonpayable",
|
|
2507
|
+
"type": "function"
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
"inputs": [
|
|
2511
|
+
{
|
|
2512
|
+
"internalType": "address",
|
|
2513
|
+
"name": "newReceiveSharesGate",
|
|
2514
|
+
"type": "address"
|
|
2515
|
+
}
|
|
2516
|
+
],
|
|
2517
|
+
"name": "setReceiveSharesGate",
|
|
2518
|
+
"outputs": [],
|
|
2519
|
+
"stateMutability": "nonpayable",
|
|
2520
|
+
"type": "function"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"inputs": [
|
|
2524
|
+
{
|
|
2525
|
+
"internalType": "address",
|
|
2526
|
+
"name": "newSendAssetsGate",
|
|
2527
|
+
"type": "address"
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"name": "setSendAssetsGate",
|
|
2531
|
+
"outputs": [],
|
|
2532
|
+
"stateMutability": "nonpayable",
|
|
2533
|
+
"type": "function"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"inputs": [
|
|
2537
|
+
{
|
|
2538
|
+
"internalType": "address",
|
|
2539
|
+
"name": "newSendSharesGate",
|
|
2540
|
+
"type": "address"
|
|
2541
|
+
}
|
|
2542
|
+
],
|
|
2543
|
+
"name": "setSendSharesGate",
|
|
2544
|
+
"outputs": [],
|
|
2545
|
+
"stateMutability": "nonpayable",
|
|
2546
|
+
"type": "function"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"inputs": [
|
|
2550
|
+
{
|
|
2551
|
+
"internalType": "string",
|
|
2552
|
+
"name": "newSymbol",
|
|
2553
|
+
"type": "string"
|
|
2554
|
+
}
|
|
2555
|
+
],
|
|
2556
|
+
"name": "setSymbol",
|
|
2557
|
+
"outputs": [],
|
|
2558
|
+
"stateMutability": "nonpayable",
|
|
2559
|
+
"type": "function"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"inputs": [
|
|
2563
|
+
{
|
|
2564
|
+
"internalType": "bytes",
|
|
2565
|
+
"name": "data",
|
|
2566
|
+
"type": "bytes"
|
|
2567
|
+
}
|
|
2568
|
+
],
|
|
2569
|
+
"name": "submit",
|
|
2570
|
+
"outputs": [],
|
|
2571
|
+
"stateMutability": "nonpayable",
|
|
2572
|
+
"type": "function"
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
"inputs": [],
|
|
2576
|
+
"name": "symbol",
|
|
2577
|
+
"outputs": [
|
|
2578
|
+
{
|
|
2579
|
+
"internalType": "string",
|
|
2580
|
+
"name": "",
|
|
2581
|
+
"type": "string"
|
|
2582
|
+
}
|
|
2583
|
+
],
|
|
2584
|
+
"stateMutability": "view",
|
|
2585
|
+
"type": "function"
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
"inputs": [
|
|
2589
|
+
{
|
|
2590
|
+
"internalType": "bytes4",
|
|
2591
|
+
"name": "selector",
|
|
2592
|
+
"type": "bytes4"
|
|
2593
|
+
}
|
|
2594
|
+
],
|
|
2595
|
+
"name": "timelock",
|
|
2596
|
+
"outputs": [
|
|
2597
|
+
{
|
|
2598
|
+
"internalType": "uint256",
|
|
2599
|
+
"name": "",
|
|
2600
|
+
"type": "uint256"
|
|
2601
|
+
}
|
|
2602
|
+
],
|
|
2603
|
+
"stateMutability": "view",
|
|
2604
|
+
"type": "function"
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"inputs": [],
|
|
2608
|
+
"name": "totalAssets",
|
|
2609
|
+
"outputs": [
|
|
2610
|
+
{
|
|
2611
|
+
"internalType": "uint256",
|
|
2612
|
+
"name": "",
|
|
2613
|
+
"type": "uint256"
|
|
2614
|
+
}
|
|
2615
|
+
],
|
|
2616
|
+
"stateMutability": "view",
|
|
2617
|
+
"type": "function"
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
"inputs": [],
|
|
2621
|
+
"name": "totalSupply",
|
|
2622
|
+
"outputs": [
|
|
2623
|
+
{
|
|
2624
|
+
"internalType": "uint256",
|
|
2625
|
+
"name": "",
|
|
2626
|
+
"type": "uint256"
|
|
2627
|
+
}
|
|
2628
|
+
],
|
|
2629
|
+
"stateMutability": "view",
|
|
2630
|
+
"type": "function"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"inputs": [
|
|
2634
|
+
{
|
|
2635
|
+
"internalType": "address",
|
|
2636
|
+
"name": "to",
|
|
2637
|
+
"type": "address"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"internalType": "uint256",
|
|
2641
|
+
"name": "shares",
|
|
2642
|
+
"type": "uint256"
|
|
2643
|
+
}
|
|
2644
|
+
],
|
|
2645
|
+
"name": "transfer",
|
|
2646
|
+
"outputs": [
|
|
2647
|
+
{
|
|
2648
|
+
"internalType": "bool",
|
|
2649
|
+
"name": "",
|
|
2650
|
+
"type": "bool"
|
|
2651
|
+
}
|
|
2652
|
+
],
|
|
2653
|
+
"stateMutability": "nonpayable",
|
|
2654
|
+
"type": "function"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"inputs": [
|
|
2658
|
+
{
|
|
2659
|
+
"internalType": "address",
|
|
2660
|
+
"name": "from",
|
|
2661
|
+
"type": "address"
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"internalType": "address",
|
|
2665
|
+
"name": "to",
|
|
2666
|
+
"type": "address"
|
|
2667
|
+
},
|
|
2668
|
+
{
|
|
2669
|
+
"internalType": "uint256",
|
|
2670
|
+
"name": "shares",
|
|
2671
|
+
"type": "uint256"
|
|
2672
|
+
}
|
|
2673
|
+
],
|
|
2674
|
+
"name": "transferFrom",
|
|
2675
|
+
"outputs": [
|
|
2676
|
+
{
|
|
2677
|
+
"internalType": "bool",
|
|
2678
|
+
"name": "",
|
|
2679
|
+
"type": "bool"
|
|
2680
|
+
}
|
|
2681
|
+
],
|
|
2682
|
+
"stateMutability": "nonpayable",
|
|
2683
|
+
"type": "function"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"inputs": [],
|
|
2687
|
+
"name": "virtualShares",
|
|
2688
|
+
"outputs": [
|
|
2689
|
+
{
|
|
2690
|
+
"internalType": "uint256",
|
|
2691
|
+
"name": "",
|
|
2692
|
+
"type": "uint256"
|
|
2693
|
+
}
|
|
2694
|
+
],
|
|
2695
|
+
"stateMutability": "view",
|
|
2696
|
+
"type": "function"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"inputs": [
|
|
2700
|
+
{
|
|
2701
|
+
"internalType": "uint256",
|
|
2702
|
+
"name": "assets",
|
|
2703
|
+
"type": "uint256"
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"internalType": "address",
|
|
2707
|
+
"name": "receiver",
|
|
2708
|
+
"type": "address"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"internalType": "address",
|
|
2712
|
+
"name": "onBehalf",
|
|
2713
|
+
"type": "address"
|
|
2714
|
+
}
|
|
2715
|
+
],
|
|
2716
|
+
"name": "withdraw",
|
|
2717
|
+
"outputs": [
|
|
2718
|
+
{
|
|
2719
|
+
"internalType": "uint256",
|
|
2720
|
+
"name": "",
|
|
2721
|
+
"type": "uint256"
|
|
2722
|
+
}
|
|
2723
|
+
],
|
|
2724
|
+
"stateMutability": "nonpayable",
|
|
2725
|
+
"type": "function"
|
|
2726
|
+
}
|
|
2727
|
+
];
|
|
2728
|
+
/**
|
|
2729
|
+
* VaultV2_json Contract Class
|
|
2730
|
+
*
|
|
2731
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
2732
|
+
*
|
|
2733
|
+
* @example
|
|
2734
|
+
* ```typescript
|
|
2735
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
2736
|
+
* import { mainnet } from 'viem/chains';
|
|
2737
|
+
* import { VaultV2_json } from 'VaultV2_json';
|
|
2738
|
+
*
|
|
2739
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
2740
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
2741
|
+
*
|
|
2742
|
+
* const contract = new VaultV2_json('0x...', { publicClient, walletClient });
|
|
2743
|
+
*
|
|
2744
|
+
* // Read functions
|
|
2745
|
+
* const result = await contract.balanceOf('0x...');
|
|
2746
|
+
*
|
|
2747
|
+
* // Write functions
|
|
2748
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
2749
|
+
*
|
|
2750
|
+
* // Simulate transactions (dry-run)
|
|
2751
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
2752
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
2753
|
+
*
|
|
2754
|
+
* // Watch events
|
|
2755
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2756
|
+
* console.log('Transfer event:', event);
|
|
2757
|
+
* });
|
|
2758
|
+
* ```
|
|
2759
|
+
*/
|
|
2760
|
+
class VaultV2_json {
|
|
2761
|
+
constructor(address, clients) {
|
|
2762
|
+
this.contractAddress = address;
|
|
2763
|
+
this.publicClient = clients.publicClient;
|
|
2764
|
+
this.contract = (0, viem_1.getContract)({
|
|
2765
|
+
address,
|
|
2766
|
+
abi: exports.VaultV2_jsonAbi,
|
|
2767
|
+
client: {
|
|
2768
|
+
public: clients.publicClient,
|
|
2769
|
+
wallet: clients.walletClient,
|
|
2770
|
+
},
|
|
2771
|
+
});
|
|
2772
|
+
}
|
|
2773
|
+
/**
|
|
2774
|
+
* Get the contract address
|
|
2775
|
+
*/
|
|
2776
|
+
get address() {
|
|
2777
|
+
return this.contractAddress;
|
|
2778
|
+
}
|
|
2779
|
+
/**
|
|
2780
|
+
* Get the underlying viem contract instance
|
|
2781
|
+
*/
|
|
2782
|
+
getContract() {
|
|
2783
|
+
return this.contract;
|
|
2784
|
+
}
|
|
2785
|
+
/**
|
|
2786
|
+
* DOMAIN_SEPARATOR
|
|
2787
|
+
* view
|
|
2788
|
+
*/
|
|
2789
|
+
async DOMAIN_SEPARATOR() {
|
|
2790
|
+
return this.contract.read.DOMAIN_SEPARATOR();
|
|
2791
|
+
}
|
|
2792
|
+
/**
|
|
2793
|
+
* _totalAssets
|
|
2794
|
+
* view
|
|
2795
|
+
*/
|
|
2796
|
+
async _totalAssets() {
|
|
2797
|
+
return this.contract.read._totalAssets();
|
|
2798
|
+
}
|
|
2799
|
+
/**
|
|
2800
|
+
* abdicated
|
|
2801
|
+
* view
|
|
2802
|
+
*/
|
|
2803
|
+
async abdicated(selector) {
|
|
2804
|
+
return this.contract.read.abdicated([selector]);
|
|
2805
|
+
}
|
|
2806
|
+
/**
|
|
2807
|
+
* absoluteCap
|
|
2808
|
+
* view
|
|
2809
|
+
*/
|
|
2810
|
+
async absoluteCap(id) {
|
|
2811
|
+
return this.contract.read.absoluteCap([id]);
|
|
2812
|
+
}
|
|
2813
|
+
/**
|
|
2814
|
+
* accrueInterestView
|
|
2815
|
+
* view
|
|
2816
|
+
*/
|
|
2817
|
+
async accrueInterestView() {
|
|
2818
|
+
return this.contract.read.accrueInterestView();
|
|
2819
|
+
}
|
|
2820
|
+
/**
|
|
2821
|
+
* adapterRegistry
|
|
2822
|
+
* view
|
|
2823
|
+
*/
|
|
2824
|
+
async adapterRegistry() {
|
|
2825
|
+
return this.contract.read.adapterRegistry();
|
|
2826
|
+
}
|
|
2827
|
+
/**
|
|
2828
|
+
* adapters
|
|
2829
|
+
* view
|
|
2830
|
+
*/
|
|
2831
|
+
async adapters(arg0) {
|
|
2832
|
+
return this.contract.read.adapters([arg0]);
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* adaptersLength
|
|
2836
|
+
* view
|
|
2837
|
+
*/
|
|
2838
|
+
async adaptersLength() {
|
|
2839
|
+
return this.contract.read.adaptersLength();
|
|
2840
|
+
}
|
|
2841
|
+
/**
|
|
2842
|
+
* allocation
|
|
2843
|
+
* view
|
|
2844
|
+
*/
|
|
2845
|
+
async allocation(id) {
|
|
2846
|
+
return this.contract.read.allocation([id]);
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
* allowance
|
|
2850
|
+
* view
|
|
2851
|
+
*/
|
|
2852
|
+
async allowance(owner, spender) {
|
|
2853
|
+
return this.contract.read.allowance([owner, spender]);
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* asset
|
|
2857
|
+
* view
|
|
2858
|
+
*/
|
|
2859
|
+
async asset() {
|
|
2860
|
+
return this.contract.read.asset();
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* balanceOf
|
|
2864
|
+
* view
|
|
2865
|
+
*/
|
|
2866
|
+
async balanceOf(account) {
|
|
2867
|
+
return this.contract.read.balanceOf([account]);
|
|
2868
|
+
}
|
|
2869
|
+
/**
|
|
2870
|
+
* canReceiveAssets
|
|
2871
|
+
* view
|
|
2872
|
+
*/
|
|
2873
|
+
async canReceiveAssets(account) {
|
|
2874
|
+
return this.contract.read.canReceiveAssets([account]);
|
|
2875
|
+
}
|
|
2876
|
+
/**
|
|
2877
|
+
* canReceiveShares
|
|
2878
|
+
* view
|
|
2879
|
+
*/
|
|
2880
|
+
async canReceiveShares(account) {
|
|
2881
|
+
return this.contract.read.canReceiveShares([account]);
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* canSendAssets
|
|
2885
|
+
* view
|
|
2886
|
+
*/
|
|
2887
|
+
async canSendAssets(account) {
|
|
2888
|
+
return this.contract.read.canSendAssets([account]);
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* canSendShares
|
|
2892
|
+
* view
|
|
2893
|
+
*/
|
|
2894
|
+
async canSendShares(account) {
|
|
2895
|
+
return this.contract.read.canSendShares([account]);
|
|
2896
|
+
}
|
|
2897
|
+
/**
|
|
2898
|
+
* convertToAssets
|
|
2899
|
+
* view
|
|
2900
|
+
*/
|
|
2901
|
+
async convertToAssets(shares) {
|
|
2902
|
+
return this.contract.read.convertToAssets([shares]);
|
|
2903
|
+
}
|
|
2904
|
+
/**
|
|
2905
|
+
* convertToShares
|
|
2906
|
+
* view
|
|
2907
|
+
*/
|
|
2908
|
+
async convertToShares(assets) {
|
|
2909
|
+
return this.contract.read.convertToShares([assets]);
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* curator
|
|
2913
|
+
* view
|
|
2914
|
+
*/
|
|
2915
|
+
async curator() {
|
|
2916
|
+
return this.contract.read.curator();
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
* decimals
|
|
2920
|
+
* view
|
|
2921
|
+
*/
|
|
2922
|
+
async decimals() {
|
|
2923
|
+
return this.contract.read.decimals();
|
|
2924
|
+
}
|
|
2925
|
+
/**
|
|
2926
|
+
* executableAt
|
|
2927
|
+
* view
|
|
2928
|
+
*/
|
|
2929
|
+
async executableAt(data) {
|
|
2930
|
+
return this.contract.read.executableAt([data]);
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* firstTotalAssets
|
|
2934
|
+
* view
|
|
2935
|
+
*/
|
|
2936
|
+
async firstTotalAssets() {
|
|
2937
|
+
return this.contract.read.firstTotalAssets();
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* forceDeallocatePenalty
|
|
2941
|
+
* view
|
|
2942
|
+
*/
|
|
2943
|
+
async forceDeallocatePenalty(adapter) {
|
|
2944
|
+
return this.contract.read.forceDeallocatePenalty([adapter]);
|
|
2945
|
+
}
|
|
2946
|
+
/**
|
|
2947
|
+
* isAdapter
|
|
2948
|
+
* view
|
|
2949
|
+
*/
|
|
2950
|
+
async isAdapter(account) {
|
|
2951
|
+
return this.contract.read.isAdapter([account]);
|
|
2952
|
+
}
|
|
2953
|
+
/**
|
|
2954
|
+
* isAllocator
|
|
2955
|
+
* view
|
|
2956
|
+
*/
|
|
2957
|
+
async isAllocator(account) {
|
|
2958
|
+
return this.contract.read.isAllocator([account]);
|
|
2959
|
+
}
|
|
2960
|
+
/**
|
|
2961
|
+
* isSentinel
|
|
2962
|
+
* view
|
|
2963
|
+
*/
|
|
2964
|
+
async isSentinel(account) {
|
|
2965
|
+
return this.contract.read.isSentinel([account]);
|
|
2966
|
+
}
|
|
2967
|
+
/**
|
|
2968
|
+
* lastUpdate
|
|
2969
|
+
* view
|
|
2970
|
+
*/
|
|
2971
|
+
async lastUpdate() {
|
|
2972
|
+
return this.contract.read.lastUpdate();
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* liquidityAdapter
|
|
2976
|
+
* view
|
|
2977
|
+
*/
|
|
2978
|
+
async liquidityAdapter() {
|
|
2979
|
+
return this.contract.read.liquidityAdapter();
|
|
2980
|
+
}
|
|
2981
|
+
/**
|
|
2982
|
+
* liquidityData
|
|
2983
|
+
* view
|
|
2984
|
+
*/
|
|
2985
|
+
async liquidityData() {
|
|
2986
|
+
return this.contract.read.liquidityData();
|
|
2987
|
+
}
|
|
2988
|
+
/**
|
|
2989
|
+
* managementFee
|
|
2990
|
+
* view
|
|
2991
|
+
*/
|
|
2992
|
+
async managementFee() {
|
|
2993
|
+
return this.contract.read.managementFee();
|
|
2994
|
+
}
|
|
2995
|
+
/**
|
|
2996
|
+
* managementFeeRecipient
|
|
2997
|
+
* view
|
|
2998
|
+
*/
|
|
2999
|
+
async managementFeeRecipient() {
|
|
3000
|
+
return this.contract.read.managementFeeRecipient();
|
|
3001
|
+
}
|
|
3002
|
+
/**
|
|
3003
|
+
* maxDeposit
|
|
3004
|
+
* pure
|
|
3005
|
+
*/
|
|
3006
|
+
async maxDeposit(arg0) {
|
|
3007
|
+
return this.contract.read.maxDeposit([arg0]);
|
|
3008
|
+
}
|
|
3009
|
+
/**
|
|
3010
|
+
* maxMint
|
|
3011
|
+
* pure
|
|
3012
|
+
*/
|
|
3013
|
+
async maxMint(arg0) {
|
|
3014
|
+
return this.contract.read.maxMint([arg0]);
|
|
3015
|
+
}
|
|
3016
|
+
/**
|
|
3017
|
+
* maxRate
|
|
3018
|
+
* view
|
|
3019
|
+
*/
|
|
3020
|
+
async maxRate() {
|
|
3021
|
+
return this.contract.read.maxRate();
|
|
3022
|
+
}
|
|
3023
|
+
/**
|
|
3024
|
+
* maxRedeem
|
|
3025
|
+
* pure
|
|
3026
|
+
*/
|
|
3027
|
+
async maxRedeem(arg0) {
|
|
3028
|
+
return this.contract.read.maxRedeem([arg0]);
|
|
3029
|
+
}
|
|
3030
|
+
/**
|
|
3031
|
+
* maxWithdraw
|
|
3032
|
+
* pure
|
|
3033
|
+
*/
|
|
3034
|
+
async maxWithdraw(arg0) {
|
|
3035
|
+
return this.contract.read.maxWithdraw([arg0]);
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* name
|
|
3039
|
+
* view
|
|
3040
|
+
*/
|
|
3041
|
+
async name() {
|
|
3042
|
+
return this.contract.read.name();
|
|
3043
|
+
}
|
|
3044
|
+
/**
|
|
3045
|
+
* nonces
|
|
3046
|
+
* view
|
|
3047
|
+
*/
|
|
3048
|
+
async nonces(account) {
|
|
3049
|
+
return this.contract.read.nonces([account]);
|
|
3050
|
+
}
|
|
3051
|
+
/**
|
|
3052
|
+
* owner
|
|
3053
|
+
* view
|
|
3054
|
+
*/
|
|
3055
|
+
async owner() {
|
|
3056
|
+
return this.contract.read.owner();
|
|
3057
|
+
}
|
|
3058
|
+
/**
|
|
3059
|
+
* performanceFee
|
|
3060
|
+
* view
|
|
3061
|
+
*/
|
|
3062
|
+
async performanceFee() {
|
|
3063
|
+
return this.contract.read.performanceFee();
|
|
3064
|
+
}
|
|
3065
|
+
/**
|
|
3066
|
+
* performanceFeeRecipient
|
|
3067
|
+
* view
|
|
3068
|
+
*/
|
|
3069
|
+
async performanceFeeRecipient() {
|
|
3070
|
+
return this.contract.read.performanceFeeRecipient();
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
* previewDeposit
|
|
3074
|
+
* view
|
|
3075
|
+
*/
|
|
3076
|
+
async previewDeposit(assets) {
|
|
3077
|
+
return this.contract.read.previewDeposit([assets]);
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* previewMint
|
|
3081
|
+
* view
|
|
3082
|
+
*/
|
|
3083
|
+
async previewMint(shares) {
|
|
3084
|
+
return this.contract.read.previewMint([shares]);
|
|
3085
|
+
}
|
|
3086
|
+
/**
|
|
3087
|
+
* previewRedeem
|
|
3088
|
+
* view
|
|
3089
|
+
*/
|
|
3090
|
+
async previewRedeem(shares) {
|
|
3091
|
+
return this.contract.read.previewRedeem([shares]);
|
|
3092
|
+
}
|
|
3093
|
+
/**
|
|
3094
|
+
* previewWithdraw
|
|
3095
|
+
* view
|
|
3096
|
+
*/
|
|
3097
|
+
async previewWithdraw(assets) {
|
|
3098
|
+
return this.contract.read.previewWithdraw([assets]);
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
* receiveAssetsGate
|
|
3102
|
+
* view
|
|
3103
|
+
*/
|
|
3104
|
+
async receiveAssetsGate() {
|
|
3105
|
+
return this.contract.read.receiveAssetsGate();
|
|
3106
|
+
}
|
|
3107
|
+
/**
|
|
3108
|
+
* receiveSharesGate
|
|
3109
|
+
* view
|
|
3110
|
+
*/
|
|
3111
|
+
async receiveSharesGate() {
|
|
3112
|
+
return this.contract.read.receiveSharesGate();
|
|
3113
|
+
}
|
|
3114
|
+
/**
|
|
3115
|
+
* relativeCap
|
|
3116
|
+
* view
|
|
3117
|
+
*/
|
|
3118
|
+
async relativeCap(id) {
|
|
3119
|
+
return this.contract.read.relativeCap([id]);
|
|
3120
|
+
}
|
|
3121
|
+
/**
|
|
3122
|
+
* sendAssetsGate
|
|
3123
|
+
* view
|
|
3124
|
+
*/
|
|
3125
|
+
async sendAssetsGate() {
|
|
3126
|
+
return this.contract.read.sendAssetsGate();
|
|
3127
|
+
}
|
|
3128
|
+
/**
|
|
3129
|
+
* sendSharesGate
|
|
3130
|
+
* view
|
|
3131
|
+
*/
|
|
3132
|
+
async sendSharesGate() {
|
|
3133
|
+
return this.contract.read.sendSharesGate();
|
|
3134
|
+
}
|
|
3135
|
+
/**
|
|
3136
|
+
* symbol
|
|
3137
|
+
* view
|
|
3138
|
+
*/
|
|
3139
|
+
async symbol() {
|
|
3140
|
+
return this.contract.read.symbol();
|
|
3141
|
+
}
|
|
3142
|
+
/**
|
|
3143
|
+
* timelock
|
|
3144
|
+
* view
|
|
3145
|
+
*/
|
|
3146
|
+
async timelock(selector) {
|
|
3147
|
+
return this.contract.read.timelock([selector]);
|
|
3148
|
+
}
|
|
3149
|
+
/**
|
|
3150
|
+
* totalAssets
|
|
3151
|
+
* view
|
|
3152
|
+
*/
|
|
3153
|
+
async totalAssets() {
|
|
3154
|
+
return this.contract.read.totalAssets();
|
|
3155
|
+
}
|
|
3156
|
+
/**
|
|
3157
|
+
* totalSupply
|
|
3158
|
+
* view
|
|
3159
|
+
*/
|
|
3160
|
+
async totalSupply() {
|
|
3161
|
+
return this.contract.read.totalSupply();
|
|
3162
|
+
}
|
|
3163
|
+
/**
|
|
3164
|
+
* virtualShares
|
|
3165
|
+
* view
|
|
3166
|
+
*/
|
|
3167
|
+
async virtualShares() {
|
|
3168
|
+
return this.contract.read.virtualShares();
|
|
3169
|
+
}
|
|
3170
|
+
/**
|
|
3171
|
+
* abdicate
|
|
3172
|
+
* nonpayable
|
|
3173
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3174
|
+
*/
|
|
3175
|
+
async abdicate(selector, options) {
|
|
3176
|
+
if (!this.contract.write) {
|
|
3177
|
+
throw new Error('Wallet client is required for write operations');
|
|
3178
|
+
}
|
|
3179
|
+
return this.contract.write.abdicate([selector], options);
|
|
3180
|
+
}
|
|
3181
|
+
/**
|
|
3182
|
+
* accrueInterest
|
|
3183
|
+
* nonpayable
|
|
3184
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3185
|
+
*/
|
|
3186
|
+
async accrueInterest(options) {
|
|
3187
|
+
if (!this.contract.write) {
|
|
3188
|
+
throw new Error('Wallet client is required for write operations');
|
|
3189
|
+
}
|
|
3190
|
+
return this.contract.write.accrueInterest(options);
|
|
3191
|
+
}
|
|
3192
|
+
/**
|
|
3193
|
+
* addAdapter
|
|
3194
|
+
* nonpayable
|
|
3195
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3196
|
+
*/
|
|
3197
|
+
async addAdapter(account, options) {
|
|
3198
|
+
if (!this.contract.write) {
|
|
3199
|
+
throw new Error('Wallet client is required for write operations');
|
|
3200
|
+
}
|
|
3201
|
+
return this.contract.write.addAdapter([account], options);
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* allocate
|
|
3205
|
+
* nonpayable
|
|
3206
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3207
|
+
*/
|
|
3208
|
+
async allocate(adapter, data, assets, options) {
|
|
3209
|
+
if (!this.contract.write) {
|
|
3210
|
+
throw new Error('Wallet client is required for write operations');
|
|
3211
|
+
}
|
|
3212
|
+
return this.contract.write.allocate([adapter, data, assets], options);
|
|
3213
|
+
}
|
|
3214
|
+
/**
|
|
3215
|
+
* approve
|
|
3216
|
+
* nonpayable
|
|
3217
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3218
|
+
*/
|
|
3219
|
+
async approve(spender, shares, options) {
|
|
3220
|
+
if (!this.contract.write) {
|
|
3221
|
+
throw new Error('Wallet client is required for write operations');
|
|
3222
|
+
}
|
|
3223
|
+
return this.contract.write.approve([spender, shares], options);
|
|
3224
|
+
}
|
|
3225
|
+
/**
|
|
3226
|
+
* deallocate
|
|
3227
|
+
* nonpayable
|
|
3228
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3229
|
+
*/
|
|
3230
|
+
async deallocate(adapter, data, assets, options) {
|
|
3231
|
+
if (!this.contract.write) {
|
|
3232
|
+
throw new Error('Wallet client is required for write operations');
|
|
3233
|
+
}
|
|
3234
|
+
return this.contract.write.deallocate([adapter, data, assets], options);
|
|
3235
|
+
}
|
|
3236
|
+
/**
|
|
3237
|
+
* decreaseAbsoluteCap
|
|
3238
|
+
* nonpayable
|
|
3239
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3240
|
+
*/
|
|
3241
|
+
async decreaseAbsoluteCap(idData, newAbsoluteCap, options) {
|
|
3242
|
+
if (!this.contract.write) {
|
|
3243
|
+
throw new Error('Wallet client is required for write operations');
|
|
3244
|
+
}
|
|
3245
|
+
return this.contract.write.decreaseAbsoluteCap([idData, newAbsoluteCap], options);
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* decreaseRelativeCap
|
|
3249
|
+
* nonpayable
|
|
3250
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3251
|
+
*/
|
|
3252
|
+
async decreaseRelativeCap(idData, newRelativeCap, options) {
|
|
3253
|
+
if (!this.contract.write) {
|
|
3254
|
+
throw new Error('Wallet client is required for write operations');
|
|
3255
|
+
}
|
|
3256
|
+
return this.contract.write.decreaseRelativeCap([idData, newRelativeCap], options);
|
|
3257
|
+
}
|
|
3258
|
+
/**
|
|
3259
|
+
* decreaseTimelock
|
|
3260
|
+
* nonpayable
|
|
3261
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3262
|
+
*/
|
|
3263
|
+
async decreaseTimelock(selector, newDuration, options) {
|
|
3264
|
+
if (!this.contract.write) {
|
|
3265
|
+
throw new Error('Wallet client is required for write operations');
|
|
3266
|
+
}
|
|
3267
|
+
return this.contract.write.decreaseTimelock([selector, newDuration], options);
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* deposit
|
|
3271
|
+
* nonpayable
|
|
3272
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3273
|
+
*/
|
|
3274
|
+
async deposit(assets, onBehalf, options) {
|
|
3275
|
+
if (!this.contract.write) {
|
|
3276
|
+
throw new Error('Wallet client is required for write operations');
|
|
3277
|
+
}
|
|
3278
|
+
return this.contract.write.deposit([assets, onBehalf], options);
|
|
3279
|
+
}
|
|
3280
|
+
/**
|
|
3281
|
+
* forceDeallocate
|
|
3282
|
+
* nonpayable
|
|
3283
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3284
|
+
*/
|
|
3285
|
+
async forceDeallocate(adapter, data, assets, onBehalf, options) {
|
|
3286
|
+
if (!this.contract.write) {
|
|
3287
|
+
throw new Error('Wallet client is required for write operations');
|
|
3288
|
+
}
|
|
3289
|
+
return this.contract.write.forceDeallocate([adapter, data, assets, onBehalf], options);
|
|
3290
|
+
}
|
|
3291
|
+
/**
|
|
3292
|
+
* increaseAbsoluteCap
|
|
3293
|
+
* nonpayable
|
|
3294
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3295
|
+
*/
|
|
3296
|
+
async increaseAbsoluteCap(idData, newAbsoluteCap, options) {
|
|
3297
|
+
if (!this.contract.write) {
|
|
3298
|
+
throw new Error('Wallet client is required for write operations');
|
|
3299
|
+
}
|
|
3300
|
+
return this.contract.write.increaseAbsoluteCap([idData, newAbsoluteCap], options);
|
|
3301
|
+
}
|
|
3302
|
+
/**
|
|
3303
|
+
* increaseRelativeCap
|
|
3304
|
+
* nonpayable
|
|
3305
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3306
|
+
*/
|
|
3307
|
+
async increaseRelativeCap(idData, newRelativeCap, options) {
|
|
3308
|
+
if (!this.contract.write) {
|
|
3309
|
+
throw new Error('Wallet client is required for write operations');
|
|
3310
|
+
}
|
|
3311
|
+
return this.contract.write.increaseRelativeCap([idData, newRelativeCap], options);
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* increaseTimelock
|
|
3315
|
+
* nonpayable
|
|
3316
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3317
|
+
*/
|
|
3318
|
+
async increaseTimelock(selector, newDuration, options) {
|
|
3319
|
+
if (!this.contract.write) {
|
|
3320
|
+
throw new Error('Wallet client is required for write operations');
|
|
3321
|
+
}
|
|
3322
|
+
return this.contract.write.increaseTimelock([selector, newDuration], options);
|
|
3323
|
+
}
|
|
3324
|
+
/**
|
|
3325
|
+
* mint
|
|
3326
|
+
* nonpayable
|
|
3327
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3328
|
+
*/
|
|
3329
|
+
async mint(shares, onBehalf, options) {
|
|
3330
|
+
if (!this.contract.write) {
|
|
3331
|
+
throw new Error('Wallet client is required for write operations');
|
|
3332
|
+
}
|
|
3333
|
+
return this.contract.write.mint([shares, onBehalf], options);
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* multicall
|
|
3337
|
+
* nonpayable
|
|
3338
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3339
|
+
*/
|
|
3340
|
+
async multicall(data, options) {
|
|
3341
|
+
if (!this.contract.write) {
|
|
3342
|
+
throw new Error('Wallet client is required for write operations');
|
|
3343
|
+
}
|
|
3344
|
+
return this.contract.write.multicall([data], options);
|
|
3345
|
+
}
|
|
3346
|
+
/**
|
|
3347
|
+
* permit
|
|
3348
|
+
* nonpayable
|
|
3349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3350
|
+
*/
|
|
3351
|
+
async permit(_owner, spender, shares, deadline, v, r, s, options) {
|
|
3352
|
+
if (!this.contract.write) {
|
|
3353
|
+
throw new Error('Wallet client is required for write operations');
|
|
3354
|
+
}
|
|
3355
|
+
return this.contract.write.permit([_owner, spender, shares, deadline, v, r, s], options);
|
|
3356
|
+
}
|
|
3357
|
+
/**
|
|
3358
|
+
* redeem
|
|
3359
|
+
* nonpayable
|
|
3360
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3361
|
+
*/
|
|
3362
|
+
async redeem(shares, receiver, onBehalf, options) {
|
|
3363
|
+
if (!this.contract.write) {
|
|
3364
|
+
throw new Error('Wallet client is required for write operations');
|
|
3365
|
+
}
|
|
3366
|
+
return this.contract.write.redeem([shares, receiver, onBehalf], options);
|
|
3367
|
+
}
|
|
3368
|
+
/**
|
|
3369
|
+
* removeAdapter
|
|
3370
|
+
* nonpayable
|
|
3371
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3372
|
+
*/
|
|
3373
|
+
async removeAdapter(account, options) {
|
|
3374
|
+
if (!this.contract.write) {
|
|
3375
|
+
throw new Error('Wallet client is required for write operations');
|
|
3376
|
+
}
|
|
3377
|
+
return this.contract.write.removeAdapter([account], options);
|
|
3378
|
+
}
|
|
3379
|
+
/**
|
|
3380
|
+
* revoke
|
|
3381
|
+
* nonpayable
|
|
3382
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3383
|
+
*/
|
|
3384
|
+
async revoke(data, options) {
|
|
3385
|
+
if (!this.contract.write) {
|
|
3386
|
+
throw new Error('Wallet client is required for write operations');
|
|
3387
|
+
}
|
|
3388
|
+
return this.contract.write.revoke([data], options);
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* setAdapterRegistry
|
|
3392
|
+
* nonpayable
|
|
3393
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3394
|
+
*/
|
|
3395
|
+
async setAdapterRegistry(newAdapterRegistry, options) {
|
|
3396
|
+
if (!this.contract.write) {
|
|
3397
|
+
throw new Error('Wallet client is required for write operations');
|
|
3398
|
+
}
|
|
3399
|
+
return this.contract.write.setAdapterRegistry([newAdapterRegistry], options);
|
|
3400
|
+
}
|
|
3401
|
+
/**
|
|
3402
|
+
* setCurator
|
|
3403
|
+
* nonpayable
|
|
3404
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3405
|
+
*/
|
|
3406
|
+
async setCurator(newCurator, options) {
|
|
3407
|
+
if (!this.contract.write) {
|
|
3408
|
+
throw new Error('Wallet client is required for write operations');
|
|
3409
|
+
}
|
|
3410
|
+
return this.contract.write.setCurator([newCurator], options);
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* setForceDeallocatePenalty
|
|
3414
|
+
* nonpayable
|
|
3415
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3416
|
+
*/
|
|
3417
|
+
async setForceDeallocatePenalty(adapter, newForceDeallocatePenalty, options) {
|
|
3418
|
+
if (!this.contract.write) {
|
|
3419
|
+
throw new Error('Wallet client is required for write operations');
|
|
3420
|
+
}
|
|
3421
|
+
return this.contract.write.setForceDeallocatePenalty([adapter, newForceDeallocatePenalty], options);
|
|
3422
|
+
}
|
|
3423
|
+
/**
|
|
3424
|
+
* setIsAllocator
|
|
3425
|
+
* nonpayable
|
|
3426
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3427
|
+
*/
|
|
3428
|
+
async setIsAllocator(account, newIsAllocator, options) {
|
|
3429
|
+
if (!this.contract.write) {
|
|
3430
|
+
throw new Error('Wallet client is required for write operations');
|
|
3431
|
+
}
|
|
3432
|
+
return this.contract.write.setIsAllocator([account, newIsAllocator], options);
|
|
3433
|
+
}
|
|
3434
|
+
/**
|
|
3435
|
+
* setIsSentinel
|
|
3436
|
+
* nonpayable
|
|
3437
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3438
|
+
*/
|
|
3439
|
+
async setIsSentinel(account, newIsSentinel, options) {
|
|
3440
|
+
if (!this.contract.write) {
|
|
3441
|
+
throw new Error('Wallet client is required for write operations');
|
|
3442
|
+
}
|
|
3443
|
+
return this.contract.write.setIsSentinel([account, newIsSentinel], options);
|
|
3444
|
+
}
|
|
3445
|
+
/**
|
|
3446
|
+
* setLiquidityAdapterAndData
|
|
3447
|
+
* nonpayable
|
|
3448
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3449
|
+
*/
|
|
3450
|
+
async setLiquidityAdapterAndData(newLiquidityAdapter, newLiquidityData, options) {
|
|
3451
|
+
if (!this.contract.write) {
|
|
3452
|
+
throw new Error('Wallet client is required for write operations');
|
|
3453
|
+
}
|
|
3454
|
+
return this.contract.write.setLiquidityAdapterAndData([newLiquidityAdapter, newLiquidityData], options);
|
|
3455
|
+
}
|
|
3456
|
+
/**
|
|
3457
|
+
* setManagementFee
|
|
3458
|
+
* nonpayable
|
|
3459
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3460
|
+
*/
|
|
3461
|
+
async setManagementFee(newManagementFee, options) {
|
|
3462
|
+
if (!this.contract.write) {
|
|
3463
|
+
throw new Error('Wallet client is required for write operations');
|
|
3464
|
+
}
|
|
3465
|
+
return this.contract.write.setManagementFee([newManagementFee], options);
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* setManagementFeeRecipient
|
|
3469
|
+
* nonpayable
|
|
3470
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3471
|
+
*/
|
|
3472
|
+
async setManagementFeeRecipient(newManagementFeeRecipient, options) {
|
|
3473
|
+
if (!this.contract.write) {
|
|
3474
|
+
throw new Error('Wallet client is required for write operations');
|
|
3475
|
+
}
|
|
3476
|
+
return this.contract.write.setManagementFeeRecipient([newManagementFeeRecipient], options);
|
|
3477
|
+
}
|
|
3478
|
+
/**
|
|
3479
|
+
* setMaxRate
|
|
3480
|
+
* nonpayable
|
|
3481
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3482
|
+
*/
|
|
3483
|
+
async setMaxRate(newMaxRate, options) {
|
|
3484
|
+
if (!this.contract.write) {
|
|
3485
|
+
throw new Error('Wallet client is required for write operations');
|
|
3486
|
+
}
|
|
3487
|
+
return this.contract.write.setMaxRate([newMaxRate], options);
|
|
3488
|
+
}
|
|
3489
|
+
/**
|
|
3490
|
+
* setName
|
|
3491
|
+
* nonpayable
|
|
3492
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3493
|
+
*/
|
|
3494
|
+
async setName(newName, options) {
|
|
3495
|
+
if (!this.contract.write) {
|
|
3496
|
+
throw new Error('Wallet client is required for write operations');
|
|
3497
|
+
}
|
|
3498
|
+
return this.contract.write.setName([newName], options);
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* setOwner
|
|
3502
|
+
* nonpayable
|
|
3503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3504
|
+
*/
|
|
3505
|
+
async setOwner(newOwner, options) {
|
|
3506
|
+
if (!this.contract.write) {
|
|
3507
|
+
throw new Error('Wallet client is required for write operations');
|
|
3508
|
+
}
|
|
3509
|
+
return this.contract.write.setOwner([newOwner], options);
|
|
3510
|
+
}
|
|
3511
|
+
/**
|
|
3512
|
+
* setPerformanceFee
|
|
3513
|
+
* nonpayable
|
|
3514
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3515
|
+
*/
|
|
3516
|
+
async setPerformanceFee(newPerformanceFee, options) {
|
|
3517
|
+
if (!this.contract.write) {
|
|
3518
|
+
throw new Error('Wallet client is required for write operations');
|
|
3519
|
+
}
|
|
3520
|
+
return this.contract.write.setPerformanceFee([newPerformanceFee], options);
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* setPerformanceFeeRecipient
|
|
3524
|
+
* nonpayable
|
|
3525
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3526
|
+
*/
|
|
3527
|
+
async setPerformanceFeeRecipient(newPerformanceFeeRecipient, options) {
|
|
3528
|
+
if (!this.contract.write) {
|
|
3529
|
+
throw new Error('Wallet client is required for write operations');
|
|
3530
|
+
}
|
|
3531
|
+
return this.contract.write.setPerformanceFeeRecipient([newPerformanceFeeRecipient], options);
|
|
3532
|
+
}
|
|
3533
|
+
/**
|
|
3534
|
+
* setReceiveAssetsGate
|
|
3535
|
+
* nonpayable
|
|
3536
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3537
|
+
*/
|
|
3538
|
+
async setReceiveAssetsGate(newReceiveAssetsGate, options) {
|
|
3539
|
+
if (!this.contract.write) {
|
|
3540
|
+
throw new Error('Wallet client is required for write operations');
|
|
3541
|
+
}
|
|
3542
|
+
return this.contract.write.setReceiveAssetsGate([newReceiveAssetsGate], options);
|
|
3543
|
+
}
|
|
3544
|
+
/**
|
|
3545
|
+
* setReceiveSharesGate
|
|
3546
|
+
* nonpayable
|
|
3547
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3548
|
+
*/
|
|
3549
|
+
async setReceiveSharesGate(newReceiveSharesGate, options) {
|
|
3550
|
+
if (!this.contract.write) {
|
|
3551
|
+
throw new Error('Wallet client is required for write operations');
|
|
3552
|
+
}
|
|
3553
|
+
return this.contract.write.setReceiveSharesGate([newReceiveSharesGate], options);
|
|
3554
|
+
}
|
|
3555
|
+
/**
|
|
3556
|
+
* setSendAssetsGate
|
|
3557
|
+
* nonpayable
|
|
3558
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3559
|
+
*/
|
|
3560
|
+
async setSendAssetsGate(newSendAssetsGate, options) {
|
|
3561
|
+
if (!this.contract.write) {
|
|
3562
|
+
throw new Error('Wallet client is required for write operations');
|
|
3563
|
+
}
|
|
3564
|
+
return this.contract.write.setSendAssetsGate([newSendAssetsGate], options);
|
|
3565
|
+
}
|
|
3566
|
+
/**
|
|
3567
|
+
* setSendSharesGate
|
|
3568
|
+
* nonpayable
|
|
3569
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3570
|
+
*/
|
|
3571
|
+
async setSendSharesGate(newSendSharesGate, options) {
|
|
3572
|
+
if (!this.contract.write) {
|
|
3573
|
+
throw new Error('Wallet client is required for write operations');
|
|
3574
|
+
}
|
|
3575
|
+
return this.contract.write.setSendSharesGate([newSendSharesGate], options);
|
|
3576
|
+
}
|
|
3577
|
+
/**
|
|
3578
|
+
* setSymbol
|
|
3579
|
+
* nonpayable
|
|
3580
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3581
|
+
*/
|
|
3582
|
+
async setSymbol(newSymbol, options) {
|
|
3583
|
+
if (!this.contract.write) {
|
|
3584
|
+
throw new Error('Wallet client is required for write operations');
|
|
3585
|
+
}
|
|
3586
|
+
return this.contract.write.setSymbol([newSymbol], options);
|
|
3587
|
+
}
|
|
3588
|
+
/**
|
|
3589
|
+
* submit
|
|
3590
|
+
* nonpayable
|
|
3591
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3592
|
+
*/
|
|
3593
|
+
async submit(data, options) {
|
|
3594
|
+
if (!this.contract.write) {
|
|
3595
|
+
throw new Error('Wallet client is required for write operations');
|
|
3596
|
+
}
|
|
3597
|
+
return this.contract.write.submit([data], options);
|
|
3598
|
+
}
|
|
3599
|
+
/**
|
|
3600
|
+
* transfer
|
|
3601
|
+
* nonpayable
|
|
3602
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3603
|
+
*/
|
|
3604
|
+
async transfer(to, shares, options) {
|
|
3605
|
+
if (!this.contract.write) {
|
|
3606
|
+
throw new Error('Wallet client is required for write operations');
|
|
3607
|
+
}
|
|
3608
|
+
return this.contract.write.transfer([to, shares], options);
|
|
3609
|
+
}
|
|
3610
|
+
/**
|
|
3611
|
+
* transferFrom
|
|
3612
|
+
* nonpayable
|
|
3613
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3614
|
+
*/
|
|
3615
|
+
async transferFrom(from, to, shares, options) {
|
|
3616
|
+
if (!this.contract.write) {
|
|
3617
|
+
throw new Error('Wallet client is required for write operations');
|
|
3618
|
+
}
|
|
3619
|
+
return this.contract.write.transferFrom([from, to, shares], options);
|
|
3620
|
+
}
|
|
3621
|
+
/**
|
|
3622
|
+
* withdraw
|
|
3623
|
+
* nonpayable
|
|
3624
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3625
|
+
*/
|
|
3626
|
+
async withdraw(assets, receiver, onBehalf, options) {
|
|
3627
|
+
if (!this.contract.write) {
|
|
3628
|
+
throw new Error('Wallet client is required for write operations');
|
|
3629
|
+
}
|
|
3630
|
+
return this.contract.write.withdraw([assets, receiver, onBehalf], options);
|
|
3631
|
+
}
|
|
3632
|
+
/**
|
|
3633
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
3634
|
+
*
|
|
3635
|
+
* @example
|
|
3636
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
3637
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
3638
|
+
* console.log('Would succeed:', result.result);
|
|
3639
|
+
*/
|
|
3640
|
+
get simulate() {
|
|
3641
|
+
const contract = this.contract;
|
|
3642
|
+
if (!contract.simulate) {
|
|
3643
|
+
throw new Error('Public client is required for simulation');
|
|
3644
|
+
}
|
|
3645
|
+
return {
|
|
3646
|
+
/**
|
|
3647
|
+
* Simulate abdicate
|
|
3648
|
+
* Returns gas estimate and result without sending transaction
|
|
3649
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3650
|
+
*/
|
|
3651
|
+
async abdicate(selector, options) {
|
|
3652
|
+
return contract.simulate.abdicate([selector], options);
|
|
3653
|
+
},
|
|
3654
|
+
/**
|
|
3655
|
+
* Simulate accrueInterest
|
|
3656
|
+
* Returns gas estimate and result without sending transaction
|
|
3657
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3658
|
+
*/
|
|
3659
|
+
async accrueInterest(options) {
|
|
3660
|
+
return contract.simulate.accrueInterest(options);
|
|
3661
|
+
},
|
|
3662
|
+
/**
|
|
3663
|
+
* Simulate addAdapter
|
|
3664
|
+
* Returns gas estimate and result without sending transaction
|
|
3665
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3666
|
+
*/
|
|
3667
|
+
async addAdapter(account, options) {
|
|
3668
|
+
return contract.simulate.addAdapter([account], options);
|
|
3669
|
+
},
|
|
3670
|
+
/**
|
|
3671
|
+
* Simulate allocate
|
|
3672
|
+
* Returns gas estimate and result without sending transaction
|
|
3673
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3674
|
+
*/
|
|
3675
|
+
async allocate(adapter, data, assets, options) {
|
|
3676
|
+
return contract.simulate.allocate([adapter, data, assets], options);
|
|
3677
|
+
},
|
|
3678
|
+
/**
|
|
3679
|
+
* Simulate approve
|
|
3680
|
+
* Returns gas estimate and result without sending transaction
|
|
3681
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3682
|
+
*/
|
|
3683
|
+
async approve(spender, shares, options) {
|
|
3684
|
+
return contract.simulate.approve([spender, shares], options);
|
|
3685
|
+
},
|
|
3686
|
+
/**
|
|
3687
|
+
* Simulate deallocate
|
|
3688
|
+
* Returns gas estimate and result without sending transaction
|
|
3689
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3690
|
+
*/
|
|
3691
|
+
async deallocate(adapter, data, assets, options) {
|
|
3692
|
+
return contract.simulate.deallocate([adapter, data, assets], options);
|
|
3693
|
+
},
|
|
3694
|
+
/**
|
|
3695
|
+
* Simulate decreaseAbsoluteCap
|
|
3696
|
+
* Returns gas estimate and result without sending transaction
|
|
3697
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3698
|
+
*/
|
|
3699
|
+
async decreaseAbsoluteCap(idData, newAbsoluteCap, options) {
|
|
3700
|
+
return contract.simulate.decreaseAbsoluteCap([idData, newAbsoluteCap], options);
|
|
3701
|
+
},
|
|
3702
|
+
/**
|
|
3703
|
+
* Simulate decreaseRelativeCap
|
|
3704
|
+
* Returns gas estimate and result without sending transaction
|
|
3705
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3706
|
+
*/
|
|
3707
|
+
async decreaseRelativeCap(idData, newRelativeCap, options) {
|
|
3708
|
+
return contract.simulate.decreaseRelativeCap([idData, newRelativeCap], options);
|
|
3709
|
+
},
|
|
3710
|
+
/**
|
|
3711
|
+
* Simulate decreaseTimelock
|
|
3712
|
+
* Returns gas estimate and result without sending transaction
|
|
3713
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3714
|
+
*/
|
|
3715
|
+
async decreaseTimelock(selector, newDuration, options) {
|
|
3716
|
+
return contract.simulate.decreaseTimelock([selector, newDuration], options);
|
|
3717
|
+
},
|
|
3718
|
+
/**
|
|
3719
|
+
* Simulate deposit
|
|
3720
|
+
* Returns gas estimate and result without sending transaction
|
|
3721
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3722
|
+
*/
|
|
3723
|
+
async deposit(assets, onBehalf, options) {
|
|
3724
|
+
return contract.simulate.deposit([assets, onBehalf], options);
|
|
3725
|
+
},
|
|
3726
|
+
/**
|
|
3727
|
+
* Simulate forceDeallocate
|
|
3728
|
+
* Returns gas estimate and result without sending transaction
|
|
3729
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3730
|
+
*/
|
|
3731
|
+
async forceDeallocate(adapter, data, assets, onBehalf, options) {
|
|
3732
|
+
return contract.simulate.forceDeallocate([adapter, data, assets, onBehalf], options);
|
|
3733
|
+
},
|
|
3734
|
+
/**
|
|
3735
|
+
* Simulate increaseAbsoluteCap
|
|
3736
|
+
* Returns gas estimate and result without sending transaction
|
|
3737
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3738
|
+
*/
|
|
3739
|
+
async increaseAbsoluteCap(idData, newAbsoluteCap, options) {
|
|
3740
|
+
return contract.simulate.increaseAbsoluteCap([idData, newAbsoluteCap], options);
|
|
3741
|
+
},
|
|
3742
|
+
/**
|
|
3743
|
+
* Simulate increaseRelativeCap
|
|
3744
|
+
* Returns gas estimate and result without sending transaction
|
|
3745
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3746
|
+
*/
|
|
3747
|
+
async increaseRelativeCap(idData, newRelativeCap, options) {
|
|
3748
|
+
return contract.simulate.increaseRelativeCap([idData, newRelativeCap], options);
|
|
3749
|
+
},
|
|
3750
|
+
/**
|
|
3751
|
+
* Simulate increaseTimelock
|
|
3752
|
+
* Returns gas estimate and result without sending transaction
|
|
3753
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3754
|
+
*/
|
|
3755
|
+
async increaseTimelock(selector, newDuration, options) {
|
|
3756
|
+
return contract.simulate.increaseTimelock([selector, newDuration], options);
|
|
3757
|
+
},
|
|
3758
|
+
/**
|
|
3759
|
+
* Simulate mint
|
|
3760
|
+
* Returns gas estimate and result without sending transaction
|
|
3761
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3762
|
+
*/
|
|
3763
|
+
async mint(shares, onBehalf, options) {
|
|
3764
|
+
return contract.simulate.mint([shares, onBehalf], options);
|
|
3765
|
+
},
|
|
3766
|
+
/**
|
|
3767
|
+
* Simulate multicall
|
|
3768
|
+
* Returns gas estimate and result without sending transaction
|
|
3769
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3770
|
+
*/
|
|
3771
|
+
async multicall(data, options) {
|
|
3772
|
+
return contract.simulate.multicall([data], options);
|
|
3773
|
+
},
|
|
3774
|
+
/**
|
|
3775
|
+
* Simulate permit
|
|
3776
|
+
* Returns gas estimate and result without sending transaction
|
|
3777
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3778
|
+
*/
|
|
3779
|
+
async permit(_owner, spender, shares, deadline, v, r, s, options) {
|
|
3780
|
+
return contract.simulate.permit([_owner, spender, shares, deadline, v, r, s], options);
|
|
3781
|
+
},
|
|
3782
|
+
/**
|
|
3783
|
+
* Simulate redeem
|
|
3784
|
+
* Returns gas estimate and result without sending transaction
|
|
3785
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3786
|
+
*/
|
|
3787
|
+
async redeem(shares, receiver, onBehalf, options) {
|
|
3788
|
+
return contract.simulate.redeem([shares, receiver, onBehalf], options);
|
|
3789
|
+
},
|
|
3790
|
+
/**
|
|
3791
|
+
* Simulate removeAdapter
|
|
3792
|
+
* Returns gas estimate and result without sending transaction
|
|
3793
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3794
|
+
*/
|
|
3795
|
+
async removeAdapter(account, options) {
|
|
3796
|
+
return contract.simulate.removeAdapter([account], options);
|
|
3797
|
+
},
|
|
3798
|
+
/**
|
|
3799
|
+
* Simulate revoke
|
|
3800
|
+
* Returns gas estimate and result without sending transaction
|
|
3801
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3802
|
+
*/
|
|
3803
|
+
async revoke(data, options) {
|
|
3804
|
+
return contract.simulate.revoke([data], options);
|
|
3805
|
+
},
|
|
3806
|
+
/**
|
|
3807
|
+
* Simulate setAdapterRegistry
|
|
3808
|
+
* Returns gas estimate and result without sending transaction
|
|
3809
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3810
|
+
*/
|
|
3811
|
+
async setAdapterRegistry(newAdapterRegistry, options) {
|
|
3812
|
+
return contract.simulate.setAdapterRegistry([newAdapterRegistry], options);
|
|
3813
|
+
},
|
|
3814
|
+
/**
|
|
3815
|
+
* Simulate setCurator
|
|
3816
|
+
* Returns gas estimate and result without sending transaction
|
|
3817
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3818
|
+
*/
|
|
3819
|
+
async setCurator(newCurator, options) {
|
|
3820
|
+
return contract.simulate.setCurator([newCurator], options);
|
|
3821
|
+
},
|
|
3822
|
+
/**
|
|
3823
|
+
* Simulate setForceDeallocatePenalty
|
|
3824
|
+
* Returns gas estimate and result without sending transaction
|
|
3825
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3826
|
+
*/
|
|
3827
|
+
async setForceDeallocatePenalty(adapter, newForceDeallocatePenalty, options) {
|
|
3828
|
+
return contract.simulate.setForceDeallocatePenalty([adapter, newForceDeallocatePenalty], options);
|
|
3829
|
+
},
|
|
3830
|
+
/**
|
|
3831
|
+
* Simulate setIsAllocator
|
|
3832
|
+
* Returns gas estimate and result without sending transaction
|
|
3833
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3834
|
+
*/
|
|
3835
|
+
async setIsAllocator(account, newIsAllocator, options) {
|
|
3836
|
+
return contract.simulate.setIsAllocator([account, newIsAllocator], options);
|
|
3837
|
+
},
|
|
3838
|
+
/**
|
|
3839
|
+
* Simulate setIsSentinel
|
|
3840
|
+
* Returns gas estimate and result without sending transaction
|
|
3841
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3842
|
+
*/
|
|
3843
|
+
async setIsSentinel(account, newIsSentinel, options) {
|
|
3844
|
+
return contract.simulate.setIsSentinel([account, newIsSentinel], options);
|
|
3845
|
+
},
|
|
3846
|
+
/**
|
|
3847
|
+
* Simulate setLiquidityAdapterAndData
|
|
3848
|
+
* Returns gas estimate and result without sending transaction
|
|
3849
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3850
|
+
*/
|
|
3851
|
+
async setLiquidityAdapterAndData(newLiquidityAdapter, newLiquidityData, options) {
|
|
3852
|
+
return contract.simulate.setLiquidityAdapterAndData([newLiquidityAdapter, newLiquidityData], options);
|
|
3853
|
+
},
|
|
3854
|
+
/**
|
|
3855
|
+
* Simulate setManagementFee
|
|
3856
|
+
* Returns gas estimate and result without sending transaction
|
|
3857
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3858
|
+
*/
|
|
3859
|
+
async setManagementFee(newManagementFee, options) {
|
|
3860
|
+
return contract.simulate.setManagementFee([newManagementFee], options);
|
|
3861
|
+
},
|
|
3862
|
+
/**
|
|
3863
|
+
* Simulate setManagementFeeRecipient
|
|
3864
|
+
* Returns gas estimate and result without sending transaction
|
|
3865
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3866
|
+
*/
|
|
3867
|
+
async setManagementFeeRecipient(newManagementFeeRecipient, options) {
|
|
3868
|
+
return contract.simulate.setManagementFeeRecipient([newManagementFeeRecipient], options);
|
|
3869
|
+
},
|
|
3870
|
+
/**
|
|
3871
|
+
* Simulate setMaxRate
|
|
3872
|
+
* Returns gas estimate and result without sending transaction
|
|
3873
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3874
|
+
*/
|
|
3875
|
+
async setMaxRate(newMaxRate, options) {
|
|
3876
|
+
return contract.simulate.setMaxRate([newMaxRate], options);
|
|
3877
|
+
},
|
|
3878
|
+
/**
|
|
3879
|
+
* Simulate setName
|
|
3880
|
+
* Returns gas estimate and result without sending transaction
|
|
3881
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3882
|
+
*/
|
|
3883
|
+
async setName(newName, options) {
|
|
3884
|
+
return contract.simulate.setName([newName], options);
|
|
3885
|
+
},
|
|
3886
|
+
/**
|
|
3887
|
+
* Simulate setOwner
|
|
3888
|
+
* Returns gas estimate and result without sending transaction
|
|
3889
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3890
|
+
*/
|
|
3891
|
+
async setOwner(newOwner, options) {
|
|
3892
|
+
return contract.simulate.setOwner([newOwner], options);
|
|
3893
|
+
},
|
|
3894
|
+
/**
|
|
3895
|
+
* Simulate setPerformanceFee
|
|
3896
|
+
* Returns gas estimate and result without sending transaction
|
|
3897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3898
|
+
*/
|
|
3899
|
+
async setPerformanceFee(newPerformanceFee, options) {
|
|
3900
|
+
return contract.simulate.setPerformanceFee([newPerformanceFee], options);
|
|
3901
|
+
},
|
|
3902
|
+
/**
|
|
3903
|
+
* Simulate setPerformanceFeeRecipient
|
|
3904
|
+
* Returns gas estimate and result without sending transaction
|
|
3905
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3906
|
+
*/
|
|
3907
|
+
async setPerformanceFeeRecipient(newPerformanceFeeRecipient, options) {
|
|
3908
|
+
return contract.simulate.setPerformanceFeeRecipient([newPerformanceFeeRecipient], options);
|
|
3909
|
+
},
|
|
3910
|
+
/**
|
|
3911
|
+
* Simulate setReceiveAssetsGate
|
|
3912
|
+
* Returns gas estimate and result without sending transaction
|
|
3913
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3914
|
+
*/
|
|
3915
|
+
async setReceiveAssetsGate(newReceiveAssetsGate, options) {
|
|
3916
|
+
return contract.simulate.setReceiveAssetsGate([newReceiveAssetsGate], options);
|
|
3917
|
+
},
|
|
3918
|
+
/**
|
|
3919
|
+
* Simulate setReceiveSharesGate
|
|
3920
|
+
* Returns gas estimate and result without sending transaction
|
|
3921
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3922
|
+
*/
|
|
3923
|
+
async setReceiveSharesGate(newReceiveSharesGate, options) {
|
|
3924
|
+
return contract.simulate.setReceiveSharesGate([newReceiveSharesGate], options);
|
|
3925
|
+
},
|
|
3926
|
+
/**
|
|
3927
|
+
* Simulate setSendAssetsGate
|
|
3928
|
+
* Returns gas estimate and result without sending transaction
|
|
3929
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3930
|
+
*/
|
|
3931
|
+
async setSendAssetsGate(newSendAssetsGate, options) {
|
|
3932
|
+
return contract.simulate.setSendAssetsGate([newSendAssetsGate], options);
|
|
3933
|
+
},
|
|
3934
|
+
/**
|
|
3935
|
+
* Simulate setSendSharesGate
|
|
3936
|
+
* Returns gas estimate and result without sending transaction
|
|
3937
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3938
|
+
*/
|
|
3939
|
+
async setSendSharesGate(newSendSharesGate, options) {
|
|
3940
|
+
return contract.simulate.setSendSharesGate([newSendSharesGate], options);
|
|
3941
|
+
},
|
|
3942
|
+
/**
|
|
3943
|
+
* Simulate setSymbol
|
|
3944
|
+
* Returns gas estimate and result without sending transaction
|
|
3945
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3946
|
+
*/
|
|
3947
|
+
async setSymbol(newSymbol, options) {
|
|
3948
|
+
return contract.simulate.setSymbol([newSymbol], options);
|
|
3949
|
+
},
|
|
3950
|
+
/**
|
|
3951
|
+
* Simulate submit
|
|
3952
|
+
* Returns gas estimate and result without sending transaction
|
|
3953
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3954
|
+
*/
|
|
3955
|
+
async submit(data, options) {
|
|
3956
|
+
return contract.simulate.submit([data], options);
|
|
3957
|
+
},
|
|
3958
|
+
/**
|
|
3959
|
+
* Simulate transfer
|
|
3960
|
+
* Returns gas estimate and result without sending transaction
|
|
3961
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3962
|
+
*/
|
|
3963
|
+
async transfer(to, shares, options) {
|
|
3964
|
+
return contract.simulate.transfer([to, shares], options);
|
|
3965
|
+
},
|
|
3966
|
+
/**
|
|
3967
|
+
* Simulate transferFrom
|
|
3968
|
+
* Returns gas estimate and result without sending transaction
|
|
3969
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3970
|
+
*/
|
|
3971
|
+
async transferFrom(from, to, shares, options) {
|
|
3972
|
+
return contract.simulate.transferFrom([from, to, shares], options);
|
|
3973
|
+
},
|
|
3974
|
+
/**
|
|
3975
|
+
* Simulate withdraw
|
|
3976
|
+
* Returns gas estimate and result without sending transaction
|
|
3977
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3978
|
+
*/
|
|
3979
|
+
async withdraw(assets, receiver, onBehalf, options) {
|
|
3980
|
+
return contract.simulate.withdraw([assets, receiver, onBehalf], options);
|
|
3981
|
+
}
|
|
3982
|
+
};
|
|
3983
|
+
}
|
|
3984
|
+
/**
|
|
3985
|
+
* Watch contract events
|
|
3986
|
+
*
|
|
3987
|
+
* @example
|
|
3988
|
+
* // Watch all Transfer events
|
|
3989
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
3990
|
+
* console.log('Transfer:', event);
|
|
3991
|
+
* });
|
|
3992
|
+
*
|
|
3993
|
+
* // Stop watching
|
|
3994
|
+
* unwatch();
|
|
3995
|
+
*/
|
|
3996
|
+
get watch() {
|
|
3997
|
+
return {
|
|
3998
|
+
/**
|
|
3999
|
+
* Watch Abdicate events
|
|
4000
|
+
* @param callback Function to call when event is emitted
|
|
4001
|
+
* @param filter Optional filter for indexed parameters
|
|
4002
|
+
* @returns Unwatch function to stop listening
|
|
4003
|
+
*/
|
|
4004
|
+
Abdicate: (callback, filter) => {
|
|
4005
|
+
return this.publicClient.watchContractEvent({
|
|
4006
|
+
address: this.contractAddress,
|
|
4007
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4008
|
+
eventName: 'Abdicate',
|
|
4009
|
+
args: filter,
|
|
4010
|
+
onLogs: (logs) => {
|
|
4011
|
+
logs.forEach((log) => {
|
|
4012
|
+
callback(log.args);
|
|
4013
|
+
});
|
|
4014
|
+
},
|
|
4015
|
+
});
|
|
4016
|
+
},
|
|
4017
|
+
/**
|
|
4018
|
+
* Watch Accept events
|
|
4019
|
+
* @param callback Function to call when event is emitted
|
|
4020
|
+
* @param filter Optional filter for indexed parameters
|
|
4021
|
+
* @returns Unwatch function to stop listening
|
|
4022
|
+
*/
|
|
4023
|
+
Accept: (callback, filter) => {
|
|
4024
|
+
return this.publicClient.watchContractEvent({
|
|
4025
|
+
address: this.contractAddress,
|
|
4026
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4027
|
+
eventName: 'Accept',
|
|
4028
|
+
args: filter,
|
|
4029
|
+
onLogs: (logs) => {
|
|
4030
|
+
logs.forEach((log) => {
|
|
4031
|
+
callback(log.args);
|
|
4032
|
+
});
|
|
4033
|
+
},
|
|
4034
|
+
});
|
|
4035
|
+
},
|
|
4036
|
+
/**
|
|
4037
|
+
* Watch AccrueInterest events
|
|
4038
|
+
* @param callback Function to call when event is emitted
|
|
4039
|
+
* @param filter Optional filter for indexed parameters
|
|
4040
|
+
* @returns Unwatch function to stop listening
|
|
4041
|
+
*/
|
|
4042
|
+
AccrueInterest: (callback) => {
|
|
4043
|
+
return this.publicClient.watchContractEvent({
|
|
4044
|
+
address: this.contractAddress,
|
|
4045
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4046
|
+
eventName: 'AccrueInterest',
|
|
4047
|
+
onLogs: (logs) => {
|
|
4048
|
+
logs.forEach((log) => {
|
|
4049
|
+
callback(log.args);
|
|
4050
|
+
});
|
|
4051
|
+
},
|
|
4052
|
+
});
|
|
4053
|
+
},
|
|
4054
|
+
/**
|
|
4055
|
+
* Watch AddAdapter events
|
|
4056
|
+
* @param callback Function to call when event is emitted
|
|
4057
|
+
* @param filter Optional filter for indexed parameters
|
|
4058
|
+
* @returns Unwatch function to stop listening
|
|
4059
|
+
*/
|
|
4060
|
+
AddAdapter: (callback, filter) => {
|
|
4061
|
+
return this.publicClient.watchContractEvent({
|
|
4062
|
+
address: this.contractAddress,
|
|
4063
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4064
|
+
eventName: 'AddAdapter',
|
|
4065
|
+
args: filter,
|
|
4066
|
+
onLogs: (logs) => {
|
|
4067
|
+
logs.forEach((log) => {
|
|
4068
|
+
callback(log.args);
|
|
4069
|
+
});
|
|
4070
|
+
},
|
|
4071
|
+
});
|
|
4072
|
+
},
|
|
4073
|
+
/**
|
|
4074
|
+
* Watch Allocate events
|
|
4075
|
+
* @param callback Function to call when event is emitted
|
|
4076
|
+
* @param filter Optional filter for indexed parameters
|
|
4077
|
+
* @returns Unwatch function to stop listening
|
|
4078
|
+
*/
|
|
4079
|
+
Allocate: (callback, filter) => {
|
|
4080
|
+
return this.publicClient.watchContractEvent({
|
|
4081
|
+
address: this.contractAddress,
|
|
4082
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4083
|
+
eventName: 'Allocate',
|
|
4084
|
+
args: filter,
|
|
4085
|
+
onLogs: (logs) => {
|
|
4086
|
+
logs.forEach((log) => {
|
|
4087
|
+
callback(log.args);
|
|
4088
|
+
});
|
|
4089
|
+
},
|
|
4090
|
+
});
|
|
4091
|
+
},
|
|
4092
|
+
/**
|
|
4093
|
+
* Watch AllowanceUpdatedByTransferFrom events
|
|
4094
|
+
* @param callback Function to call when event is emitted
|
|
4095
|
+
* @param filter Optional filter for indexed parameters
|
|
4096
|
+
* @returns Unwatch function to stop listening
|
|
4097
|
+
*/
|
|
4098
|
+
AllowanceUpdatedByTransferFrom: (callback, filter) => {
|
|
4099
|
+
return this.publicClient.watchContractEvent({
|
|
4100
|
+
address: this.contractAddress,
|
|
4101
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4102
|
+
eventName: 'AllowanceUpdatedByTransferFrom',
|
|
4103
|
+
args: filter,
|
|
4104
|
+
onLogs: (logs) => {
|
|
4105
|
+
logs.forEach((log) => {
|
|
4106
|
+
callback(log.args);
|
|
4107
|
+
});
|
|
4108
|
+
},
|
|
4109
|
+
});
|
|
4110
|
+
},
|
|
4111
|
+
/**
|
|
4112
|
+
* Watch Approval events
|
|
4113
|
+
* @param callback Function to call when event is emitted
|
|
4114
|
+
* @param filter Optional filter for indexed parameters
|
|
4115
|
+
* @returns Unwatch function to stop listening
|
|
4116
|
+
*/
|
|
4117
|
+
Approval: (callback, filter) => {
|
|
4118
|
+
return this.publicClient.watchContractEvent({
|
|
4119
|
+
address: this.contractAddress,
|
|
4120
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4121
|
+
eventName: 'Approval',
|
|
4122
|
+
args: filter,
|
|
4123
|
+
onLogs: (logs) => {
|
|
4124
|
+
logs.forEach((log) => {
|
|
4125
|
+
callback(log.args);
|
|
4126
|
+
});
|
|
4127
|
+
},
|
|
4128
|
+
});
|
|
4129
|
+
},
|
|
4130
|
+
/**
|
|
4131
|
+
* Watch Constructor events
|
|
4132
|
+
* @param callback Function to call when event is emitted
|
|
4133
|
+
* @param filter Optional filter for indexed parameters
|
|
4134
|
+
* @returns Unwatch function to stop listening
|
|
4135
|
+
*/
|
|
4136
|
+
Constructor: (callback, filter) => {
|
|
4137
|
+
return this.publicClient.watchContractEvent({
|
|
4138
|
+
address: this.contractAddress,
|
|
4139
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4140
|
+
eventName: 'Constructor',
|
|
4141
|
+
args: filter,
|
|
4142
|
+
onLogs: (logs) => {
|
|
4143
|
+
logs.forEach((log) => {
|
|
4144
|
+
callback(log.args);
|
|
4145
|
+
});
|
|
4146
|
+
},
|
|
4147
|
+
});
|
|
4148
|
+
},
|
|
4149
|
+
/**
|
|
4150
|
+
* Watch Deallocate events
|
|
4151
|
+
* @param callback Function to call when event is emitted
|
|
4152
|
+
* @param filter Optional filter for indexed parameters
|
|
4153
|
+
* @returns Unwatch function to stop listening
|
|
4154
|
+
*/
|
|
4155
|
+
Deallocate: (callback, filter) => {
|
|
4156
|
+
return this.publicClient.watchContractEvent({
|
|
4157
|
+
address: this.contractAddress,
|
|
4158
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4159
|
+
eventName: 'Deallocate',
|
|
4160
|
+
args: filter,
|
|
4161
|
+
onLogs: (logs) => {
|
|
4162
|
+
logs.forEach((log) => {
|
|
4163
|
+
callback(log.args);
|
|
4164
|
+
});
|
|
4165
|
+
},
|
|
4166
|
+
});
|
|
4167
|
+
},
|
|
4168
|
+
/**
|
|
4169
|
+
* Watch DecreaseAbsoluteCap events
|
|
4170
|
+
* @param callback Function to call when event is emitted
|
|
4171
|
+
* @param filter Optional filter for indexed parameters
|
|
4172
|
+
* @returns Unwatch function to stop listening
|
|
4173
|
+
*/
|
|
4174
|
+
DecreaseAbsoluteCap: (callback, filter) => {
|
|
4175
|
+
return this.publicClient.watchContractEvent({
|
|
4176
|
+
address: this.contractAddress,
|
|
4177
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4178
|
+
eventName: 'DecreaseAbsoluteCap',
|
|
4179
|
+
args: filter,
|
|
4180
|
+
onLogs: (logs) => {
|
|
4181
|
+
logs.forEach((log) => {
|
|
4182
|
+
callback(log.args);
|
|
4183
|
+
});
|
|
4184
|
+
},
|
|
4185
|
+
});
|
|
4186
|
+
},
|
|
4187
|
+
/**
|
|
4188
|
+
* Watch DecreaseRelativeCap events
|
|
4189
|
+
* @param callback Function to call when event is emitted
|
|
4190
|
+
* @param filter Optional filter for indexed parameters
|
|
4191
|
+
* @returns Unwatch function to stop listening
|
|
4192
|
+
*/
|
|
4193
|
+
DecreaseRelativeCap: (callback, filter) => {
|
|
4194
|
+
return this.publicClient.watchContractEvent({
|
|
4195
|
+
address: this.contractAddress,
|
|
4196
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4197
|
+
eventName: 'DecreaseRelativeCap',
|
|
4198
|
+
args: filter,
|
|
4199
|
+
onLogs: (logs) => {
|
|
4200
|
+
logs.forEach((log) => {
|
|
4201
|
+
callback(log.args);
|
|
4202
|
+
});
|
|
4203
|
+
},
|
|
4204
|
+
});
|
|
4205
|
+
},
|
|
4206
|
+
/**
|
|
4207
|
+
* Watch DecreaseTimelock events
|
|
4208
|
+
* @param callback Function to call when event is emitted
|
|
4209
|
+
* @param filter Optional filter for indexed parameters
|
|
4210
|
+
* @returns Unwatch function to stop listening
|
|
4211
|
+
*/
|
|
4212
|
+
DecreaseTimelock: (callback, filter) => {
|
|
4213
|
+
return this.publicClient.watchContractEvent({
|
|
4214
|
+
address: this.contractAddress,
|
|
4215
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4216
|
+
eventName: 'DecreaseTimelock',
|
|
4217
|
+
args: filter,
|
|
4218
|
+
onLogs: (logs) => {
|
|
4219
|
+
logs.forEach((log) => {
|
|
4220
|
+
callback(log.args);
|
|
4221
|
+
});
|
|
4222
|
+
},
|
|
4223
|
+
});
|
|
4224
|
+
},
|
|
4225
|
+
/**
|
|
4226
|
+
* Watch Deposit events
|
|
4227
|
+
* @param callback Function to call when event is emitted
|
|
4228
|
+
* @param filter Optional filter for indexed parameters
|
|
4229
|
+
* @returns Unwatch function to stop listening
|
|
4230
|
+
*/
|
|
4231
|
+
Deposit: (callback, filter) => {
|
|
4232
|
+
return this.publicClient.watchContractEvent({
|
|
4233
|
+
address: this.contractAddress,
|
|
4234
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4235
|
+
eventName: 'Deposit',
|
|
4236
|
+
args: filter,
|
|
4237
|
+
onLogs: (logs) => {
|
|
4238
|
+
logs.forEach((log) => {
|
|
4239
|
+
callback(log.args);
|
|
4240
|
+
});
|
|
4241
|
+
},
|
|
4242
|
+
});
|
|
4243
|
+
},
|
|
4244
|
+
/**
|
|
4245
|
+
* Watch ForceDeallocate events
|
|
4246
|
+
* @param callback Function to call when event is emitted
|
|
4247
|
+
* @param filter Optional filter for indexed parameters
|
|
4248
|
+
* @returns Unwatch function to stop listening
|
|
4249
|
+
*/
|
|
4250
|
+
ForceDeallocate: (callback, filter) => {
|
|
4251
|
+
return this.publicClient.watchContractEvent({
|
|
4252
|
+
address: this.contractAddress,
|
|
4253
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4254
|
+
eventName: 'ForceDeallocate',
|
|
4255
|
+
args: filter,
|
|
4256
|
+
onLogs: (logs) => {
|
|
4257
|
+
logs.forEach((log) => {
|
|
4258
|
+
callback(log.args);
|
|
4259
|
+
});
|
|
4260
|
+
},
|
|
4261
|
+
});
|
|
4262
|
+
},
|
|
4263
|
+
/**
|
|
4264
|
+
* Watch IncreaseAbsoluteCap events
|
|
4265
|
+
* @param callback Function to call when event is emitted
|
|
4266
|
+
* @param filter Optional filter for indexed parameters
|
|
4267
|
+
* @returns Unwatch function to stop listening
|
|
4268
|
+
*/
|
|
4269
|
+
IncreaseAbsoluteCap: (callback, filter) => {
|
|
4270
|
+
return this.publicClient.watchContractEvent({
|
|
4271
|
+
address: this.contractAddress,
|
|
4272
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4273
|
+
eventName: 'IncreaseAbsoluteCap',
|
|
4274
|
+
args: filter,
|
|
4275
|
+
onLogs: (logs) => {
|
|
4276
|
+
logs.forEach((log) => {
|
|
4277
|
+
callback(log.args);
|
|
4278
|
+
});
|
|
4279
|
+
},
|
|
4280
|
+
});
|
|
4281
|
+
},
|
|
4282
|
+
/**
|
|
4283
|
+
* Watch IncreaseRelativeCap events
|
|
4284
|
+
* @param callback Function to call when event is emitted
|
|
4285
|
+
* @param filter Optional filter for indexed parameters
|
|
4286
|
+
* @returns Unwatch function to stop listening
|
|
4287
|
+
*/
|
|
4288
|
+
IncreaseRelativeCap: (callback, filter) => {
|
|
4289
|
+
return this.publicClient.watchContractEvent({
|
|
4290
|
+
address: this.contractAddress,
|
|
4291
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4292
|
+
eventName: 'IncreaseRelativeCap',
|
|
4293
|
+
args: filter,
|
|
4294
|
+
onLogs: (logs) => {
|
|
4295
|
+
logs.forEach((log) => {
|
|
4296
|
+
callback(log.args);
|
|
4297
|
+
});
|
|
4298
|
+
},
|
|
4299
|
+
});
|
|
4300
|
+
},
|
|
4301
|
+
/**
|
|
4302
|
+
* Watch IncreaseTimelock events
|
|
4303
|
+
* @param callback Function to call when event is emitted
|
|
4304
|
+
* @param filter Optional filter for indexed parameters
|
|
4305
|
+
* @returns Unwatch function to stop listening
|
|
4306
|
+
*/
|
|
4307
|
+
IncreaseTimelock: (callback, filter) => {
|
|
4308
|
+
return this.publicClient.watchContractEvent({
|
|
4309
|
+
address: this.contractAddress,
|
|
4310
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4311
|
+
eventName: 'IncreaseTimelock',
|
|
4312
|
+
args: filter,
|
|
4313
|
+
onLogs: (logs) => {
|
|
4314
|
+
logs.forEach((log) => {
|
|
4315
|
+
callback(log.args);
|
|
4316
|
+
});
|
|
4317
|
+
},
|
|
4318
|
+
});
|
|
4319
|
+
},
|
|
4320
|
+
/**
|
|
4321
|
+
* Watch Permit events
|
|
4322
|
+
* @param callback Function to call when event is emitted
|
|
4323
|
+
* @param filter Optional filter for indexed parameters
|
|
4324
|
+
* @returns Unwatch function to stop listening
|
|
4325
|
+
*/
|
|
4326
|
+
Permit: (callback, filter) => {
|
|
4327
|
+
return this.publicClient.watchContractEvent({
|
|
4328
|
+
address: this.contractAddress,
|
|
4329
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4330
|
+
eventName: 'Permit',
|
|
4331
|
+
args: filter,
|
|
4332
|
+
onLogs: (logs) => {
|
|
4333
|
+
logs.forEach((log) => {
|
|
4334
|
+
callback(log.args);
|
|
4335
|
+
});
|
|
4336
|
+
},
|
|
4337
|
+
});
|
|
4338
|
+
},
|
|
4339
|
+
/**
|
|
4340
|
+
* Watch RemoveAdapter events
|
|
4341
|
+
* @param callback Function to call when event is emitted
|
|
4342
|
+
* @param filter Optional filter for indexed parameters
|
|
4343
|
+
* @returns Unwatch function to stop listening
|
|
4344
|
+
*/
|
|
4345
|
+
RemoveAdapter: (callback, filter) => {
|
|
4346
|
+
return this.publicClient.watchContractEvent({
|
|
4347
|
+
address: this.contractAddress,
|
|
4348
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4349
|
+
eventName: 'RemoveAdapter',
|
|
4350
|
+
args: filter,
|
|
4351
|
+
onLogs: (logs) => {
|
|
4352
|
+
logs.forEach((log) => {
|
|
4353
|
+
callback(log.args);
|
|
4354
|
+
});
|
|
4355
|
+
},
|
|
4356
|
+
});
|
|
4357
|
+
},
|
|
4358
|
+
/**
|
|
4359
|
+
* Watch Revoke events
|
|
4360
|
+
* @param callback Function to call when event is emitted
|
|
4361
|
+
* @param filter Optional filter for indexed parameters
|
|
4362
|
+
* @returns Unwatch function to stop listening
|
|
4363
|
+
*/
|
|
4364
|
+
Revoke: (callback, filter) => {
|
|
4365
|
+
return this.publicClient.watchContractEvent({
|
|
4366
|
+
address: this.contractAddress,
|
|
4367
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4368
|
+
eventName: 'Revoke',
|
|
4369
|
+
args: filter,
|
|
4370
|
+
onLogs: (logs) => {
|
|
4371
|
+
logs.forEach((log) => {
|
|
4372
|
+
callback(log.args);
|
|
4373
|
+
});
|
|
4374
|
+
},
|
|
4375
|
+
});
|
|
4376
|
+
},
|
|
4377
|
+
/**
|
|
4378
|
+
* Watch SetAdapterRegistry events
|
|
4379
|
+
* @param callback Function to call when event is emitted
|
|
4380
|
+
* @param filter Optional filter for indexed parameters
|
|
4381
|
+
* @returns Unwatch function to stop listening
|
|
4382
|
+
*/
|
|
4383
|
+
SetAdapterRegistry: (callback, filter) => {
|
|
4384
|
+
return this.publicClient.watchContractEvent({
|
|
4385
|
+
address: this.contractAddress,
|
|
4386
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4387
|
+
eventName: 'SetAdapterRegistry',
|
|
4388
|
+
args: filter,
|
|
4389
|
+
onLogs: (logs) => {
|
|
4390
|
+
logs.forEach((log) => {
|
|
4391
|
+
callback(log.args);
|
|
4392
|
+
});
|
|
4393
|
+
},
|
|
4394
|
+
});
|
|
4395
|
+
},
|
|
4396
|
+
/**
|
|
4397
|
+
* Watch SetCurator events
|
|
4398
|
+
* @param callback Function to call when event is emitted
|
|
4399
|
+
* @param filter Optional filter for indexed parameters
|
|
4400
|
+
* @returns Unwatch function to stop listening
|
|
4401
|
+
*/
|
|
4402
|
+
SetCurator: (callback, filter) => {
|
|
4403
|
+
return this.publicClient.watchContractEvent({
|
|
4404
|
+
address: this.contractAddress,
|
|
4405
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4406
|
+
eventName: 'SetCurator',
|
|
4407
|
+
args: filter,
|
|
4408
|
+
onLogs: (logs) => {
|
|
4409
|
+
logs.forEach((log) => {
|
|
4410
|
+
callback(log.args);
|
|
4411
|
+
});
|
|
4412
|
+
},
|
|
4413
|
+
});
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
* Watch SetForceDeallocatePenalty events
|
|
4417
|
+
* @param callback Function to call when event is emitted
|
|
4418
|
+
* @param filter Optional filter for indexed parameters
|
|
4419
|
+
* @returns Unwatch function to stop listening
|
|
4420
|
+
*/
|
|
4421
|
+
SetForceDeallocatePenalty: (callback, filter) => {
|
|
4422
|
+
return this.publicClient.watchContractEvent({
|
|
4423
|
+
address: this.contractAddress,
|
|
4424
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4425
|
+
eventName: 'SetForceDeallocatePenalty',
|
|
4426
|
+
args: filter,
|
|
4427
|
+
onLogs: (logs) => {
|
|
4428
|
+
logs.forEach((log) => {
|
|
4429
|
+
callback(log.args);
|
|
4430
|
+
});
|
|
4431
|
+
},
|
|
4432
|
+
});
|
|
4433
|
+
},
|
|
4434
|
+
/**
|
|
4435
|
+
* Watch SetIsAllocator events
|
|
4436
|
+
* @param callback Function to call when event is emitted
|
|
4437
|
+
* @param filter Optional filter for indexed parameters
|
|
4438
|
+
* @returns Unwatch function to stop listening
|
|
4439
|
+
*/
|
|
4440
|
+
SetIsAllocator: (callback, filter) => {
|
|
4441
|
+
return this.publicClient.watchContractEvent({
|
|
4442
|
+
address: this.contractAddress,
|
|
4443
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4444
|
+
eventName: 'SetIsAllocator',
|
|
4445
|
+
args: filter,
|
|
4446
|
+
onLogs: (logs) => {
|
|
4447
|
+
logs.forEach((log) => {
|
|
4448
|
+
callback(log.args);
|
|
4449
|
+
});
|
|
4450
|
+
},
|
|
4451
|
+
});
|
|
4452
|
+
},
|
|
4453
|
+
/**
|
|
4454
|
+
* Watch SetIsSentinel events
|
|
4455
|
+
* @param callback Function to call when event is emitted
|
|
4456
|
+
* @param filter Optional filter for indexed parameters
|
|
4457
|
+
* @returns Unwatch function to stop listening
|
|
4458
|
+
*/
|
|
4459
|
+
SetIsSentinel: (callback, filter) => {
|
|
4460
|
+
return this.publicClient.watchContractEvent({
|
|
4461
|
+
address: this.contractAddress,
|
|
4462
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4463
|
+
eventName: 'SetIsSentinel',
|
|
4464
|
+
args: filter,
|
|
4465
|
+
onLogs: (logs) => {
|
|
4466
|
+
logs.forEach((log) => {
|
|
4467
|
+
callback(log.args);
|
|
4468
|
+
});
|
|
4469
|
+
},
|
|
4470
|
+
});
|
|
4471
|
+
},
|
|
4472
|
+
/**
|
|
4473
|
+
* Watch SetLiquidityAdapterAndData events
|
|
4474
|
+
* @param callback Function to call when event is emitted
|
|
4475
|
+
* @param filter Optional filter for indexed parameters
|
|
4476
|
+
* @returns Unwatch function to stop listening
|
|
4477
|
+
*/
|
|
4478
|
+
SetLiquidityAdapterAndData: (callback, filter) => {
|
|
4479
|
+
return this.publicClient.watchContractEvent({
|
|
4480
|
+
address: this.contractAddress,
|
|
4481
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4482
|
+
eventName: 'SetLiquidityAdapterAndData',
|
|
4483
|
+
args: filter,
|
|
4484
|
+
onLogs: (logs) => {
|
|
4485
|
+
logs.forEach((log) => {
|
|
4486
|
+
callback(log.args);
|
|
4487
|
+
});
|
|
4488
|
+
},
|
|
4489
|
+
});
|
|
4490
|
+
},
|
|
4491
|
+
/**
|
|
4492
|
+
* Watch SetManagementFee events
|
|
4493
|
+
* @param callback Function to call when event is emitted
|
|
4494
|
+
* @param filter Optional filter for indexed parameters
|
|
4495
|
+
* @returns Unwatch function to stop listening
|
|
4496
|
+
*/
|
|
4497
|
+
SetManagementFee: (callback) => {
|
|
4498
|
+
return this.publicClient.watchContractEvent({
|
|
4499
|
+
address: this.contractAddress,
|
|
4500
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4501
|
+
eventName: 'SetManagementFee',
|
|
4502
|
+
onLogs: (logs) => {
|
|
4503
|
+
logs.forEach((log) => {
|
|
4504
|
+
callback(log.args);
|
|
4505
|
+
});
|
|
4506
|
+
},
|
|
4507
|
+
});
|
|
4508
|
+
},
|
|
4509
|
+
/**
|
|
4510
|
+
* Watch SetManagementFeeRecipient events
|
|
4511
|
+
* @param callback Function to call when event is emitted
|
|
4512
|
+
* @param filter Optional filter for indexed parameters
|
|
4513
|
+
* @returns Unwatch function to stop listening
|
|
4514
|
+
*/
|
|
4515
|
+
SetManagementFeeRecipient: (callback, filter) => {
|
|
4516
|
+
return this.publicClient.watchContractEvent({
|
|
4517
|
+
address: this.contractAddress,
|
|
4518
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4519
|
+
eventName: 'SetManagementFeeRecipient',
|
|
4520
|
+
args: filter,
|
|
4521
|
+
onLogs: (logs) => {
|
|
4522
|
+
logs.forEach((log) => {
|
|
4523
|
+
callback(log.args);
|
|
4524
|
+
});
|
|
4525
|
+
},
|
|
4526
|
+
});
|
|
4527
|
+
},
|
|
4528
|
+
/**
|
|
4529
|
+
* Watch SetMaxRate events
|
|
4530
|
+
* @param callback Function to call when event is emitted
|
|
4531
|
+
* @param filter Optional filter for indexed parameters
|
|
4532
|
+
* @returns Unwatch function to stop listening
|
|
4533
|
+
*/
|
|
4534
|
+
SetMaxRate: (callback) => {
|
|
4535
|
+
return this.publicClient.watchContractEvent({
|
|
4536
|
+
address: this.contractAddress,
|
|
4537
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4538
|
+
eventName: 'SetMaxRate',
|
|
4539
|
+
onLogs: (logs) => {
|
|
4540
|
+
logs.forEach((log) => {
|
|
4541
|
+
callback(log.args);
|
|
4542
|
+
});
|
|
4543
|
+
},
|
|
4544
|
+
});
|
|
4545
|
+
},
|
|
4546
|
+
/**
|
|
4547
|
+
* Watch SetName events
|
|
4548
|
+
* @param callback Function to call when event is emitted
|
|
4549
|
+
* @param filter Optional filter for indexed parameters
|
|
4550
|
+
* @returns Unwatch function to stop listening
|
|
4551
|
+
*/
|
|
4552
|
+
SetName: (callback) => {
|
|
4553
|
+
return this.publicClient.watchContractEvent({
|
|
4554
|
+
address: this.contractAddress,
|
|
4555
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4556
|
+
eventName: 'SetName',
|
|
4557
|
+
onLogs: (logs) => {
|
|
4558
|
+
logs.forEach((log) => {
|
|
4559
|
+
callback(log.args);
|
|
4560
|
+
});
|
|
4561
|
+
},
|
|
4562
|
+
});
|
|
4563
|
+
},
|
|
4564
|
+
/**
|
|
4565
|
+
* Watch SetOwner events
|
|
4566
|
+
* @param callback Function to call when event is emitted
|
|
4567
|
+
* @param filter Optional filter for indexed parameters
|
|
4568
|
+
* @returns Unwatch function to stop listening
|
|
4569
|
+
*/
|
|
4570
|
+
SetOwner: (callback, filter) => {
|
|
4571
|
+
return this.publicClient.watchContractEvent({
|
|
4572
|
+
address: this.contractAddress,
|
|
4573
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4574
|
+
eventName: 'SetOwner',
|
|
4575
|
+
args: filter,
|
|
4576
|
+
onLogs: (logs) => {
|
|
4577
|
+
logs.forEach((log) => {
|
|
4578
|
+
callback(log.args);
|
|
4579
|
+
});
|
|
4580
|
+
},
|
|
4581
|
+
});
|
|
4582
|
+
},
|
|
4583
|
+
/**
|
|
4584
|
+
* Watch SetPerformanceFee events
|
|
4585
|
+
* @param callback Function to call when event is emitted
|
|
4586
|
+
* @param filter Optional filter for indexed parameters
|
|
4587
|
+
* @returns Unwatch function to stop listening
|
|
4588
|
+
*/
|
|
4589
|
+
SetPerformanceFee: (callback) => {
|
|
4590
|
+
return this.publicClient.watchContractEvent({
|
|
4591
|
+
address: this.contractAddress,
|
|
4592
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4593
|
+
eventName: 'SetPerformanceFee',
|
|
4594
|
+
onLogs: (logs) => {
|
|
4595
|
+
logs.forEach((log) => {
|
|
4596
|
+
callback(log.args);
|
|
4597
|
+
});
|
|
4598
|
+
},
|
|
4599
|
+
});
|
|
4600
|
+
},
|
|
4601
|
+
/**
|
|
4602
|
+
* Watch SetPerformanceFeeRecipient events
|
|
4603
|
+
* @param callback Function to call when event is emitted
|
|
4604
|
+
* @param filter Optional filter for indexed parameters
|
|
4605
|
+
* @returns Unwatch function to stop listening
|
|
4606
|
+
*/
|
|
4607
|
+
SetPerformanceFeeRecipient: (callback, filter) => {
|
|
4608
|
+
return this.publicClient.watchContractEvent({
|
|
4609
|
+
address: this.contractAddress,
|
|
4610
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4611
|
+
eventName: 'SetPerformanceFeeRecipient',
|
|
4612
|
+
args: filter,
|
|
4613
|
+
onLogs: (logs) => {
|
|
4614
|
+
logs.forEach((log) => {
|
|
4615
|
+
callback(log.args);
|
|
4616
|
+
});
|
|
4617
|
+
},
|
|
4618
|
+
});
|
|
4619
|
+
},
|
|
4620
|
+
/**
|
|
4621
|
+
* Watch SetReceiveAssetsGate events
|
|
4622
|
+
* @param callback Function to call when event is emitted
|
|
4623
|
+
* @param filter Optional filter for indexed parameters
|
|
4624
|
+
* @returns Unwatch function to stop listening
|
|
4625
|
+
*/
|
|
4626
|
+
SetReceiveAssetsGate: (callback, filter) => {
|
|
4627
|
+
return this.publicClient.watchContractEvent({
|
|
4628
|
+
address: this.contractAddress,
|
|
4629
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4630
|
+
eventName: 'SetReceiveAssetsGate',
|
|
4631
|
+
args: filter,
|
|
4632
|
+
onLogs: (logs) => {
|
|
4633
|
+
logs.forEach((log) => {
|
|
4634
|
+
callback(log.args);
|
|
4635
|
+
});
|
|
4636
|
+
},
|
|
4637
|
+
});
|
|
4638
|
+
},
|
|
4639
|
+
/**
|
|
4640
|
+
* Watch SetReceiveSharesGate events
|
|
4641
|
+
* @param callback Function to call when event is emitted
|
|
4642
|
+
* @param filter Optional filter for indexed parameters
|
|
4643
|
+
* @returns Unwatch function to stop listening
|
|
4644
|
+
*/
|
|
4645
|
+
SetReceiveSharesGate: (callback, filter) => {
|
|
4646
|
+
return this.publicClient.watchContractEvent({
|
|
4647
|
+
address: this.contractAddress,
|
|
4648
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4649
|
+
eventName: 'SetReceiveSharesGate',
|
|
4650
|
+
args: filter,
|
|
4651
|
+
onLogs: (logs) => {
|
|
4652
|
+
logs.forEach((log) => {
|
|
4653
|
+
callback(log.args);
|
|
4654
|
+
});
|
|
4655
|
+
},
|
|
4656
|
+
});
|
|
4657
|
+
},
|
|
4658
|
+
/**
|
|
4659
|
+
* Watch SetSendAssetsGate events
|
|
4660
|
+
* @param callback Function to call when event is emitted
|
|
4661
|
+
* @param filter Optional filter for indexed parameters
|
|
4662
|
+
* @returns Unwatch function to stop listening
|
|
4663
|
+
*/
|
|
4664
|
+
SetSendAssetsGate: (callback, filter) => {
|
|
4665
|
+
return this.publicClient.watchContractEvent({
|
|
4666
|
+
address: this.contractAddress,
|
|
4667
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4668
|
+
eventName: 'SetSendAssetsGate',
|
|
4669
|
+
args: filter,
|
|
4670
|
+
onLogs: (logs) => {
|
|
4671
|
+
logs.forEach((log) => {
|
|
4672
|
+
callback(log.args);
|
|
4673
|
+
});
|
|
4674
|
+
},
|
|
4675
|
+
});
|
|
4676
|
+
},
|
|
4677
|
+
/**
|
|
4678
|
+
* Watch SetSendSharesGate events
|
|
4679
|
+
* @param callback Function to call when event is emitted
|
|
4680
|
+
* @param filter Optional filter for indexed parameters
|
|
4681
|
+
* @returns Unwatch function to stop listening
|
|
4682
|
+
*/
|
|
4683
|
+
SetSendSharesGate: (callback, filter) => {
|
|
4684
|
+
return this.publicClient.watchContractEvent({
|
|
4685
|
+
address: this.contractAddress,
|
|
4686
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4687
|
+
eventName: 'SetSendSharesGate',
|
|
4688
|
+
args: filter,
|
|
4689
|
+
onLogs: (logs) => {
|
|
4690
|
+
logs.forEach((log) => {
|
|
4691
|
+
callback(log.args);
|
|
4692
|
+
});
|
|
4693
|
+
},
|
|
4694
|
+
});
|
|
4695
|
+
},
|
|
4696
|
+
/**
|
|
4697
|
+
* Watch SetSymbol events
|
|
4698
|
+
* @param callback Function to call when event is emitted
|
|
4699
|
+
* @param filter Optional filter for indexed parameters
|
|
4700
|
+
* @returns Unwatch function to stop listening
|
|
4701
|
+
*/
|
|
4702
|
+
SetSymbol: (callback) => {
|
|
4703
|
+
return this.publicClient.watchContractEvent({
|
|
4704
|
+
address: this.contractAddress,
|
|
4705
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4706
|
+
eventName: 'SetSymbol',
|
|
4707
|
+
onLogs: (logs) => {
|
|
4708
|
+
logs.forEach((log) => {
|
|
4709
|
+
callback(log.args);
|
|
4710
|
+
});
|
|
4711
|
+
},
|
|
4712
|
+
});
|
|
4713
|
+
},
|
|
4714
|
+
/**
|
|
4715
|
+
* Watch Submit events
|
|
4716
|
+
* @param callback Function to call when event is emitted
|
|
4717
|
+
* @param filter Optional filter for indexed parameters
|
|
4718
|
+
* @returns Unwatch function to stop listening
|
|
4719
|
+
*/
|
|
4720
|
+
Submit: (callback, filter) => {
|
|
4721
|
+
return this.publicClient.watchContractEvent({
|
|
4722
|
+
address: this.contractAddress,
|
|
4723
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4724
|
+
eventName: 'Submit',
|
|
4725
|
+
args: filter,
|
|
4726
|
+
onLogs: (logs) => {
|
|
4727
|
+
logs.forEach((log) => {
|
|
4728
|
+
callback(log.args);
|
|
4729
|
+
});
|
|
4730
|
+
},
|
|
4731
|
+
});
|
|
4732
|
+
},
|
|
4733
|
+
/**
|
|
4734
|
+
* Watch Transfer events
|
|
4735
|
+
* @param callback Function to call when event is emitted
|
|
4736
|
+
* @param filter Optional filter for indexed parameters
|
|
4737
|
+
* @returns Unwatch function to stop listening
|
|
4738
|
+
*/
|
|
4739
|
+
Transfer: (callback, filter) => {
|
|
4740
|
+
return this.publicClient.watchContractEvent({
|
|
4741
|
+
address: this.contractAddress,
|
|
4742
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4743
|
+
eventName: 'Transfer',
|
|
4744
|
+
args: filter,
|
|
4745
|
+
onLogs: (logs) => {
|
|
4746
|
+
logs.forEach((log) => {
|
|
4747
|
+
callback(log.args);
|
|
4748
|
+
});
|
|
4749
|
+
},
|
|
4750
|
+
});
|
|
4751
|
+
},
|
|
4752
|
+
/**
|
|
4753
|
+
* Watch Withdraw events
|
|
4754
|
+
* @param callback Function to call when event is emitted
|
|
4755
|
+
* @param filter Optional filter for indexed parameters
|
|
4756
|
+
* @returns Unwatch function to stop listening
|
|
4757
|
+
*/
|
|
4758
|
+
Withdraw: (callback, filter) => {
|
|
4759
|
+
return this.publicClient.watchContractEvent({
|
|
4760
|
+
address: this.contractAddress,
|
|
4761
|
+
abi: exports.VaultV2_jsonAbi,
|
|
4762
|
+
eventName: 'Withdraw',
|
|
4763
|
+
args: filter,
|
|
4764
|
+
onLogs: (logs) => {
|
|
4765
|
+
logs.forEach((log) => {
|
|
4766
|
+
callback(log.args);
|
|
4767
|
+
});
|
|
4768
|
+
},
|
|
4769
|
+
});
|
|
4770
|
+
}
|
|
4771
|
+
};
|
|
4772
|
+
}
|
|
4773
|
+
}
|
|
4774
|
+
exports.VaultV2_json = VaultV2_json;
|