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