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