@gitmyabi/vault 1.0.4 → 1.0.7

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,29 +1,6 @@
1
1
  import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
2
  import { getContract } from 'viem';
3
3
 
4
-
5
- /**
6
- * IVault.DepositRequest struct type
7
- */
8
- export type IVault_DepositRequest = {
9
- owner: `0x${string}`;
10
- assets: bigint;
11
- status: bigint;
12
- };
13
-
14
- /**
15
- * IVault.WithdrawRequest struct type
16
- */
17
- export type IVault_WithdrawRequest = {
18
- owner: `0x${string}`;
19
- shares: bigint;
20
- costBasisValueSnapshot: bigint;
21
- requestedAt: bigint;
22
- claimableAt: bigint;
23
- status: bigint;
24
- assetsOut: bigint;
25
- fee: bigint;
26
- };
27
4
  /**
28
5
  * Vault_json ABI
29
6
  *
@@ -31,250 +8,72 @@ export type IVault_WithdrawRequest = {
31
8
  */
32
9
  export const Vault_jsonAbi = [
33
10
  {
34
- "inputs": [
35
- {
36
- "internalType": "contract IERC20",
37
- "name": "_asset",
38
- "type": "address"
39
- },
40
- {
41
- "internalType": "contract IOracle",
42
- "name": "_oracle",
43
- "type": "address"
44
- },
45
- {
46
- "internalType": "address",
47
- "name": "admin",
48
- "type": "address"
49
- },
50
- {
51
- "internalType": "address",
52
- "name": "manager",
53
- "type": "address"
54
- },
55
- {
56
- "internalType": "address",
57
- "name": "bot",
58
- "type": "address"
59
- },
60
- {
61
- "internalType": "address",
62
- "name": "guardian",
63
- "type": "address"
64
- },
65
- {
66
- "internalType": "address",
67
- "name": "_feeRecipient",
68
- "type": "address"
69
- },
70
- {
71
- "internalType": "uint256",
72
- "name": "_performanceFee",
73
- "type": "uint256"
74
- },
75
- {
76
- "internalType": "uint256",
77
- "name": "_minDepositAssets",
78
- "type": "uint256"
79
- },
80
- {
81
- "internalType": "uint256",
82
- "name": "_maxSettlementBatchSize",
83
- "type": "uint256"
84
- }
85
- ],
11
+ "inputs": [],
86
12
  "stateMutability": "nonpayable",
87
13
  "type": "constructor"
88
14
  },
89
15
  {
90
- "inputs": [],
91
- "name": "AccessControlBadConfirmation",
92
- "type": "error"
93
- },
94
- {
95
- "inputs": [
96
- {
97
- "internalType": "address",
98
- "name": "account",
99
- "type": "address"
100
- },
101
- {
102
- "internalType": "bytes32",
103
- "name": "neededRole",
104
- "type": "bytes32"
105
- }
106
- ],
107
- "name": "AccessControlUnauthorizedAccount",
108
- "type": "error"
109
- },
110
- {
16
+ "anonymous": false,
111
17
  "inputs": [
112
18
  {
19
+ "indexed": false,
113
20
  "internalType": "address",
114
- "name": "target",
21
+ "name": "previousAdmin",
115
22
  "type": "address"
116
- }
117
- ],
118
- "name": "AddressEmptyCode",
119
- "type": "error"
120
- },
121
- {
122
- "inputs": [],
123
- "name": "AlreadyTracked",
124
- "type": "error"
125
- },
126
- {
127
- "inputs": [],
128
- "name": "DepositTooSmall",
129
- "type": "error"
130
- },
131
- {
132
- "inputs": [],
133
- "name": "EnforcedPause",
134
- "type": "error"
135
- },
136
- {
137
- "inputs": [],
138
- "name": "ExpectedPause",
139
- "type": "error"
140
- },
141
- {
142
- "inputs": [],
143
- "name": "FailedCall",
144
- "type": "error"
145
- },
146
- {
147
- "inputs": [
148
- {
149
- "internalType": "uint256",
150
- "name": "balance",
151
- "type": "uint256"
152
23
  },
153
24
  {
154
- "internalType": "uint256",
155
- "name": "needed",
156
- "type": "uint256"
157
- }
158
- ],
159
- "name": "InsufficientBalance",
160
- "type": "error"
161
- },
162
- {
163
- "inputs": [],
164
- "name": "InsufficientLiquidity",
165
- "type": "error"
166
- },
167
- {
168
- "inputs": [],
169
- "name": "InsufficientShares",
170
- "type": "error"
171
- },
172
- {
173
- "inputs": [],
174
- "name": "InvalidBatchSize",
175
- "type": "error"
176
- },
177
- {
178
- "inputs": [],
179
- "name": "InvalidFee",
180
- "type": "error"
181
- },
182
- {
183
- "inputs": [],
184
- "name": "NotRequestOwner",
185
- "type": "error"
186
- },
187
- {
188
- "inputs": [],
189
- "name": "NotTracked",
190
- "type": "error"
191
- },
192
- {
193
- "inputs": [],
194
- "name": "OnlyHPT",
195
- "type": "error"
196
- },
197
- {
198
- "inputs": [],
199
- "name": "ReentrancyGuardReentrantCall",
200
- "type": "error"
201
- },
202
- {
203
- "inputs": [],
204
- "name": "RequestNotOpen",
205
- "type": "error"
206
- },
207
- {
208
- "inputs": [
209
- {
25
+ "indexed": false,
210
26
  "internalType": "address",
211
- "name": "token",
27
+ "name": "newAdmin",
212
28
  "type": "address"
213
29
  }
214
30
  ],
215
- "name": "SafeERC20FailedOperation",
216
- "type": "error"
31
+ "name": "AdminChanged",
32
+ "type": "event"
217
33
  },
218
34
  {
35
+ "anonymous": false,
219
36
  "inputs": [
220
37
  {
38
+ "indexed": true,
221
39
  "internalType": "address",
222
- "name": "target",
40
+ "name": "beacon",
223
41
  "type": "address"
224
42
  }
225
43
  ],
226
- "name": "TargetNotAllowed",
227
- "type": "error"
44
+ "name": "BeaconUpgraded",
45
+ "type": "event"
228
46
  },
229
47
  {
48
+ "anonymous": false,
230
49
  "inputs": [
231
50
  {
232
- "internalType": "address",
233
- "name": "token",
234
- "type": "address"
235
- },
236
- {
237
- "internalType": "uint256",
238
- "name": "balance",
239
- "type": "uint256"
51
+ "indexed": false,
52
+ "internalType": "uint8",
53
+ "name": "version",
54
+ "type": "uint8"
240
55
  }
241
56
  ],
242
- "name": "TrackedTokenHasBalance",
243
- "type": "error"
244
- },
245
- {
246
- "inputs": [],
247
- "name": "WithdrawNotReady",
248
- "type": "error"
249
- },
250
- {
251
- "inputs": [],
252
- "name": "ZeroAmount",
253
- "type": "error"
57
+ "name": "Initialized",
58
+ "type": "event"
254
59
  },
255
60
  {
256
61
  "anonymous": false,
257
62
  "inputs": [
258
63
  {
259
64
  "indexed": true,
260
- "internalType": "uint256",
261
- "name": "depositId",
262
- "type": "uint256"
65
+ "internalType": "address",
66
+ "name": "previousOwner",
67
+ "type": "address"
263
68
  },
264
69
  {
265
70
  "indexed": true,
266
71
  "internalType": "address",
267
- "name": "owner",
72
+ "name": "newOwner",
268
73
  "type": "address"
269
- },
270
- {
271
- "indexed": false,
272
- "internalType": "uint256",
273
- "name": "assets",
274
- "type": "uint256"
275
74
  }
276
75
  ],
277
- "name": "DepositAutoRefunded",
76
+ "name": "OwnershipTransferred",
278
77
  "type": "event"
279
78
  },
280
79
  {
@@ -282,24 +81,24 @@ export const Vault_jsonAbi = [
282
81
  "inputs": [
283
82
  {
284
83
  "indexed": true,
285
- "internalType": "uint256",
286
- "name": "depositId",
287
- "type": "uint256"
84
+ "internalType": "bytes32",
85
+ "name": "role",
86
+ "type": "bytes32"
288
87
  },
289
88
  {
290
89
  "indexed": true,
291
- "internalType": "address",
292
- "name": "owner",
293
- "type": "address"
90
+ "internalType": "bytes32",
91
+ "name": "previousAdminRole",
92
+ "type": "bytes32"
294
93
  },
295
94
  {
296
- "indexed": false,
297
- "internalType": "uint256",
298
- "name": "assets",
299
- "type": "uint256"
95
+ "indexed": true,
96
+ "internalType": "bytes32",
97
+ "name": "newAdminRole",
98
+ "type": "bytes32"
300
99
  }
301
100
  ],
302
- "name": "DepositCancelled",
101
+ "name": "RoleAdminChanged",
303
102
  "type": "event"
304
103
  },
305
104
  {
@@ -307,24 +106,24 @@ export const Vault_jsonAbi = [
307
106
  "inputs": [
308
107
  {
309
108
  "indexed": true,
310
- "internalType": "uint256",
311
- "name": "depositId",
312
- "type": "uint256"
109
+ "internalType": "bytes32",
110
+ "name": "role",
111
+ "type": "bytes32"
313
112
  },
314
113
  {
315
114
  "indexed": true,
316
115
  "internalType": "address",
317
- "name": "owner",
116
+ "name": "account",
318
117
  "type": "address"
319
118
  },
320
119
  {
321
- "indexed": false,
322
- "internalType": "uint256",
323
- "name": "assets",
324
- "type": "uint256"
120
+ "indexed": true,
121
+ "internalType": "address",
122
+ "name": "sender",
123
+ "type": "address"
325
124
  }
326
125
  ],
327
- "name": "DepositRequested",
126
+ "name": "RoleGranted",
328
127
  "type": "event"
329
128
  },
330
129
  {
@@ -332,515 +131,370 @@ export const Vault_jsonAbi = [
332
131
  "inputs": [
333
132
  {
334
133
  "indexed": true,
335
- "internalType": "uint256",
336
- "name": "depositId",
337
- "type": "uint256"
134
+ "internalType": "bytes32",
135
+ "name": "role",
136
+ "type": "bytes32"
338
137
  },
339
138
  {
340
139
  "indexed": true,
341
140
  "internalType": "address",
342
- "name": "owner",
141
+ "name": "account",
343
142
  "type": "address"
344
143
  },
345
144
  {
346
- "indexed": false,
347
- "internalType": "uint256",
348
- "name": "netAssets",
349
- "type": "uint256"
350
- },
351
- {
352
- "indexed": false,
353
- "internalType": "uint256",
354
- "name": "shares",
355
- "type": "uint256"
145
+ "indexed": true,
146
+ "internalType": "address",
147
+ "name": "sender",
148
+ "type": "address"
356
149
  }
357
150
  ],
358
- "name": "DepositSettled",
151
+ "name": "RoleRevoked",
359
152
  "type": "event"
360
153
  },
361
154
  {
362
155
  "anonymous": false,
363
156
  "inputs": [
364
157
  {
365
- "indexed": false,
366
- "internalType": "uint256",
367
- "name": "size",
368
- "type": "uint256"
158
+ "indexed": true,
159
+ "internalType": "address",
160
+ "name": "implementation",
161
+ "type": "address"
369
162
  }
370
163
  ],
371
- "name": "MaxSettlementBatchSizeSet",
164
+ "name": "Upgraded",
372
165
  "type": "event"
373
166
  },
374
167
  {
375
- "anonymous": false,
376
- "inputs": [
168
+ "inputs": [],
169
+ "name": "DEFAULT_ADMIN_ROLE",
170
+ "outputs": [
377
171
  {
378
- "indexed": false,
379
- "internalType": "uint256",
380
- "name": "amount",
381
- "type": "uint256"
172
+ "internalType": "bytes32",
173
+ "name": "",
174
+ "type": "bytes32"
382
175
  }
383
176
  ],
384
- "name": "MinDepositAssetsSet",
385
- "type": "event"
177
+ "stateMutability": "view",
178
+ "type": "function"
386
179
  },
387
180
  {
388
- "anonymous": false,
389
- "inputs": [
181
+ "inputs": [],
182
+ "name": "PAYEE_ROLE",
183
+ "outputs": [
390
184
  {
391
- "indexed": true,
392
- "internalType": "address",
393
- "name": "oracle",
394
- "type": "address"
185
+ "internalType": "bytes32",
186
+ "name": "",
187
+ "type": "bytes32"
395
188
  }
396
189
  ],
397
- "name": "OracleSet",
398
- "type": "event"
190
+ "stateMutability": "view",
191
+ "type": "function"
399
192
  },
400
193
  {
401
- "anonymous": false,
402
- "inputs": [
194
+ "inputs": [],
195
+ "name": "PAYER_ROLE",
196
+ "outputs": [
403
197
  {
404
- "indexed": false,
405
- "internalType": "address",
406
- "name": "account",
407
- "type": "address"
198
+ "internalType": "bytes32",
199
+ "name": "",
200
+ "type": "bytes32"
408
201
  }
409
202
  ],
410
- "name": "Paused",
411
- "type": "event"
203
+ "stateMutability": "view",
204
+ "type": "function"
412
205
  },
413
206
  {
414
- "anonymous": false,
415
207
  "inputs": [
416
208
  {
417
- "indexed": false,
418
- "internalType": "uint256",
419
- "name": "feeBps",
420
- "type": "uint256"
209
+ "internalType": "contract IERC20Upgradeable[]",
210
+ "name": "tokens",
211
+ "type": "address[]"
212
+ },
213
+ {
214
+ "internalType": "address[]",
215
+ "name": "payees",
216
+ "type": "address[]"
217
+ },
218
+ {
219
+ "internalType": "uint256[]",
220
+ "name": "amounts",
221
+ "type": "uint256[]"
421
222
  }
422
223
  ],
423
- "name": "PerformanceFeeSet",
424
- "type": "event"
224
+ "name": "batchTransferErc20",
225
+ "outputs": [],
226
+ "stateMutability": "nonpayable",
227
+ "type": "function"
425
228
  },
426
229
  {
427
- "anonymous": false,
428
230
  "inputs": [
429
231
  {
430
- "indexed": false,
431
- "internalType": "uint256",
432
- "name": "callCount",
433
- "type": "uint256"
232
+ "internalType": "contract IERC721Upgradeable[]",
233
+ "name": "tokens",
234
+ "type": "address[]"
434
235
  },
435
236
  {
436
- "indexed": false,
437
- "internalType": "uint256",
438
- "name": "navBefore",
439
- "type": "uint256"
237
+ "internalType": "address[]",
238
+ "name": "payees",
239
+ "type": "address[]"
440
240
  },
441
241
  {
442
- "indexed": false,
443
- "internalType": "uint256",
444
- "name": "navAfter",
445
- "type": "uint256"
242
+ "internalType": "uint256[]",
243
+ "name": "tokenIds",
244
+ "type": "uint256[]"
446
245
  }
447
246
  ],
448
- "name": "Rebalanced",
449
- "type": "event"
247
+ "name": "batchTransferErc721",
248
+ "outputs": [],
249
+ "stateMutability": "nonpayable",
250
+ "type": "function"
450
251
  },
451
252
  {
452
- "anonymous": false,
453
253
  "inputs": [
454
254
  {
455
- "indexed": true,
456
- "internalType": "bytes32",
457
- "name": "role",
458
- "type": "bytes32"
255
+ "internalType": "address[]",
256
+ "name": "payees",
257
+ "type": "address[]"
459
258
  },
460
259
  {
461
- "indexed": true,
260
+ "internalType": "uint256[]",
261
+ "name": "amounts",
262
+ "type": "uint256[]"
263
+ }
264
+ ],
265
+ "name": "batchTransferEther",
266
+ "outputs": [],
267
+ "stateMutability": "nonpayable",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [
272
+ {
462
273
  "internalType": "bytes32",
463
- "name": "previousAdminRole",
274
+ "name": "role",
464
275
  "type": "bytes32"
465
- },
276
+ }
277
+ ],
278
+ "name": "getRoleAdmin",
279
+ "outputs": [
466
280
  {
467
- "indexed": true,
468
281
  "internalType": "bytes32",
469
- "name": "newAdminRole",
282
+ "name": "",
470
283
  "type": "bytes32"
471
284
  }
472
285
  ],
473
- "name": "RoleAdminChanged",
474
- "type": "event"
286
+ "stateMutability": "view",
287
+ "type": "function"
475
288
  },
476
289
  {
477
- "anonymous": false,
478
290
  "inputs": [
479
291
  {
480
- "indexed": true,
481
292
  "internalType": "bytes32",
482
293
  "name": "role",
483
294
  "type": "bytes32"
484
295
  },
485
296
  {
486
- "indexed": true,
487
- "internalType": "address",
488
- "name": "account",
489
- "type": "address"
490
- },
297
+ "internalType": "uint256",
298
+ "name": "index",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "name": "getRoleMember",
303
+ "outputs": [
491
304
  {
492
- "indexed": true,
493
305
  "internalType": "address",
494
- "name": "sender",
306
+ "name": "",
495
307
  "type": "address"
496
308
  }
497
309
  ],
498
- "name": "RoleGranted",
499
- "type": "event"
310
+ "stateMutability": "view",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [
315
+ {
316
+ "internalType": "bytes32",
317
+ "name": "role",
318
+ "type": "bytes32"
319
+ }
320
+ ],
321
+ "name": "getRoleMemberCount",
322
+ "outputs": [
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "stateMutability": "view",
330
+ "type": "function"
500
331
  },
501
332
  {
502
- "anonymous": false,
503
333
  "inputs": [
504
334
  {
505
- "indexed": true,
506
335
  "internalType": "bytes32",
507
336
  "name": "role",
508
337
  "type": "bytes32"
509
338
  },
510
339
  {
511
- "indexed": true,
512
340
  "internalType": "address",
513
341
  "name": "account",
514
342
  "type": "address"
343
+ }
344
+ ],
345
+ "name": "grantRole",
346
+ "outputs": [],
347
+ "stateMutability": "nonpayable",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [
352
+ {
353
+ "internalType": "bytes32",
354
+ "name": "role",
355
+ "type": "bytes32"
515
356
  },
516
357
  {
517
- "indexed": true,
518
358
  "internalType": "address",
519
- "name": "sender",
359
+ "name": "account",
520
360
  "type": "address"
521
361
  }
522
362
  ],
523
- "name": "RoleRevoked",
524
- "type": "event"
363
+ "name": "hasRole",
364
+ "outputs": [
365
+ {
366
+ "internalType": "bool",
367
+ "name": "",
368
+ "type": "bool"
369
+ }
370
+ ],
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "initialize",
377
+ "outputs": [],
378
+ "stateMutability": "nonpayable",
379
+ "type": "function"
525
380
  },
526
381
  {
527
- "anonymous": false,
528
382
  "inputs": [
529
383
  {
530
- "indexed": false,
531
- "internalType": "uint256",
532
- "name": "oraclePriceCount",
533
- "type": "uint256"
384
+ "internalType": "address",
385
+ "name": "",
386
+ "type": "address"
534
387
  },
535
388
  {
536
- "indexed": false,
537
- "internalType": "uint256",
538
- "name": "depositsSettled",
539
- "type": "uint256"
389
+ "internalType": "address",
390
+ "name": "",
391
+ "type": "address"
540
392
  },
541
393
  {
542
- "indexed": false,
543
394
  "internalType": "uint256",
544
- "name": "depositsRefunded",
395
+ "name": "",
545
396
  "type": "uint256"
546
397
  },
547
398
  {
548
- "indexed": false,
549
- "internalType": "uint256",
550
- "name": "withdrawalsProcessed",
551
- "type": "uint256"
399
+ "internalType": "bytes",
400
+ "name": "",
401
+ "type": "bytes"
552
402
  }
553
403
  ],
554
- "name": "Settled",
555
- "type": "event"
556
- },
557
- {
558
- "anonymous": false,
559
- "inputs": [
404
+ "name": "onERC721Received",
405
+ "outputs": [
560
406
  {
561
- "indexed": false,
562
- "internalType": "uint256",
563
- "name": "fee",
564
- "type": "uint256"
407
+ "internalType": "bytes4",
408
+ "name": "",
409
+ "type": "bytes4"
565
410
  }
566
411
  ],
567
- "name": "SettlementFeeSet",
568
- "type": "event"
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
569
414
  },
570
415
  {
571
- "anonymous": false,
572
- "inputs": [
416
+ "inputs": [],
417
+ "name": "owner",
418
+ "outputs": [
573
419
  {
574
- "indexed": true,
575
420
  "internalType": "address",
576
- "name": "target",
421
+ "name": "",
577
422
  "type": "address"
578
- },
579
- {
580
- "indexed": false,
581
- "internalType": "bool",
582
- "name": "allowed",
583
- "type": "bool"
584
423
  }
585
424
  ],
586
- "name": "TargetAllowed",
587
- "type": "event"
425
+ "stateMutability": "view",
426
+ "type": "function"
588
427
  },
589
428
  {
590
- "anonymous": false,
591
- "inputs": [
429
+ "inputs": [],
430
+ "name": "proxiableUUID",
431
+ "outputs": [
592
432
  {
593
- "indexed": true,
594
- "internalType": "address",
595
- "name": "token",
596
- "type": "address"
433
+ "internalType": "bytes32",
434
+ "name": "",
435
+ "type": "bytes32"
597
436
  }
598
437
  ],
599
- "name": "TrackedTokenAdded",
600
- "type": "event"
438
+ "stateMutability": "view",
439
+ "type": "function"
601
440
  },
602
441
  {
603
- "anonymous": false,
604
- "inputs": [
605
- {
606
- "indexed": true,
607
- "internalType": "address",
608
- "name": "token",
609
- "type": "address"
610
- }
611
- ],
612
- "name": "TrackedTokenRemoved",
613
- "type": "event"
442
+ "inputs": [],
443
+ "name": "renounceOwnership",
444
+ "outputs": [],
445
+ "stateMutability": "nonpayable",
446
+ "type": "function"
614
447
  },
615
448
  {
616
- "anonymous": false,
617
449
  "inputs": [
618
450
  {
619
- "indexed": false,
451
+ "internalType": "bytes32",
452
+ "name": "role",
453
+ "type": "bytes32"
454
+ },
455
+ {
620
456
  "internalType": "address",
621
457
  "name": "account",
622
458
  "type": "address"
623
459
  }
624
460
  ],
625
- "name": "Unpaused",
626
- "type": "event"
461
+ "name": "renounceRole",
462
+ "outputs": [],
463
+ "stateMutability": "nonpayable",
464
+ "type": "function"
627
465
  },
628
466
  {
629
- "anonymous": false,
630
467
  "inputs": [
631
468
  {
632
- "indexed": true,
633
- "internalType": "uint256",
634
- "name": "requestId",
635
- "type": "uint256"
469
+ "internalType": "bytes32",
470
+ "name": "role",
471
+ "type": "bytes32"
636
472
  },
637
473
  {
638
- "indexed": true,
639
474
  "internalType": "address",
640
- "name": "owner",
475
+ "name": "account",
641
476
  "type": "address"
642
- },
643
- {
644
- "indexed": false,
645
- "internalType": "uint256",
646
- "name": "shares",
647
- "type": "uint256"
648
477
  }
649
478
  ],
650
- "name": "WithdrawCancelled",
651
- "type": "event"
479
+ "name": "revokeRole",
480
+ "outputs": [],
481
+ "stateMutability": "nonpayable",
482
+ "type": "function"
652
483
  },
653
484
  {
654
- "anonymous": false,
655
485
  "inputs": [
656
486
  {
657
- "indexed": true,
658
- "internalType": "uint256",
659
- "name": "requestId",
660
- "type": "uint256"
661
- },
662
- {
663
- "indexed": true,
664
- "internalType": "address",
665
- "name": "owner",
666
- "type": "address"
667
- },
668
- {
669
- "indexed": false,
670
- "internalType": "uint256",
671
- "name": "shares",
672
- "type": "uint256"
673
- },
674
- {
675
- "indexed": false,
676
- "internalType": "uint256",
677
- "name": "assetsPaid",
678
- "type": "uint256"
679
- },
680
- {
681
- "indexed": false,
682
- "internalType": "uint256",
683
- "name": "fee",
684
- "type": "uint256"
685
- }
686
- ],
687
- "name": "WithdrawClaimed",
688
- "type": "event"
689
- },
690
- {
691
- "anonymous": false,
692
- "inputs": [
693
- {
694
- "indexed": true,
695
- "internalType": "uint256",
696
- "name": "requestId",
697
- "type": "uint256"
698
- },
699
- {
700
- "indexed": true,
701
- "internalType": "address",
702
- "name": "owner",
703
- "type": "address"
704
- },
705
- {
706
- "indexed": false,
707
- "internalType": "uint256",
708
- "name": "shares",
709
- "type": "uint256"
710
- },
711
- {
712
- "indexed": false,
713
- "internalType": "uint64",
714
- "name": "claimableAt",
715
- "type": "uint64"
716
- }
717
- ],
718
- "name": "WithdrawRequested",
719
- "type": "event"
720
- },
721
- {
722
- "anonymous": false,
723
- "inputs": [
724
- {
725
- "indexed": true,
726
- "internalType": "uint256",
727
- "name": "requestId",
728
- "type": "uint256"
729
- },
730
- {
731
- "indexed": true,
732
- "internalType": "address",
733
- "name": "owner",
734
- "type": "address"
735
- },
736
- {
737
- "indexed": false,
738
- "internalType": "uint256",
739
- "name": "shares",
740
- "type": "uint256"
741
- },
742
- {
743
- "indexed": false,
744
- "internalType": "uint256",
745
- "name": "assetsOut",
746
- "type": "uint256"
747
- },
748
- {
749
- "indexed": false,
750
- "internalType": "uint256",
751
- "name": "fee",
752
- "type": "uint256"
753
- }
754
- ],
755
- "name": "WithdrawalSettled",
756
- "type": "event"
757
- },
758
- {
759
- "inputs": [],
760
- "name": "BOT_ROLE",
761
- "outputs": [
762
- {
763
- "internalType": "bytes32",
764
- "name": "",
765
- "type": "bytes32"
766
- }
767
- ],
768
- "stateMutability": "view",
769
- "type": "function"
770
- },
771
- {
772
- "inputs": [],
773
- "name": "BPS",
774
- "outputs": [
775
- {
776
- "internalType": "uint256",
777
- "name": "",
778
- "type": "uint256"
779
- }
780
- ],
781
- "stateMutability": "view",
782
- "type": "function"
783
- },
784
- {
785
- "inputs": [],
786
- "name": "DEFAULT_ADMIN_ROLE",
787
- "outputs": [
788
- {
789
- "internalType": "bytes32",
790
- "name": "",
791
- "type": "bytes32"
792
- }
793
- ],
794
- "stateMutability": "view",
795
- "type": "function"
796
- },
797
- {
798
- "inputs": [],
799
- "name": "GUARDIAN_ROLE",
800
- "outputs": [
801
- {
802
- "internalType": "bytes32",
803
- "name": "",
804
- "type": "bytes32"
805
- }
806
- ],
807
- "stateMutability": "view",
808
- "type": "function"
809
- },
810
- {
811
- "inputs": [],
812
- "name": "MANAGER_ROLE",
813
- "outputs": [
814
- {
815
- "internalType": "bytes32",
816
- "name": "",
817
- "type": "bytes32"
818
- }
819
- ],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [],
825
- "name": "MAX_FEE_BPS",
826
- "outputs": [
827
- {
828
- "internalType": "uint256",
829
- "name": "",
830
- "type": "uint256"
487
+ "internalType": "bytes4",
488
+ "name": "interfaceId",
489
+ "type": "bytes4"
831
490
  }
832
491
  ],
833
- "stateMutability": "view",
834
- "type": "function"
835
- },
836
- {
837
- "inputs": [],
838
- "name": "SHARE_SCALE",
492
+ "name": "supportsInterface",
839
493
  "outputs": [
840
494
  {
841
- "internalType": "uint256",
495
+ "internalType": "bool",
842
496
  "name": "",
843
- "type": "uint256"
497
+ "type": "bool"
844
498
  }
845
499
  ],
846
500
  "stateMutability": "view",
@@ -849,26 +503,13 @@ export const Vault_jsonAbi = [
849
503
  {
850
504
  "inputs": [
851
505
  {
852
- "internalType": "address",
853
- "name": "token",
854
- "type": "address"
855
- }
856
- ],
857
- "name": "addTrackedToken",
858
- "outputs": [],
859
- "stateMutability": "nonpayable",
860
- "type": "function"
861
- },
862
- {
863
- "inputs": [
864
- {
865
- "internalType": "contract IERC20",
506
+ "internalType": "contract IERC20Upgradeable",
866
507
  "name": "token",
867
508
  "type": "address"
868
509
  },
869
510
  {
870
511
  "internalType": "address",
871
- "name": "spender",
512
+ "name": "payee",
872
513
  "type": "address"
873
514
  },
874
515
  {
@@ -877,7 +518,7 @@ export const Vault_jsonAbi = [
877
518
  "type": "uint256"
878
519
  }
879
520
  ],
880
- "name": "approveERC20",
521
+ "name": "transferErc20",
881
522
  "outputs": [],
882
523
  "stateMutability": "nonpayable",
883
524
  "type": "function"
@@ -885,84 +526,40 @@ export const Vault_jsonAbi = [
885
526
  {
886
527
  "inputs": [
887
528
  {
888
- "internalType": "address",
889
- "name": "permit2",
890
- "type": "address"
891
- },
892
- {
893
- "internalType": "address",
529
+ "internalType": "contract IERC721Upgradeable",
894
530
  "name": "token",
895
531
  "type": "address"
896
532
  },
897
533
  {
898
534
  "internalType": "address",
899
- "name": "spender",
535
+ "name": "payee",
900
536
  "type": "address"
901
537
  },
902
538
  {
903
- "internalType": "uint160",
904
- "name": "amount",
905
- "type": "uint160"
906
- },
907
- {
908
- "internalType": "uint48",
909
- "name": "expiration",
910
- "type": "uint48"
539
+ "internalType": "uint256",
540
+ "name": "tokenId",
541
+ "type": "uint256"
911
542
  }
912
543
  ],
913
- "name": "approvePermit2",
544
+ "name": "transferErc721",
914
545
  "outputs": [],
915
546
  "stateMutability": "nonpayable",
916
547
  "type": "function"
917
548
  },
918
549
  {
919
- "inputs": [],
920
- "name": "asset",
921
- "outputs": [
550
+ "inputs": [
922
551
  {
923
552
  "internalType": "address",
924
- "name": "",
925
- "type": "address"
926
- }
927
- ],
928
- "stateMutability": "view",
929
- "type": "function"
930
- },
931
- {
932
- "inputs": [],
933
- "name": "assetDecimals",
934
- "outputs": [
935
- {
936
- "internalType": "uint8",
937
- "name": "",
938
- "type": "uint8"
939
- }
940
- ],
941
- "stateMutability": "view",
942
- "type": "function"
943
- },
944
- {
945
- "inputs": [],
946
- "name": "assetToken",
947
- "outputs": [
948
- {
949
- "internalType": "contract IERC20",
950
- "name": "",
553
+ "name": "payee",
951
554
  "type": "address"
952
- }
953
- ],
954
- "stateMutability": "view",
955
- "type": "function"
956
- },
957
- {
958
- "inputs": [
555
+ },
959
556
  {
960
557
  "internalType": "uint256",
961
- "name": "depositId",
558
+ "name": "amount",
962
559
  "type": "uint256"
963
560
  }
964
561
  ],
965
- "name": "cancelDepositRequest",
562
+ "name": "transferEther",
966
563
  "outputs": [],
967
564
  "stateMutability": "nonpayable",
968
565
  "type": "function"
@@ -970,31 +567,25 @@ export const Vault_jsonAbi = [
970
567
  {
971
568
  "inputs": [
972
569
  {
973
- "internalType": "uint256",
974
- "name": "maxCount",
975
- "type": "uint256"
976
- }
977
- ],
978
- "name": "cancelPendingDeposits",
979
- "outputs": [
980
- {
981
- "internalType": "uint256",
982
- "name": "cancelled",
983
- "type": "uint256"
570
+ "internalType": "address",
571
+ "name": "newOwner",
572
+ "type": "address"
984
573
  }
985
574
  ],
575
+ "name": "transferOwnership",
576
+ "outputs": [],
986
577
  "stateMutability": "nonpayable",
987
578
  "type": "function"
988
579
  },
989
580
  {
990
581
  "inputs": [
991
582
  {
992
- "internalType": "uint256",
993
- "name": "requestId",
994
- "type": "uint256"
583
+ "internalType": "address",
584
+ "name": "newImplementation",
585
+ "type": "address"
995
586
  }
996
587
  ],
997
- "name": "cancelWithdraw",
588
+ "name": "upgradeTo",
998
589
  "outputs": [],
999
590
  "stateMutability": "nonpayable",
1000
591
  "type": "function"
@@ -1002,955 +593,24 @@ export const Vault_jsonAbi = [
1002
593
  {
1003
594
  "inputs": [
1004
595
  {
1005
- "internalType": "uint256",
1006
- "name": "requestId",
1007
- "type": "uint256"
1008
- },
1009
- {
1010
- "internalType": "contract IVault",
1011
- "name": "newVault",
596
+ "internalType": "address",
597
+ "name": "newImplementation",
1012
598
  "type": "address"
1013
- }
1014
- ],
1015
- "name": "claimAndDeposit",
1016
- "outputs": [
1017
- {
1018
- "internalType": "uint256",
1019
- "name": "depositId",
1020
- "type": "uint256"
1021
- }
1022
- ],
1023
- "stateMutability": "nonpayable",
1024
- "type": "function"
1025
- },
1026
- {
1027
- "inputs": [
599
+ },
1028
600
  {
1029
- "internalType": "uint256",
1030
- "name": "requestId",
1031
- "type": "uint256"
601
+ "internalType": "bytes",
602
+ "name": "data",
603
+ "type": "bytes"
1032
604
  }
1033
605
  ],
1034
- "name": "claimWithdraw",
606
+ "name": "upgradeToAndCall",
1035
607
  "outputs": [],
1036
- "stateMutability": "nonpayable",
608
+ "stateMutability": "payable",
1037
609
  "type": "function"
1038
610
  },
1039
611
  {
1040
- "inputs": [
1041
- {
1042
- "internalType": "uint256",
1043
- "name": "requestId",
1044
- "type": "uint256"
1045
- },
1046
- {
1047
- "internalType": "address",
1048
- "name": "recipient",
1049
- "type": "address"
1050
- }
1051
- ],
1052
- "name": "claimWithdrawTo",
1053
- "outputs": [],
1054
- "stateMutability": "nonpayable",
1055
- "type": "function"
1056
- },
1057
- {
1058
- "inputs": [
1059
- {
1060
- "internalType": "address",
1061
- "name": "user",
1062
- "type": "address"
1063
- }
1064
- ],
1065
- "name": "costBasisPerShare",
1066
- "outputs": [
1067
- {
1068
- "internalType": "uint256",
1069
- "name": "",
1070
- "type": "uint256"
1071
- }
1072
- ],
1073
- "stateMutability": "view",
1074
- "type": "function"
1075
- },
1076
- {
1077
- "inputs": [
1078
- {
1079
- "internalType": "address",
1080
- "name": "",
1081
- "type": "address"
1082
- }
1083
- ],
1084
- "name": "costBasisValue",
1085
- "outputs": [
1086
- {
1087
- "internalType": "uint256",
1088
- "name": "",
1089
- "type": "uint256"
1090
- }
1091
- ],
1092
- "stateMutability": "view",
1093
- "type": "function"
1094
- },
1095
- {
1096
- "inputs": [],
1097
- "name": "depositQueueLength",
1098
- "outputs": [
1099
- {
1100
- "internalType": "uint256",
1101
- "name": "",
1102
- "type": "uint256"
1103
- }
1104
- ],
1105
- "stateMutability": "view",
1106
- "type": "function"
1107
- },
1108
- {
1109
- "inputs": [],
1110
- "name": "feeRecipient",
1111
- "outputs": [
1112
- {
1113
- "internalType": "address",
1114
- "name": "",
1115
- "type": "address"
1116
- }
1117
- ],
1118
- "stateMutability": "view",
1119
- "type": "function"
1120
- },
1121
- {
1122
- "inputs": [
1123
- {
1124
- "internalType": "uint256",
1125
- "name": "depositId",
1126
- "type": "uint256"
1127
- }
1128
- ],
1129
- "name": "getDepositRequest",
1130
- "outputs": [
1131
- {
1132
- "components": [
1133
- {
1134
- "internalType": "address",
1135
- "name": "owner",
1136
- "type": "address"
1137
- },
1138
- {
1139
- "internalType": "uint256",
1140
- "name": "assets",
1141
- "type": "uint256"
1142
- },
1143
- {
1144
- "internalType": "enum IVault.DepositStatus",
1145
- "name": "status",
1146
- "type": "uint8"
1147
- }
1148
- ],
1149
- "internalType": "struct IVault.DepositRequest",
1150
- "name": "",
1151
- "type": "tuple"
1152
- }
1153
- ],
1154
- "stateMutability": "view",
1155
- "type": "function"
1156
- },
1157
- {
1158
- "inputs": [
1159
- {
1160
- "internalType": "uint256",
1161
- "name": "requestId",
1162
- "type": "uint256"
1163
- }
1164
- ],
1165
- "name": "getRequest",
1166
- "outputs": [
1167
- {
1168
- "components": [
1169
- {
1170
- "internalType": "address",
1171
- "name": "owner",
1172
- "type": "address"
1173
- },
1174
- {
1175
- "internalType": "uint256",
1176
- "name": "shares",
1177
- "type": "uint256"
1178
- },
1179
- {
1180
- "internalType": "uint256",
1181
- "name": "costBasisValueSnapshot",
1182
- "type": "uint256"
1183
- },
1184
- {
1185
- "internalType": "uint64",
1186
- "name": "requestedAt",
1187
- "type": "uint64"
1188
- },
1189
- {
1190
- "internalType": "uint64",
1191
- "name": "claimableAt",
1192
- "type": "uint64"
1193
- },
1194
- {
1195
- "internalType": "enum IVault.WithdrawStatus",
1196
- "name": "status",
1197
- "type": "uint8"
1198
- },
1199
- {
1200
- "internalType": "uint256",
1201
- "name": "assetsOut",
1202
- "type": "uint256"
1203
- },
1204
- {
1205
- "internalType": "uint256",
1206
- "name": "fee",
1207
- "type": "uint256"
1208
- }
1209
- ],
1210
- "internalType": "struct IVault.WithdrawRequest",
1211
- "name": "",
1212
- "type": "tuple"
1213
- }
1214
- ],
1215
- "stateMutability": "view",
1216
- "type": "function"
1217
- },
1218
- {
1219
- "inputs": [
1220
- {
1221
- "internalType": "bytes32",
1222
- "name": "role",
1223
- "type": "bytes32"
1224
- }
1225
- ],
1226
- "name": "getRoleAdmin",
1227
- "outputs": [
1228
- {
1229
- "internalType": "bytes32",
1230
- "name": "",
1231
- "type": "bytes32"
1232
- }
1233
- ],
1234
- "stateMutability": "view",
1235
- "type": "function"
1236
- },
1237
- {
1238
- "inputs": [
1239
- {
1240
- "internalType": "bytes32",
1241
- "name": "role",
1242
- "type": "bytes32"
1243
- },
1244
- {
1245
- "internalType": "address",
1246
- "name": "account",
1247
- "type": "address"
1248
- }
1249
- ],
1250
- "name": "grantRole",
1251
- "outputs": [],
1252
- "stateMutability": "nonpayable",
1253
- "type": "function"
1254
- },
1255
- {
1256
- "inputs": [
1257
- {
1258
- "internalType": "bytes32",
1259
- "name": "role",
1260
- "type": "bytes32"
1261
- },
1262
- {
1263
- "internalType": "address",
1264
- "name": "account",
1265
- "type": "address"
1266
- }
1267
- ],
1268
- "name": "hasRole",
1269
- "outputs": [
1270
- {
1271
- "internalType": "bool",
1272
- "name": "",
1273
- "type": "bool"
1274
- }
1275
- ],
1276
- "stateMutability": "view",
1277
- "type": "function"
1278
- },
1279
- {
1280
- "inputs": [],
1281
- "name": "hasSettleReadyWork",
1282
- "outputs": [
1283
- {
1284
- "internalType": "bool",
1285
- "name": "",
1286
- "type": "bool"
1287
- }
1288
- ],
1289
- "stateMutability": "view",
1290
- "type": "function"
1291
- },
1292
- {
1293
- "inputs": [
1294
- {
1295
- "internalType": "address",
1296
- "name": "",
1297
- "type": "address"
1298
- }
1299
- ],
1300
- "name": "isTracked",
1301
- "outputs": [
1302
- {
1303
- "internalType": "bool",
1304
- "name": "",
1305
- "type": "bool"
1306
- }
1307
- ],
1308
- "stateMutability": "view",
1309
- "type": "function"
1310
- },
1311
- {
1312
- "inputs": [],
1313
- "name": "maxSettlementBatchSize",
1314
- "outputs": [
1315
- {
1316
- "internalType": "uint256",
1317
- "name": "",
1318
- "type": "uint256"
1319
- }
1320
- ],
1321
- "stateMutability": "view",
1322
- "type": "function"
1323
- },
1324
- {
1325
- "inputs": [],
1326
- "name": "minDepositAssets",
1327
- "outputs": [
1328
- {
1329
- "internalType": "uint256",
1330
- "name": "",
1331
- "type": "uint256"
1332
- }
1333
- ],
1334
- "stateMutability": "view",
1335
- "type": "function"
1336
- },
1337
- {
1338
- "inputs": [
1339
- {
1340
- "internalType": "address",
1341
- "name": "from",
1342
- "type": "address"
1343
- },
1344
- {
1345
- "internalType": "address",
1346
- "name": "to",
1347
- "type": "address"
1348
- },
1349
- {
1350
- "internalType": "uint256",
1351
- "name": "value",
1352
- "type": "uint256"
1353
- }
1354
- ],
1355
- "name": "onShareTransfer",
1356
- "outputs": [],
1357
- "stateMutability": "nonpayable",
1358
- "type": "function"
1359
- },
1360
- {
1361
- "inputs": [],
1362
- "name": "oracle",
1363
- "outputs": [
1364
- {
1365
- "internalType": "address",
1366
- "name": "",
1367
- "type": "address"
1368
- }
1369
- ],
1370
- "stateMutability": "view",
1371
- "type": "function"
1372
- },
1373
- {
1374
- "inputs": [],
1375
- "name": "oracleContract",
1376
- "outputs": [
1377
- {
1378
- "internalType": "contract IOracle",
1379
- "name": "",
1380
- "type": "address"
1381
- }
1382
- ],
1383
- "stateMutability": "view",
1384
- "type": "function"
1385
- },
1386
- {
1387
- "inputs": [],
1388
- "name": "pause",
1389
- "outputs": [],
1390
- "stateMutability": "nonpayable",
1391
- "type": "function"
1392
- },
1393
- {
1394
- "inputs": [],
1395
- "name": "paused",
1396
- "outputs": [
1397
- {
1398
- "internalType": "bool",
1399
- "name": "",
1400
- "type": "bool"
1401
- }
1402
- ],
1403
- "stateMutability": "view",
1404
- "type": "function"
1405
- },
1406
- {
1407
- "inputs": [],
1408
- "name": "pendingDepositTotal",
1409
- "outputs": [
1410
- {
1411
- "internalType": "uint256",
1412
- "name": "",
1413
- "type": "uint256"
1414
- }
1415
- ],
1416
- "stateMutability": "view",
1417
- "type": "function"
1418
- },
1419
- {
1420
- "inputs": [],
1421
- "name": "pendingSettlementWithdrawShares",
1422
- "outputs": [
1423
- {
1424
- "internalType": "uint256",
1425
- "name": "",
1426
- "type": "uint256"
1427
- }
1428
- ],
1429
- "stateMutability": "view",
1430
- "type": "function"
1431
- },
1432
- {
1433
- "inputs": [],
1434
- "name": "pendingWithdrawShares",
1435
- "outputs": [
1436
- {
1437
- "internalType": "uint256",
1438
- "name": "",
1439
- "type": "uint256"
1440
- }
1441
- ],
1442
- "stateMutability": "view",
1443
- "type": "function"
1444
- },
1445
- {
1446
- "inputs": [],
1447
- "name": "performanceFee",
1448
- "outputs": [
1449
- {
1450
- "internalType": "uint256",
1451
- "name": "",
1452
- "type": "uint256"
1453
- }
1454
- ],
1455
- "stateMutability": "view",
1456
- "type": "function"
1457
- },
1458
- {
1459
- "inputs": [
1460
- {
1461
- "internalType": "uint256",
1462
- "name": "assets",
1463
- "type": "uint256"
1464
- }
1465
- ],
1466
- "name": "previewDeposit",
1467
- "outputs": [
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "",
1471
- "type": "uint256"
1472
- }
1473
- ],
1474
- "stateMutability": "view",
1475
- "type": "function"
1476
- },
1477
- {
1478
- "inputs": [
1479
- {
1480
- "internalType": "uint256",
1481
- "name": "sharesIn",
1482
- "type": "uint256"
1483
- },
1484
- {
1485
- "internalType": "address",
1486
- "name": "owner",
1487
- "type": "address"
1488
- }
1489
- ],
1490
- "name": "previewWithdraw",
1491
- "outputs": [
1492
- {
1493
- "internalType": "uint256",
1494
- "name": "estimatedAssets",
1495
- "type": "uint256"
1496
- },
1497
- {
1498
- "internalType": "uint256",
1499
- "name": "estimatedFee",
1500
- "type": "uint256"
1501
- }
1502
- ],
1503
- "stateMutability": "view",
1504
- "type": "function"
1505
- },
1506
- {
1507
- "inputs": [],
1508
- "name": "pricePerShare",
1509
- "outputs": [
1510
- {
1511
- "internalType": "uint256",
1512
- "name": "",
1513
- "type": "uint256"
1514
- }
1515
- ],
1516
- "stateMutability": "view",
1517
- "type": "function"
1518
- },
1519
- {
1520
- "inputs": [],
1521
- "name": "queueLength",
1522
- "outputs": [
1523
- {
1524
- "internalType": "uint256",
1525
- "name": "",
1526
- "type": "uint256"
1527
- }
1528
- ],
1529
- "stateMutability": "view",
1530
- "type": "function"
1531
- },
1532
- {
1533
- "inputs": [
1534
- {
1535
- "internalType": "address[]",
1536
- "name": "targets",
1537
- "type": "address[]"
1538
- },
1539
- {
1540
- "internalType": "bytes[]",
1541
- "name": "calldatas",
1542
- "type": "bytes[]"
1543
- }
1544
- ],
1545
- "name": "rebalance",
1546
- "outputs": [],
1547
- "stateMutability": "nonpayable",
1548
- "type": "function"
1549
- },
1550
- {
1551
- "inputs": [
1552
- {
1553
- "internalType": "address",
1554
- "name": "token",
1555
- "type": "address"
1556
- }
1557
- ],
1558
- "name": "removeTrackedToken",
1559
- "outputs": [],
1560
- "stateMutability": "nonpayable",
1561
- "type": "function"
1562
- },
1563
- {
1564
- "inputs": [
1565
- {
1566
- "internalType": "bytes32",
1567
- "name": "role",
1568
- "type": "bytes32"
1569
- },
1570
- {
1571
- "internalType": "address",
1572
- "name": "callerConfirmation",
1573
- "type": "address"
1574
- }
1575
- ],
1576
- "name": "renounceRole",
1577
- "outputs": [],
1578
- "stateMutability": "nonpayable",
1579
- "type": "function"
1580
- },
1581
- {
1582
- "inputs": [
1583
- {
1584
- "internalType": "uint256",
1585
- "name": "assets",
1586
- "type": "uint256"
1587
- }
1588
- ],
1589
- "name": "requestDeposit",
1590
- "outputs": [
1591
- {
1592
- "internalType": "uint256",
1593
- "name": "depositId",
1594
- "type": "uint256"
1595
- }
1596
- ],
1597
- "stateMutability": "nonpayable",
1598
- "type": "function"
1599
- },
1600
- {
1601
- "inputs": [
1602
- {
1603
- "internalType": "uint256",
1604
- "name": "assets",
1605
- "type": "uint256"
1606
- },
1607
- {
1608
- "internalType": "address",
1609
- "name": "recipient",
1610
- "type": "address"
1611
- }
1612
- ],
1613
- "name": "requestDepositFor",
1614
- "outputs": [
1615
- {
1616
- "internalType": "uint256",
1617
- "name": "depositId",
1618
- "type": "uint256"
1619
- }
1620
- ],
1621
- "stateMutability": "nonpayable",
1622
- "type": "function"
1623
- },
1624
- {
1625
- "inputs": [
1626
- {
1627
- "internalType": "uint256",
1628
- "name": "sharesIn",
1629
- "type": "uint256"
1630
- }
1631
- ],
1632
- "name": "requestWithdraw",
1633
- "outputs": [
1634
- {
1635
- "internalType": "uint256",
1636
- "name": "requestId",
1637
- "type": "uint256"
1638
- }
1639
- ],
1640
- "stateMutability": "nonpayable",
1641
- "type": "function"
1642
- },
1643
- {
1644
- "inputs": [
1645
- {
1646
- "internalType": "bytes32",
1647
- "name": "role",
1648
- "type": "bytes32"
1649
- },
1650
- {
1651
- "internalType": "address",
1652
- "name": "account",
1653
- "type": "address"
1654
- }
1655
- ],
1656
- "name": "revokeRole",
1657
- "outputs": [],
1658
- "stateMutability": "nonpayable",
1659
- "type": "function"
1660
- },
1661
- {
1662
- "inputs": [
1663
- {
1664
- "internalType": "address",
1665
- "name": "recipient",
1666
- "type": "address"
1667
- }
1668
- ],
1669
- "name": "setFeeRecipient",
1670
- "outputs": [],
1671
- "stateMutability": "nonpayable",
1672
- "type": "function"
1673
- },
1674
- {
1675
- "inputs": [
1676
- {
1677
- "internalType": "uint256",
1678
- "name": "size",
1679
- "type": "uint256"
1680
- }
1681
- ],
1682
- "name": "setMaxSettlementBatchSize",
1683
- "outputs": [],
1684
- "stateMutability": "nonpayable",
1685
- "type": "function"
1686
- },
1687
- {
1688
- "inputs": [
1689
- {
1690
- "internalType": "uint256",
1691
- "name": "amount",
1692
- "type": "uint256"
1693
- }
1694
- ],
1695
- "name": "setMinDepositAssets",
1696
- "outputs": [],
1697
- "stateMutability": "nonpayable",
1698
- "type": "function"
1699
- },
1700
- {
1701
- "inputs": [
1702
- {
1703
- "internalType": "contract IOracle",
1704
- "name": "_oracle",
1705
- "type": "address"
1706
- }
1707
- ],
1708
- "name": "setOracle",
1709
- "outputs": [],
1710
- "stateMutability": "nonpayable",
1711
- "type": "function"
1712
- },
1713
- {
1714
- "inputs": [
1715
- {
1716
- "internalType": "uint256",
1717
- "name": "feeBps",
1718
- "type": "uint256"
1719
- }
1720
- ],
1721
- "name": "setPerformanceFee",
1722
- "outputs": [],
1723
- "stateMutability": "nonpayable",
1724
- "type": "function"
1725
- },
1726
- {
1727
- "inputs": [
1728
- {
1729
- "internalType": "uint256",
1730
- "name": "fee",
1731
- "type": "uint256"
1732
- }
1733
- ],
1734
- "name": "setSettlementFee",
1735
- "outputs": [],
1736
- "stateMutability": "nonpayable",
1737
- "type": "function"
1738
- },
1739
- {
1740
- "inputs": [
1741
- {
1742
- "internalType": "address",
1743
- "name": "target",
1744
- "type": "address"
1745
- },
1746
- {
1747
- "internalType": "bool",
1748
- "name": "allowed",
1749
- "type": "bool"
1750
- }
1751
- ],
1752
- "name": "setTargetAllowed",
1753
- "outputs": [],
1754
- "stateMutability": "nonpayable",
1755
- "type": "function"
1756
- },
1757
- {
1758
- "inputs": [
1759
- {
1760
- "internalType": "address[]",
1761
- "name": "tokens",
1762
- "type": "address[]"
1763
- },
1764
- {
1765
- "internalType": "uint128[]",
1766
- "name": "prices",
1767
- "type": "uint128[]"
1768
- }
1769
- ],
1770
- "name": "settle",
1771
- "outputs": [],
1772
- "stateMutability": "nonpayable",
1773
- "type": "function"
1774
- },
1775
- {
1776
- "inputs": [],
1777
- "name": "settledWithdrawalLiabilityTotal",
1778
- "outputs": [
1779
- {
1780
- "internalType": "uint256",
1781
- "name": "",
1782
- "type": "uint256"
1783
- }
1784
- ],
1785
- "stateMutability": "view",
1786
- "type": "function"
1787
- },
1788
- {
1789
- "inputs": [],
1790
- "name": "settlementFeeAssets",
1791
- "outputs": [
1792
- {
1793
- "internalType": "uint256",
1794
- "name": "",
1795
- "type": "uint256"
1796
- }
1797
- ],
1798
- "stateMutability": "view",
1799
- "type": "function"
1800
- },
1801
- {
1802
- "inputs": [],
1803
- "name": "shareToken",
1804
- "outputs": [
1805
- {
1806
- "internalType": "contract HPT",
1807
- "name": "",
1808
- "type": "address"
1809
- }
1810
- ],
1811
- "stateMutability": "view",
1812
- "type": "function"
1813
- },
1814
- {
1815
- "inputs": [],
1816
- "name": "shares",
1817
- "outputs": [
1818
- {
1819
- "internalType": "address",
1820
- "name": "",
1821
- "type": "address"
1822
- }
1823
- ],
1824
- "stateMutability": "view",
1825
- "type": "function"
1826
- },
1827
- {
1828
- "inputs": [
1829
- {
1830
- "internalType": "bytes4",
1831
- "name": "interfaceId",
1832
- "type": "bytes4"
1833
- }
1834
- ],
1835
- "name": "supportsInterface",
1836
- "outputs": [
1837
- {
1838
- "internalType": "bool",
1839
- "name": "",
1840
- "type": "bool"
1841
- }
1842
- ],
1843
- "stateMutability": "view",
1844
- "type": "function"
1845
- },
1846
- {
1847
- "inputs": [
1848
- {
1849
- "internalType": "address",
1850
- "name": "",
1851
- "type": "address"
1852
- }
1853
- ],
1854
- "name": "targetAllowed",
1855
- "outputs": [
1856
- {
1857
- "internalType": "bool",
1858
- "name": "",
1859
- "type": "bool"
1860
- }
1861
- ],
1862
- "stateMutability": "view",
1863
- "type": "function"
1864
- },
1865
- {
1866
- "inputs": [
1867
- {
1868
- "internalType": "address",
1869
- "name": "",
1870
- "type": "address"
1871
- }
1872
- ],
1873
- "name": "tokenDecimals",
1874
- "outputs": [
1875
- {
1876
- "internalType": "uint8",
1877
- "name": "",
1878
- "type": "uint8"
1879
- }
1880
- ],
1881
- "stateMutability": "view",
1882
- "type": "function"
1883
- },
1884
- {
1885
- "inputs": [],
1886
- "name": "totalAssets",
1887
- "outputs": [
1888
- {
1889
- "internalType": "uint256",
1890
- "name": "",
1891
- "type": "uint256"
1892
- }
1893
- ],
1894
- "stateMutability": "view",
1895
- "type": "function"
1896
- },
1897
- {
1898
- "inputs": [],
1899
- "name": "trackedTokens",
1900
- "outputs": [
1901
- {
1902
- "internalType": "address[]",
1903
- "name": "",
1904
- "type": "address[]"
1905
- }
1906
- ],
1907
- "stateMutability": "view",
1908
- "type": "function"
1909
- },
1910
- {
1911
- "inputs": [],
1912
- "name": "unpause",
1913
- "outputs": [],
1914
- "stateMutability": "nonpayable",
1915
- "type": "function"
1916
- },
1917
- {
1918
- "inputs": [
1919
- {
1920
- "internalType": "address",
1921
- "name": "user",
1922
- "type": "address"
1923
- }
1924
- ],
1925
- "name": "userDepositIds",
1926
- "outputs": [
1927
- {
1928
- "internalType": "uint256[]",
1929
- "name": "",
1930
- "type": "uint256[]"
1931
- }
1932
- ],
1933
- "stateMutability": "view",
1934
- "type": "function"
1935
- },
1936
- {
1937
- "inputs": [
1938
- {
1939
- "internalType": "address",
1940
- "name": "user",
1941
- "type": "address"
1942
- }
1943
- ],
1944
- "name": "userRequestIds",
1945
- "outputs": [
1946
- {
1947
- "internalType": "uint256[]",
1948
- "name": "",
1949
- "type": "uint256[]"
1950
- }
1951
- ],
1952
- "stateMutability": "view",
1953
- "type": "function"
612
+ "stateMutability": "payable",
613
+ "type": "receive"
1954
614
  }
1955
615
  ] as const satisfies Abi;
1956
616
 
@@ -2013,686 +673,115 @@ export class Vault_json {
2013
673
  this.contractAddress = address;
2014
674
  this.publicClient = clients.publicClient;
2015
675
  this.contract = getContract({
2016
- address,
2017
- abi: Vault_jsonAbi,
2018
- client: {
2019
- public: clients.publicClient,
2020
- wallet: clients.walletClient,
2021
- },
2022
- });
2023
- }
2024
-
2025
- /**
2026
- * Get the contract address
2027
- */
2028
- get address(): Address {
2029
- return this.contractAddress;
2030
- }
2031
-
2032
- /**
2033
- * Get the underlying viem contract instance
2034
- */
2035
- getContract(): Vault_jsonContract {
2036
- return this.contract;
2037
- }
2038
-
2039
- /**
2040
- * BOT_ROLE
2041
- * view
2042
- */
2043
- async BOT_ROLE(): Promise<`0x${string}`> {
2044
- return this.contract.read.BOT_ROLE() as Promise<`0x${string}`>;
2045
- }
2046
-
2047
- /**
2048
- * BPS
2049
- * view
2050
- */
2051
- async BPS(): Promise<bigint> {
2052
- return this.contract.read.BPS() as Promise<bigint>;
2053
- }
2054
-
2055
- /**
2056
- * DEFAULT_ADMIN_ROLE
2057
- * view
2058
- */
2059
- async DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`> {
2060
- return this.contract.read.DEFAULT_ADMIN_ROLE() as Promise<`0x${string}`>;
2061
- }
2062
-
2063
- /**
2064
- * GUARDIAN_ROLE
2065
- * view
2066
- */
2067
- async GUARDIAN_ROLE(): Promise<`0x${string}`> {
2068
- return this.contract.read.GUARDIAN_ROLE() as Promise<`0x${string}`>;
2069
- }
2070
-
2071
- /**
2072
- * MANAGER_ROLE
2073
- * view
2074
- */
2075
- async MANAGER_ROLE(): Promise<`0x${string}`> {
2076
- return this.contract.read.MANAGER_ROLE() as Promise<`0x${string}`>;
2077
- }
2078
-
2079
- /**
2080
- * MAX_FEE_BPS
2081
- * view
2082
- */
2083
- async MAX_FEE_BPS(): Promise<bigint> {
2084
- return this.contract.read.MAX_FEE_BPS() as Promise<bigint>;
2085
- }
2086
-
2087
- /**
2088
- * SHARE_SCALE
2089
- * view
2090
- */
2091
- async SHARE_SCALE(): Promise<bigint> {
2092
- return this.contract.read.SHARE_SCALE() as Promise<bigint>;
2093
- }
2094
-
2095
- /**
2096
- * asset
2097
- * view
2098
- */
2099
- async asset(): Promise<`0x${string}`> {
2100
- return this.contract.read.asset() as Promise<`0x${string}`>;
2101
- }
2102
-
2103
- /**
2104
- * assetDecimals
2105
- * view
2106
- */
2107
- async assetDecimals(): Promise<bigint> {
2108
- return this.contract.read.assetDecimals() as Promise<bigint>;
2109
- }
2110
-
2111
- /**
2112
- * assetToken
2113
- * view
2114
- */
2115
- async assetToken(): Promise<`0x${string}`> {
2116
- return this.contract.read.assetToken() as Promise<`0x${string}`>;
2117
- }
2118
-
2119
- /**
2120
- * costBasisPerShare
2121
- * view
2122
- */
2123
- async costBasisPerShare(user: `0x${string}`): Promise<bigint> {
2124
- return this.contract.read.costBasisPerShare([user] as const) as Promise<bigint>;
2125
- }
2126
-
2127
- /**
2128
- * costBasisValue
2129
- * view
2130
- */
2131
- async costBasisValue(arg0: `0x${string}`): Promise<bigint> {
2132
- return this.contract.read.costBasisValue([arg0] as const) as Promise<bigint>;
2133
- }
2134
-
2135
- /**
2136
- * depositQueueLength
2137
- * view
2138
- */
2139
- async depositQueueLength(): Promise<bigint> {
2140
- return this.contract.read.depositQueueLength() as Promise<bigint>;
2141
- }
2142
-
2143
- /**
2144
- * feeRecipient
2145
- * view
2146
- */
2147
- async feeRecipient(): Promise<`0x${string}`> {
2148
- return this.contract.read.feeRecipient() as Promise<`0x${string}`>;
2149
- }
2150
-
2151
- /**
2152
- * getDepositRequest
2153
- * view
2154
- */
2155
- async getDepositRequest(depositId: bigint): Promise<IVault_DepositRequest> {
2156
- return this.contract.read.getDepositRequest([depositId] as const) as Promise<IVault_DepositRequest>;
2157
- }
2158
-
2159
- /**
2160
- * getRequest
2161
- * view
2162
- */
2163
- async getRequest(requestId: bigint): Promise<IVault_WithdrawRequest> {
2164
- return this.contract.read.getRequest([requestId] as const) as Promise<IVault_WithdrawRequest>;
2165
- }
2166
-
2167
- /**
2168
- * getRoleAdmin
2169
- * view
2170
- */
2171
- async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
2172
- return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
2173
- }
2174
-
2175
- /**
2176
- * hasRole
2177
- * view
2178
- */
2179
- async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
2180
- return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
2181
- }
2182
-
2183
- /**
2184
- * hasSettleReadyWork
2185
- * view
2186
- */
2187
- async hasSettleReadyWork(): Promise<boolean> {
2188
- return this.contract.read.hasSettleReadyWork() as Promise<boolean>;
2189
- }
2190
-
2191
- /**
2192
- * isTracked
2193
- * view
2194
- */
2195
- async isTracked(arg0: `0x${string}`): Promise<boolean> {
2196
- return this.contract.read.isTracked([arg0] as const) as Promise<boolean>;
2197
- }
2198
-
2199
- /**
2200
- * maxSettlementBatchSize
2201
- * view
2202
- */
2203
- async maxSettlementBatchSize(): Promise<bigint> {
2204
- return this.contract.read.maxSettlementBatchSize() as Promise<bigint>;
2205
- }
2206
-
2207
- /**
2208
- * minDepositAssets
2209
- * view
2210
- */
2211
- async minDepositAssets(): Promise<bigint> {
2212
- return this.contract.read.minDepositAssets() as Promise<bigint>;
2213
- }
2214
-
2215
- /**
2216
- * oracle
2217
- * view
2218
- */
2219
- async oracle(): Promise<`0x${string}`> {
2220
- return this.contract.read.oracle() as Promise<`0x${string}`>;
2221
- }
2222
-
2223
- /**
2224
- * oracleContract
2225
- * view
2226
- */
2227
- async oracleContract(): Promise<`0x${string}`> {
2228
- return this.contract.read.oracleContract() as Promise<`0x${string}`>;
2229
- }
2230
-
2231
- /**
2232
- * paused
2233
- * view
2234
- */
2235
- async paused(): Promise<boolean> {
2236
- return this.contract.read.paused() as Promise<boolean>;
2237
- }
2238
-
2239
- /**
2240
- * pendingDepositTotal
2241
- * view
2242
- */
2243
- async pendingDepositTotal(): Promise<bigint> {
2244
- return this.contract.read.pendingDepositTotal() as Promise<bigint>;
2245
- }
2246
-
2247
- /**
2248
- * pendingSettlementWithdrawShares
2249
- * view
2250
- */
2251
- async pendingSettlementWithdrawShares(): Promise<bigint> {
2252
- return this.contract.read.pendingSettlementWithdrawShares() as Promise<bigint>;
2253
- }
2254
-
2255
- /**
2256
- * pendingWithdrawShares
2257
- * view
2258
- */
2259
- async pendingWithdrawShares(): Promise<bigint> {
2260
- return this.contract.read.pendingWithdrawShares() as Promise<bigint>;
2261
- }
2262
-
2263
- /**
2264
- * performanceFee
2265
- * view
2266
- */
2267
- async performanceFee(): Promise<bigint> {
2268
- return this.contract.read.performanceFee() as Promise<bigint>;
2269
- }
2270
-
2271
- /**
2272
- * previewDeposit
2273
- * view
2274
- */
2275
- async previewDeposit(assets: bigint): Promise<bigint> {
2276
- return this.contract.read.previewDeposit([assets] as const) as Promise<bigint>;
2277
- }
2278
-
2279
- /**
2280
- * previewWithdraw
2281
- * view
2282
- */
2283
- async previewWithdraw(sharesIn: bigint, owner: `0x${string}`): Promise<[bigint, bigint]> {
2284
- return this.contract.read.previewWithdraw([sharesIn, owner] as const) as Promise<[bigint, bigint]>;
2285
- }
2286
-
2287
- /**
2288
- * pricePerShare
2289
- * view
2290
- */
2291
- async pricePerShare(): Promise<bigint> {
2292
- return this.contract.read.pricePerShare() as Promise<bigint>;
2293
- }
2294
-
2295
- /**
2296
- * queueLength
2297
- * view
2298
- */
2299
- async queueLength(): Promise<bigint> {
2300
- return this.contract.read.queueLength() as Promise<bigint>;
676
+ address,
677
+ abi: Vault_jsonAbi,
678
+ client: {
679
+ public: clients.publicClient,
680
+ wallet: clients.walletClient,
681
+ },
682
+ });
2301
683
  }
2302
684
 
2303
685
  /**
2304
- * settledWithdrawalLiabilityTotal
2305
- * view
686
+ * Get the contract address
2306
687
  */
2307
- async settledWithdrawalLiabilityTotal(): Promise<bigint> {
2308
- return this.contract.read.settledWithdrawalLiabilityTotal() as Promise<bigint>;
688
+ get address(): Address {
689
+ return this.contractAddress;
2309
690
  }
2310
691
 
2311
692
  /**
2312
- * settlementFeeAssets
2313
- * view
693
+ * Get the underlying viem contract instance
2314
694
  */
2315
- async settlementFeeAssets(): Promise<bigint> {
2316
- return this.contract.read.settlementFeeAssets() as Promise<bigint>;
695
+ getContract(): Vault_jsonContract {
696
+ return this.contract;
2317
697
  }
2318
698
 
2319
699
  /**
2320
- * shareToken
700
+ * DEFAULT_ADMIN_ROLE
2321
701
  * view
2322
702
  */
2323
- async shareToken(): Promise<`0x${string}`> {
2324
- return this.contract.read.shareToken() as Promise<`0x${string}`>;
703
+ async DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`> {
704
+ return this.contract.read.DEFAULT_ADMIN_ROLE() as Promise<`0x${string}`>;
2325
705
  }
2326
706
 
2327
707
  /**
2328
- * shares
708
+ * PAYEE_ROLE
2329
709
  * view
2330
710
  */
2331
- async shares(): Promise<`0x${string}`> {
2332
- return this.contract.read.shares() as Promise<`0x${string}`>;
711
+ async PAYEE_ROLE(): Promise<`0x${string}`> {
712
+ return this.contract.read.PAYEE_ROLE() as Promise<`0x${string}`>;
2333
713
  }
2334
714
 
2335
715
  /**
2336
- * supportsInterface
716
+ * PAYER_ROLE
2337
717
  * view
2338
718
  */
2339
- async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
2340
- return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
719
+ async PAYER_ROLE(): Promise<`0x${string}`> {
720
+ return this.contract.read.PAYER_ROLE() as Promise<`0x${string}`>;
2341
721
  }
2342
722
 
2343
723
  /**
2344
- * targetAllowed
724
+ * getRoleAdmin
2345
725
  * view
2346
726
  */
2347
- async targetAllowed(arg0: `0x${string}`): Promise<boolean> {
2348
- return this.contract.read.targetAllowed([arg0] as const) as Promise<boolean>;
727
+ async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
728
+ return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
2349
729
  }
2350
730
 
2351
731
  /**
2352
- * tokenDecimals
732
+ * getRoleMember
2353
733
  * view
2354
734
  */
2355
- async tokenDecimals(arg0: `0x${string}`): Promise<bigint> {
2356
- return this.contract.read.tokenDecimals([arg0] as const) as Promise<bigint>;
735
+ async getRoleMember(role: `0x${string}`, index: bigint): Promise<`0x${string}`> {
736
+ return this.contract.read.getRoleMember([role, index] as const) as Promise<`0x${string}`>;
2357
737
  }
2358
738
 
2359
739
  /**
2360
- * totalAssets
740
+ * getRoleMemberCount
2361
741
  * view
2362
742
  */
2363
- async totalAssets(): Promise<bigint> {
2364
- return this.contract.read.totalAssets() as Promise<bigint>;
743
+ async getRoleMemberCount(role: `0x${string}`): Promise<bigint> {
744
+ return this.contract.read.getRoleMemberCount([role] as const) as Promise<bigint>;
2365
745
  }
2366
746
 
2367
747
  /**
2368
- * trackedTokens
748
+ * hasRole
2369
749
  * view
2370
750
  */
2371
- async trackedTokens(): Promise<`0x${string}`[]> {
2372
- return this.contract.read.trackedTokens() as Promise<`0x${string}`[]>;
751
+ async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
752
+ return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
2373
753
  }
2374
754
 
2375
755
  /**
2376
- * userDepositIds
756
+ * owner
2377
757
  * view
2378
758
  */
2379
- async userDepositIds(user: `0x${string}`): Promise<bigint[]> {
2380
- return this.contract.read.userDepositIds([user] as const) as Promise<bigint[]>;
759
+ async owner(): Promise<`0x${string}`> {
760
+ return this.contract.read.owner() as Promise<`0x${string}`>;
2381
761
  }
2382
762
 
2383
763
  /**
2384
- * userRequestIds
764
+ * proxiableUUID
2385
765
  * view
2386
766
  */
2387
- async userRequestIds(user: `0x${string}`): Promise<bigint[]> {
2388
- return this.contract.read.userRequestIds([user] as const) as Promise<bigint[]>;
2389
- }
2390
-
2391
- /**
2392
- * addTrackedToken
2393
- * nonpayable
2394
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
- */
2396
- async addTrackedToken(token: `0x${string}`, options?: {
2397
- accessList?: import('viem').AccessList;
2398
- authorizationList?: import('viem').AuthorizationList;
2399
- chain?: import('viem').Chain | null;
2400
- dataSuffix?: `0x${string}`;
2401
- gas?: bigint;
2402
- gasPrice?: bigint;
2403
- maxFeePerGas?: bigint;
2404
- maxPriorityFeePerGas?: bigint;
2405
- nonce?: number;
2406
- value?: bigint;
2407
- }): Promise<`0x${string}`> {
2408
- if (!this.contract.write) {
2409
- throw new Error('Wallet client is required for write operations');
2410
- }
2411
- return this.contract.write.addTrackedToken([token] as const, options) as Promise<`0x${string}`>;
2412
- }
2413
-
2414
- /**
2415
- * approveERC20
2416
- * nonpayable
2417
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2418
- */
2419
- async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
2420
- accessList?: import('viem').AccessList;
2421
- authorizationList?: import('viem').AuthorizationList;
2422
- chain?: import('viem').Chain | null;
2423
- dataSuffix?: `0x${string}`;
2424
- gas?: bigint;
2425
- gasPrice?: bigint;
2426
- maxFeePerGas?: bigint;
2427
- maxPriorityFeePerGas?: bigint;
2428
- nonce?: number;
2429
- value?: bigint;
2430
- }): Promise<`0x${string}`> {
2431
- if (!this.contract.write) {
2432
- throw new Error('Wallet client is required for write operations');
2433
- }
2434
- return this.contract.write.approveERC20([token, spender, amount] as const, options) as Promise<`0x${string}`>;
2435
- }
2436
-
2437
- /**
2438
- * approvePermit2
2439
- * nonpayable
2440
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2441
- */
2442
- async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, 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}`> {
2454
- if (!this.contract.write) {
2455
- throw new Error('Wallet client is required for write operations');
2456
- }
2457
- return this.contract.write.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<`0x${string}`>;
2458
- }
2459
-
2460
- /**
2461
- * cancelDepositRequest
2462
- * nonpayable
2463
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2464
- */
2465
- async cancelDepositRequest(depositId: bigint, options?: {
2466
- accessList?: import('viem').AccessList;
2467
- authorizationList?: import('viem').AuthorizationList;
2468
- chain?: import('viem').Chain | null;
2469
- dataSuffix?: `0x${string}`;
2470
- gas?: bigint;
2471
- gasPrice?: bigint;
2472
- maxFeePerGas?: bigint;
2473
- maxPriorityFeePerGas?: bigint;
2474
- nonce?: number;
2475
- value?: bigint;
2476
- }): Promise<`0x${string}`> {
2477
- if (!this.contract.write) {
2478
- throw new Error('Wallet client is required for write operations');
2479
- }
2480
- return this.contract.write.cancelDepositRequest([depositId] as const, options) as Promise<`0x${string}`>;
2481
- }
2482
-
2483
- /**
2484
- * cancelPendingDeposits
2485
- * nonpayable
2486
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2487
- */
2488
- async cancelPendingDeposits(maxCount: bigint, options?: {
2489
- accessList?: import('viem').AccessList;
2490
- authorizationList?: import('viem').AuthorizationList;
2491
- chain?: import('viem').Chain | null;
2492
- dataSuffix?: `0x${string}`;
2493
- gas?: bigint;
2494
- gasPrice?: bigint;
2495
- maxFeePerGas?: bigint;
2496
- maxPriorityFeePerGas?: bigint;
2497
- nonce?: number;
2498
- value?: bigint;
2499
- }): Promise<`0x${string}`> {
2500
- if (!this.contract.write) {
2501
- throw new Error('Wallet client is required for write operations');
2502
- }
2503
- return this.contract.write.cancelPendingDeposits([maxCount] as const, options) as Promise<`0x${string}`>;
2504
- }
2505
-
2506
- /**
2507
- * cancelWithdraw
2508
- * nonpayable
2509
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2510
- */
2511
- async cancelWithdraw(requestId: bigint, options?: {
2512
- accessList?: import('viem').AccessList;
2513
- authorizationList?: import('viem').AuthorizationList;
2514
- chain?: import('viem').Chain | null;
2515
- dataSuffix?: `0x${string}`;
2516
- gas?: bigint;
2517
- gasPrice?: bigint;
2518
- maxFeePerGas?: bigint;
2519
- maxPriorityFeePerGas?: bigint;
2520
- nonce?: number;
2521
- value?: bigint;
2522
- }): Promise<`0x${string}`> {
2523
- if (!this.contract.write) {
2524
- throw new Error('Wallet client is required for write operations');
2525
- }
2526
- return this.contract.write.cancelWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
2527
- }
2528
-
2529
- /**
2530
- * claimAndDeposit
2531
- * nonpayable
2532
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2533
- */
2534
- async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
2535
- accessList?: import('viem').AccessList;
2536
- authorizationList?: import('viem').AuthorizationList;
2537
- chain?: import('viem').Chain | null;
2538
- dataSuffix?: `0x${string}`;
2539
- gas?: bigint;
2540
- gasPrice?: bigint;
2541
- maxFeePerGas?: bigint;
2542
- maxPriorityFeePerGas?: bigint;
2543
- nonce?: number;
2544
- value?: bigint;
2545
- }): Promise<`0x${string}`> {
2546
- if (!this.contract.write) {
2547
- throw new Error('Wallet client is required for write operations');
2548
- }
2549
- return this.contract.write.claimAndDeposit([requestId, newVault] as const, options) as Promise<`0x${string}`>;
2550
- }
2551
-
2552
- /**
2553
- * claimWithdraw
2554
- * nonpayable
2555
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2556
- */
2557
- async claimWithdraw(requestId: bigint, options?: {
2558
- accessList?: import('viem').AccessList;
2559
- authorizationList?: import('viem').AuthorizationList;
2560
- chain?: import('viem').Chain | null;
2561
- dataSuffix?: `0x${string}`;
2562
- gas?: bigint;
2563
- gasPrice?: bigint;
2564
- maxFeePerGas?: bigint;
2565
- maxPriorityFeePerGas?: bigint;
2566
- nonce?: number;
2567
- value?: bigint;
2568
- }): Promise<`0x${string}`> {
2569
- if (!this.contract.write) {
2570
- throw new Error('Wallet client is required for write operations');
2571
- }
2572
- return this.contract.write.claimWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
2573
- }
2574
-
2575
- /**
2576
- * claimWithdrawTo
2577
- * nonpayable
2578
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2579
- */
2580
- async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
2581
- accessList?: import('viem').AccessList;
2582
- authorizationList?: import('viem').AuthorizationList;
2583
- chain?: import('viem').Chain | null;
2584
- dataSuffix?: `0x${string}`;
2585
- gas?: bigint;
2586
- gasPrice?: bigint;
2587
- maxFeePerGas?: bigint;
2588
- maxPriorityFeePerGas?: bigint;
2589
- nonce?: number;
2590
- value?: bigint;
2591
- }): Promise<`0x${string}`> {
2592
- if (!this.contract.write) {
2593
- throw new Error('Wallet client is required for write operations');
2594
- }
2595
- return this.contract.write.claimWithdrawTo([requestId, recipient] as const, options) as Promise<`0x${string}`>;
2596
- }
2597
-
2598
- /**
2599
- * grantRole
2600
- * nonpayable
2601
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2602
- */
2603
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
2604
- accessList?: import('viem').AccessList;
2605
- authorizationList?: import('viem').AuthorizationList;
2606
- chain?: import('viem').Chain | null;
2607
- dataSuffix?: `0x${string}`;
2608
- gas?: bigint;
2609
- gasPrice?: bigint;
2610
- maxFeePerGas?: bigint;
2611
- maxPriorityFeePerGas?: bigint;
2612
- nonce?: number;
2613
- value?: bigint;
2614
- }): Promise<`0x${string}`> {
2615
- if (!this.contract.write) {
2616
- throw new Error('Wallet client is required for write operations');
2617
- }
2618
- return this.contract.write.grantRole([role, account] as const, options) as Promise<`0x${string}`>;
2619
- }
2620
-
2621
- /**
2622
- * onShareTransfer
2623
- * nonpayable
2624
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2625
- */
2626
- async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2627
- accessList?: import('viem').AccessList;
2628
- authorizationList?: import('viem').AuthorizationList;
2629
- chain?: import('viem').Chain | null;
2630
- dataSuffix?: `0x${string}`;
2631
- gas?: bigint;
2632
- gasPrice?: bigint;
2633
- maxFeePerGas?: bigint;
2634
- maxPriorityFeePerGas?: bigint;
2635
- nonce?: number;
2636
- value?: bigint;
2637
- }): Promise<`0x${string}`> {
2638
- if (!this.contract.write) {
2639
- throw new Error('Wallet client is required for write operations');
2640
- }
2641
- return this.contract.write.onShareTransfer([from, to, value] as const, options) as Promise<`0x${string}`>;
2642
- }
2643
-
2644
- /**
2645
- * pause
2646
- * nonpayable
2647
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2648
- */
2649
- async pause(options?: {
2650
- accessList?: import('viem').AccessList;
2651
- authorizationList?: import('viem').AuthorizationList;
2652
- chain?: import('viem').Chain | null;
2653
- dataSuffix?: `0x${string}`;
2654
- gas?: bigint;
2655
- gasPrice?: bigint;
2656
- maxFeePerGas?: bigint;
2657
- maxPriorityFeePerGas?: bigint;
2658
- nonce?: number;
2659
- value?: bigint;
2660
- }): Promise<`0x${string}`> {
2661
- if (!this.contract.write) {
2662
- throw new Error('Wallet client is required for write operations');
2663
- }
2664
- return this.contract.write.pause(options) as Promise<`0x${string}`>;
767
+ async proxiableUUID(): Promise<`0x${string}`> {
768
+ return this.contract.read.proxiableUUID() as Promise<`0x${string}`>;
2665
769
  }
2666
770
 
2667
771
  /**
2668
- * rebalance
2669
- * nonpayable
2670
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
772
+ * supportsInterface
773
+ * view
2671
774
  */
2672
- async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
2673
- accessList?: import('viem').AccessList;
2674
- authorizationList?: import('viem').AuthorizationList;
2675
- chain?: import('viem').Chain | null;
2676
- dataSuffix?: `0x${string}`;
2677
- gas?: bigint;
2678
- gasPrice?: bigint;
2679
- maxFeePerGas?: bigint;
2680
- maxPriorityFeePerGas?: bigint;
2681
- nonce?: number;
2682
- value?: bigint;
2683
- }): Promise<`0x${string}`> {
2684
- if (!this.contract.write) {
2685
- throw new Error('Wallet client is required for write operations');
2686
- }
2687
- return this.contract.write.rebalance([targets, calldatas] as const, options) as Promise<`0x${string}`>;
775
+ async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
776
+ return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
2688
777
  }
2689
778
 
2690
779
  /**
2691
- * removeTrackedToken
780
+ * batchTransferErc20
2692
781
  * nonpayable
2693
782
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2694
783
  */
2695
- async removeTrackedToken(token: `0x${string}`, options?: {
784
+ async batchTransferErc20(tokens: `0x${string}`[], payees: `0x${string}`[], amounts: bigint[], options?: {
2696
785
  accessList?: import('viem').AccessList;
2697
786
  authorizationList?: import('viem').AuthorizationList;
2698
787
  chain?: import('viem').Chain | null;
@@ -2707,15 +796,15 @@ export class Vault_json {
2707
796
  if (!this.contract.write) {
2708
797
  throw new Error('Wallet client is required for write operations');
2709
798
  }
2710
- return this.contract.write.removeTrackedToken([token] as const, options) as Promise<`0x${string}`>;
799
+ return this.contract.write.batchTransferErc20([tokens, payees, amounts] as const, options) as Promise<`0x${string}`>;
2711
800
  }
2712
801
 
2713
802
  /**
2714
- * renounceRole
803
+ * batchTransferErc721
2715
804
  * nonpayable
2716
805
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2717
806
  */
2718
- async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
807
+ async batchTransferErc721(tokens: `0x${string}`[], payees: `0x${string}`[], tokenIds: bigint[], options?: {
2719
808
  accessList?: import('viem').AccessList;
2720
809
  authorizationList?: import('viem').AuthorizationList;
2721
810
  chain?: import('viem').Chain | null;
@@ -2730,15 +819,15 @@ export class Vault_json {
2730
819
  if (!this.contract.write) {
2731
820
  throw new Error('Wallet client is required for write operations');
2732
821
  }
2733
- return this.contract.write.renounceRole([role, callerConfirmation] as const, options) as Promise<`0x${string}`>;
822
+ return this.contract.write.batchTransferErc721([tokens, payees, tokenIds] as const, options) as Promise<`0x${string}`>;
2734
823
  }
2735
824
 
2736
825
  /**
2737
- * requestDeposit
826
+ * batchTransferEther
2738
827
  * nonpayable
2739
828
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2740
829
  */
2741
- async requestDeposit(assets: bigint, options?: {
830
+ async batchTransferEther(payees: `0x${string}`[], amounts: bigint[], options?: {
2742
831
  accessList?: import('viem').AccessList;
2743
832
  authorizationList?: import('viem').AuthorizationList;
2744
833
  chain?: import('viem').Chain | null;
@@ -2753,15 +842,15 @@ export class Vault_json {
2753
842
  if (!this.contract.write) {
2754
843
  throw new Error('Wallet client is required for write operations');
2755
844
  }
2756
- return this.contract.write.requestDeposit([assets] as const, options) as Promise<`0x${string}`>;
845
+ return this.contract.write.batchTransferEther([payees, amounts] as const, options) as Promise<`0x${string}`>;
2757
846
  }
2758
847
 
2759
848
  /**
2760
- * requestDepositFor
849
+ * grantRole
2761
850
  * nonpayable
2762
851
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2763
852
  */
2764
- async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
853
+ async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
2765
854
  accessList?: import('viem').AccessList;
2766
855
  authorizationList?: import('viem').AuthorizationList;
2767
856
  chain?: import('viem').Chain | null;
@@ -2776,15 +865,15 @@ export class Vault_json {
2776
865
  if (!this.contract.write) {
2777
866
  throw new Error('Wallet client is required for write operations');
2778
867
  }
2779
- return this.contract.write.requestDepositFor([assets, recipient] as const, options) as Promise<`0x${string}`>;
868
+ return this.contract.write.grantRole([role, account] as const, options) as Promise<`0x${string}`>;
2780
869
  }
2781
870
 
2782
871
  /**
2783
- * requestWithdraw
872
+ * initialize
2784
873
  * nonpayable
2785
874
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2786
875
  */
2787
- async requestWithdraw(sharesIn: bigint, options?: {
876
+ async initialize(options?: {
2788
877
  accessList?: import('viem').AccessList;
2789
878
  authorizationList?: import('viem').AuthorizationList;
2790
879
  chain?: import('viem').Chain | null;
@@ -2799,15 +888,15 @@ export class Vault_json {
2799
888
  if (!this.contract.write) {
2800
889
  throw new Error('Wallet client is required for write operations');
2801
890
  }
2802
- return this.contract.write.requestWithdraw([sharesIn] as const, options) as Promise<`0x${string}`>;
891
+ return this.contract.write.initialize(options) as Promise<`0x${string}`>;
2803
892
  }
2804
893
 
2805
894
  /**
2806
- * revokeRole
895
+ * onERC721Received
2807
896
  * nonpayable
2808
897
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2809
898
  */
2810
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
899
+ async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
2811
900
  accessList?: import('viem').AccessList;
2812
901
  authorizationList?: import('viem').AuthorizationList;
2813
902
  chain?: import('viem').Chain | null;
@@ -2822,15 +911,15 @@ export class Vault_json {
2822
911
  if (!this.contract.write) {
2823
912
  throw new Error('Wallet client is required for write operations');
2824
913
  }
2825
- return this.contract.write.revokeRole([role, account] as const, options) as Promise<`0x${string}`>;
914
+ return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3] as const, options) as Promise<`0x${string}`>;
2826
915
  }
2827
916
 
2828
917
  /**
2829
- * setFeeRecipient
918
+ * renounceOwnership
2830
919
  * nonpayable
2831
920
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2832
921
  */
2833
- async setFeeRecipient(recipient: `0x${string}`, options?: {
922
+ async renounceOwnership(options?: {
2834
923
  accessList?: import('viem').AccessList;
2835
924
  authorizationList?: import('viem').AuthorizationList;
2836
925
  chain?: import('viem').Chain | null;
@@ -2845,15 +934,15 @@ export class Vault_json {
2845
934
  if (!this.contract.write) {
2846
935
  throw new Error('Wallet client is required for write operations');
2847
936
  }
2848
- return this.contract.write.setFeeRecipient([recipient] as const, options) as Promise<`0x${string}`>;
937
+ return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
2849
938
  }
2850
939
 
2851
940
  /**
2852
- * setMaxSettlementBatchSize
941
+ * renounceRole
2853
942
  * nonpayable
2854
943
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2855
944
  */
2856
- async setMaxSettlementBatchSize(size: bigint, options?: {
945
+ async renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
2857
946
  accessList?: import('viem').AccessList;
2858
947
  authorizationList?: import('viem').AuthorizationList;
2859
948
  chain?: import('viem').Chain | null;
@@ -2868,15 +957,15 @@ export class Vault_json {
2868
957
  if (!this.contract.write) {
2869
958
  throw new Error('Wallet client is required for write operations');
2870
959
  }
2871
- return this.contract.write.setMaxSettlementBatchSize([size] as const, options) as Promise<`0x${string}`>;
960
+ return this.contract.write.renounceRole([role, account] as const, options) as Promise<`0x${string}`>;
2872
961
  }
2873
962
 
2874
963
  /**
2875
- * setMinDepositAssets
964
+ * revokeRole
2876
965
  * nonpayable
2877
966
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2878
967
  */
2879
- async setMinDepositAssets(amount: bigint, options?: {
968
+ async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
2880
969
  accessList?: import('viem').AccessList;
2881
970
  authorizationList?: import('viem').AuthorizationList;
2882
971
  chain?: import('viem').Chain | null;
@@ -2891,15 +980,15 @@ export class Vault_json {
2891
980
  if (!this.contract.write) {
2892
981
  throw new Error('Wallet client is required for write operations');
2893
982
  }
2894
- return this.contract.write.setMinDepositAssets([amount] as const, options) as Promise<`0x${string}`>;
983
+ return this.contract.write.revokeRole([role, account] as const, options) as Promise<`0x${string}`>;
2895
984
  }
2896
985
 
2897
986
  /**
2898
- * setOracle
987
+ * transferErc20
2899
988
  * nonpayable
2900
989
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2901
990
  */
2902
- async setOracle(_oracle: `0x${string}`, options?: {
991
+ async transferErc20(token: `0x${string}`, payee: `0x${string}`, amount: bigint, options?: {
2903
992
  accessList?: import('viem').AccessList;
2904
993
  authorizationList?: import('viem').AuthorizationList;
2905
994
  chain?: import('viem').Chain | null;
@@ -2914,15 +1003,15 @@ export class Vault_json {
2914
1003
  if (!this.contract.write) {
2915
1004
  throw new Error('Wallet client is required for write operations');
2916
1005
  }
2917
- return this.contract.write.setOracle([_oracle] as const, options) as Promise<`0x${string}`>;
1006
+ return this.contract.write.transferErc20([token, payee, amount] as const, options) as Promise<`0x${string}`>;
2918
1007
  }
2919
1008
 
2920
1009
  /**
2921
- * setPerformanceFee
1010
+ * transferErc721
2922
1011
  * nonpayable
2923
1012
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2924
1013
  */
2925
- async setPerformanceFee(feeBps: bigint, options?: {
1014
+ async transferErc721(token: `0x${string}`, payee: `0x${string}`, tokenId: bigint, options?: {
2926
1015
  accessList?: import('viem').AccessList;
2927
1016
  authorizationList?: import('viem').AuthorizationList;
2928
1017
  chain?: import('viem').Chain | null;
@@ -2937,15 +1026,15 @@ export class Vault_json {
2937
1026
  if (!this.contract.write) {
2938
1027
  throw new Error('Wallet client is required for write operations');
2939
1028
  }
2940
- return this.contract.write.setPerformanceFee([feeBps] as const, options) as Promise<`0x${string}`>;
1029
+ return this.contract.write.transferErc721([token, payee, tokenId] as const, options) as Promise<`0x${string}`>;
2941
1030
  }
2942
1031
 
2943
1032
  /**
2944
- * setSettlementFee
1033
+ * transferEther
2945
1034
  * nonpayable
2946
1035
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2947
1036
  */
2948
- async setSettlementFee(fee: bigint, options?: {
1037
+ async transferEther(payee: `0x${string}`, amount: bigint, options?: {
2949
1038
  accessList?: import('viem').AccessList;
2950
1039
  authorizationList?: import('viem').AuthorizationList;
2951
1040
  chain?: import('viem').Chain | null;
@@ -2960,15 +1049,15 @@ export class Vault_json {
2960
1049
  if (!this.contract.write) {
2961
1050
  throw new Error('Wallet client is required for write operations');
2962
1051
  }
2963
- return this.contract.write.setSettlementFee([fee] as const, options) as Promise<`0x${string}`>;
1052
+ return this.contract.write.transferEther([payee, amount] as const, options) as Promise<`0x${string}`>;
2964
1053
  }
2965
1054
 
2966
1055
  /**
2967
- * setTargetAllowed
1056
+ * transferOwnership
2968
1057
  * nonpayable
2969
1058
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2970
1059
  */
2971
- async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
1060
+ async transferOwnership(newOwner: `0x${string}`, options?: {
2972
1061
  accessList?: import('viem').AccessList;
2973
1062
  authorizationList?: import('viem').AuthorizationList;
2974
1063
  chain?: import('viem').Chain | null;
@@ -2983,15 +1072,15 @@ export class Vault_json {
2983
1072
  if (!this.contract.write) {
2984
1073
  throw new Error('Wallet client is required for write operations');
2985
1074
  }
2986
- return this.contract.write.setTargetAllowed([target, allowed] as const, options) as Promise<`0x${string}`>;
1075
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
2987
1076
  }
2988
1077
 
2989
1078
  /**
2990
- * settle
1079
+ * upgradeTo
2991
1080
  * nonpayable
2992
1081
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2993
1082
  */
2994
- async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
1083
+ async upgradeTo(newImplementation: `0x${string}`, options?: {
2995
1084
  accessList?: import('viem').AccessList;
2996
1085
  authorizationList?: import('viem').AuthorizationList;
2997
1086
  chain?: import('viem').Chain | null;
@@ -3006,15 +1095,15 @@ export class Vault_json {
3006
1095
  if (!this.contract.write) {
3007
1096
  throw new Error('Wallet client is required for write operations');
3008
1097
  }
3009
- return this.contract.write.settle([tokens, prices] as const, options) as Promise<`0x${string}`>;
1098
+ return this.contract.write.upgradeTo([newImplementation] as const, options) as Promise<`0x${string}`>;
3010
1099
  }
3011
1100
 
3012
1101
  /**
3013
- * unpause
3014
- * nonpayable
1102
+ * upgradeToAndCall
1103
+ * payable
3015
1104
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3016
1105
  */
3017
- async unpause(options?: {
1106
+ async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
3018
1107
  accessList?: import('viem').AccessList;
3019
1108
  authorizationList?: import('viem').AuthorizationList;
3020
1109
  chain?: import('viem').Chain | null;
@@ -3029,7 +1118,7 @@ export class Vault_json {
3029
1118
  if (!this.contract.write) {
3030
1119
  throw new Error('Wallet client is required for write operations');
3031
1120
  }
3032
- return this.contract.write.unpause(options) as Promise<`0x${string}`>;
1121
+ return this.contract.write.upgradeToAndCall([newImplementation, data] as const, options) as Promise<`0x${string}`>;
3033
1122
  }
3034
1123
 
3035
1124
 
@@ -3049,258 +1138,11 @@ export class Vault_json {
3049
1138
  }
3050
1139
  return {
3051
1140
  /**
3052
- * Simulate addTrackedToken
3053
- * Returns gas estimate and result without sending transaction
3054
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3055
- */
3056
- async addTrackedToken(token: `0x${string}`, options?: {
3057
- accessList?: import('viem').AccessList;
3058
- authorizationList?: import('viem').AuthorizationList;
3059
- chain?: import('viem').Chain | null;
3060
- dataSuffix?: `0x${string}`;
3061
- gas?: bigint;
3062
- gasPrice?: bigint;
3063
- maxFeePerGas?: bigint;
3064
- maxPriorityFeePerGas?: bigint;
3065
- nonce?: number;
3066
- value?: bigint;
3067
- }): Promise<void> {
3068
- return contract.simulate.addTrackedToken([token] as const, options) as Promise<void>;
3069
- },
3070
- /**
3071
- * Simulate approveERC20
3072
- * Returns gas estimate and result without sending transaction
3073
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3074
- */
3075
- async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
3076
- accessList?: import('viem').AccessList;
3077
- authorizationList?: import('viem').AuthorizationList;
3078
- chain?: import('viem').Chain | null;
3079
- dataSuffix?: `0x${string}`;
3080
- gas?: bigint;
3081
- gasPrice?: bigint;
3082
- maxFeePerGas?: bigint;
3083
- maxPriorityFeePerGas?: bigint;
3084
- nonce?: number;
3085
- value?: bigint;
3086
- }): Promise<void> {
3087
- return contract.simulate.approveERC20([token, spender, amount] as const, options) as Promise<void>;
3088
- },
3089
- /**
3090
- * Simulate approvePermit2
3091
- * Returns gas estimate and result without sending transaction
3092
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3093
- */
3094
- async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, options?: {
3095
- accessList?: import('viem').AccessList;
3096
- authorizationList?: import('viem').AuthorizationList;
3097
- chain?: import('viem').Chain | null;
3098
- dataSuffix?: `0x${string}`;
3099
- gas?: bigint;
3100
- gasPrice?: bigint;
3101
- maxFeePerGas?: bigint;
3102
- maxPriorityFeePerGas?: bigint;
3103
- nonce?: number;
3104
- value?: bigint;
3105
- }): Promise<void> {
3106
- return contract.simulate.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<void>;
3107
- },
3108
- /**
3109
- * Simulate cancelDepositRequest
3110
- * Returns gas estimate and result without sending transaction
3111
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3112
- */
3113
- async cancelDepositRequest(depositId: bigint, options?: {
3114
- accessList?: import('viem').AccessList;
3115
- authorizationList?: import('viem').AuthorizationList;
3116
- chain?: import('viem').Chain | null;
3117
- dataSuffix?: `0x${string}`;
3118
- gas?: bigint;
3119
- gasPrice?: bigint;
3120
- maxFeePerGas?: bigint;
3121
- maxPriorityFeePerGas?: bigint;
3122
- nonce?: number;
3123
- value?: bigint;
3124
- }): Promise<void> {
3125
- return contract.simulate.cancelDepositRequest([depositId] as const, options) as Promise<void>;
3126
- },
3127
- /**
3128
- * Simulate cancelPendingDeposits
3129
- * Returns gas estimate and result without sending transaction
3130
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3131
- */
3132
- async cancelPendingDeposits(maxCount: bigint, options?: {
3133
- accessList?: import('viem').AccessList;
3134
- authorizationList?: import('viem').AuthorizationList;
3135
- chain?: import('viem').Chain | null;
3136
- dataSuffix?: `0x${string}`;
3137
- gas?: bigint;
3138
- gasPrice?: bigint;
3139
- maxFeePerGas?: bigint;
3140
- maxPriorityFeePerGas?: bigint;
3141
- nonce?: number;
3142
- value?: bigint;
3143
- }): Promise<bigint> {
3144
- return contract.simulate.cancelPendingDeposits([maxCount] as const, options) as Promise<bigint>;
3145
- },
3146
- /**
3147
- * Simulate cancelWithdraw
3148
- * Returns gas estimate and result without sending transaction
3149
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3150
- */
3151
- async cancelWithdraw(requestId: bigint, options?: {
3152
- accessList?: import('viem').AccessList;
3153
- authorizationList?: import('viem').AuthorizationList;
3154
- chain?: import('viem').Chain | null;
3155
- dataSuffix?: `0x${string}`;
3156
- gas?: bigint;
3157
- gasPrice?: bigint;
3158
- maxFeePerGas?: bigint;
3159
- maxPriorityFeePerGas?: bigint;
3160
- nonce?: number;
3161
- value?: bigint;
3162
- }): Promise<void> {
3163
- return contract.simulate.cancelWithdraw([requestId] as const, options) as Promise<void>;
3164
- },
3165
- /**
3166
- * Simulate claimAndDeposit
3167
- * Returns gas estimate and result without sending transaction
3168
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3169
- */
3170
- async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
3171
- accessList?: import('viem').AccessList;
3172
- authorizationList?: import('viem').AuthorizationList;
3173
- chain?: import('viem').Chain | null;
3174
- dataSuffix?: `0x${string}`;
3175
- gas?: bigint;
3176
- gasPrice?: bigint;
3177
- maxFeePerGas?: bigint;
3178
- maxPriorityFeePerGas?: bigint;
3179
- nonce?: number;
3180
- value?: bigint;
3181
- }): Promise<bigint> {
3182
- return contract.simulate.claimAndDeposit([requestId, newVault] as const, options) as Promise<bigint>;
3183
- },
3184
- /**
3185
- * Simulate claimWithdraw
3186
- * Returns gas estimate and result without sending transaction
3187
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3188
- */
3189
- async claimWithdraw(requestId: bigint, options?: {
3190
- accessList?: import('viem').AccessList;
3191
- authorizationList?: import('viem').AuthorizationList;
3192
- chain?: import('viem').Chain | null;
3193
- dataSuffix?: `0x${string}`;
3194
- gas?: bigint;
3195
- gasPrice?: bigint;
3196
- maxFeePerGas?: bigint;
3197
- maxPriorityFeePerGas?: bigint;
3198
- nonce?: number;
3199
- value?: bigint;
3200
- }): Promise<void> {
3201
- return contract.simulate.claimWithdraw([requestId] as const, options) as Promise<void>;
3202
- },
3203
- /**
3204
- * Simulate claimWithdrawTo
3205
- * Returns gas estimate and result without sending transaction
3206
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3207
- */
3208
- async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
3209
- accessList?: import('viem').AccessList;
3210
- authorizationList?: import('viem').AuthorizationList;
3211
- chain?: import('viem').Chain | null;
3212
- dataSuffix?: `0x${string}`;
3213
- gas?: bigint;
3214
- gasPrice?: bigint;
3215
- maxFeePerGas?: bigint;
3216
- maxPriorityFeePerGas?: bigint;
3217
- nonce?: number;
3218
- value?: bigint;
3219
- }): Promise<void> {
3220
- return contract.simulate.claimWithdrawTo([requestId, recipient] as const, options) as Promise<void>;
3221
- },
3222
- /**
3223
- * Simulate grantRole
3224
- * Returns gas estimate and result without sending transaction
3225
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3226
- */
3227
- async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
3228
- accessList?: import('viem').AccessList;
3229
- authorizationList?: import('viem').AuthorizationList;
3230
- chain?: import('viem').Chain | null;
3231
- dataSuffix?: `0x${string}`;
3232
- gas?: bigint;
3233
- gasPrice?: bigint;
3234
- maxFeePerGas?: bigint;
3235
- maxPriorityFeePerGas?: bigint;
3236
- nonce?: number;
3237
- value?: bigint;
3238
- }): Promise<void> {
3239
- return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
3240
- },
3241
- /**
3242
- * Simulate onShareTransfer
3243
- * Returns gas estimate and result without sending transaction
3244
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3245
- */
3246
- async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
3247
- accessList?: import('viem').AccessList;
3248
- authorizationList?: import('viem').AuthorizationList;
3249
- chain?: import('viem').Chain | null;
3250
- dataSuffix?: `0x${string}`;
3251
- gas?: bigint;
3252
- gasPrice?: bigint;
3253
- maxFeePerGas?: bigint;
3254
- maxPriorityFeePerGas?: bigint;
3255
- nonce?: number;
3256
- value?: bigint;
3257
- }): Promise<void> {
3258
- return contract.simulate.onShareTransfer([from, to, value] as const, options) as Promise<void>;
3259
- },
3260
- /**
3261
- * Simulate pause
3262
- * Returns gas estimate and result without sending transaction
3263
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3264
- */
3265
- async pause(options?: {
3266
- accessList?: import('viem').AccessList;
3267
- authorizationList?: import('viem').AuthorizationList;
3268
- chain?: import('viem').Chain | null;
3269
- dataSuffix?: `0x${string}`;
3270
- gas?: bigint;
3271
- gasPrice?: bigint;
3272
- maxFeePerGas?: bigint;
3273
- maxPriorityFeePerGas?: bigint;
3274
- nonce?: number;
3275
- value?: bigint;
3276
- }): Promise<void> {
3277
- return contract.simulate.pause(options) as Promise<void>;
3278
- },
3279
- /**
3280
- * Simulate rebalance
3281
- * Returns gas estimate and result without sending transaction
3282
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3283
- */
3284
- async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
3285
- accessList?: import('viem').AccessList;
3286
- authorizationList?: import('viem').AuthorizationList;
3287
- chain?: import('viem').Chain | null;
3288
- dataSuffix?: `0x${string}`;
3289
- gas?: bigint;
3290
- gasPrice?: bigint;
3291
- maxFeePerGas?: bigint;
3292
- maxPriorityFeePerGas?: bigint;
3293
- nonce?: number;
3294
- value?: bigint;
3295
- }): Promise<void> {
3296
- return contract.simulate.rebalance([targets, calldatas] as const, options) as Promise<void>;
3297
- },
3298
- /**
3299
- * Simulate removeTrackedToken
1141
+ * Simulate batchTransferErc20
3300
1142
  * Returns gas estimate and result without sending transaction
3301
1143
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3302
1144
  */
3303
- async removeTrackedToken(token: `0x${string}`, options?: {
1145
+ async batchTransferErc20(tokens: `0x${string}`[], payees: `0x${string}`[], amounts: bigint[], options?: {
3304
1146
  accessList?: import('viem').AccessList;
3305
1147
  authorizationList?: import('viem').AuthorizationList;
3306
1148
  chain?: import('viem').Chain | null;
@@ -3312,14 +1154,14 @@ export class Vault_json {
3312
1154
  nonce?: number;
3313
1155
  value?: bigint;
3314
1156
  }): Promise<void> {
3315
- return contract.simulate.removeTrackedToken([token] as const, options) as Promise<void>;
1157
+ return contract.simulate.batchTransferErc20([tokens, payees, amounts] as const, options) as Promise<void>;
3316
1158
  },
3317
1159
  /**
3318
- * Simulate renounceRole
1160
+ * Simulate batchTransferErc721
3319
1161
  * Returns gas estimate and result without sending transaction
3320
1162
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3321
1163
  */
3322
- async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
1164
+ async batchTransferErc721(tokens: `0x${string}`[], payees: `0x${string}`[], tokenIds: bigint[], options?: {
3323
1165
  accessList?: import('viem').AccessList;
3324
1166
  authorizationList?: import('viem').AuthorizationList;
3325
1167
  chain?: import('viem').Chain | null;
@@ -3331,14 +1173,14 @@ export class Vault_json {
3331
1173
  nonce?: number;
3332
1174
  value?: bigint;
3333
1175
  }): Promise<void> {
3334
- return contract.simulate.renounceRole([role, callerConfirmation] as const, options) as Promise<void>;
1176
+ return contract.simulate.batchTransferErc721([tokens, payees, tokenIds] as const, options) as Promise<void>;
3335
1177
  },
3336
1178
  /**
3337
- * Simulate requestDeposit
1179
+ * Simulate batchTransferEther
3338
1180
  * Returns gas estimate and result without sending transaction
3339
1181
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3340
1182
  */
3341
- async requestDeposit(assets: bigint, options?: {
1183
+ async batchTransferEther(payees: `0x${string}`[], amounts: bigint[], options?: {
3342
1184
  accessList?: import('viem').AccessList;
3343
1185
  authorizationList?: import('viem').AuthorizationList;
3344
1186
  chain?: import('viem').Chain | null;
@@ -3349,15 +1191,15 @@ export class Vault_json {
3349
1191
  maxPriorityFeePerGas?: bigint;
3350
1192
  nonce?: number;
3351
1193
  value?: bigint;
3352
- }): Promise<bigint> {
3353
- return contract.simulate.requestDeposit([assets] as const, options) as Promise<bigint>;
1194
+ }): Promise<void> {
1195
+ return contract.simulate.batchTransferEther([payees, amounts] as const, options) as Promise<void>;
3354
1196
  },
3355
1197
  /**
3356
- * Simulate requestDepositFor
1198
+ * Simulate grantRole
3357
1199
  * Returns gas estimate and result without sending transaction
3358
1200
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3359
1201
  */
3360
- async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
1202
+ async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
3361
1203
  accessList?: import('viem').AccessList;
3362
1204
  authorizationList?: import('viem').AuthorizationList;
3363
1205
  chain?: import('viem').Chain | null;
@@ -3368,15 +1210,15 @@ export class Vault_json {
3368
1210
  maxPriorityFeePerGas?: bigint;
3369
1211
  nonce?: number;
3370
1212
  value?: bigint;
3371
- }): Promise<bigint> {
3372
- return contract.simulate.requestDepositFor([assets, recipient] as const, options) as Promise<bigint>;
1213
+ }): Promise<void> {
1214
+ return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
3373
1215
  },
3374
1216
  /**
3375
- * Simulate requestWithdraw
1217
+ * Simulate initialize
3376
1218
  * Returns gas estimate and result without sending transaction
3377
1219
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3378
1220
  */
3379
- async requestWithdraw(sharesIn: bigint, options?: {
1221
+ async initialize(options?: {
3380
1222
  accessList?: import('viem').AccessList;
3381
1223
  authorizationList?: import('viem').AuthorizationList;
3382
1224
  chain?: import('viem').Chain | null;
@@ -3387,15 +1229,15 @@ export class Vault_json {
3387
1229
  maxPriorityFeePerGas?: bigint;
3388
1230
  nonce?: number;
3389
1231
  value?: bigint;
3390
- }): Promise<bigint> {
3391
- return contract.simulate.requestWithdraw([sharesIn] as const, options) as Promise<bigint>;
1232
+ }): Promise<void> {
1233
+ return contract.simulate.initialize(options) as Promise<void>;
3392
1234
  },
3393
1235
  /**
3394
- * Simulate revokeRole
1236
+ * Simulate onERC721Received
3395
1237
  * Returns gas estimate and result without sending transaction
3396
1238
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3397
1239
  */
3398
- async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1240
+ async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
3399
1241
  accessList?: import('viem').AccessList;
3400
1242
  authorizationList?: import('viem').AuthorizationList;
3401
1243
  chain?: import('viem').Chain | null;
@@ -3406,15 +1248,15 @@ export class Vault_json {
3406
1248
  maxPriorityFeePerGas?: bigint;
3407
1249
  nonce?: number;
3408
1250
  value?: bigint;
3409
- }): Promise<void> {
3410
- return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
1251
+ }): Promise<`0x${string}`> {
1252
+ return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3] as const, options) as Promise<`0x${string}`>;
3411
1253
  },
3412
1254
  /**
3413
- * Simulate setFeeRecipient
1255
+ * Simulate renounceOwnership
3414
1256
  * Returns gas estimate and result without sending transaction
3415
1257
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3416
1258
  */
3417
- async setFeeRecipient(recipient: `0x${string}`, options?: {
1259
+ async renounceOwnership(options?: {
3418
1260
  accessList?: import('viem').AccessList;
3419
1261
  authorizationList?: import('viem').AuthorizationList;
3420
1262
  chain?: import('viem').Chain | null;
@@ -3426,14 +1268,14 @@ export class Vault_json {
3426
1268
  nonce?: number;
3427
1269
  value?: bigint;
3428
1270
  }): Promise<void> {
3429
- return contract.simulate.setFeeRecipient([recipient] as const, options) as Promise<void>;
1271
+ return contract.simulate.renounceOwnership(options) as Promise<void>;
3430
1272
  },
3431
1273
  /**
3432
- * Simulate setMaxSettlementBatchSize
1274
+ * Simulate renounceRole
3433
1275
  * Returns gas estimate and result without sending transaction
3434
1276
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3435
1277
  */
3436
- async setMaxSettlementBatchSize(size: bigint, options?: {
1278
+ async renounceRole(role: `0x${string}`, account: `0x${string}`, options?: {
3437
1279
  accessList?: import('viem').AccessList;
3438
1280
  authorizationList?: import('viem').AuthorizationList;
3439
1281
  chain?: import('viem').Chain | null;
@@ -3445,14 +1287,14 @@ export class Vault_json {
3445
1287
  nonce?: number;
3446
1288
  value?: bigint;
3447
1289
  }): Promise<void> {
3448
- return contract.simulate.setMaxSettlementBatchSize([size] as const, options) as Promise<void>;
1290
+ return contract.simulate.renounceRole([role, account] as const, options) as Promise<void>;
3449
1291
  },
3450
1292
  /**
3451
- * Simulate setMinDepositAssets
1293
+ * Simulate revokeRole
3452
1294
  * Returns gas estimate and result without sending transaction
3453
1295
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3454
1296
  */
3455
- async setMinDepositAssets(amount: bigint, options?: {
1297
+ async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
3456
1298
  accessList?: import('viem').AccessList;
3457
1299
  authorizationList?: import('viem').AuthorizationList;
3458
1300
  chain?: import('viem').Chain | null;
@@ -3464,14 +1306,14 @@ export class Vault_json {
3464
1306
  nonce?: number;
3465
1307
  value?: bigint;
3466
1308
  }): Promise<void> {
3467
- return contract.simulate.setMinDepositAssets([amount] as const, options) as Promise<void>;
1309
+ return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
3468
1310
  },
3469
1311
  /**
3470
- * Simulate setOracle
1312
+ * Simulate transferErc20
3471
1313
  * Returns gas estimate and result without sending transaction
3472
1314
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3473
1315
  */
3474
- async setOracle(_oracle: `0x${string}`, options?: {
1316
+ async transferErc20(token: `0x${string}`, payee: `0x${string}`, amount: bigint, options?: {
3475
1317
  accessList?: import('viem').AccessList;
3476
1318
  authorizationList?: import('viem').AuthorizationList;
3477
1319
  chain?: import('viem').Chain | null;
@@ -3483,14 +1325,14 @@ export class Vault_json {
3483
1325
  nonce?: number;
3484
1326
  value?: bigint;
3485
1327
  }): Promise<void> {
3486
- return contract.simulate.setOracle([_oracle] as const, options) as Promise<void>;
1328
+ return contract.simulate.transferErc20([token, payee, amount] as const, options) as Promise<void>;
3487
1329
  },
3488
1330
  /**
3489
- * Simulate setPerformanceFee
1331
+ * Simulate transferErc721
3490
1332
  * Returns gas estimate and result without sending transaction
3491
1333
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3492
1334
  */
3493
- async setPerformanceFee(feeBps: bigint, options?: {
1335
+ async transferErc721(token: `0x${string}`, payee: `0x${string}`, tokenId: bigint, options?: {
3494
1336
  accessList?: import('viem').AccessList;
3495
1337
  authorizationList?: import('viem').AuthorizationList;
3496
1338
  chain?: import('viem').Chain | null;
@@ -3502,14 +1344,14 @@ export class Vault_json {
3502
1344
  nonce?: number;
3503
1345
  value?: bigint;
3504
1346
  }): Promise<void> {
3505
- return contract.simulate.setPerformanceFee([feeBps] as const, options) as Promise<void>;
1347
+ return contract.simulate.transferErc721([token, payee, tokenId] as const, options) as Promise<void>;
3506
1348
  },
3507
1349
  /**
3508
- * Simulate setSettlementFee
1350
+ * Simulate transferEther
3509
1351
  * Returns gas estimate and result without sending transaction
3510
1352
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3511
1353
  */
3512
- async setSettlementFee(fee: bigint, options?: {
1354
+ async transferEther(payee: `0x${string}`, amount: bigint, options?: {
3513
1355
  accessList?: import('viem').AccessList;
3514
1356
  authorizationList?: import('viem').AuthorizationList;
3515
1357
  chain?: import('viem').Chain | null;
@@ -3521,14 +1363,14 @@ export class Vault_json {
3521
1363
  nonce?: number;
3522
1364
  value?: bigint;
3523
1365
  }): Promise<void> {
3524
- return contract.simulate.setSettlementFee([fee] as const, options) as Promise<void>;
1366
+ return contract.simulate.transferEther([payee, amount] as const, options) as Promise<void>;
3525
1367
  },
3526
1368
  /**
3527
- * Simulate setTargetAllowed
1369
+ * Simulate transferOwnership
3528
1370
  * Returns gas estimate and result without sending transaction
3529
1371
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3530
1372
  */
3531
- async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
1373
+ async transferOwnership(newOwner: `0x${string}`, options?: {
3532
1374
  accessList?: import('viem').AccessList;
3533
1375
  authorizationList?: import('viem').AuthorizationList;
3534
1376
  chain?: import('viem').Chain | null;
@@ -3540,14 +1382,14 @@ export class Vault_json {
3540
1382
  nonce?: number;
3541
1383
  value?: bigint;
3542
1384
  }): Promise<void> {
3543
- return contract.simulate.setTargetAllowed([target, allowed] as const, options) as Promise<void>;
1385
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
3544
1386
  },
3545
1387
  /**
3546
- * Simulate settle
1388
+ * Simulate upgradeTo
3547
1389
  * Returns gas estimate and result without sending transaction
3548
1390
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3549
1391
  */
3550
- async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
1392
+ async upgradeTo(newImplementation: `0x${string}`, options?: {
3551
1393
  accessList?: import('viem').AccessList;
3552
1394
  authorizationList?: import('viem').AuthorizationList;
3553
1395
  chain?: import('viem').Chain | null;
@@ -3559,14 +1401,14 @@ export class Vault_json {
3559
1401
  nonce?: number;
3560
1402
  value?: bigint;
3561
1403
  }): Promise<void> {
3562
- return contract.simulate.settle([tokens, prices] as const, options) as Promise<void>;
1404
+ return contract.simulate.upgradeTo([newImplementation] as const, options) as Promise<void>;
3563
1405
  },
3564
1406
  /**
3565
- * Simulate unpause
1407
+ * Simulate upgradeToAndCall
3566
1408
  * Returns gas estimate and result without sending transaction
3567
1409
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3568
1410
  */
3569
- async unpause(options?: {
1411
+ async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
3570
1412
  accessList?: import('viem').AccessList;
3571
1413
  authorizationList?: import('viem').AuthorizationList;
3572
1414
  chain?: import('viem').Chain | null;
@@ -3578,7 +1420,7 @@ export class Vault_json {
3578
1420
  nonce?: number;
3579
1421
  value?: bigint;
3580
1422
  }): Promise<void> {
3581
- return contract.simulate.unpause(options) as Promise<void>;
1423
+ return contract.simulate.upgradeToAndCall([newImplementation, data] as const, options) as Promise<void>;
3582
1424
  }
3583
1425
  };
3584
1426
  }
@@ -3598,111 +1440,16 @@ export class Vault_json {
3598
1440
  get watch() {
3599
1441
  return {
3600
1442
  /**
3601
- * Watch DepositAutoRefunded events
3602
- * @param callback Function to call when event is emitted
3603
- * @param filter Optional filter for indexed parameters
3604
- * @returns Unwatch function to stop listening
3605
- */
3606
- DepositAutoRefunded: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3607
- return this.publicClient.watchContractEvent({
3608
- address: this.contractAddress,
3609
- abi: Vault_jsonAbi,
3610
- eventName: 'DepositAutoRefunded',
3611
- args: filter,
3612
- onLogs: (logs: any[]) => {
3613
- logs.forEach((log: any) => {
3614
- callback(log.args as any);
3615
- });
3616
- },
3617
- }) as () => void;
3618
- },
3619
- /**
3620
- * Watch DepositCancelled events
3621
- * @param callback Function to call when event is emitted
3622
- * @param filter Optional filter for indexed parameters
3623
- * @returns Unwatch function to stop listening
3624
- */
3625
- DepositCancelled: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3626
- return this.publicClient.watchContractEvent({
3627
- address: this.contractAddress,
3628
- abi: Vault_jsonAbi,
3629
- eventName: 'DepositCancelled',
3630
- args: filter,
3631
- onLogs: (logs: any[]) => {
3632
- logs.forEach((log: any) => {
3633
- callback(log.args as any);
3634
- });
3635
- },
3636
- }) as () => void;
3637
- },
3638
- /**
3639
- * Watch DepositRequested events
3640
- * @param callback Function to call when event is emitted
3641
- * @param filter Optional filter for indexed parameters
3642
- * @returns Unwatch function to stop listening
3643
- */
3644
- DepositRequested: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3645
- return this.publicClient.watchContractEvent({
3646
- address: this.contractAddress,
3647
- abi: Vault_jsonAbi,
3648
- eventName: 'DepositRequested',
3649
- args: filter,
3650
- onLogs: (logs: any[]) => {
3651
- logs.forEach((log: any) => {
3652
- callback(log.args as any);
3653
- });
3654
- },
3655
- }) as () => void;
3656
- },
3657
- /**
3658
- * Watch DepositSettled events
3659
- * @param callback Function to call when event is emitted
3660
- * @param filter Optional filter for indexed parameters
3661
- * @returns Unwatch function to stop listening
3662
- */
3663
- DepositSettled: (callback: (event: { depositId: bigint; owner: `0x${string}`; netAssets: bigint; shares: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3664
- return this.publicClient.watchContractEvent({
3665
- address: this.contractAddress,
3666
- abi: Vault_jsonAbi,
3667
- eventName: 'DepositSettled',
3668
- args: filter,
3669
- onLogs: (logs: any[]) => {
3670
- logs.forEach((log: any) => {
3671
- callback(log.args as any);
3672
- });
3673
- },
3674
- }) as () => void;
3675
- },
3676
- /**
3677
- * Watch MaxSettlementBatchSizeSet events
3678
- * @param callback Function to call when event is emitted
3679
- * @param filter Optional filter for indexed parameters
3680
- * @returns Unwatch function to stop listening
3681
- */
3682
- MaxSettlementBatchSizeSet: (callback: (event: { size: bigint }) => void) => {
3683
- return this.publicClient.watchContractEvent({
3684
- address: this.contractAddress,
3685
- abi: Vault_jsonAbi,
3686
- eventName: 'MaxSettlementBatchSizeSet',
3687
-
3688
- onLogs: (logs: any[]) => {
3689
- logs.forEach((log: any) => {
3690
- callback(log.args as any);
3691
- });
3692
- },
3693
- }) as () => void;
3694
- },
3695
- /**
3696
- * Watch MinDepositAssetsSet events
1443
+ * Watch AdminChanged events
3697
1444
  * @param callback Function to call when event is emitted
3698
1445
  * @param filter Optional filter for indexed parameters
3699
1446
  * @returns Unwatch function to stop listening
3700
1447
  */
3701
- MinDepositAssetsSet: (callback: (event: { amount: bigint }) => void) => {
1448
+ AdminChanged: (callback: (event: { previousAdmin: `0x${string}`; newAdmin: `0x${string}` }) => void) => {
3702
1449
  return this.publicClient.watchContractEvent({
3703
1450
  address: this.contractAddress,
3704
1451
  abi: Vault_jsonAbi,
3705
- eventName: 'MinDepositAssetsSet',
1452
+ eventName: 'AdminChanged',
3706
1453
 
3707
1454
  onLogs: (logs: any[]) => {
3708
1455
  logs.forEach((log: any) => {
@@ -3712,16 +1459,16 @@ export class Vault_json {
3712
1459
  }) as () => void;
3713
1460
  },
3714
1461
  /**
3715
- * Watch OracleSet events
1462
+ * Watch BeaconUpgraded events
3716
1463
  * @param callback Function to call when event is emitted
3717
1464
  * @param filter Optional filter for indexed parameters
3718
1465
  * @returns Unwatch function to stop listening
3719
1466
  */
3720
- OracleSet: (callback: (event: { oracle: `0x${string}` }) => void, filter?: { oracle: `0x${string}` }) => {
1467
+ BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon: `0x${string}` }) => {
3721
1468
  return this.publicClient.watchContractEvent({
3722
1469
  address: this.contractAddress,
3723
1470
  abi: Vault_jsonAbi,
3724
- eventName: 'OracleSet',
1471
+ eventName: 'BeaconUpgraded',
3725
1472
  args: filter,
3726
1473
  onLogs: (logs: any[]) => {
3727
1474
  logs.forEach((log: any) => {
@@ -3731,35 +1478,16 @@ export class Vault_json {
3731
1478
  }) as () => void;
3732
1479
  },
3733
1480
  /**
3734
- * Watch Paused events
3735
- * @param callback Function to call when event is emitted
3736
- * @param filter Optional filter for indexed parameters
3737
- * @returns Unwatch function to stop listening
3738
- */
3739
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
3740
- return this.publicClient.watchContractEvent({
3741
- address: this.contractAddress,
3742
- abi: Vault_jsonAbi,
3743
- eventName: 'Paused',
3744
-
3745
- onLogs: (logs: any[]) => {
3746
- logs.forEach((log: any) => {
3747
- callback(log.args as any);
3748
- });
3749
- },
3750
- }) as () => void;
3751
- },
3752
- /**
3753
- * Watch PerformanceFeeSet events
1481
+ * Watch Initialized events
3754
1482
  * @param callback Function to call when event is emitted
3755
1483
  * @param filter Optional filter for indexed parameters
3756
1484
  * @returns Unwatch function to stop listening
3757
1485
  */
3758
- PerformanceFeeSet: (callback: (event: { feeBps: bigint }) => void) => {
1486
+ Initialized: (callback: (event: { version: bigint }) => void) => {
3759
1487
  return this.publicClient.watchContractEvent({
3760
1488
  address: this.contractAddress,
3761
1489
  abi: Vault_jsonAbi,
3762
- eventName: 'PerformanceFeeSet',
1490
+ eventName: 'Initialized',
3763
1491
 
3764
1492
  onLogs: (logs: any[]) => {
3765
1493
  logs.forEach((log: any) => {
@@ -3769,17 +1497,17 @@ export class Vault_json {
3769
1497
  }) as () => void;
3770
1498
  },
3771
1499
  /**
3772
- * Watch Rebalanced events
1500
+ * Watch OwnershipTransferred events
3773
1501
  * @param callback Function to call when event is emitted
3774
1502
  * @param filter Optional filter for indexed parameters
3775
1503
  * @returns Unwatch function to stop listening
3776
1504
  */
3777
- Rebalanced: (callback: (event: { callCount: bigint; navBefore: bigint; navAfter: bigint }) => void) => {
1505
+ OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3778
1506
  return this.publicClient.watchContractEvent({
3779
1507
  address: this.contractAddress,
3780
1508
  abi: Vault_jsonAbi,
3781
- eventName: 'Rebalanced',
3782
-
1509
+ eventName: 'OwnershipTransferred',
1510
+ args: filter,
3783
1511
  onLogs: (logs: any[]) => {
3784
1512
  logs.forEach((log: any) => {
3785
1513
  callback(log.args as any);
@@ -3845,187 +1573,16 @@ export class Vault_json {
3845
1573
  }) as () => void;
3846
1574
  },
3847
1575
  /**
3848
- * Watch Settled events
3849
- * @param callback Function to call when event is emitted
3850
- * @param filter Optional filter for indexed parameters
3851
- * @returns Unwatch function to stop listening
3852
- */
3853
- Settled: (callback: (event: { oraclePriceCount: bigint; depositsSettled: bigint; depositsRefunded: bigint; withdrawalsProcessed: bigint }) => void) => {
3854
- return this.publicClient.watchContractEvent({
3855
- address: this.contractAddress,
3856
- abi: Vault_jsonAbi,
3857
- eventName: 'Settled',
3858
-
3859
- onLogs: (logs: any[]) => {
3860
- logs.forEach((log: any) => {
3861
- callback(log.args as any);
3862
- });
3863
- },
3864
- }) as () => void;
3865
- },
3866
- /**
3867
- * Watch SettlementFeeSet events
3868
- * @param callback Function to call when event is emitted
3869
- * @param filter Optional filter for indexed parameters
3870
- * @returns Unwatch function to stop listening
3871
- */
3872
- SettlementFeeSet: (callback: (event: { fee: bigint }) => void) => {
3873
- return this.publicClient.watchContractEvent({
3874
- address: this.contractAddress,
3875
- abi: Vault_jsonAbi,
3876
- eventName: 'SettlementFeeSet',
3877
-
3878
- onLogs: (logs: any[]) => {
3879
- logs.forEach((log: any) => {
3880
- callback(log.args as any);
3881
- });
3882
- },
3883
- }) as () => void;
3884
- },
3885
- /**
3886
- * Watch TargetAllowed events
3887
- * @param callback Function to call when event is emitted
3888
- * @param filter Optional filter for indexed parameters
3889
- * @returns Unwatch function to stop listening
3890
- */
3891
- TargetAllowed: (callback: (event: { target: `0x${string}`; allowed: boolean }) => void, filter?: { target: `0x${string}` }) => {
3892
- return this.publicClient.watchContractEvent({
3893
- address: this.contractAddress,
3894
- abi: Vault_jsonAbi,
3895
- eventName: 'TargetAllowed',
3896
- args: filter,
3897
- onLogs: (logs: any[]) => {
3898
- logs.forEach((log: any) => {
3899
- callback(log.args as any);
3900
- });
3901
- },
3902
- }) as () => void;
3903
- },
3904
- /**
3905
- * Watch TrackedTokenAdded events
3906
- * @param callback Function to call when event is emitted
3907
- * @param filter Optional filter for indexed parameters
3908
- * @returns Unwatch function to stop listening
3909
- */
3910
- TrackedTokenAdded: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
3911
- return this.publicClient.watchContractEvent({
3912
- address: this.contractAddress,
3913
- abi: Vault_jsonAbi,
3914
- eventName: 'TrackedTokenAdded',
3915
- args: filter,
3916
- onLogs: (logs: any[]) => {
3917
- logs.forEach((log: any) => {
3918
- callback(log.args as any);
3919
- });
3920
- },
3921
- }) as () => void;
3922
- },
3923
- /**
3924
- * Watch TrackedTokenRemoved events
3925
- * @param callback Function to call when event is emitted
3926
- * @param filter Optional filter for indexed parameters
3927
- * @returns Unwatch function to stop listening
3928
- */
3929
- TrackedTokenRemoved: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
3930
- return this.publicClient.watchContractEvent({
3931
- address: this.contractAddress,
3932
- abi: Vault_jsonAbi,
3933
- eventName: 'TrackedTokenRemoved',
3934
- args: filter,
3935
- onLogs: (logs: any[]) => {
3936
- logs.forEach((log: any) => {
3937
- callback(log.args as any);
3938
- });
3939
- },
3940
- }) as () => void;
3941
- },
3942
- /**
3943
- * Watch Unpaused events
3944
- * @param callback Function to call when event is emitted
3945
- * @param filter Optional filter for indexed parameters
3946
- * @returns Unwatch function to stop listening
3947
- */
3948
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3949
- return this.publicClient.watchContractEvent({
3950
- address: this.contractAddress,
3951
- abi: Vault_jsonAbi,
3952
- eventName: 'Unpaused',
3953
-
3954
- onLogs: (logs: any[]) => {
3955
- logs.forEach((log: any) => {
3956
- callback(log.args as any);
3957
- });
3958
- },
3959
- }) as () => void;
3960
- },
3961
- /**
3962
- * Watch WithdrawCancelled events
3963
- * @param callback Function to call when event is emitted
3964
- * @param filter Optional filter for indexed parameters
3965
- * @returns Unwatch function to stop listening
3966
- */
3967
- WithdrawCancelled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
3968
- return this.publicClient.watchContractEvent({
3969
- address: this.contractAddress,
3970
- abi: Vault_jsonAbi,
3971
- eventName: 'WithdrawCancelled',
3972
- args: filter,
3973
- onLogs: (logs: any[]) => {
3974
- logs.forEach((log: any) => {
3975
- callback(log.args as any);
3976
- });
3977
- },
3978
- }) as () => void;
3979
- },
3980
- /**
3981
- * Watch WithdrawClaimed events
3982
- * @param callback Function to call when event is emitted
3983
- * @param filter Optional filter for indexed parameters
3984
- * @returns Unwatch function to stop listening
3985
- */
3986
- WithdrawClaimed: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsPaid: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
3987
- return this.publicClient.watchContractEvent({
3988
- address: this.contractAddress,
3989
- abi: Vault_jsonAbi,
3990
- eventName: 'WithdrawClaimed',
3991
- args: filter,
3992
- onLogs: (logs: any[]) => {
3993
- logs.forEach((log: any) => {
3994
- callback(log.args as any);
3995
- });
3996
- },
3997
- }) as () => void;
3998
- },
3999
- /**
4000
- * Watch WithdrawRequested events
4001
- * @param callback Function to call when event is emitted
4002
- * @param filter Optional filter for indexed parameters
4003
- * @returns Unwatch function to stop listening
4004
- */
4005
- WithdrawRequested: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; claimableAt: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
4006
- return this.publicClient.watchContractEvent({
4007
- address: this.contractAddress,
4008
- abi: Vault_jsonAbi,
4009
- eventName: 'WithdrawRequested',
4010
- args: filter,
4011
- onLogs: (logs: any[]) => {
4012
- logs.forEach((log: any) => {
4013
- callback(log.args as any);
4014
- });
4015
- },
4016
- }) as () => void;
4017
- },
4018
- /**
4019
- * Watch WithdrawalSettled events
1576
+ * Watch Upgraded events
4020
1577
  * @param callback Function to call when event is emitted
4021
1578
  * @param filter Optional filter for indexed parameters
4022
1579
  * @returns Unwatch function to stop listening
4023
1580
  */
4024
- WithdrawalSettled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsOut: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
1581
+ Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
4025
1582
  return this.publicClient.watchContractEvent({
4026
1583
  address: this.contractAddress,
4027
1584
  abi: Vault_jsonAbi,
4028
- eventName: 'WithdrawalSettled',
1585
+ eventName: 'Upgraded',
4029
1586
  args: filter,
4030
1587
  onLogs: (logs: any[]) => {
4031
1588
  logs.forEach((log: any) => {