@underscore-finance/sdk 1.2.3 → 1.2.4

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,2702 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ anonymous: false,
9
+ inputs: [
10
+ {
11
+ indexed: true,
12
+ name: 'sender',
13
+ type: 'address',
14
+ },
15
+ {
16
+ indexed: true,
17
+ name: 'owner',
18
+ type: 'address',
19
+ },
20
+ {
21
+ indexed: false,
22
+ name: 'assets',
23
+ type: 'uint256',
24
+ },
25
+ {
26
+ indexed: false,
27
+ name: 'shares',
28
+ type: 'uint256',
29
+ },
30
+ ],
31
+ name: 'Deposit',
32
+ type: 'event',
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: true,
39
+ name: 'sender',
40
+ type: 'address',
41
+ },
42
+ {
43
+ indexed: true,
44
+ name: 'receiver',
45
+ type: 'address',
46
+ },
47
+ {
48
+ indexed: true,
49
+ name: 'owner',
50
+ type: 'address',
51
+ },
52
+ {
53
+ indexed: false,
54
+ name: 'assets',
55
+ type: 'uint256',
56
+ },
57
+ {
58
+ indexed: false,
59
+ name: 'shares',
60
+ type: 'uint256',
61
+ },
62
+ ],
63
+ name: 'Withdraw',
64
+ type: 'event',
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ name: 'amount',
72
+ type: 'uint256',
73
+ },
74
+ {
75
+ indexed: true,
76
+ name: 'recipient',
77
+ type: 'address',
78
+ },
79
+ ],
80
+ name: 'LeftoversSwept',
81
+ type: 'event',
82
+ },
83
+ {
84
+ anonymous: false,
85
+ inputs: [
86
+ {
87
+ indexed: true,
88
+ name: 'sender',
89
+ type: 'address',
90
+ },
91
+ {
92
+ indexed: true,
93
+ name: 'recipient',
94
+ type: 'address',
95
+ },
96
+ {
97
+ indexed: false,
98
+ name: 'amount',
99
+ type: 'uint256',
100
+ },
101
+ ],
102
+ name: 'Transfer',
103
+ type: 'event',
104
+ },
105
+ {
106
+ anonymous: false,
107
+ inputs: [
108
+ {
109
+ indexed: true,
110
+ name: 'owner',
111
+ type: 'address',
112
+ },
113
+ {
114
+ indexed: true,
115
+ name: 'spender',
116
+ type: 'address',
117
+ },
118
+ {
119
+ indexed: false,
120
+ name: 'amount',
121
+ type: 'uint256',
122
+ },
123
+ ],
124
+ name: 'Approval',
125
+ type: 'event',
126
+ },
127
+ {
128
+ anonymous: false,
129
+ inputs: [
130
+ {
131
+ indexed: true,
132
+ name: 'addr',
133
+ type: 'address',
134
+ },
135
+ {
136
+ indexed: false,
137
+ name: 'isBlacklisted',
138
+ type: 'bool',
139
+ },
140
+ ],
141
+ name: 'BlacklistModified',
142
+ type: 'event',
143
+ },
144
+ {
145
+ anonymous: false,
146
+ inputs: [
147
+ {
148
+ indexed: false,
149
+ name: 'isPaused',
150
+ type: 'bool',
151
+ },
152
+ ],
153
+ name: 'TokenPauseModified',
154
+ type: 'event',
155
+ },
156
+ {
157
+ anonymous: false,
158
+ inputs: [
159
+ {
160
+ indexed: false,
161
+ name: 'op',
162
+ type: 'uint8',
163
+ },
164
+ {
165
+ indexed: true,
166
+ name: 'asset1',
167
+ type: 'address',
168
+ },
169
+ {
170
+ indexed: true,
171
+ name: 'asset2',
172
+ type: 'address',
173
+ },
174
+ {
175
+ indexed: false,
176
+ name: 'amount1',
177
+ type: 'uint256',
178
+ },
179
+ {
180
+ indexed: false,
181
+ name: 'amount2',
182
+ type: 'uint256',
183
+ },
184
+ {
185
+ indexed: false,
186
+ name: 'usdValue',
187
+ type: 'uint256',
188
+ },
189
+ {
190
+ indexed: false,
191
+ name: 'legoId',
192
+ type: 'uint256',
193
+ },
194
+ {
195
+ indexed: true,
196
+ name: 'signer',
197
+ type: 'address',
198
+ },
199
+ ],
200
+ name: 'LevgVaultAction',
201
+ type: 'event',
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: true,
208
+ name: 'collateralVaultToken',
209
+ type: 'address',
210
+ },
211
+ {
212
+ indexed: false,
213
+ name: 'legoId',
214
+ type: 'uint256',
215
+ },
216
+ {
217
+ indexed: false,
218
+ name: 'ripeVaultId',
219
+ type: 'uint256',
220
+ },
221
+ ],
222
+ name: 'CollateralVaultTokenSet',
223
+ type: 'event',
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ name: 'leverageVaultToken',
231
+ type: 'address',
232
+ },
233
+ {
234
+ indexed: false,
235
+ name: 'legoId',
236
+ type: 'uint256',
237
+ },
238
+ {
239
+ indexed: false,
240
+ name: 'ripeVaultId',
241
+ type: 'uint256',
242
+ },
243
+ ],
244
+ name: 'LeverageVaultTokenSet',
245
+ type: 'event',
246
+ },
247
+ {
248
+ anonymous: false,
249
+ inputs: [
250
+ {
251
+ indexed: false,
252
+ name: 'usdcSlippage',
253
+ type: 'uint256',
254
+ },
255
+ {
256
+ indexed: false,
257
+ name: 'greenSlippage',
258
+ type: 'uint256',
259
+ },
260
+ ],
261
+ name: 'SlippagesSet',
262
+ type: 'event',
263
+ },
264
+ {
265
+ anonymous: false,
266
+ inputs: [
267
+ {
268
+ indexed: true,
269
+ name: 'levgVaultHelper',
270
+ type: 'address',
271
+ },
272
+ ],
273
+ name: 'LevgVaultHelperSet',
274
+ type: 'event',
275
+ },
276
+ {
277
+ anonymous: false,
278
+ inputs: [
279
+ {
280
+ indexed: false,
281
+ name: 'maxDebtRatio',
282
+ type: 'uint256',
283
+ },
284
+ ],
285
+ name: 'MaxDebtRatioSet',
286
+ type: 'event',
287
+ },
288
+ {
289
+ inputs: [],
290
+ name: 'name',
291
+ outputs: [
292
+ {
293
+ name: '',
294
+ type: 'string',
295
+ },
296
+ ],
297
+ stateMutability: 'view',
298
+ type: 'function',
299
+ },
300
+ {
301
+ inputs: [],
302
+ name: 'symbol',
303
+ outputs: [
304
+ {
305
+ name: '',
306
+ type: 'string',
307
+ },
308
+ ],
309
+ stateMutability: 'view',
310
+ type: 'function',
311
+ },
312
+ {
313
+ inputs: [],
314
+ name: 'decimals',
315
+ outputs: [
316
+ {
317
+ name: '',
318
+ type: 'uint8',
319
+ },
320
+ ],
321
+ stateMutability: 'view',
322
+ type: 'function',
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ name: '_recipient',
328
+ type: 'address',
329
+ },
330
+ {
331
+ name: '_amount',
332
+ type: 'uint256',
333
+ },
334
+ ],
335
+ name: 'transfer',
336
+ outputs: [
337
+ {
338
+ name: '',
339
+ type: 'bool',
340
+ },
341
+ ],
342
+ stateMutability: 'nonpayable',
343
+ type: 'function',
344
+ },
345
+ {
346
+ inputs: [
347
+ {
348
+ name: '_sender',
349
+ type: 'address',
350
+ },
351
+ {
352
+ name: '_recipient',
353
+ type: 'address',
354
+ },
355
+ {
356
+ name: '_amount',
357
+ type: 'uint256',
358
+ },
359
+ ],
360
+ name: 'transferFrom',
361
+ outputs: [
362
+ {
363
+ name: '',
364
+ type: 'bool',
365
+ },
366
+ ],
367
+ stateMutability: 'nonpayable',
368
+ type: 'function',
369
+ },
370
+ {
371
+ inputs: [
372
+ {
373
+ name: '_spender',
374
+ type: 'address',
375
+ },
376
+ {
377
+ name: '_amount',
378
+ type: 'uint256',
379
+ },
380
+ ],
381
+ name: 'approve',
382
+ outputs: [
383
+ {
384
+ name: '',
385
+ type: 'bool',
386
+ },
387
+ ],
388
+ stateMutability: 'nonpayable',
389
+ type: 'function',
390
+ },
391
+ {
392
+ inputs: [
393
+ {
394
+ name: '_spender',
395
+ type: 'address',
396
+ },
397
+ {
398
+ name: '_amount',
399
+ type: 'uint256',
400
+ },
401
+ ],
402
+ name: 'increaseAllowance',
403
+ outputs: [
404
+ {
405
+ name: '',
406
+ type: 'bool',
407
+ },
408
+ ],
409
+ stateMutability: 'nonpayable',
410
+ type: 'function',
411
+ },
412
+ {
413
+ inputs: [
414
+ {
415
+ name: '_spender',
416
+ type: 'address',
417
+ },
418
+ {
419
+ name: '_amount',
420
+ type: 'uint256',
421
+ },
422
+ ],
423
+ name: 'decreaseAllowance',
424
+ outputs: [
425
+ {
426
+ name: '',
427
+ type: 'bool',
428
+ },
429
+ ],
430
+ stateMutability: 'nonpayable',
431
+ type: 'function',
432
+ },
433
+ {
434
+ inputs: [
435
+ {
436
+ name: '_amount',
437
+ type: 'uint256',
438
+ },
439
+ ],
440
+ name: 'burn',
441
+ outputs: [
442
+ {
443
+ name: '',
444
+ type: 'bool',
445
+ },
446
+ ],
447
+ stateMutability: 'nonpayable',
448
+ type: 'function',
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: 'DOMAIN_SEPARATOR',
453
+ outputs: [
454
+ {
455
+ name: '',
456
+ type: 'bytes32',
457
+ },
458
+ ],
459
+ stateMutability: 'view',
460
+ type: 'function',
461
+ },
462
+ {
463
+ inputs: [
464
+ {
465
+ name: '_owner',
466
+ type: 'address',
467
+ },
468
+ {
469
+ name: '_spender',
470
+ type: 'address',
471
+ },
472
+ {
473
+ name: '_value',
474
+ type: 'uint256',
475
+ },
476
+ {
477
+ name: '_deadline',
478
+ type: 'uint256',
479
+ },
480
+ {
481
+ name: '_signature',
482
+ type: 'bytes',
483
+ },
484
+ ],
485
+ name: 'permit',
486
+ outputs: [
487
+ {
488
+ name: '',
489
+ type: 'bool',
490
+ },
491
+ ],
492
+ stateMutability: 'nonpayable',
493
+ type: 'function',
494
+ },
495
+ {
496
+ inputs: [
497
+ {
498
+ name: '_addr',
499
+ type: 'address',
500
+ },
501
+ {
502
+ name: '_shouldBlacklist',
503
+ type: 'bool',
504
+ },
505
+ ],
506
+ name: 'setBlacklist',
507
+ outputs: [
508
+ {
509
+ name: '',
510
+ type: 'bool',
511
+ },
512
+ ],
513
+ stateMutability: 'nonpayable',
514
+ type: 'function',
515
+ },
516
+ {
517
+ inputs: [
518
+ {
519
+ name: '_addr',
520
+ type: 'address',
521
+ },
522
+ ],
523
+ name: 'burnBlacklistTokens',
524
+ outputs: [
525
+ {
526
+ name: '',
527
+ type: 'bool',
528
+ },
529
+ ],
530
+ stateMutability: 'nonpayable',
531
+ type: 'function',
532
+ },
533
+ {
534
+ inputs: [
535
+ {
536
+ name: '_addr',
537
+ type: 'address',
538
+ },
539
+ {
540
+ name: '_amount',
541
+ type: 'uint256',
542
+ },
543
+ ],
544
+ name: 'burnBlacklistTokens',
545
+ outputs: [
546
+ {
547
+ name: '',
548
+ type: 'bool',
549
+ },
550
+ ],
551
+ stateMutability: 'nonpayable',
552
+ type: 'function',
553
+ },
554
+ {
555
+ inputs: [
556
+ {
557
+ name: '_shouldPause',
558
+ type: 'bool',
559
+ },
560
+ ],
561
+ name: 'pause',
562
+ outputs: [],
563
+ stateMutability: 'nonpayable',
564
+ type: 'function',
565
+ },
566
+ {
567
+ inputs: [],
568
+ name: 'undyHq',
569
+ outputs: [
570
+ {
571
+ name: '',
572
+ type: 'address',
573
+ },
574
+ ],
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ },
578
+ {
579
+ inputs: [
580
+ {
581
+ name: 'arg0',
582
+ type: 'address',
583
+ },
584
+ ],
585
+ name: 'blacklisted',
586
+ outputs: [
587
+ {
588
+ name: '',
589
+ type: 'bool',
590
+ },
591
+ ],
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ },
595
+ {
596
+ inputs: [],
597
+ name: 'isPaused',
598
+ outputs: [
599
+ {
600
+ name: '',
601
+ type: 'bool',
602
+ },
603
+ ],
604
+ stateMutability: 'view',
605
+ type: 'function',
606
+ },
607
+ {
608
+ inputs: [
609
+ {
610
+ name: 'arg0',
611
+ type: 'address',
612
+ },
613
+ ],
614
+ name: 'balanceOf',
615
+ outputs: [
616
+ {
617
+ name: '',
618
+ type: 'uint256',
619
+ },
620
+ ],
621
+ stateMutability: 'view',
622
+ type: 'function',
623
+ },
624
+ {
625
+ inputs: [
626
+ {
627
+ name: 'arg0',
628
+ type: 'address',
629
+ },
630
+ {
631
+ name: 'arg1',
632
+ type: 'address',
633
+ },
634
+ ],
635
+ name: 'allowance',
636
+ outputs: [
637
+ {
638
+ name: '',
639
+ type: 'uint256',
640
+ },
641
+ ],
642
+ stateMutability: 'view',
643
+ type: 'function',
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: 'totalSupply',
648
+ outputs: [
649
+ {
650
+ name: '',
651
+ type: 'uint256',
652
+ },
653
+ ],
654
+ stateMutability: 'view',
655
+ type: 'function',
656
+ },
657
+ {
658
+ inputs: [],
659
+ name: 'TOKEN_NAME',
660
+ outputs: [
661
+ {
662
+ name: '',
663
+ type: 'string',
664
+ },
665
+ ],
666
+ stateMutability: 'view',
667
+ type: 'function',
668
+ },
669
+ {
670
+ inputs: [],
671
+ name: 'TOKEN_SYMBOL',
672
+ outputs: [
673
+ {
674
+ name: '',
675
+ type: 'string',
676
+ },
677
+ ],
678
+ stateMutability: 'view',
679
+ type: 'function',
680
+ },
681
+ {
682
+ inputs: [],
683
+ name: 'TOKEN_DECIMALS',
684
+ outputs: [
685
+ {
686
+ name: '',
687
+ type: 'uint8',
688
+ },
689
+ ],
690
+ stateMutability: 'view',
691
+ type: 'function',
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: 'VERSION',
696
+ outputs: [
697
+ {
698
+ name: '',
699
+ type: 'string',
700
+ },
701
+ ],
702
+ stateMutability: 'view',
703
+ type: 'function',
704
+ },
705
+ {
706
+ inputs: [
707
+ {
708
+ name: 'arg0',
709
+ type: 'address',
710
+ },
711
+ ],
712
+ name: 'nonces',
713
+ outputs: [
714
+ {
715
+ name: '',
716
+ type: 'uint256',
717
+ },
718
+ ],
719
+ stateMutability: 'view',
720
+ type: 'function',
721
+ },
722
+ {
723
+ inputs: [
724
+ {
725
+ name: '_legoId',
726
+ type: 'uint256',
727
+ },
728
+ {
729
+ name: '_asset',
730
+ type: 'address',
731
+ },
732
+ ],
733
+ name: 'depositForYield',
734
+ outputs: [
735
+ {
736
+ name: '',
737
+ type: 'uint256',
738
+ },
739
+ {
740
+ name: '',
741
+ type: 'address',
742
+ },
743
+ {
744
+ name: '',
745
+ type: 'uint256',
746
+ },
747
+ {
748
+ name: '',
749
+ type: 'uint256',
750
+ },
751
+ ],
752
+ stateMutability: 'nonpayable',
753
+ type: 'function',
754
+ },
755
+ {
756
+ inputs: [
757
+ {
758
+ name: '_legoId',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: '_asset',
763
+ type: 'address',
764
+ },
765
+ {
766
+ name: '_vaultAddr',
767
+ type: 'address',
768
+ },
769
+ ],
770
+ name: 'depositForYield',
771
+ outputs: [
772
+ {
773
+ name: '',
774
+ type: 'uint256',
775
+ },
776
+ {
777
+ name: '',
778
+ type: 'address',
779
+ },
780
+ {
781
+ name: '',
782
+ type: 'uint256',
783
+ },
784
+ {
785
+ name: '',
786
+ type: 'uint256',
787
+ },
788
+ ],
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ },
792
+ {
793
+ inputs: [
794
+ {
795
+ name: '_legoId',
796
+ type: 'uint256',
797
+ },
798
+ {
799
+ name: '_asset',
800
+ type: 'address',
801
+ },
802
+ {
803
+ name: '_vaultAddr',
804
+ type: 'address',
805
+ },
806
+ {
807
+ name: '_amount',
808
+ type: 'uint256',
809
+ },
810
+ ],
811
+ name: 'depositForYield',
812
+ outputs: [
813
+ {
814
+ name: '',
815
+ type: 'uint256',
816
+ },
817
+ {
818
+ name: '',
819
+ type: 'address',
820
+ },
821
+ {
822
+ name: '',
823
+ type: 'uint256',
824
+ },
825
+ {
826
+ name: '',
827
+ type: 'uint256',
828
+ },
829
+ ],
830
+ stateMutability: 'nonpayable',
831
+ type: 'function',
832
+ },
833
+ {
834
+ inputs: [
835
+ {
836
+ name: '_legoId',
837
+ type: 'uint256',
838
+ },
839
+ {
840
+ name: '_asset',
841
+ type: 'address',
842
+ },
843
+ {
844
+ name: '_vaultAddr',
845
+ type: 'address',
846
+ },
847
+ {
848
+ name: '_amount',
849
+ type: 'uint256',
850
+ },
851
+ {
852
+ name: '_extraData',
853
+ type: 'bytes32',
854
+ },
855
+ ],
856
+ name: 'depositForYield',
857
+ outputs: [
858
+ {
859
+ name: '',
860
+ type: 'uint256',
861
+ },
862
+ {
863
+ name: '',
864
+ type: 'address',
865
+ },
866
+ {
867
+ name: '',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ name: '',
872
+ type: 'uint256',
873
+ },
874
+ ],
875
+ stateMutability: 'nonpayable',
876
+ type: 'function',
877
+ },
878
+ {
879
+ inputs: [
880
+ {
881
+ name: '_legoId',
882
+ type: 'uint256',
883
+ },
884
+ {
885
+ name: '_vaultToken',
886
+ type: 'address',
887
+ },
888
+ ],
889
+ name: 'withdrawFromYield',
890
+ outputs: [
891
+ {
892
+ name: '',
893
+ type: 'uint256',
894
+ },
895
+ {
896
+ name: '',
897
+ type: 'address',
898
+ },
899
+ {
900
+ name: '',
901
+ type: 'uint256',
902
+ },
903
+ {
904
+ name: '',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ stateMutability: 'nonpayable',
909
+ type: 'function',
910
+ },
911
+ {
912
+ inputs: [
913
+ {
914
+ name: '_legoId',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ name: '_vaultToken',
919
+ type: 'address',
920
+ },
921
+ {
922
+ name: '_amount',
923
+ type: 'uint256',
924
+ },
925
+ ],
926
+ name: 'withdrawFromYield',
927
+ outputs: [
928
+ {
929
+ name: '',
930
+ type: 'uint256',
931
+ },
932
+ {
933
+ name: '',
934
+ type: 'address',
935
+ },
936
+ {
937
+ name: '',
938
+ type: 'uint256',
939
+ },
940
+ {
941
+ name: '',
942
+ type: 'uint256',
943
+ },
944
+ ],
945
+ stateMutability: 'nonpayable',
946
+ type: 'function',
947
+ },
948
+ {
949
+ inputs: [
950
+ {
951
+ name: '_legoId',
952
+ type: 'uint256',
953
+ },
954
+ {
955
+ name: '_vaultToken',
956
+ type: 'address',
957
+ },
958
+ {
959
+ name: '_amount',
960
+ type: 'uint256',
961
+ },
962
+ {
963
+ name: '_extraData',
964
+ type: 'bytes32',
965
+ },
966
+ ],
967
+ name: 'withdrawFromYield',
968
+ outputs: [
969
+ {
970
+ name: '',
971
+ type: 'uint256',
972
+ },
973
+ {
974
+ name: '',
975
+ type: 'address',
976
+ },
977
+ {
978
+ name: '',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ name: '',
983
+ type: 'uint256',
984
+ },
985
+ ],
986
+ stateMutability: 'nonpayable',
987
+ type: 'function',
988
+ },
989
+ {
990
+ inputs: [
991
+ {
992
+ name: '_legoId',
993
+ type: 'uint256',
994
+ },
995
+ {
996
+ name: '_vaultToken',
997
+ type: 'address',
998
+ },
999
+ {
1000
+ name: '_amount',
1001
+ type: 'uint256',
1002
+ },
1003
+ {
1004
+ name: '_extraData',
1005
+ type: 'bytes32',
1006
+ },
1007
+ {
1008
+ name: '_isSpecialTx',
1009
+ type: 'bool',
1010
+ },
1011
+ ],
1012
+ name: 'withdrawFromYield',
1013
+ outputs: [
1014
+ {
1015
+ name: '',
1016
+ type: 'uint256',
1017
+ },
1018
+ {
1019
+ name: '',
1020
+ type: 'address',
1021
+ },
1022
+ {
1023
+ name: '',
1024
+ type: 'uint256',
1025
+ },
1026
+ {
1027
+ name: '',
1028
+ type: 'uint256',
1029
+ },
1030
+ ],
1031
+ stateMutability: 'nonpayable',
1032
+ type: 'function',
1033
+ },
1034
+ {
1035
+ inputs: [
1036
+ {
1037
+ components: [
1038
+ {
1039
+ name: 'legoId',
1040
+ type: 'uint256',
1041
+ },
1042
+ {
1043
+ name: 'amountIn',
1044
+ type: 'uint256',
1045
+ },
1046
+ {
1047
+ name: 'minAmountOut',
1048
+ type: 'uint256',
1049
+ },
1050
+ {
1051
+ name: 'tokenPath',
1052
+ type: 'address[]',
1053
+ },
1054
+ {
1055
+ name: 'poolPath',
1056
+ type: 'address[]',
1057
+ },
1058
+ ],
1059
+ name: '_instructions',
1060
+ type: 'tuple[]',
1061
+ },
1062
+ ],
1063
+ name: 'swapTokens',
1064
+ outputs: [
1065
+ {
1066
+ name: '',
1067
+ type: 'address',
1068
+ },
1069
+ {
1070
+ name: '',
1071
+ type: 'uint256',
1072
+ },
1073
+ {
1074
+ name: '',
1075
+ type: 'address',
1076
+ },
1077
+ {
1078
+ name: '',
1079
+ type: 'uint256',
1080
+ },
1081
+ {
1082
+ name: '',
1083
+ type: 'uint256',
1084
+ },
1085
+ ],
1086
+ stateMutability: 'nonpayable',
1087
+ type: 'function',
1088
+ },
1089
+ {
1090
+ inputs: [
1091
+ {
1092
+ name: '_legoId',
1093
+ type: 'uint256',
1094
+ },
1095
+ {
1096
+ name: '_asset',
1097
+ type: 'address',
1098
+ },
1099
+ ],
1100
+ name: 'addCollateral',
1101
+ outputs: [
1102
+ {
1103
+ name: '',
1104
+ type: 'uint256',
1105
+ },
1106
+ {
1107
+ name: '',
1108
+ type: 'uint256',
1109
+ },
1110
+ ],
1111
+ stateMutability: 'nonpayable',
1112
+ type: 'function',
1113
+ },
1114
+ {
1115
+ inputs: [
1116
+ {
1117
+ name: '_legoId',
1118
+ type: 'uint256',
1119
+ },
1120
+ {
1121
+ name: '_asset',
1122
+ type: 'address',
1123
+ },
1124
+ {
1125
+ name: '_amount',
1126
+ type: 'uint256',
1127
+ },
1128
+ ],
1129
+ name: 'addCollateral',
1130
+ outputs: [
1131
+ {
1132
+ name: '',
1133
+ type: 'uint256',
1134
+ },
1135
+ {
1136
+ name: '',
1137
+ type: 'uint256',
1138
+ },
1139
+ ],
1140
+ stateMutability: 'nonpayable',
1141
+ type: 'function',
1142
+ },
1143
+ {
1144
+ inputs: [
1145
+ {
1146
+ name: '_legoId',
1147
+ type: 'uint256',
1148
+ },
1149
+ {
1150
+ name: '_asset',
1151
+ type: 'address',
1152
+ },
1153
+ {
1154
+ name: '_amount',
1155
+ type: 'uint256',
1156
+ },
1157
+ {
1158
+ name: '_extraData',
1159
+ type: 'bytes32',
1160
+ },
1161
+ ],
1162
+ name: 'addCollateral',
1163
+ outputs: [
1164
+ {
1165
+ name: '',
1166
+ type: 'uint256',
1167
+ },
1168
+ {
1169
+ name: '',
1170
+ type: 'uint256',
1171
+ },
1172
+ ],
1173
+ stateMutability: 'nonpayable',
1174
+ type: 'function',
1175
+ },
1176
+ {
1177
+ inputs: [
1178
+ {
1179
+ name: '_legoId',
1180
+ type: 'uint256',
1181
+ },
1182
+ {
1183
+ name: '_asset',
1184
+ type: 'address',
1185
+ },
1186
+ ],
1187
+ name: 'removeCollateral',
1188
+ outputs: [
1189
+ {
1190
+ name: '',
1191
+ type: 'uint256',
1192
+ },
1193
+ {
1194
+ name: '',
1195
+ type: 'uint256',
1196
+ },
1197
+ ],
1198
+ stateMutability: 'nonpayable',
1199
+ type: 'function',
1200
+ },
1201
+ {
1202
+ inputs: [
1203
+ {
1204
+ name: '_legoId',
1205
+ type: 'uint256',
1206
+ },
1207
+ {
1208
+ name: '_asset',
1209
+ type: 'address',
1210
+ },
1211
+ {
1212
+ name: '_amount',
1213
+ type: 'uint256',
1214
+ },
1215
+ ],
1216
+ name: 'removeCollateral',
1217
+ outputs: [
1218
+ {
1219
+ name: '',
1220
+ type: 'uint256',
1221
+ },
1222
+ {
1223
+ name: '',
1224
+ type: 'uint256',
1225
+ },
1226
+ ],
1227
+ stateMutability: 'nonpayable',
1228
+ type: 'function',
1229
+ },
1230
+ {
1231
+ inputs: [
1232
+ {
1233
+ name: '_legoId',
1234
+ type: 'uint256',
1235
+ },
1236
+ {
1237
+ name: '_asset',
1238
+ type: 'address',
1239
+ },
1240
+ {
1241
+ name: '_amount',
1242
+ type: 'uint256',
1243
+ },
1244
+ {
1245
+ name: '_extraData',
1246
+ type: 'bytes32',
1247
+ },
1248
+ ],
1249
+ name: 'removeCollateral',
1250
+ outputs: [
1251
+ {
1252
+ name: '',
1253
+ type: 'uint256',
1254
+ },
1255
+ {
1256
+ name: '',
1257
+ type: 'uint256',
1258
+ },
1259
+ ],
1260
+ stateMutability: 'nonpayable',
1261
+ type: 'function',
1262
+ },
1263
+ {
1264
+ inputs: [
1265
+ {
1266
+ name: '_legoId',
1267
+ type: 'uint256',
1268
+ },
1269
+ {
1270
+ name: '_borrowAsset',
1271
+ type: 'address',
1272
+ },
1273
+ ],
1274
+ name: 'borrow',
1275
+ outputs: [
1276
+ {
1277
+ name: '',
1278
+ type: 'uint256',
1279
+ },
1280
+ {
1281
+ name: '',
1282
+ type: 'uint256',
1283
+ },
1284
+ ],
1285
+ stateMutability: 'nonpayable',
1286
+ type: 'function',
1287
+ },
1288
+ {
1289
+ inputs: [
1290
+ {
1291
+ name: '_legoId',
1292
+ type: 'uint256',
1293
+ },
1294
+ {
1295
+ name: '_borrowAsset',
1296
+ type: 'address',
1297
+ },
1298
+ {
1299
+ name: '_amount',
1300
+ type: 'uint256',
1301
+ },
1302
+ ],
1303
+ name: 'borrow',
1304
+ outputs: [
1305
+ {
1306
+ name: '',
1307
+ type: 'uint256',
1308
+ },
1309
+ {
1310
+ name: '',
1311
+ type: 'uint256',
1312
+ },
1313
+ ],
1314
+ stateMutability: 'nonpayable',
1315
+ type: 'function',
1316
+ },
1317
+ {
1318
+ inputs: [
1319
+ {
1320
+ name: '_legoId',
1321
+ type: 'uint256',
1322
+ },
1323
+ {
1324
+ name: '_borrowAsset',
1325
+ type: 'address',
1326
+ },
1327
+ {
1328
+ name: '_amount',
1329
+ type: 'uint256',
1330
+ },
1331
+ {
1332
+ name: '_extraData',
1333
+ type: 'bytes32',
1334
+ },
1335
+ ],
1336
+ name: 'borrow',
1337
+ outputs: [
1338
+ {
1339
+ name: '',
1340
+ type: 'uint256',
1341
+ },
1342
+ {
1343
+ name: '',
1344
+ type: 'uint256',
1345
+ },
1346
+ ],
1347
+ stateMutability: 'nonpayable',
1348
+ type: 'function',
1349
+ },
1350
+ {
1351
+ inputs: [
1352
+ {
1353
+ name: '_legoId',
1354
+ type: 'uint256',
1355
+ },
1356
+ {
1357
+ name: '_paymentAsset',
1358
+ type: 'address',
1359
+ },
1360
+ ],
1361
+ name: 'repayDebt',
1362
+ outputs: [
1363
+ {
1364
+ name: '',
1365
+ type: 'uint256',
1366
+ },
1367
+ {
1368
+ name: '',
1369
+ type: 'uint256',
1370
+ },
1371
+ ],
1372
+ stateMutability: 'nonpayable',
1373
+ type: 'function',
1374
+ },
1375
+ {
1376
+ inputs: [
1377
+ {
1378
+ name: '_legoId',
1379
+ type: 'uint256',
1380
+ },
1381
+ {
1382
+ name: '_paymentAsset',
1383
+ type: 'address',
1384
+ },
1385
+ {
1386
+ name: '_paymentAmount',
1387
+ type: 'uint256',
1388
+ },
1389
+ ],
1390
+ name: 'repayDebt',
1391
+ outputs: [
1392
+ {
1393
+ name: '',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: '',
1398
+ type: 'uint256',
1399
+ },
1400
+ ],
1401
+ stateMutability: 'nonpayable',
1402
+ type: 'function',
1403
+ },
1404
+ {
1405
+ inputs: [
1406
+ {
1407
+ name: '_legoId',
1408
+ type: 'uint256',
1409
+ },
1410
+ {
1411
+ name: '_paymentAsset',
1412
+ type: 'address',
1413
+ },
1414
+ {
1415
+ name: '_paymentAmount',
1416
+ type: 'uint256',
1417
+ },
1418
+ {
1419
+ name: '_extraData',
1420
+ type: 'bytes32',
1421
+ },
1422
+ ],
1423
+ name: 'repayDebt',
1424
+ outputs: [
1425
+ {
1426
+ name: '',
1427
+ type: 'uint256',
1428
+ },
1429
+ {
1430
+ name: '',
1431
+ type: 'uint256',
1432
+ },
1433
+ ],
1434
+ stateMutability: 'nonpayable',
1435
+ type: 'function',
1436
+ },
1437
+ {
1438
+ inputs: [
1439
+ {
1440
+ name: '_legoId',
1441
+ type: 'uint256',
1442
+ },
1443
+ ],
1444
+ name: 'claimIncentives',
1445
+ outputs: [
1446
+ {
1447
+ name: '',
1448
+ type: 'uint256',
1449
+ },
1450
+ {
1451
+ name: '',
1452
+ type: 'uint256',
1453
+ },
1454
+ ],
1455
+ stateMutability: 'nonpayable',
1456
+ type: 'function',
1457
+ },
1458
+ {
1459
+ inputs: [
1460
+ {
1461
+ name: '_legoId',
1462
+ type: 'uint256',
1463
+ },
1464
+ {
1465
+ name: '_rewardToken',
1466
+ type: 'address',
1467
+ },
1468
+ ],
1469
+ name: 'claimIncentives',
1470
+ outputs: [
1471
+ {
1472
+ name: '',
1473
+ type: 'uint256',
1474
+ },
1475
+ {
1476
+ name: '',
1477
+ type: 'uint256',
1478
+ },
1479
+ ],
1480
+ stateMutability: 'nonpayable',
1481
+ type: 'function',
1482
+ },
1483
+ {
1484
+ inputs: [
1485
+ {
1486
+ name: '_legoId',
1487
+ type: 'uint256',
1488
+ },
1489
+ {
1490
+ name: '_rewardToken',
1491
+ type: 'address',
1492
+ },
1493
+ {
1494
+ name: '_rewardAmount',
1495
+ type: 'uint256',
1496
+ },
1497
+ ],
1498
+ name: 'claimIncentives',
1499
+ outputs: [
1500
+ {
1501
+ name: '',
1502
+ type: 'uint256',
1503
+ },
1504
+ {
1505
+ name: '',
1506
+ type: 'uint256',
1507
+ },
1508
+ ],
1509
+ stateMutability: 'nonpayable',
1510
+ type: 'function',
1511
+ },
1512
+ {
1513
+ inputs: [
1514
+ {
1515
+ name: '_legoId',
1516
+ type: 'uint256',
1517
+ },
1518
+ {
1519
+ name: '_rewardToken',
1520
+ type: 'address',
1521
+ },
1522
+ {
1523
+ name: '_rewardAmount',
1524
+ type: 'uint256',
1525
+ },
1526
+ {
1527
+ name: '_proofs',
1528
+ type: 'bytes32[]',
1529
+ },
1530
+ ],
1531
+ name: 'claimIncentives',
1532
+ outputs: [
1533
+ {
1534
+ name: '',
1535
+ type: 'uint256',
1536
+ },
1537
+ {
1538
+ name: '',
1539
+ type: 'uint256',
1540
+ },
1541
+ ],
1542
+ stateMutability: 'nonpayable',
1543
+ type: 'function',
1544
+ },
1545
+ {
1546
+ inputs: [
1547
+ {
1548
+ name: '_vaultToken',
1549
+ type: 'address',
1550
+ },
1551
+ {
1552
+ name: '_legoId',
1553
+ type: 'uint256',
1554
+ },
1555
+ {
1556
+ name: '_ripeVaultId',
1557
+ type: 'uint256',
1558
+ },
1559
+ {
1560
+ name: '_shouldMaxWithdraw',
1561
+ type: 'bool',
1562
+ },
1563
+ ],
1564
+ name: 'setCollateralVault',
1565
+ outputs: [],
1566
+ stateMutability: 'nonpayable',
1567
+ type: 'function',
1568
+ },
1569
+ {
1570
+ inputs: [
1571
+ {
1572
+ name: '_vaultToken',
1573
+ type: 'address',
1574
+ },
1575
+ {
1576
+ name: '_legoId',
1577
+ type: 'uint256',
1578
+ },
1579
+ {
1580
+ name: '_ripeVaultId',
1581
+ type: 'uint256',
1582
+ },
1583
+ {
1584
+ name: '_shouldMaxWithdraw',
1585
+ type: 'bool',
1586
+ },
1587
+ ],
1588
+ name: 'setLeverageVault',
1589
+ outputs: [],
1590
+ stateMutability: 'nonpayable',
1591
+ type: 'function',
1592
+ },
1593
+ {
1594
+ inputs: [
1595
+ {
1596
+ name: '_usdcSlippage',
1597
+ type: 'uint256',
1598
+ },
1599
+ {
1600
+ name: '_greenSlippage',
1601
+ type: 'uint256',
1602
+ },
1603
+ ],
1604
+ name: 'setSlippagesAllowed',
1605
+ outputs: [],
1606
+ stateMutability: 'nonpayable',
1607
+ type: 'function',
1608
+ },
1609
+ {
1610
+ inputs: [
1611
+ {
1612
+ name: '_levgVaultHelper',
1613
+ type: 'address',
1614
+ },
1615
+ ],
1616
+ name: 'setLevgVaultHelper',
1617
+ outputs: [],
1618
+ stateMutability: 'nonpayable',
1619
+ type: 'function',
1620
+ },
1621
+ {
1622
+ inputs: [
1623
+ {
1624
+ name: '_ratio',
1625
+ type: 'uint256',
1626
+ },
1627
+ ],
1628
+ name: 'setMaxDebtRatio',
1629
+ outputs: [],
1630
+ stateMutability: 'nonpayable',
1631
+ type: 'function',
1632
+ },
1633
+ {
1634
+ inputs: [
1635
+ {
1636
+ name: '_manager',
1637
+ type: 'address',
1638
+ },
1639
+ ],
1640
+ name: 'addManager',
1641
+ outputs: [],
1642
+ stateMutability: 'nonpayable',
1643
+ type: 'function',
1644
+ },
1645
+ {
1646
+ inputs: [
1647
+ {
1648
+ name: '_manager',
1649
+ type: 'address',
1650
+ },
1651
+ ],
1652
+ name: 'removeManager',
1653
+ outputs: [],
1654
+ stateMutability: 'nonpayable',
1655
+ type: 'function',
1656
+ },
1657
+ {
1658
+ inputs: [
1659
+ {
1660
+ name: 'arg0',
1661
+ type: 'address',
1662
+ },
1663
+ ],
1664
+ name: 'vaultToLegoId',
1665
+ outputs: [
1666
+ {
1667
+ name: '',
1668
+ type: 'uint256',
1669
+ },
1670
+ ],
1671
+ stateMutability: 'view',
1672
+ type: 'function',
1673
+ },
1674
+ {
1675
+ inputs: [],
1676
+ name: 'levgVaultHelper',
1677
+ outputs: [
1678
+ {
1679
+ name: '',
1680
+ type: 'address',
1681
+ },
1682
+ ],
1683
+ stateMutability: 'view',
1684
+ type: 'function',
1685
+ },
1686
+ {
1687
+ inputs: [],
1688
+ name: 'collateralAsset',
1689
+ outputs: [
1690
+ {
1691
+ components: [
1692
+ {
1693
+ name: 'vaultToken',
1694
+ type: 'address',
1695
+ },
1696
+ {
1697
+ name: 'ripeVaultId',
1698
+ type: 'uint256',
1699
+ },
1700
+ ],
1701
+ name: '',
1702
+ type: 'tuple',
1703
+ },
1704
+ ],
1705
+ stateMutability: 'view',
1706
+ type: 'function',
1707
+ },
1708
+ {
1709
+ inputs: [],
1710
+ name: 'leverageAsset',
1711
+ outputs: [
1712
+ {
1713
+ components: [
1714
+ {
1715
+ name: 'vaultToken',
1716
+ type: 'address',
1717
+ },
1718
+ {
1719
+ name: 'ripeVaultId',
1720
+ type: 'uint256',
1721
+ },
1722
+ ],
1723
+ name: '',
1724
+ type: 'tuple',
1725
+ },
1726
+ ],
1727
+ stateMutability: 'view',
1728
+ type: 'function',
1729
+ },
1730
+ {
1731
+ inputs: [
1732
+ {
1733
+ name: 'arg0',
1734
+ type: 'uint256',
1735
+ },
1736
+ ],
1737
+ name: 'managers',
1738
+ outputs: [
1739
+ {
1740
+ name: '',
1741
+ type: 'address',
1742
+ },
1743
+ ],
1744
+ stateMutability: 'view',
1745
+ type: 'function',
1746
+ },
1747
+ {
1748
+ inputs: [
1749
+ {
1750
+ name: 'arg0',
1751
+ type: 'address',
1752
+ },
1753
+ ],
1754
+ name: 'indexOfManager',
1755
+ outputs: [
1756
+ {
1757
+ name: '',
1758
+ type: 'uint256',
1759
+ },
1760
+ ],
1761
+ stateMutability: 'view',
1762
+ type: 'function',
1763
+ },
1764
+ {
1765
+ inputs: [],
1766
+ name: 'numManagers',
1767
+ outputs: [
1768
+ {
1769
+ name: '',
1770
+ type: 'uint256',
1771
+ },
1772
+ ],
1773
+ stateMutability: 'view',
1774
+ type: 'function',
1775
+ },
1776
+ {
1777
+ inputs: [],
1778
+ name: 'usdcSlippageAllowed',
1779
+ outputs: [
1780
+ {
1781
+ name: '',
1782
+ type: 'uint256',
1783
+ },
1784
+ ],
1785
+ stateMutability: 'view',
1786
+ type: 'function',
1787
+ },
1788
+ {
1789
+ inputs: [],
1790
+ name: 'greenSlippageAllowed',
1791
+ outputs: [
1792
+ {
1793
+ name: '',
1794
+ type: 'uint256',
1795
+ },
1796
+ ],
1797
+ stateMutability: 'view',
1798
+ type: 'function',
1799
+ },
1800
+ {
1801
+ inputs: [],
1802
+ name: 'maxDebtRatio',
1803
+ outputs: [
1804
+ {
1805
+ name: '',
1806
+ type: 'uint256',
1807
+ },
1808
+ ],
1809
+ stateMutability: 'view',
1810
+ type: 'function',
1811
+ },
1812
+ {
1813
+ inputs: [],
1814
+ name: 'netUserCapital',
1815
+ outputs: [
1816
+ {
1817
+ name: '',
1818
+ type: 'uint256',
1819
+ },
1820
+ ],
1821
+ stateMutability: 'view',
1822
+ type: 'function',
1823
+ },
1824
+ {
1825
+ inputs: [],
1826
+ name: 'USDC',
1827
+ outputs: [
1828
+ {
1829
+ name: '',
1830
+ type: 'address',
1831
+ },
1832
+ ],
1833
+ stateMutability: 'view',
1834
+ type: 'function',
1835
+ },
1836
+ {
1837
+ inputs: [],
1838
+ name: 'asset',
1839
+ outputs: [
1840
+ {
1841
+ name: '',
1842
+ type: 'address',
1843
+ },
1844
+ ],
1845
+ stateMutability: 'view',
1846
+ type: 'function',
1847
+ },
1848
+ {
1849
+ inputs: [],
1850
+ name: 'totalAssets',
1851
+ outputs: [
1852
+ {
1853
+ name: '',
1854
+ type: 'uint256',
1855
+ },
1856
+ ],
1857
+ stateMutability: 'view',
1858
+ type: 'function',
1859
+ },
1860
+ {
1861
+ inputs: [
1862
+ {
1863
+ name: '_shouldGetMax',
1864
+ type: 'bool',
1865
+ },
1866
+ ],
1867
+ name: 'getTotalAssets',
1868
+ outputs: [
1869
+ {
1870
+ name: '',
1871
+ type: 'uint256',
1872
+ },
1873
+ ],
1874
+ stateMutability: 'view',
1875
+ type: 'function',
1876
+ },
1877
+ {
1878
+ inputs: [],
1879
+ name: 'isLeveragedVault',
1880
+ outputs: [
1881
+ {
1882
+ name: '',
1883
+ type: 'bool',
1884
+ },
1885
+ ],
1886
+ stateMutability: 'view',
1887
+ type: 'function',
1888
+ },
1889
+ {
1890
+ inputs: [
1891
+ {
1892
+ name: '_receiver',
1893
+ type: 'address',
1894
+ },
1895
+ ],
1896
+ name: 'maxDeposit',
1897
+ outputs: [
1898
+ {
1899
+ name: '',
1900
+ type: 'uint256',
1901
+ },
1902
+ ],
1903
+ stateMutability: 'view',
1904
+ type: 'function',
1905
+ },
1906
+ {
1907
+ inputs: [
1908
+ {
1909
+ name: '_assets',
1910
+ type: 'uint256',
1911
+ },
1912
+ ],
1913
+ name: 'previewDeposit',
1914
+ outputs: [
1915
+ {
1916
+ name: '',
1917
+ type: 'uint256',
1918
+ },
1919
+ ],
1920
+ stateMutability: 'view',
1921
+ type: 'function',
1922
+ },
1923
+ {
1924
+ inputs: [
1925
+ {
1926
+ name: '_assets',
1927
+ type: 'uint256',
1928
+ },
1929
+ ],
1930
+ name: 'deposit',
1931
+ outputs: [
1932
+ {
1933
+ name: '',
1934
+ type: 'uint256',
1935
+ },
1936
+ ],
1937
+ stateMutability: 'nonpayable',
1938
+ type: 'function',
1939
+ },
1940
+ {
1941
+ inputs: [
1942
+ {
1943
+ name: '_assets',
1944
+ type: 'uint256',
1945
+ },
1946
+ {
1947
+ name: '_receiver',
1948
+ type: 'address',
1949
+ },
1950
+ ],
1951
+ name: 'deposit',
1952
+ outputs: [
1953
+ {
1954
+ name: '',
1955
+ type: 'uint256',
1956
+ },
1957
+ ],
1958
+ stateMutability: 'nonpayable',
1959
+ type: 'function',
1960
+ },
1961
+ {
1962
+ inputs: [
1963
+ {
1964
+ name: '_assets',
1965
+ type: 'uint256',
1966
+ },
1967
+ {
1968
+ name: '_minAmountOut',
1969
+ type: 'uint256',
1970
+ },
1971
+ ],
1972
+ name: 'depositWithMinAmountOut',
1973
+ outputs: [
1974
+ {
1975
+ name: '',
1976
+ type: 'uint256',
1977
+ },
1978
+ ],
1979
+ stateMutability: 'nonpayable',
1980
+ type: 'function',
1981
+ },
1982
+ {
1983
+ inputs: [
1984
+ {
1985
+ name: '_assets',
1986
+ type: 'uint256',
1987
+ },
1988
+ {
1989
+ name: '_minAmountOut',
1990
+ type: 'uint256',
1991
+ },
1992
+ {
1993
+ name: '_receiver',
1994
+ type: 'address',
1995
+ },
1996
+ ],
1997
+ name: 'depositWithMinAmountOut',
1998
+ outputs: [
1999
+ {
2000
+ name: '',
2001
+ type: 'uint256',
2002
+ },
2003
+ ],
2004
+ stateMutability: 'nonpayable',
2005
+ type: 'function',
2006
+ },
2007
+ {
2008
+ inputs: [
2009
+ {
2010
+ name: '_receiver',
2011
+ type: 'address',
2012
+ },
2013
+ ],
2014
+ name: 'maxMint',
2015
+ outputs: [
2016
+ {
2017
+ name: '',
2018
+ type: 'uint256',
2019
+ },
2020
+ ],
2021
+ stateMutability: 'view',
2022
+ type: 'function',
2023
+ },
2024
+ {
2025
+ inputs: [
2026
+ {
2027
+ name: '_shares',
2028
+ type: 'uint256',
2029
+ },
2030
+ ],
2031
+ name: 'previewMint',
2032
+ outputs: [
2033
+ {
2034
+ name: '',
2035
+ type: 'uint256',
2036
+ },
2037
+ ],
2038
+ stateMutability: 'view',
2039
+ type: 'function',
2040
+ },
2041
+ {
2042
+ inputs: [
2043
+ {
2044
+ name: '_shares',
2045
+ type: 'uint256',
2046
+ },
2047
+ ],
2048
+ name: 'mint',
2049
+ outputs: [
2050
+ {
2051
+ name: '',
2052
+ type: 'uint256',
2053
+ },
2054
+ ],
2055
+ stateMutability: 'nonpayable',
2056
+ type: 'function',
2057
+ },
2058
+ {
2059
+ inputs: [
2060
+ {
2061
+ name: '_shares',
2062
+ type: 'uint256',
2063
+ },
2064
+ {
2065
+ name: '_receiver',
2066
+ type: 'address',
2067
+ },
2068
+ ],
2069
+ name: 'mint',
2070
+ outputs: [
2071
+ {
2072
+ name: '',
2073
+ type: 'uint256',
2074
+ },
2075
+ ],
2076
+ stateMutability: 'nonpayable',
2077
+ type: 'function',
2078
+ },
2079
+ {
2080
+ inputs: [
2081
+ {
2082
+ name: '_owner',
2083
+ type: 'address',
2084
+ },
2085
+ ],
2086
+ name: 'maxWithdraw',
2087
+ outputs: [
2088
+ {
2089
+ name: '',
2090
+ type: 'uint256',
2091
+ },
2092
+ ],
2093
+ stateMutability: 'view',
2094
+ type: 'function',
2095
+ },
2096
+ {
2097
+ inputs: [
2098
+ {
2099
+ name: '_assets',
2100
+ type: 'uint256',
2101
+ },
2102
+ ],
2103
+ name: 'previewWithdraw',
2104
+ outputs: [
2105
+ {
2106
+ name: '',
2107
+ type: 'uint256',
2108
+ },
2109
+ ],
2110
+ stateMutability: 'view',
2111
+ type: 'function',
2112
+ },
2113
+ {
2114
+ inputs: [
2115
+ {
2116
+ name: '_assets',
2117
+ type: 'uint256',
2118
+ },
2119
+ ],
2120
+ name: 'withdraw',
2121
+ outputs: [
2122
+ {
2123
+ name: '',
2124
+ type: 'uint256',
2125
+ },
2126
+ ],
2127
+ stateMutability: 'nonpayable',
2128
+ type: 'function',
2129
+ },
2130
+ {
2131
+ inputs: [
2132
+ {
2133
+ name: '_assets',
2134
+ type: 'uint256',
2135
+ },
2136
+ {
2137
+ name: '_receiver',
2138
+ type: 'address',
2139
+ },
2140
+ ],
2141
+ name: 'withdraw',
2142
+ outputs: [
2143
+ {
2144
+ name: '',
2145
+ type: 'uint256',
2146
+ },
2147
+ ],
2148
+ stateMutability: 'nonpayable',
2149
+ type: 'function',
2150
+ },
2151
+ {
2152
+ inputs: [
2153
+ {
2154
+ name: '_assets',
2155
+ type: 'uint256',
2156
+ },
2157
+ {
2158
+ name: '_receiver',
2159
+ type: 'address',
2160
+ },
2161
+ {
2162
+ name: '_owner',
2163
+ type: 'address',
2164
+ },
2165
+ ],
2166
+ name: 'withdraw',
2167
+ outputs: [
2168
+ {
2169
+ name: '',
2170
+ type: 'uint256',
2171
+ },
2172
+ ],
2173
+ stateMutability: 'nonpayable',
2174
+ type: 'function',
2175
+ },
2176
+ {
2177
+ inputs: [
2178
+ {
2179
+ name: '_owner',
2180
+ type: 'address',
2181
+ },
2182
+ ],
2183
+ name: 'maxRedeem',
2184
+ outputs: [
2185
+ {
2186
+ name: '',
2187
+ type: 'uint256',
2188
+ },
2189
+ ],
2190
+ stateMutability: 'view',
2191
+ type: 'function',
2192
+ },
2193
+ {
2194
+ inputs: [
2195
+ {
2196
+ name: '_shares',
2197
+ type: 'uint256',
2198
+ },
2199
+ ],
2200
+ name: 'previewRedeem',
2201
+ outputs: [
2202
+ {
2203
+ name: '',
2204
+ type: 'uint256',
2205
+ },
2206
+ ],
2207
+ stateMutability: 'view',
2208
+ type: 'function',
2209
+ },
2210
+ {
2211
+ inputs: [
2212
+ {
2213
+ name: '_shares',
2214
+ type: 'uint256',
2215
+ },
2216
+ ],
2217
+ name: 'redeem',
2218
+ outputs: [
2219
+ {
2220
+ name: '',
2221
+ type: 'uint256',
2222
+ },
2223
+ ],
2224
+ stateMutability: 'nonpayable',
2225
+ type: 'function',
2226
+ },
2227
+ {
2228
+ inputs: [
2229
+ {
2230
+ name: '_shares',
2231
+ type: 'uint256',
2232
+ },
2233
+ {
2234
+ name: '_receiver',
2235
+ type: 'address',
2236
+ },
2237
+ ],
2238
+ name: 'redeem',
2239
+ outputs: [
2240
+ {
2241
+ name: '',
2242
+ type: 'uint256',
2243
+ },
2244
+ ],
2245
+ stateMutability: 'nonpayable',
2246
+ type: 'function',
2247
+ },
2248
+ {
2249
+ inputs: [
2250
+ {
2251
+ name: '_shares',
2252
+ type: 'uint256',
2253
+ },
2254
+ {
2255
+ name: '_receiver',
2256
+ type: 'address',
2257
+ },
2258
+ {
2259
+ name: '_owner',
2260
+ type: 'address',
2261
+ },
2262
+ ],
2263
+ name: 'redeem',
2264
+ outputs: [
2265
+ {
2266
+ name: '',
2267
+ type: 'uint256',
2268
+ },
2269
+ ],
2270
+ stateMutability: 'nonpayable',
2271
+ type: 'function',
2272
+ },
2273
+ {
2274
+ inputs: [
2275
+ {
2276
+ name: '_shares',
2277
+ type: 'uint256',
2278
+ },
2279
+ {
2280
+ name: '_minAmountOut',
2281
+ type: 'uint256',
2282
+ },
2283
+ ],
2284
+ name: 'redeemWithMinAmountOut',
2285
+ outputs: [
2286
+ {
2287
+ name: '',
2288
+ type: 'uint256',
2289
+ },
2290
+ ],
2291
+ stateMutability: 'nonpayable',
2292
+ type: 'function',
2293
+ },
2294
+ {
2295
+ inputs: [
2296
+ {
2297
+ name: '_shares',
2298
+ type: 'uint256',
2299
+ },
2300
+ {
2301
+ name: '_minAmountOut',
2302
+ type: 'uint256',
2303
+ },
2304
+ {
2305
+ name: '_receiver',
2306
+ type: 'address',
2307
+ },
2308
+ ],
2309
+ name: 'redeemWithMinAmountOut',
2310
+ outputs: [
2311
+ {
2312
+ name: '',
2313
+ type: 'uint256',
2314
+ },
2315
+ ],
2316
+ stateMutability: 'nonpayable',
2317
+ type: 'function',
2318
+ },
2319
+ {
2320
+ inputs: [
2321
+ {
2322
+ name: '_shares',
2323
+ type: 'uint256',
2324
+ },
2325
+ {
2326
+ name: '_minAmountOut',
2327
+ type: 'uint256',
2328
+ },
2329
+ {
2330
+ name: '_receiver',
2331
+ type: 'address',
2332
+ },
2333
+ {
2334
+ name: '_owner',
2335
+ type: 'address',
2336
+ },
2337
+ ],
2338
+ name: 'redeemWithMinAmountOut',
2339
+ outputs: [
2340
+ {
2341
+ name: '',
2342
+ type: 'uint256',
2343
+ },
2344
+ ],
2345
+ stateMutability: 'nonpayable',
2346
+ type: 'function',
2347
+ },
2348
+ {
2349
+ inputs: [
2350
+ {
2351
+ name: '_assets',
2352
+ type: 'uint256',
2353
+ },
2354
+ ],
2355
+ name: 'convertToShares',
2356
+ outputs: [
2357
+ {
2358
+ name: '',
2359
+ type: 'uint256',
2360
+ },
2361
+ ],
2362
+ stateMutability: 'view',
2363
+ type: 'function',
2364
+ },
2365
+ {
2366
+ inputs: [
2367
+ {
2368
+ name: '_assets',
2369
+ type: 'uint256',
2370
+ },
2371
+ ],
2372
+ name: 'convertToSharesSafe',
2373
+ outputs: [
2374
+ {
2375
+ name: '',
2376
+ type: 'uint256',
2377
+ },
2378
+ ],
2379
+ stateMutability: 'view',
2380
+ type: 'function',
2381
+ },
2382
+ {
2383
+ inputs: [
2384
+ {
2385
+ name: '_shares',
2386
+ type: 'uint256',
2387
+ },
2388
+ ],
2389
+ name: 'convertToAssets',
2390
+ outputs: [
2391
+ {
2392
+ name: '',
2393
+ type: 'uint256',
2394
+ },
2395
+ ],
2396
+ stateMutability: 'view',
2397
+ type: 'function',
2398
+ },
2399
+ {
2400
+ inputs: [
2401
+ {
2402
+ name: '_shares',
2403
+ type: 'uint256',
2404
+ },
2405
+ ],
2406
+ name: 'convertToAssetsSafe',
2407
+ outputs: [
2408
+ {
2409
+ name: '',
2410
+ type: 'uint256',
2411
+ },
2412
+ ],
2413
+ stateMutability: 'view',
2414
+ type: 'function',
2415
+ },
2416
+ {
2417
+ inputs: [],
2418
+ name: 'sweepLeftovers',
2419
+ outputs: [
2420
+ {
2421
+ name: '',
2422
+ type: 'uint256',
2423
+ },
2424
+ ],
2425
+ stateMutability: 'nonpayable',
2426
+ type: 'function',
2427
+ },
2428
+ {
2429
+ inputs: [
2430
+ {
2431
+ name: '_asset',
2432
+ type: 'address',
2433
+ },
2434
+ {
2435
+ name: '_tokenName',
2436
+ type: 'string',
2437
+ },
2438
+ {
2439
+ name: '_tokenSymbol',
2440
+ type: 'string',
2441
+ },
2442
+ {
2443
+ name: '_undyHq',
2444
+ type: 'address',
2445
+ },
2446
+ {
2447
+ name: '_collateralVaultToken',
2448
+ type: 'address',
2449
+ },
2450
+ {
2451
+ name: '_collateralVaultTokenLegoId',
2452
+ type: 'uint256',
2453
+ },
2454
+ {
2455
+ name: '_collateralVaultTokenRipeVaultId',
2456
+ type: 'uint256',
2457
+ },
2458
+ {
2459
+ name: '_leverageVaultToken',
2460
+ type: 'address',
2461
+ },
2462
+ {
2463
+ name: '_leverageVaultTokenLegoId',
2464
+ type: 'uint256',
2465
+ },
2466
+ {
2467
+ name: '_leverageVaultTokenRipeVaultId',
2468
+ type: 'uint256',
2469
+ },
2470
+ {
2471
+ name: '_usdc',
2472
+ type: 'address',
2473
+ },
2474
+ {
2475
+ name: '_green',
2476
+ type: 'address',
2477
+ },
2478
+ {
2479
+ name: '_savingsGreen',
2480
+ type: 'address',
2481
+ },
2482
+ {
2483
+ name: '_minHqTimeLock',
2484
+ type: 'uint256',
2485
+ },
2486
+ {
2487
+ name: '_maxHqTimeLock',
2488
+ type: 'uint256',
2489
+ },
2490
+ {
2491
+ name: '_startingAgent',
2492
+ type: 'address',
2493
+ },
2494
+ {
2495
+ name: '_levgVaultHelper',
2496
+ type: 'address',
2497
+ },
2498
+ ],
2499
+ outputs: [],
2500
+ stateMutability: 'nonpayable',
2501
+ type: 'constructor',
2502
+ },
2503
+ ];
2504
+ export const deployAddress = '0x936c3C493Dc45D0f4D2FA36C7640f3BCABd64B4B';
2505
+ function getRequest(method, args, contractAddressOrOptions) {
2506
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2507
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2508
+ const call = {
2509
+ contractName: 'LevgVault',
2510
+ method,
2511
+ args,
2512
+ address,
2513
+ deployAddress,
2514
+ defaultValue,
2515
+ getAbi: () => abi,
2516
+ with: (options) => {
2517
+ call.address = options.contractAddress;
2518
+ call.defaultValue = options.defaultValue;
2519
+ return call;
2520
+ },
2521
+ defaultTo: (defaultValue) => {
2522
+ call.defaultValue = defaultValue;
2523
+ return call;
2524
+ },
2525
+ at: (address) => {
2526
+ call.address = address;
2527
+ return call;
2528
+ },
2529
+ };
2530
+ return call;
2531
+ }
2532
+ export const call = {
2533
+ name: (...args) => getRequest('name', args),
2534
+ symbol: (...args) => getRequest('symbol', args),
2535
+ decimals: (...args) => getRequest('decimals', args),
2536
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
2537
+ undyHq: (...args) => getRequest('undyHq', args),
2538
+ blacklisted: (...args) => getRequest('blacklisted', args),
2539
+ isPaused: (...args) => getRequest('isPaused', args),
2540
+ balanceOf: (...args) => getRequest('balanceOf', args),
2541
+ allowance: (...args) => getRequest('allowance', args),
2542
+ totalSupply: (...args) => getRequest('totalSupply', args),
2543
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
2544
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
2545
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
2546
+ VERSION: (...args) => getRequest('VERSION', args),
2547
+ nonces: (...args) => getRequest('nonces', args),
2548
+ vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
2549
+ levgVaultHelper: (...args) => getRequest('levgVaultHelper', args),
2550
+ collateralAsset: (...args) => getRequest('collateralAsset', args),
2551
+ leverageAsset: (...args) => getRequest('leverageAsset', args),
2552
+ managers: (...args) => getRequest('managers', args),
2553
+ indexOfManager: (...args) => getRequest('indexOfManager', args),
2554
+ numManagers: (...args) => getRequest('numManagers', args),
2555
+ usdcSlippageAllowed: (...args) => getRequest('usdcSlippageAllowed', args),
2556
+ greenSlippageAllowed: (...args) => getRequest('greenSlippageAllowed', args),
2557
+ maxDebtRatio: (...args) => getRequest('maxDebtRatio', args),
2558
+ netUserCapital: (...args) => getRequest('netUserCapital', args),
2559
+ USDC: (...args) => getRequest('USDC', args),
2560
+ asset: (...args) => getRequest('asset', args),
2561
+ totalAssets: (...args) => getRequest('totalAssets', args),
2562
+ getTotalAssets: (...args) => getRequest('getTotalAssets', args),
2563
+ isLeveragedVault: (...args) => getRequest('isLeveragedVault', args),
2564
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
2565
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
2566
+ maxMint: (...args) => getRequest('maxMint', args),
2567
+ previewMint: (...args) => getRequest('previewMint', args),
2568
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
2569
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
2570
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
2571
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
2572
+ convertToShares: (...args) => getRequest('convertToShares', args),
2573
+ convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
2574
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
2575
+ convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
2576
+ };
2577
+ function getMutation(functionName) {
2578
+ return {
2579
+ contractName: 'LevgVault',
2580
+ functionName,
2581
+ deployAddress,
2582
+ argsType: undefined,
2583
+ getAbi: () => abi,
2584
+ };
2585
+ }
2586
+ export const mutation = {
2587
+ transfer: getMutation('transfer'),
2588
+ transferFrom: getMutation('transferFrom'),
2589
+ approve: getMutation('approve'),
2590
+ increaseAllowance: getMutation('increaseAllowance'),
2591
+ decreaseAllowance: getMutation('decreaseAllowance'),
2592
+ burn: getMutation('burn'),
2593
+ permit: getMutation('permit'),
2594
+ setBlacklist: getMutation('setBlacklist'),
2595
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
2596
+ pause: getMutation('pause'),
2597
+ depositForYield: getMutation('depositForYield'),
2598
+ withdrawFromYield: getMutation('withdrawFromYield'),
2599
+ swapTokens: getMutation('swapTokens'),
2600
+ addCollateral: getMutation('addCollateral'),
2601
+ removeCollateral: getMutation('removeCollateral'),
2602
+ borrow: getMutation('borrow'),
2603
+ repayDebt: getMutation('repayDebt'),
2604
+ claimIncentives: getMutation('claimIncentives'),
2605
+ setCollateralVault: getMutation('setCollateralVault'),
2606
+ setLeverageVault: getMutation('setLeverageVault'),
2607
+ setSlippagesAllowed: getMutation('setSlippagesAllowed'),
2608
+ setLevgVaultHelper: getMutation('setLevgVaultHelper'),
2609
+ setMaxDebtRatio: getMutation('setMaxDebtRatio'),
2610
+ addManager: getMutation('addManager'),
2611
+ removeManager: getMutation('removeManager'),
2612
+ deposit: getMutation('deposit'),
2613
+ depositWithMinAmountOut: getMutation('depositWithMinAmountOut'),
2614
+ mint: getMutation('mint'),
2615
+ withdraw: getMutation('withdraw'),
2616
+ redeem: getMutation('redeem'),
2617
+ redeemWithMinAmountOut: getMutation('redeemWithMinAmountOut'),
2618
+ sweepLeftovers: getMutation('sweepLeftovers'),
2619
+ };
2620
+ export function toSdk(deployAddress, publicClient, walletClient) {
2621
+ return {
2622
+ deployAddress,
2623
+ abi,
2624
+ // Queries
2625
+ name: (...args) => singleQuery(publicClient, call.name(...args).at(deployAddress)),
2626
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args).at(deployAddress)),
2627
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args).at(deployAddress)),
2628
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress)),
2629
+ undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args).at(deployAddress)),
2630
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args).at(deployAddress)),
2631
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args).at(deployAddress)),
2632
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args).at(deployAddress)),
2633
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args).at(deployAddress)),
2634
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args).at(deployAddress)),
2635
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args).at(deployAddress)),
2636
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args).at(deployAddress)),
2637
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args).at(deployAddress)),
2638
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args).at(deployAddress)),
2639
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args).at(deployAddress)),
2640
+ vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args).at(deployAddress)),
2641
+ levgVaultHelper: (...args) => singleQuery(publicClient, call.levgVaultHelper(...args).at(deployAddress)),
2642
+ collateralAsset: (...args) => singleQuery(publicClient, call.collateralAsset(...args).at(deployAddress)),
2643
+ leverageAsset: (...args) => singleQuery(publicClient, call.leverageAsset(...args).at(deployAddress)),
2644
+ managers: (...args) => singleQuery(publicClient, call.managers(...args).at(deployAddress)),
2645
+ indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args).at(deployAddress)),
2646
+ numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args).at(deployAddress)),
2647
+ usdcSlippageAllowed: (...args) => singleQuery(publicClient, call.usdcSlippageAllowed(...args).at(deployAddress)),
2648
+ greenSlippageAllowed: (...args) => singleQuery(publicClient, call.greenSlippageAllowed(...args).at(deployAddress)),
2649
+ maxDebtRatio: (...args) => singleQuery(publicClient, call.maxDebtRatio(...args).at(deployAddress)),
2650
+ netUserCapital: (...args) => singleQuery(publicClient, call.netUserCapital(...args).at(deployAddress)),
2651
+ USDC: (...args) => singleQuery(publicClient, call.USDC(...args).at(deployAddress)),
2652
+ asset: (...args) => singleQuery(publicClient, call.asset(...args).at(deployAddress)),
2653
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args).at(deployAddress)),
2654
+ getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args).at(deployAddress)),
2655
+ isLeveragedVault: (...args) => singleQuery(publicClient, call.isLeveragedVault(...args).at(deployAddress)),
2656
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args).at(deployAddress)),
2657
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args).at(deployAddress)),
2658
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args).at(deployAddress)),
2659
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args).at(deployAddress)),
2660
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args).at(deployAddress)),
2661
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args).at(deployAddress)),
2662
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args).at(deployAddress)),
2663
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args).at(deployAddress)),
2664
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args).at(deployAddress)),
2665
+ convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args).at(deployAddress)),
2666
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args).at(deployAddress)),
2667
+ convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args).at(deployAddress)),
2668
+ // Mutations
2669
+ transfer: (...args) => mutate(walletClient, mutation.transfer, { address: deployAddress })(...args),
2670
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom, { address: deployAddress })(...args),
2671
+ approve: (...args) => mutate(walletClient, mutation.approve, { address: deployAddress })(...args),
2672
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance, { address: deployAddress })(...args),
2673
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance, { address: deployAddress })(...args),
2674
+ burn: (...args) => mutate(walletClient, mutation.burn, { address: deployAddress })(...args),
2675
+ permit: (...args) => mutate(walletClient, mutation.permit, { address: deployAddress })(...args),
2676
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist, { address: deployAddress })(...args),
2677
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens, { address: deployAddress })(...args),
2678
+ pause: (...args) => mutate(walletClient, mutation.pause, { address: deployAddress })(...args),
2679
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress })(...args),
2680
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress })(...args),
2681
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
2682
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress })(...args),
2683
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress })(...args),
2684
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
2685
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
2686
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress })(...args),
2687
+ setCollateralVault: (...args) => mutate(walletClient, mutation.setCollateralVault, { address: deployAddress })(...args),
2688
+ setLeverageVault: (...args) => mutate(walletClient, mutation.setLeverageVault, { address: deployAddress })(...args),
2689
+ setSlippagesAllowed: (...args) => mutate(walletClient, mutation.setSlippagesAllowed, { address: deployAddress })(...args),
2690
+ setLevgVaultHelper: (...args) => mutate(walletClient, mutation.setLevgVaultHelper, { address: deployAddress })(...args),
2691
+ setMaxDebtRatio: (...args) => mutate(walletClient, mutation.setMaxDebtRatio, { address: deployAddress })(...args),
2692
+ addManager: (...args) => mutate(walletClient, mutation.addManager, { address: deployAddress })(...args),
2693
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager, { address: deployAddress })(...args),
2694
+ deposit: (...args) => mutate(walletClient, mutation.deposit, { address: deployAddress })(...args),
2695
+ depositWithMinAmountOut: (...args) => mutate(walletClient, mutation.depositWithMinAmountOut, { address: deployAddress })(...args),
2696
+ mint: (...args) => mutate(walletClient, mutation.mint, { address: deployAddress })(...args),
2697
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw, { address: deployAddress })(...args),
2698
+ redeem: (...args) => mutate(walletClient, mutation.redeem, { address: deployAddress })(...args),
2699
+ redeemWithMinAmountOut: (...args) => mutate(walletClient, mutation.redeemWithMinAmountOut, { address: deployAddress })(...args),
2700
+ sweepLeftovers: (...args) => mutate(walletClient, mutation.sweepLeftovers, { address: deployAddress })(...args),
2701
+ };
2702
+ }