@gitmyabi/twt-spl-usdt 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2417 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllocatorVaultV3_3_json = exports.AllocatorVaultV3_3_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * AllocatorVaultV3_3_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.AllocatorVaultV3_3_jsonAbi = [
11
+ {
12
+ "inputs": [],
13
+ "name": "AccessControlBadConfirmation",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [
18
+ {
19
+ "internalType": "address",
20
+ "name": "account",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "bytes32",
25
+ "name": "neededRole",
26
+ "type": "bytes32"
27
+ }
28
+ ],
29
+ "name": "AccessControlUnauthorizedAccount",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "spender",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "allowance",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "needed",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "ERC20InsufficientAllowance",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ {
56
+ "internalType": "address",
57
+ "name": "sender",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "internalType": "uint256",
62
+ "name": "balance",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "needed",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "name": "ERC20InsufficientBalance",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "approver",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "name": "ERC20InvalidApprover",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "address",
89
+ "name": "receiver",
90
+ "type": "address"
91
+ }
92
+ ],
93
+ "name": "ERC20InvalidReceiver",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "sender",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "name": "ERC20InvalidSender",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "spender",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "ERC20InvalidSpender",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "address",
122
+ "name": "receiver",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "assets",
128
+ "type": "uint256"
129
+ },
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "max",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "name": "ERC4626ExceededMaxDeposit",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "receiver",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "shares",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "max",
154
+ "type": "uint256"
155
+ }
156
+ ],
157
+ "name": "ERC4626ExceededMaxMint",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "address",
164
+ "name": "owner",
165
+ "type": "address"
166
+ },
167
+ {
168
+ "internalType": "uint256",
169
+ "name": "shares",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "internalType": "uint256",
174
+ "name": "max",
175
+ "type": "uint256"
176
+ }
177
+ ],
178
+ "name": "ERC4626ExceededMaxRedeem",
179
+ "type": "error"
180
+ },
181
+ {
182
+ "inputs": [
183
+ {
184
+ "internalType": "address",
185
+ "name": "owner",
186
+ "type": "address"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "assets",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "max",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "name": "ERC4626ExceededMaxWithdraw",
200
+ "type": "error"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "InvalidInitialization",
205
+ "type": "error"
206
+ },
207
+ {
208
+ "inputs": [],
209
+ "name": "NotInitializing",
210
+ "type": "error"
211
+ },
212
+ {
213
+ "inputs": [],
214
+ "name": "ReentrancyGuardReentrantCall",
215
+ "type": "error"
216
+ },
217
+ {
218
+ "inputs": [
219
+ {
220
+ "internalType": "address",
221
+ "name": "token",
222
+ "type": "address"
223
+ }
224
+ ],
225
+ "name": "SafeERC20FailedOperation",
226
+ "type": "error"
227
+ },
228
+ {
229
+ "anonymous": false,
230
+ "inputs": [
231
+ {
232
+ "indexed": true,
233
+ "internalType": "address",
234
+ "name": "owner",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "indexed": true,
239
+ "internalType": "address",
240
+ "name": "spender",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "internalType": "uint256",
246
+ "name": "value",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "name": "Approval",
251
+ "type": "event"
252
+ },
253
+ {
254
+ "anonymous": false,
255
+ "inputs": [
256
+ {
257
+ "indexed": true,
258
+ "internalType": "address",
259
+ "name": "sender",
260
+ "type": "address"
261
+ },
262
+ {
263
+ "indexed": true,
264
+ "internalType": "address",
265
+ "name": "owner",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "indexed": false,
270
+ "internalType": "uint256",
271
+ "name": "assets",
272
+ "type": "uint256"
273
+ },
274
+ {
275
+ "indexed": false,
276
+ "internalType": "uint256",
277
+ "name": "shares",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "name": "Deposit",
282
+ "type": "event"
283
+ },
284
+ {
285
+ "anonymous": false,
286
+ "inputs": [
287
+ {
288
+ "indexed": true,
289
+ "internalType": "address",
290
+ "name": "caller",
291
+ "type": "address"
292
+ },
293
+ {
294
+ "indexed": false,
295
+ "internalType": "uint256",
296
+ "name": "sharesMinted",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "indexed": false,
301
+ "internalType": "uint256",
302
+ "name": "previousTotalUnderlying",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "indexed": false,
307
+ "internalType": "uint256",
308
+ "name": "currentTotalUnderlying",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "name": "Harvested",
313
+ "type": "event"
314
+ },
315
+ {
316
+ "anonymous": false,
317
+ "inputs": [
318
+ {
319
+ "indexed": false,
320
+ "internalType": "uint64",
321
+ "name": "version",
322
+ "type": "uint64"
323
+ }
324
+ ],
325
+ "name": "Initialized",
326
+ "type": "event"
327
+ },
328
+ {
329
+ "anonymous": false,
330
+ "inputs": [
331
+ {
332
+ "indexed": true,
333
+ "internalType": "address",
334
+ "name": "asset",
335
+ "type": "address"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "internalType": "uint256",
340
+ "name": "amount",
341
+ "type": "uint256"
342
+ }
343
+ ],
344
+ "name": "MiscellaneousRewardClaimed",
345
+ "type": "event"
346
+ },
347
+ {
348
+ "anonymous": false,
349
+ "inputs": [
350
+ {
351
+ "indexed": false,
352
+ "internalType": "bool",
353
+ "name": "paused",
354
+ "type": "bool"
355
+ }
356
+ ],
357
+ "name": "PausedSet",
358
+ "type": "event"
359
+ },
360
+ {
361
+ "anonymous": false,
362
+ "inputs": [
363
+ {
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "target",
367
+ "type": "address"
368
+ },
369
+ {
370
+ "indexed": true,
371
+ "internalType": "address",
372
+ "name": "asset",
373
+ "type": "address"
374
+ },
375
+ {
376
+ "indexed": false,
377
+ "internalType": "uint256",
378
+ "name": "amount",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "name": "RewardsClaimed",
383
+ "type": "event"
384
+ },
385
+ {
386
+ "anonymous": false,
387
+ "inputs": [
388
+ {
389
+ "indexed": true,
390
+ "internalType": "bytes32",
391
+ "name": "role",
392
+ "type": "bytes32"
393
+ },
394
+ {
395
+ "indexed": true,
396
+ "internalType": "bytes32",
397
+ "name": "previousAdminRole",
398
+ "type": "bytes32"
399
+ },
400
+ {
401
+ "indexed": true,
402
+ "internalType": "bytes32",
403
+ "name": "newAdminRole",
404
+ "type": "bytes32"
405
+ }
406
+ ],
407
+ "name": "RoleAdminChanged",
408
+ "type": "event"
409
+ },
410
+ {
411
+ "anonymous": false,
412
+ "inputs": [
413
+ {
414
+ "indexed": true,
415
+ "internalType": "bytes32",
416
+ "name": "role",
417
+ "type": "bytes32"
418
+ },
419
+ {
420
+ "indexed": true,
421
+ "internalType": "address",
422
+ "name": "account",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "indexed": true,
427
+ "internalType": "address",
428
+ "name": "sender",
429
+ "type": "address"
430
+ }
431
+ ],
432
+ "name": "RoleGranted",
433
+ "type": "event"
434
+ },
435
+ {
436
+ "anonymous": false,
437
+ "inputs": [
438
+ {
439
+ "indexed": true,
440
+ "internalType": "bytes32",
441
+ "name": "role",
442
+ "type": "bytes32"
443
+ },
444
+ {
445
+ "indexed": true,
446
+ "internalType": "address",
447
+ "name": "account",
448
+ "type": "address"
449
+ },
450
+ {
451
+ "indexed": true,
452
+ "internalType": "address",
453
+ "name": "sender",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "name": "RoleRevoked",
458
+ "type": "event"
459
+ },
460
+ {
461
+ "anonymous": false,
462
+ "inputs": [
463
+ {
464
+ "indexed": true,
465
+ "internalType": "address",
466
+ "name": "from",
467
+ "type": "address"
468
+ },
469
+ {
470
+ "indexed": true,
471
+ "internalType": "address",
472
+ "name": "to",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "indexed": false,
477
+ "internalType": "uint256",
478
+ "name": "value",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "Transfer",
483
+ "type": "event"
484
+ },
485
+ {
486
+ "anonymous": false,
487
+ "inputs": [
488
+ {
489
+ "components": [
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "depositFee",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "performanceFee",
498
+ "type": "uint256"
499
+ },
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "managementFee",
503
+ "type": "uint256"
504
+ },
505
+ {
506
+ "internalType": "address",
507
+ "name": "feeRecipient",
508
+ "type": "address"
509
+ },
510
+ {
511
+ "internalType": "bool",
512
+ "name": "hasCooldown",
513
+ "type": "bool"
514
+ }
515
+ ],
516
+ "indexed": false,
517
+ "internalType": "struct AllocatorVaultV3_3.AllocatorVaultConfig",
518
+ "name": "config",
519
+ "type": "tuple"
520
+ }
521
+ ],
522
+ "name": "VaultConfigured",
523
+ "type": "event"
524
+ },
525
+ {
526
+ "anonymous": false,
527
+ "inputs": [
528
+ {
529
+ "indexed": true,
530
+ "internalType": "address",
531
+ "name": "target",
532
+ "type": "address"
533
+ },
534
+ {
535
+ "indexed": false,
536
+ "internalType": "bytes4",
537
+ "name": "selector",
538
+ "type": "bytes4"
539
+ },
540
+ {
541
+ "indexed": false,
542
+ "internalType": "bool",
543
+ "name": "added",
544
+ "type": "bool"
545
+ }
546
+ ],
547
+ "name": "Whitelisted",
548
+ "type": "event"
549
+ },
550
+ {
551
+ "anonymous": false,
552
+ "inputs": [
553
+ {
554
+ "indexed": true,
555
+ "internalType": "address",
556
+ "name": "sender",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "indexed": true,
561
+ "internalType": "address",
562
+ "name": "receiver",
563
+ "type": "address"
564
+ },
565
+ {
566
+ "indexed": true,
567
+ "internalType": "address",
568
+ "name": "owner",
569
+ "type": "address"
570
+ },
571
+ {
572
+ "indexed": false,
573
+ "internalType": "uint256",
574
+ "name": "assets",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "indexed": false,
579
+ "internalType": "uint256",
580
+ "name": "shares",
581
+ "type": "uint256"
582
+ }
583
+ ],
584
+ "name": "Withdraw",
585
+ "type": "event"
586
+ },
587
+ {
588
+ "inputs": [],
589
+ "name": "DEFAULT_ADMIN_ROLE",
590
+ "outputs": [
591
+ {
592
+ "internalType": "bytes32",
593
+ "name": "",
594
+ "type": "bytes32"
595
+ }
596
+ ],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [],
602
+ "name": "HARVESTER_ROLE",
603
+ "outputs": [
604
+ {
605
+ "internalType": "bytes32",
606
+ "name": "",
607
+ "type": "bytes32"
608
+ }
609
+ ],
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "inputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "target",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "internalType": "bytes4",
622
+ "name": "functionSelector",
623
+ "type": "bytes4"
624
+ }
625
+ ],
626
+ "name": "addToWhitelist",
627
+ "outputs": [],
628
+ "stateMutability": "nonpayable",
629
+ "type": "function"
630
+ },
631
+ {
632
+ "inputs": [
633
+ {
634
+ "internalType": "address",
635
+ "name": "owner",
636
+ "type": "address"
637
+ },
638
+ {
639
+ "internalType": "address",
640
+ "name": "spender",
641
+ "type": "address"
642
+ }
643
+ ],
644
+ "name": "allowance",
645
+ "outputs": [
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "stateMutability": "view",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [
657
+ {
658
+ "internalType": "address",
659
+ "name": "spender",
660
+ "type": "address"
661
+ },
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "value",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "name": "approve",
669
+ "outputs": [
670
+ {
671
+ "internalType": "bool",
672
+ "name": "",
673
+ "type": "bool"
674
+ }
675
+ ],
676
+ "stateMutability": "nonpayable",
677
+ "type": "function"
678
+ },
679
+ {
680
+ "inputs": [],
681
+ "name": "asset",
682
+ "outputs": [
683
+ {
684
+ "internalType": "address",
685
+ "name": "",
686
+ "type": "address"
687
+ }
688
+ ],
689
+ "stateMutability": "view",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "internalType": "address",
696
+ "name": "account",
697
+ "type": "address"
698
+ }
699
+ ],
700
+ "name": "balanceOf",
701
+ "outputs": [
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "stateMutability": "view",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ {
714
+ "internalType": "address",
715
+ "name": "target",
716
+ "type": "address"
717
+ },
718
+ {
719
+ "internalType": "address",
720
+ "name": "rewardsAsset",
721
+ "type": "address"
722
+ },
723
+ {
724
+ "internalType": "bytes",
725
+ "name": "payload",
726
+ "type": "bytes"
727
+ }
728
+ ],
729
+ "name": "claimAdditionalRewards",
730
+ "outputs": [],
731
+ "stateMutability": "nonpayable",
732
+ "type": "function"
733
+ },
734
+ {
735
+ "inputs": [
736
+ {
737
+ "internalType": "address",
738
+ "name": "tokenAddress",
739
+ "type": "address"
740
+ }
741
+ ],
742
+ "name": "claimMiscellaneousRewards",
743
+ "outputs": [],
744
+ "stateMutability": "nonpayable",
745
+ "type": "function"
746
+ },
747
+ {
748
+ "inputs": [],
749
+ "name": "config",
750
+ "outputs": [
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "depositFee",
754
+ "type": "uint256"
755
+ },
756
+ {
757
+ "internalType": "uint256",
758
+ "name": "performanceFee",
759
+ "type": "uint256"
760
+ },
761
+ {
762
+ "internalType": "uint256",
763
+ "name": "managementFee",
764
+ "type": "uint256"
765
+ },
766
+ {
767
+ "internalType": "address",
768
+ "name": "feeRecipient",
769
+ "type": "address"
770
+ },
771
+ {
772
+ "internalType": "bool",
773
+ "name": "hasCooldown",
774
+ "type": "bool"
775
+ }
776
+ ],
777
+ "stateMutability": "view",
778
+ "type": "function"
779
+ },
780
+ {
781
+ "inputs": [
782
+ {
783
+ "components": [
784
+ {
785
+ "internalType": "uint256",
786
+ "name": "depositFee",
787
+ "type": "uint256"
788
+ },
789
+ {
790
+ "internalType": "uint256",
791
+ "name": "performanceFee",
792
+ "type": "uint256"
793
+ },
794
+ {
795
+ "internalType": "uint256",
796
+ "name": "managementFee",
797
+ "type": "uint256"
798
+ },
799
+ {
800
+ "internalType": "address",
801
+ "name": "feeRecipient",
802
+ "type": "address"
803
+ },
804
+ {
805
+ "internalType": "bool",
806
+ "name": "hasCooldown",
807
+ "type": "bool"
808
+ }
809
+ ],
810
+ "internalType": "struct AllocatorVaultV3_3.AllocatorVaultConfig",
811
+ "name": "_config",
812
+ "type": "tuple"
813
+ }
814
+ ],
815
+ "name": "configureVault",
816
+ "outputs": [],
817
+ "stateMutability": "nonpayable",
818
+ "type": "function"
819
+ },
820
+ {
821
+ "inputs": [
822
+ {
823
+ "internalType": "uint256",
824
+ "name": "shares",
825
+ "type": "uint256"
826
+ }
827
+ ],
828
+ "name": "convertToAssets",
829
+ "outputs": [
830
+ {
831
+ "internalType": "uint256",
832
+ "name": "",
833
+ "type": "uint256"
834
+ }
835
+ ],
836
+ "stateMutability": "view",
837
+ "type": "function"
838
+ },
839
+ {
840
+ "inputs": [
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "assets",
844
+ "type": "uint256"
845
+ }
846
+ ],
847
+ "name": "convertToShares",
848
+ "outputs": [
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "",
852
+ "type": "uint256"
853
+ }
854
+ ],
855
+ "stateMutability": "view",
856
+ "type": "function"
857
+ },
858
+ {
859
+ "inputs": [],
860
+ "name": "decimals",
861
+ "outputs": [
862
+ {
863
+ "internalType": "uint8",
864
+ "name": "",
865
+ "type": "uint8"
866
+ }
867
+ ],
868
+ "stateMutability": "view",
869
+ "type": "function"
870
+ },
871
+ {
872
+ "inputs": [
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "_underlying",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "address",
880
+ "name": "receiver",
881
+ "type": "address"
882
+ }
883
+ ],
884
+ "name": "deposit",
885
+ "outputs": [
886
+ {
887
+ "internalType": "uint256",
888
+ "name": "",
889
+ "type": "uint256"
890
+ }
891
+ ],
892
+ "stateMutability": "nonpayable",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [
897
+ {
898
+ "internalType": "bytes32",
899
+ "name": "role",
900
+ "type": "bytes32"
901
+ }
902
+ ],
903
+ "name": "getRoleAdmin",
904
+ "outputs": [
905
+ {
906
+ "internalType": "bytes32",
907
+ "name": "",
908
+ "type": "bytes32"
909
+ }
910
+ ],
911
+ "stateMutability": "view",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [
916
+ {
917
+ "internalType": "bytes32",
918
+ "name": "role",
919
+ "type": "bytes32"
920
+ },
921
+ {
922
+ "internalType": "address",
923
+ "name": "account",
924
+ "type": "address"
925
+ }
926
+ ],
927
+ "name": "grantRole",
928
+ "outputs": [],
929
+ "stateMutability": "nonpayable",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [],
934
+ "name": "harvest",
935
+ "outputs": [
936
+ {
937
+ "internalType": "uint256",
938
+ "name": "",
939
+ "type": "uint256"
940
+ }
941
+ ],
942
+ "stateMutability": "nonpayable",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [
947
+ {
948
+ "internalType": "bytes32",
949
+ "name": "role",
950
+ "type": "bytes32"
951
+ },
952
+ {
953
+ "internalType": "address",
954
+ "name": "account",
955
+ "type": "address"
956
+ }
957
+ ],
958
+ "name": "hasRole",
959
+ "outputs": [
960
+ {
961
+ "internalType": "bool",
962
+ "name": "",
963
+ "type": "bool"
964
+ }
965
+ ],
966
+ "stateMutability": "view",
967
+ "type": "function"
968
+ },
969
+ {
970
+ "inputs": [
971
+ {
972
+ "internalType": "address",
973
+ "name": "_underlying",
974
+ "type": "address"
975
+ },
976
+ {
977
+ "internalType": "contract IERC4626",
978
+ "name": "_strategy",
979
+ "type": "address"
980
+ },
981
+ {
982
+ "internalType": "string",
983
+ "name": "vaultTokenName",
984
+ "type": "string"
985
+ },
986
+ {
987
+ "internalType": "string",
988
+ "name": "vaultTokenSymbol",
989
+ "type": "string"
990
+ }
991
+ ],
992
+ "name": "initialize",
993
+ "outputs": [],
994
+ "stateMutability": "nonpayable",
995
+ "type": "function"
996
+ },
997
+ {
998
+ "inputs": [],
999
+ "name": "lastStamp",
1000
+ "outputs": [
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "",
1004
+ "type": "uint256"
1005
+ }
1006
+ ],
1007
+ "stateMutability": "view",
1008
+ "type": "function"
1009
+ },
1010
+ {
1011
+ "inputs": [
1012
+ {
1013
+ "internalType": "address",
1014
+ "name": "receiver",
1015
+ "type": "address"
1016
+ }
1017
+ ],
1018
+ "name": "maxDeposit",
1019
+ "outputs": [
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "",
1023
+ "type": "uint256"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "view",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "internalType": "address",
1033
+ "name": "receiver",
1034
+ "type": "address"
1035
+ }
1036
+ ],
1037
+ "name": "maxMint",
1038
+ "outputs": [
1039
+ {
1040
+ "internalType": "uint256",
1041
+ "name": "",
1042
+ "type": "uint256"
1043
+ }
1044
+ ],
1045
+ "stateMutability": "view",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [
1050
+ {
1051
+ "internalType": "address",
1052
+ "name": "owner",
1053
+ "type": "address"
1054
+ }
1055
+ ],
1056
+ "name": "maxRedeem",
1057
+ "outputs": [
1058
+ {
1059
+ "internalType": "uint256",
1060
+ "name": "",
1061
+ "type": "uint256"
1062
+ }
1063
+ ],
1064
+ "stateMutability": "view",
1065
+ "type": "function"
1066
+ },
1067
+ {
1068
+ "inputs": [
1069
+ {
1070
+ "internalType": "address",
1071
+ "name": "receiver",
1072
+ "type": "address"
1073
+ }
1074
+ ],
1075
+ "name": "maxWithdraw",
1076
+ "outputs": [
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "",
1080
+ "type": "uint256"
1081
+ }
1082
+ ],
1083
+ "stateMutability": "view",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [
1088
+ {
1089
+ "internalType": "uint256",
1090
+ "name": "shares",
1091
+ "type": "uint256"
1092
+ },
1093
+ {
1094
+ "internalType": "address",
1095
+ "name": "receiver",
1096
+ "type": "address"
1097
+ }
1098
+ ],
1099
+ "name": "mint",
1100
+ "outputs": [
1101
+ {
1102
+ "internalType": "uint256",
1103
+ "name": "",
1104
+ "type": "uint256"
1105
+ }
1106
+ ],
1107
+ "stateMutability": "nonpayable",
1108
+ "type": "function"
1109
+ },
1110
+ {
1111
+ "inputs": [],
1112
+ "name": "name",
1113
+ "outputs": [
1114
+ {
1115
+ "internalType": "string",
1116
+ "name": "",
1117
+ "type": "string"
1118
+ }
1119
+ ],
1120
+ "stateMutability": "view",
1121
+ "type": "function"
1122
+ },
1123
+ {
1124
+ "inputs": [],
1125
+ "name": "paused",
1126
+ "outputs": [
1127
+ {
1128
+ "internalType": "bool",
1129
+ "name": "",
1130
+ "type": "bool"
1131
+ }
1132
+ ],
1133
+ "stateMutability": "view",
1134
+ "type": "function"
1135
+ },
1136
+ {
1137
+ "inputs": [
1138
+ {
1139
+ "internalType": "uint256",
1140
+ "name": "_underlying",
1141
+ "type": "uint256"
1142
+ }
1143
+ ],
1144
+ "name": "previewDeposit",
1145
+ "outputs": [
1146
+ {
1147
+ "internalType": "uint256",
1148
+ "name": "",
1149
+ "type": "uint256"
1150
+ }
1151
+ ],
1152
+ "stateMutability": "view",
1153
+ "type": "function"
1154
+ },
1155
+ {
1156
+ "inputs": [
1157
+ {
1158
+ "internalType": "uint256",
1159
+ "name": "shares",
1160
+ "type": "uint256"
1161
+ }
1162
+ ],
1163
+ "name": "previewMint",
1164
+ "outputs": [
1165
+ {
1166
+ "internalType": "uint256",
1167
+ "name": "",
1168
+ "type": "uint256"
1169
+ }
1170
+ ],
1171
+ "stateMutability": "view",
1172
+ "type": "function"
1173
+ },
1174
+ {
1175
+ "inputs": [
1176
+ {
1177
+ "internalType": "uint256",
1178
+ "name": "shares",
1179
+ "type": "uint256"
1180
+ }
1181
+ ],
1182
+ "name": "previewRedeem",
1183
+ "outputs": [
1184
+ {
1185
+ "internalType": "uint256",
1186
+ "name": "",
1187
+ "type": "uint256"
1188
+ }
1189
+ ],
1190
+ "stateMutability": "view",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "uint256",
1197
+ "name": "_underlying",
1198
+ "type": "uint256"
1199
+ }
1200
+ ],
1201
+ "name": "previewWithdraw",
1202
+ "outputs": [
1203
+ {
1204
+ "internalType": "uint256",
1205
+ "name": "",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "stateMutability": "view",
1210
+ "type": "function"
1211
+ },
1212
+ {
1213
+ "inputs": [
1214
+ {
1215
+ "internalType": "uint256",
1216
+ "name": "shares",
1217
+ "type": "uint256"
1218
+ },
1219
+ {
1220
+ "internalType": "address",
1221
+ "name": "receiver",
1222
+ "type": "address"
1223
+ },
1224
+ {
1225
+ "internalType": "address",
1226
+ "name": "owner",
1227
+ "type": "address"
1228
+ }
1229
+ ],
1230
+ "name": "redeem",
1231
+ "outputs": [
1232
+ {
1233
+ "internalType": "uint256",
1234
+ "name": "",
1235
+ "type": "uint256"
1236
+ }
1237
+ ],
1238
+ "stateMutability": "nonpayable",
1239
+ "type": "function"
1240
+ },
1241
+ {
1242
+ "inputs": [
1243
+ {
1244
+ "internalType": "address",
1245
+ "name": "target",
1246
+ "type": "address"
1247
+ },
1248
+ {
1249
+ "internalType": "bytes4",
1250
+ "name": "functionSelector",
1251
+ "type": "bytes4"
1252
+ }
1253
+ ],
1254
+ "name": "removeFromWhitelist",
1255
+ "outputs": [],
1256
+ "stateMutability": "nonpayable",
1257
+ "type": "function"
1258
+ },
1259
+ {
1260
+ "inputs": [
1261
+ {
1262
+ "internalType": "bytes32",
1263
+ "name": "role",
1264
+ "type": "bytes32"
1265
+ },
1266
+ {
1267
+ "internalType": "address",
1268
+ "name": "callerConfirmation",
1269
+ "type": "address"
1270
+ }
1271
+ ],
1272
+ "name": "renounceRole",
1273
+ "outputs": [],
1274
+ "stateMutability": "nonpayable",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [
1279
+ {
1280
+ "internalType": "bytes32",
1281
+ "name": "role",
1282
+ "type": "bytes32"
1283
+ },
1284
+ {
1285
+ "internalType": "address",
1286
+ "name": "account",
1287
+ "type": "address"
1288
+ }
1289
+ ],
1290
+ "name": "revokeRole",
1291
+ "outputs": [],
1292
+ "stateMutability": "nonpayable",
1293
+ "type": "function"
1294
+ },
1295
+ {
1296
+ "inputs": [
1297
+ {
1298
+ "internalType": "bool",
1299
+ "name": "_paused",
1300
+ "type": "bool"
1301
+ }
1302
+ ],
1303
+ "name": "setPaused",
1304
+ "outputs": [],
1305
+ "stateMutability": "nonpayable",
1306
+ "type": "function"
1307
+ },
1308
+ {
1309
+ "inputs": [],
1310
+ "name": "strategy",
1311
+ "outputs": [
1312
+ {
1313
+ "internalType": "contract IERC4626",
1314
+ "name": "",
1315
+ "type": "address"
1316
+ }
1317
+ ],
1318
+ "stateMutability": "view",
1319
+ "type": "function"
1320
+ },
1321
+ {
1322
+ "inputs": [
1323
+ {
1324
+ "internalType": "bytes4",
1325
+ "name": "interfaceId",
1326
+ "type": "bytes4"
1327
+ }
1328
+ ],
1329
+ "name": "supportsInterface",
1330
+ "outputs": [
1331
+ {
1332
+ "internalType": "bool",
1333
+ "name": "",
1334
+ "type": "bool"
1335
+ }
1336
+ ],
1337
+ "stateMutability": "view",
1338
+ "type": "function"
1339
+ },
1340
+ {
1341
+ "inputs": [],
1342
+ "name": "symbol",
1343
+ "outputs": [
1344
+ {
1345
+ "internalType": "string",
1346
+ "name": "",
1347
+ "type": "string"
1348
+ }
1349
+ ],
1350
+ "stateMutability": "view",
1351
+ "type": "function"
1352
+ },
1353
+ {
1354
+ "inputs": [],
1355
+ "name": "totalAssets",
1356
+ "outputs": [
1357
+ {
1358
+ "internalType": "uint256",
1359
+ "name": "",
1360
+ "type": "uint256"
1361
+ }
1362
+ ],
1363
+ "stateMutability": "view",
1364
+ "type": "function"
1365
+ },
1366
+ {
1367
+ "inputs": [],
1368
+ "name": "totalSupply",
1369
+ "outputs": [
1370
+ {
1371
+ "internalType": "uint256",
1372
+ "name": "",
1373
+ "type": "uint256"
1374
+ }
1375
+ ],
1376
+ "stateMutability": "view",
1377
+ "type": "function"
1378
+ },
1379
+ {
1380
+ "inputs": [],
1381
+ "name": "totalUnderlyingStamp",
1382
+ "outputs": [
1383
+ {
1384
+ "internalType": "uint256",
1385
+ "name": "",
1386
+ "type": "uint256"
1387
+ }
1388
+ ],
1389
+ "stateMutability": "view",
1390
+ "type": "function"
1391
+ },
1392
+ {
1393
+ "inputs": [
1394
+ {
1395
+ "internalType": "address",
1396
+ "name": "to",
1397
+ "type": "address"
1398
+ },
1399
+ {
1400
+ "internalType": "uint256",
1401
+ "name": "value",
1402
+ "type": "uint256"
1403
+ }
1404
+ ],
1405
+ "name": "transfer",
1406
+ "outputs": [
1407
+ {
1408
+ "internalType": "bool",
1409
+ "name": "",
1410
+ "type": "bool"
1411
+ }
1412
+ ],
1413
+ "stateMutability": "nonpayable",
1414
+ "type": "function"
1415
+ },
1416
+ {
1417
+ "inputs": [
1418
+ {
1419
+ "internalType": "address",
1420
+ "name": "from",
1421
+ "type": "address"
1422
+ },
1423
+ {
1424
+ "internalType": "address",
1425
+ "name": "to",
1426
+ "type": "address"
1427
+ },
1428
+ {
1429
+ "internalType": "uint256",
1430
+ "name": "value",
1431
+ "type": "uint256"
1432
+ }
1433
+ ],
1434
+ "name": "transferFrom",
1435
+ "outputs": [
1436
+ {
1437
+ "internalType": "bool",
1438
+ "name": "",
1439
+ "type": "bool"
1440
+ }
1441
+ ],
1442
+ "stateMutability": "nonpayable",
1443
+ "type": "function"
1444
+ },
1445
+ {
1446
+ "inputs": [],
1447
+ "name": "underlying",
1448
+ "outputs": [
1449
+ {
1450
+ "internalType": "address",
1451
+ "name": "",
1452
+ "type": "address"
1453
+ }
1454
+ ],
1455
+ "stateMutability": "view",
1456
+ "type": "function"
1457
+ },
1458
+ {
1459
+ "inputs": [
1460
+ {
1461
+ "internalType": "address",
1462
+ "name": "target",
1463
+ "type": "address"
1464
+ },
1465
+ {
1466
+ "internalType": "bytes4",
1467
+ "name": "selector",
1468
+ "type": "bytes4"
1469
+ }
1470
+ ],
1471
+ "name": "whitelistedTargets",
1472
+ "outputs": [
1473
+ {
1474
+ "internalType": "bool",
1475
+ "name": "isWhitelisted",
1476
+ "type": "bool"
1477
+ }
1478
+ ],
1479
+ "stateMutability": "view",
1480
+ "type": "function"
1481
+ },
1482
+ {
1483
+ "inputs": [
1484
+ {
1485
+ "internalType": "uint256",
1486
+ "name": "_underlying",
1487
+ "type": "uint256"
1488
+ },
1489
+ {
1490
+ "internalType": "address",
1491
+ "name": "receiver",
1492
+ "type": "address"
1493
+ },
1494
+ {
1495
+ "internalType": "address",
1496
+ "name": "owner",
1497
+ "type": "address"
1498
+ }
1499
+ ],
1500
+ "name": "withdraw",
1501
+ "outputs": [
1502
+ {
1503
+ "internalType": "uint256",
1504
+ "name": "",
1505
+ "type": "uint256"
1506
+ }
1507
+ ],
1508
+ "stateMutability": "nonpayable",
1509
+ "type": "function"
1510
+ }
1511
+ ];
1512
+ /**
1513
+ * AllocatorVaultV3_3_json Contract Class
1514
+ *
1515
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1516
+ *
1517
+ * @example
1518
+ * ```typescript
1519
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1520
+ * import { mainnet } from 'viem/chains';
1521
+ * import { AllocatorVaultV3_3_json } from 'AllocatorVaultV3_3_json';
1522
+ *
1523
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1524
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1525
+ *
1526
+ * const contract = new AllocatorVaultV3_3_json('0x...', { publicClient, walletClient });
1527
+ *
1528
+ * // Read functions
1529
+ * const result = await contract.balanceOf('0x...');
1530
+ *
1531
+ * // Write functions
1532
+ * const hash = await contract.transfer('0x...', 1000n);
1533
+ *
1534
+ * // Simulate transactions (dry-run)
1535
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1536
+ * console.log('Gas estimate:', simulation.request.gas);
1537
+ *
1538
+ * // Watch events
1539
+ * const unwatch = contract.watch.Transfer((event) => {
1540
+ * console.log('Transfer event:', event);
1541
+ * });
1542
+ * ```
1543
+ */
1544
+ class AllocatorVaultV3_3_json {
1545
+ constructor(address, clients) {
1546
+ this.contractAddress = address;
1547
+ this.publicClient = clients.publicClient;
1548
+ this.contract = (0, viem_1.getContract)({
1549
+ address,
1550
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
1551
+ client: {
1552
+ public: clients.publicClient,
1553
+ wallet: clients.walletClient,
1554
+ },
1555
+ });
1556
+ }
1557
+ /**
1558
+ * Get the contract address
1559
+ */
1560
+ get address() {
1561
+ return this.contractAddress;
1562
+ }
1563
+ /**
1564
+ * Get the underlying viem contract instance
1565
+ */
1566
+ getContract() {
1567
+ return this.contract;
1568
+ }
1569
+ /**
1570
+ * DEFAULT_ADMIN_ROLE
1571
+ * view
1572
+ */
1573
+ async DEFAULT_ADMIN_ROLE() {
1574
+ return this.contract.read.DEFAULT_ADMIN_ROLE();
1575
+ }
1576
+ /**
1577
+ * HARVESTER_ROLE
1578
+ * view
1579
+ */
1580
+ async HARVESTER_ROLE() {
1581
+ return this.contract.read.HARVESTER_ROLE();
1582
+ }
1583
+ /**
1584
+ * allowance
1585
+ * view
1586
+ */
1587
+ async allowance(owner, spender) {
1588
+ return this.contract.read.allowance([owner, spender]);
1589
+ }
1590
+ /**
1591
+ * asset
1592
+ * view
1593
+ */
1594
+ async asset() {
1595
+ return this.contract.read.asset();
1596
+ }
1597
+ /**
1598
+ * balanceOf
1599
+ * view
1600
+ */
1601
+ async balanceOf(account) {
1602
+ return this.contract.read.balanceOf([account]);
1603
+ }
1604
+ /**
1605
+ * config
1606
+ * view
1607
+ */
1608
+ async config() {
1609
+ return this.contract.read.config();
1610
+ }
1611
+ /**
1612
+ * convertToAssets
1613
+ * view
1614
+ */
1615
+ async convertToAssets(shares) {
1616
+ return this.contract.read.convertToAssets([shares]);
1617
+ }
1618
+ /**
1619
+ * convertToShares
1620
+ * view
1621
+ */
1622
+ async convertToShares(assets) {
1623
+ return this.contract.read.convertToShares([assets]);
1624
+ }
1625
+ /**
1626
+ * decimals
1627
+ * view
1628
+ */
1629
+ async decimals() {
1630
+ return this.contract.read.decimals();
1631
+ }
1632
+ /**
1633
+ * getRoleAdmin
1634
+ * view
1635
+ */
1636
+ async getRoleAdmin(role) {
1637
+ return this.contract.read.getRoleAdmin([role]);
1638
+ }
1639
+ /**
1640
+ * hasRole
1641
+ * view
1642
+ */
1643
+ async hasRole(role, account) {
1644
+ return this.contract.read.hasRole([role, account]);
1645
+ }
1646
+ /**
1647
+ * lastStamp
1648
+ * view
1649
+ */
1650
+ async lastStamp() {
1651
+ return this.contract.read.lastStamp();
1652
+ }
1653
+ /**
1654
+ * maxDeposit
1655
+ * view
1656
+ */
1657
+ async maxDeposit(receiver) {
1658
+ return this.contract.read.maxDeposit([receiver]);
1659
+ }
1660
+ /**
1661
+ * maxMint
1662
+ * view
1663
+ */
1664
+ async maxMint(receiver) {
1665
+ return this.contract.read.maxMint([receiver]);
1666
+ }
1667
+ /**
1668
+ * maxRedeem
1669
+ * view
1670
+ */
1671
+ async maxRedeem(owner) {
1672
+ return this.contract.read.maxRedeem([owner]);
1673
+ }
1674
+ /**
1675
+ * maxWithdraw
1676
+ * view
1677
+ */
1678
+ async maxWithdraw(receiver) {
1679
+ return this.contract.read.maxWithdraw([receiver]);
1680
+ }
1681
+ /**
1682
+ * name
1683
+ * view
1684
+ */
1685
+ async name() {
1686
+ return this.contract.read.name();
1687
+ }
1688
+ /**
1689
+ * paused
1690
+ * view
1691
+ */
1692
+ async paused() {
1693
+ return this.contract.read.paused();
1694
+ }
1695
+ /**
1696
+ * previewDeposit
1697
+ * view
1698
+ */
1699
+ async previewDeposit(_underlying) {
1700
+ return this.contract.read.previewDeposit([_underlying]);
1701
+ }
1702
+ /**
1703
+ * previewMint
1704
+ * view
1705
+ */
1706
+ async previewMint(shares) {
1707
+ return this.contract.read.previewMint([shares]);
1708
+ }
1709
+ /**
1710
+ * previewRedeem
1711
+ * view
1712
+ */
1713
+ async previewRedeem(shares) {
1714
+ return this.contract.read.previewRedeem([shares]);
1715
+ }
1716
+ /**
1717
+ * previewWithdraw
1718
+ * view
1719
+ */
1720
+ async previewWithdraw(_underlying) {
1721
+ return this.contract.read.previewWithdraw([_underlying]);
1722
+ }
1723
+ /**
1724
+ * strategy
1725
+ * view
1726
+ */
1727
+ async strategy() {
1728
+ return this.contract.read.strategy();
1729
+ }
1730
+ /**
1731
+ * supportsInterface
1732
+ * view
1733
+ */
1734
+ async supportsInterface(interfaceId) {
1735
+ return this.contract.read.supportsInterface([interfaceId]);
1736
+ }
1737
+ /**
1738
+ * symbol
1739
+ * view
1740
+ */
1741
+ async symbol() {
1742
+ return this.contract.read.symbol();
1743
+ }
1744
+ /**
1745
+ * totalAssets
1746
+ * view
1747
+ */
1748
+ async totalAssets() {
1749
+ return this.contract.read.totalAssets();
1750
+ }
1751
+ /**
1752
+ * totalSupply
1753
+ * view
1754
+ */
1755
+ async totalSupply() {
1756
+ return this.contract.read.totalSupply();
1757
+ }
1758
+ /**
1759
+ * totalUnderlyingStamp
1760
+ * view
1761
+ */
1762
+ async totalUnderlyingStamp() {
1763
+ return this.contract.read.totalUnderlyingStamp();
1764
+ }
1765
+ /**
1766
+ * underlying
1767
+ * view
1768
+ */
1769
+ async underlying() {
1770
+ return this.contract.read.underlying();
1771
+ }
1772
+ /**
1773
+ * whitelistedTargets
1774
+ * view
1775
+ */
1776
+ async whitelistedTargets(target, selector) {
1777
+ return this.contract.read.whitelistedTargets([target, selector]);
1778
+ }
1779
+ /**
1780
+ * addToWhitelist
1781
+ * nonpayable
1782
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1783
+ */
1784
+ async addToWhitelist(target, functionSelector, options) {
1785
+ if (!this.contract.write) {
1786
+ throw new Error('Wallet client is required for write operations');
1787
+ }
1788
+ return this.contract.write.addToWhitelist([target, functionSelector], options);
1789
+ }
1790
+ /**
1791
+ * approve
1792
+ * nonpayable
1793
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1794
+ */
1795
+ async approve(spender, value, options) {
1796
+ if (!this.contract.write) {
1797
+ throw new Error('Wallet client is required for write operations');
1798
+ }
1799
+ return this.contract.write.approve([spender, value], options);
1800
+ }
1801
+ /**
1802
+ * claimAdditionalRewards
1803
+ * nonpayable
1804
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1805
+ */
1806
+ async claimAdditionalRewards(target, rewardsAsset, payload, options) {
1807
+ if (!this.contract.write) {
1808
+ throw new Error('Wallet client is required for write operations');
1809
+ }
1810
+ return this.contract.write.claimAdditionalRewards([target, rewardsAsset, payload], options);
1811
+ }
1812
+ /**
1813
+ * claimMiscellaneousRewards
1814
+ * nonpayable
1815
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1816
+ */
1817
+ async claimMiscellaneousRewards(tokenAddress, options) {
1818
+ if (!this.contract.write) {
1819
+ throw new Error('Wallet client is required for write operations');
1820
+ }
1821
+ return this.contract.write.claimMiscellaneousRewards([tokenAddress], options);
1822
+ }
1823
+ /**
1824
+ * configureVault
1825
+ * nonpayable
1826
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1827
+ */
1828
+ async configureVault(_config, options) {
1829
+ if (!this.contract.write) {
1830
+ throw new Error('Wallet client is required for write operations');
1831
+ }
1832
+ return this.contract.write.configureVault([_config], options);
1833
+ }
1834
+ /**
1835
+ * deposit
1836
+ * nonpayable
1837
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1838
+ */
1839
+ async deposit(_underlying, receiver, options) {
1840
+ if (!this.contract.write) {
1841
+ throw new Error('Wallet client is required for write operations');
1842
+ }
1843
+ return this.contract.write.deposit([_underlying, receiver], options);
1844
+ }
1845
+ /**
1846
+ * grantRole
1847
+ * nonpayable
1848
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1849
+ */
1850
+ async grantRole(role, account, options) {
1851
+ if (!this.contract.write) {
1852
+ throw new Error('Wallet client is required for write operations');
1853
+ }
1854
+ return this.contract.write.grantRole([role, account], options);
1855
+ }
1856
+ /**
1857
+ * harvest
1858
+ * nonpayable
1859
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1860
+ */
1861
+ async harvest(options) {
1862
+ if (!this.contract.write) {
1863
+ throw new Error('Wallet client is required for write operations');
1864
+ }
1865
+ return this.contract.write.harvest(options);
1866
+ }
1867
+ /**
1868
+ * initialize
1869
+ * nonpayable
1870
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1871
+ */
1872
+ async initialize(_underlying, _strategy, vaultTokenName, vaultTokenSymbol, options) {
1873
+ if (!this.contract.write) {
1874
+ throw new Error('Wallet client is required for write operations');
1875
+ }
1876
+ return this.contract.write.initialize([_underlying, _strategy, vaultTokenName, vaultTokenSymbol], options);
1877
+ }
1878
+ /**
1879
+ * mint
1880
+ * nonpayable
1881
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1882
+ */
1883
+ async mint(shares, receiver, options) {
1884
+ if (!this.contract.write) {
1885
+ throw new Error('Wallet client is required for write operations');
1886
+ }
1887
+ return this.contract.write.mint([shares, receiver], options);
1888
+ }
1889
+ /**
1890
+ * redeem
1891
+ * nonpayable
1892
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1893
+ */
1894
+ async redeem(shares, receiver, owner, options) {
1895
+ if (!this.contract.write) {
1896
+ throw new Error('Wallet client is required for write operations');
1897
+ }
1898
+ return this.contract.write.redeem([shares, receiver, owner], options);
1899
+ }
1900
+ /**
1901
+ * removeFromWhitelist
1902
+ * nonpayable
1903
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1904
+ */
1905
+ async removeFromWhitelist(target, functionSelector, options) {
1906
+ if (!this.contract.write) {
1907
+ throw new Error('Wallet client is required for write operations');
1908
+ }
1909
+ return this.contract.write.removeFromWhitelist([target, functionSelector], options);
1910
+ }
1911
+ /**
1912
+ * renounceRole
1913
+ * nonpayable
1914
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1915
+ */
1916
+ async renounceRole(role, callerConfirmation, options) {
1917
+ if (!this.contract.write) {
1918
+ throw new Error('Wallet client is required for write operations');
1919
+ }
1920
+ return this.contract.write.renounceRole([role, callerConfirmation], options);
1921
+ }
1922
+ /**
1923
+ * revokeRole
1924
+ * nonpayable
1925
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1926
+ */
1927
+ async revokeRole(role, account, options) {
1928
+ if (!this.contract.write) {
1929
+ throw new Error('Wallet client is required for write operations');
1930
+ }
1931
+ return this.contract.write.revokeRole([role, account], options);
1932
+ }
1933
+ /**
1934
+ * setPaused
1935
+ * nonpayable
1936
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1937
+ */
1938
+ async setPaused(_paused, options) {
1939
+ if (!this.contract.write) {
1940
+ throw new Error('Wallet client is required for write operations');
1941
+ }
1942
+ return this.contract.write.setPaused([_paused], options);
1943
+ }
1944
+ /**
1945
+ * transfer
1946
+ * nonpayable
1947
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1948
+ */
1949
+ async transfer(to, value, options) {
1950
+ if (!this.contract.write) {
1951
+ throw new Error('Wallet client is required for write operations');
1952
+ }
1953
+ return this.contract.write.transfer([to, value], options);
1954
+ }
1955
+ /**
1956
+ * transferFrom
1957
+ * nonpayable
1958
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1959
+ */
1960
+ async transferFrom(from, to, value, options) {
1961
+ if (!this.contract.write) {
1962
+ throw new Error('Wallet client is required for write operations');
1963
+ }
1964
+ return this.contract.write.transferFrom([from, to, value], options);
1965
+ }
1966
+ /**
1967
+ * withdraw
1968
+ * nonpayable
1969
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1970
+ */
1971
+ async withdraw(_underlying, receiver, owner, options) {
1972
+ if (!this.contract.write) {
1973
+ throw new Error('Wallet client is required for write operations');
1974
+ }
1975
+ return this.contract.write.withdraw([_underlying, receiver, owner], options);
1976
+ }
1977
+ /**
1978
+ * Simulate contract write operations (dry-run without sending transaction)
1979
+ *
1980
+ * @example
1981
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1982
+ * console.log('Gas estimate:', result.request.gas);
1983
+ * console.log('Would succeed:', result.result);
1984
+ */
1985
+ get simulate() {
1986
+ const contract = this.contract;
1987
+ if (!contract.simulate) {
1988
+ throw new Error('Public client is required for simulation');
1989
+ }
1990
+ return {
1991
+ /**
1992
+ * Simulate addToWhitelist
1993
+ * Returns gas estimate and result without sending transaction
1994
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1995
+ */
1996
+ async addToWhitelist(target, functionSelector, options) {
1997
+ return contract.simulate.addToWhitelist([target, functionSelector], options);
1998
+ },
1999
+ /**
2000
+ * Simulate approve
2001
+ * Returns gas estimate and result without sending transaction
2002
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2003
+ */
2004
+ async approve(spender, value, options) {
2005
+ return contract.simulate.approve([spender, value], options);
2006
+ },
2007
+ /**
2008
+ * Simulate claimAdditionalRewards
2009
+ * Returns gas estimate and result without sending transaction
2010
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2011
+ */
2012
+ async claimAdditionalRewards(target, rewardsAsset, payload, options) {
2013
+ return contract.simulate.claimAdditionalRewards([target, rewardsAsset, payload], options);
2014
+ },
2015
+ /**
2016
+ * Simulate claimMiscellaneousRewards
2017
+ * Returns gas estimate and result without sending transaction
2018
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2019
+ */
2020
+ async claimMiscellaneousRewards(tokenAddress, options) {
2021
+ return contract.simulate.claimMiscellaneousRewards([tokenAddress], options);
2022
+ },
2023
+ /**
2024
+ * Simulate configureVault
2025
+ * Returns gas estimate and result without sending transaction
2026
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2027
+ */
2028
+ async configureVault(_config, options) {
2029
+ return contract.simulate.configureVault([_config], options);
2030
+ },
2031
+ /**
2032
+ * Simulate deposit
2033
+ * Returns gas estimate and result without sending transaction
2034
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2035
+ */
2036
+ async deposit(_underlying, receiver, options) {
2037
+ return contract.simulate.deposit([_underlying, receiver], options);
2038
+ },
2039
+ /**
2040
+ * Simulate grantRole
2041
+ * Returns gas estimate and result without sending transaction
2042
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2043
+ */
2044
+ async grantRole(role, account, options) {
2045
+ return contract.simulate.grantRole([role, account], options);
2046
+ },
2047
+ /**
2048
+ * Simulate harvest
2049
+ * Returns gas estimate and result without sending transaction
2050
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2051
+ */
2052
+ async harvest(options) {
2053
+ return contract.simulate.harvest(options);
2054
+ },
2055
+ /**
2056
+ * Simulate initialize
2057
+ * Returns gas estimate and result without sending transaction
2058
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2059
+ */
2060
+ async initialize(_underlying, _strategy, vaultTokenName, vaultTokenSymbol, options) {
2061
+ return contract.simulate.initialize([_underlying, _strategy, vaultTokenName, vaultTokenSymbol], options);
2062
+ },
2063
+ /**
2064
+ * Simulate mint
2065
+ * Returns gas estimate and result without sending transaction
2066
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2067
+ */
2068
+ async mint(shares, receiver, options) {
2069
+ return contract.simulate.mint([shares, receiver], options);
2070
+ },
2071
+ /**
2072
+ * Simulate redeem
2073
+ * Returns gas estimate and result without sending transaction
2074
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2075
+ */
2076
+ async redeem(shares, receiver, owner, options) {
2077
+ return contract.simulate.redeem([shares, receiver, owner], options);
2078
+ },
2079
+ /**
2080
+ * Simulate removeFromWhitelist
2081
+ * Returns gas estimate and result without sending transaction
2082
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2083
+ */
2084
+ async removeFromWhitelist(target, functionSelector, options) {
2085
+ return contract.simulate.removeFromWhitelist([target, functionSelector], options);
2086
+ },
2087
+ /**
2088
+ * Simulate renounceRole
2089
+ * Returns gas estimate and result without sending transaction
2090
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2091
+ */
2092
+ async renounceRole(role, callerConfirmation, options) {
2093
+ return contract.simulate.renounceRole([role, callerConfirmation], options);
2094
+ },
2095
+ /**
2096
+ * Simulate revokeRole
2097
+ * Returns gas estimate and result without sending transaction
2098
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2099
+ */
2100
+ async revokeRole(role, account, options) {
2101
+ return contract.simulate.revokeRole([role, account], options);
2102
+ },
2103
+ /**
2104
+ * Simulate setPaused
2105
+ * Returns gas estimate and result without sending transaction
2106
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2107
+ */
2108
+ async setPaused(_paused, options) {
2109
+ return contract.simulate.setPaused([_paused], options);
2110
+ },
2111
+ /**
2112
+ * Simulate transfer
2113
+ * Returns gas estimate and result without sending transaction
2114
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2115
+ */
2116
+ async transfer(to, value, options) {
2117
+ return contract.simulate.transfer([to, value], options);
2118
+ },
2119
+ /**
2120
+ * Simulate transferFrom
2121
+ * Returns gas estimate and result without sending transaction
2122
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2123
+ */
2124
+ async transferFrom(from, to, value, options) {
2125
+ return contract.simulate.transferFrom([from, to, value], options);
2126
+ },
2127
+ /**
2128
+ * Simulate withdraw
2129
+ * Returns gas estimate and result without sending transaction
2130
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2131
+ */
2132
+ async withdraw(_underlying, receiver, owner, options) {
2133
+ return contract.simulate.withdraw([_underlying, receiver, owner], options);
2134
+ }
2135
+ };
2136
+ }
2137
+ /**
2138
+ * Watch contract events
2139
+ *
2140
+ * @example
2141
+ * // Watch all Transfer events
2142
+ * const unwatch = contract.watch.Transfer((event) => {
2143
+ * console.log('Transfer:', event);
2144
+ * });
2145
+ *
2146
+ * // Stop watching
2147
+ * unwatch();
2148
+ */
2149
+ get watch() {
2150
+ return {
2151
+ /**
2152
+ * Watch Approval events
2153
+ * @param callback Function to call when event is emitted
2154
+ * @param filter Optional filter for indexed parameters
2155
+ * @returns Unwatch function to stop listening
2156
+ */
2157
+ Approval: (callback, filter) => {
2158
+ return this.publicClient.watchContractEvent({
2159
+ address: this.contractAddress,
2160
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2161
+ eventName: 'Approval',
2162
+ args: filter,
2163
+ onLogs: (logs) => {
2164
+ logs.forEach((log) => {
2165
+ callback(log.args);
2166
+ });
2167
+ },
2168
+ });
2169
+ },
2170
+ /**
2171
+ * Watch Deposit events
2172
+ * @param callback Function to call when event is emitted
2173
+ * @param filter Optional filter for indexed parameters
2174
+ * @returns Unwatch function to stop listening
2175
+ */
2176
+ Deposit: (callback, filter) => {
2177
+ return this.publicClient.watchContractEvent({
2178
+ address: this.contractAddress,
2179
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2180
+ eventName: 'Deposit',
2181
+ args: filter,
2182
+ onLogs: (logs) => {
2183
+ logs.forEach((log) => {
2184
+ callback(log.args);
2185
+ });
2186
+ },
2187
+ });
2188
+ },
2189
+ /**
2190
+ * Watch Harvested events
2191
+ * @param callback Function to call when event is emitted
2192
+ * @param filter Optional filter for indexed parameters
2193
+ * @returns Unwatch function to stop listening
2194
+ */
2195
+ Harvested: (callback, filter) => {
2196
+ return this.publicClient.watchContractEvent({
2197
+ address: this.contractAddress,
2198
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2199
+ eventName: 'Harvested',
2200
+ args: filter,
2201
+ onLogs: (logs) => {
2202
+ logs.forEach((log) => {
2203
+ callback(log.args);
2204
+ });
2205
+ },
2206
+ });
2207
+ },
2208
+ /**
2209
+ * Watch Initialized events
2210
+ * @param callback Function to call when event is emitted
2211
+ * @param filter Optional filter for indexed parameters
2212
+ * @returns Unwatch function to stop listening
2213
+ */
2214
+ Initialized: (callback) => {
2215
+ return this.publicClient.watchContractEvent({
2216
+ address: this.contractAddress,
2217
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2218
+ eventName: 'Initialized',
2219
+ onLogs: (logs) => {
2220
+ logs.forEach((log) => {
2221
+ callback(log.args);
2222
+ });
2223
+ },
2224
+ });
2225
+ },
2226
+ /**
2227
+ * Watch MiscellaneousRewardClaimed events
2228
+ * @param callback Function to call when event is emitted
2229
+ * @param filter Optional filter for indexed parameters
2230
+ * @returns Unwatch function to stop listening
2231
+ */
2232
+ MiscellaneousRewardClaimed: (callback, filter) => {
2233
+ return this.publicClient.watchContractEvent({
2234
+ address: this.contractAddress,
2235
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2236
+ eventName: 'MiscellaneousRewardClaimed',
2237
+ args: filter,
2238
+ onLogs: (logs) => {
2239
+ logs.forEach((log) => {
2240
+ callback(log.args);
2241
+ });
2242
+ },
2243
+ });
2244
+ },
2245
+ /**
2246
+ * Watch PausedSet events
2247
+ * @param callback Function to call when event is emitted
2248
+ * @param filter Optional filter for indexed parameters
2249
+ * @returns Unwatch function to stop listening
2250
+ */
2251
+ PausedSet: (callback) => {
2252
+ return this.publicClient.watchContractEvent({
2253
+ address: this.contractAddress,
2254
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2255
+ eventName: 'PausedSet',
2256
+ onLogs: (logs) => {
2257
+ logs.forEach((log) => {
2258
+ callback(log.args);
2259
+ });
2260
+ },
2261
+ });
2262
+ },
2263
+ /**
2264
+ * Watch RewardsClaimed events
2265
+ * @param callback Function to call when event is emitted
2266
+ * @param filter Optional filter for indexed parameters
2267
+ * @returns Unwatch function to stop listening
2268
+ */
2269
+ RewardsClaimed: (callback, filter) => {
2270
+ return this.publicClient.watchContractEvent({
2271
+ address: this.contractAddress,
2272
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2273
+ eventName: 'RewardsClaimed',
2274
+ args: filter,
2275
+ onLogs: (logs) => {
2276
+ logs.forEach((log) => {
2277
+ callback(log.args);
2278
+ });
2279
+ },
2280
+ });
2281
+ },
2282
+ /**
2283
+ * Watch RoleAdminChanged events
2284
+ * @param callback Function to call when event is emitted
2285
+ * @param filter Optional filter for indexed parameters
2286
+ * @returns Unwatch function to stop listening
2287
+ */
2288
+ RoleAdminChanged: (callback, filter) => {
2289
+ return this.publicClient.watchContractEvent({
2290
+ address: this.contractAddress,
2291
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2292
+ eventName: 'RoleAdminChanged',
2293
+ args: filter,
2294
+ onLogs: (logs) => {
2295
+ logs.forEach((log) => {
2296
+ callback(log.args);
2297
+ });
2298
+ },
2299
+ });
2300
+ },
2301
+ /**
2302
+ * Watch RoleGranted events
2303
+ * @param callback Function to call when event is emitted
2304
+ * @param filter Optional filter for indexed parameters
2305
+ * @returns Unwatch function to stop listening
2306
+ */
2307
+ RoleGranted: (callback, filter) => {
2308
+ return this.publicClient.watchContractEvent({
2309
+ address: this.contractAddress,
2310
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2311
+ eventName: 'RoleGranted',
2312
+ args: filter,
2313
+ onLogs: (logs) => {
2314
+ logs.forEach((log) => {
2315
+ callback(log.args);
2316
+ });
2317
+ },
2318
+ });
2319
+ },
2320
+ /**
2321
+ * Watch RoleRevoked events
2322
+ * @param callback Function to call when event is emitted
2323
+ * @param filter Optional filter for indexed parameters
2324
+ * @returns Unwatch function to stop listening
2325
+ */
2326
+ RoleRevoked: (callback, filter) => {
2327
+ return this.publicClient.watchContractEvent({
2328
+ address: this.contractAddress,
2329
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2330
+ eventName: 'RoleRevoked',
2331
+ args: filter,
2332
+ onLogs: (logs) => {
2333
+ logs.forEach((log) => {
2334
+ callback(log.args);
2335
+ });
2336
+ },
2337
+ });
2338
+ },
2339
+ /**
2340
+ * Watch Transfer events
2341
+ * @param callback Function to call when event is emitted
2342
+ * @param filter Optional filter for indexed parameters
2343
+ * @returns Unwatch function to stop listening
2344
+ */
2345
+ Transfer: (callback, filter) => {
2346
+ return this.publicClient.watchContractEvent({
2347
+ address: this.contractAddress,
2348
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2349
+ eventName: 'Transfer',
2350
+ args: filter,
2351
+ onLogs: (logs) => {
2352
+ logs.forEach((log) => {
2353
+ callback(log.args);
2354
+ });
2355
+ },
2356
+ });
2357
+ },
2358
+ /**
2359
+ * Watch VaultConfigured events
2360
+ * @param callback Function to call when event is emitted
2361
+ * @param filter Optional filter for indexed parameters
2362
+ * @returns Unwatch function to stop listening
2363
+ */
2364
+ VaultConfigured: (callback) => {
2365
+ return this.publicClient.watchContractEvent({
2366
+ address: this.contractAddress,
2367
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2368
+ eventName: 'VaultConfigured',
2369
+ onLogs: (logs) => {
2370
+ logs.forEach((log) => {
2371
+ callback(log.args);
2372
+ });
2373
+ },
2374
+ });
2375
+ },
2376
+ /**
2377
+ * Watch Whitelisted events
2378
+ * @param callback Function to call when event is emitted
2379
+ * @param filter Optional filter for indexed parameters
2380
+ * @returns Unwatch function to stop listening
2381
+ */
2382
+ Whitelisted: (callback, filter) => {
2383
+ return this.publicClient.watchContractEvent({
2384
+ address: this.contractAddress,
2385
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2386
+ eventName: 'Whitelisted',
2387
+ args: filter,
2388
+ onLogs: (logs) => {
2389
+ logs.forEach((log) => {
2390
+ callback(log.args);
2391
+ });
2392
+ },
2393
+ });
2394
+ },
2395
+ /**
2396
+ * Watch Withdraw events
2397
+ * @param callback Function to call when event is emitted
2398
+ * @param filter Optional filter for indexed parameters
2399
+ * @returns Unwatch function to stop listening
2400
+ */
2401
+ Withdraw: (callback, filter) => {
2402
+ return this.publicClient.watchContractEvent({
2403
+ address: this.contractAddress,
2404
+ abi: exports.AllocatorVaultV3_3_jsonAbi,
2405
+ eventName: 'Withdraw',
2406
+ args: filter,
2407
+ onLogs: (logs) => {
2408
+ logs.forEach((log) => {
2409
+ callback(log.args);
2410
+ });
2411
+ },
2412
+ });
2413
+ }
2414
+ };
2415
+ }
2416
+ }
2417
+ exports.AllocatorVaultV3_3_json = AllocatorVaultV3_3_json;