@underscore-finance/sdk 1.0.10 → 1.0.12

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,1990 @@
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
+ stateMutability: 'view',
9
+ type: 'function',
10
+ name: 'getAddys',
11
+ inputs: [],
12
+ outputs: [
13
+ {
14
+ name: '',
15
+ type: 'tuple',
16
+ components: [
17
+ {
18
+ name: 'hq',
19
+ type: 'address',
20
+ },
21
+ {
22
+ name: 'undyToken',
23
+ type: 'address',
24
+ },
25
+ {
26
+ name: 'ledger',
27
+ type: 'address',
28
+ },
29
+ {
30
+ name: 'missionControl',
31
+ type: 'address',
32
+ },
33
+ {
34
+ name: 'legoBook',
35
+ type: 'address',
36
+ },
37
+ {
38
+ name: 'switchboard',
39
+ type: 'address',
40
+ },
41
+ {
42
+ name: 'hatchery',
43
+ type: 'address',
44
+ },
45
+ {
46
+ name: 'lootDistributor',
47
+ type: 'address',
48
+ },
49
+ {
50
+ name: 'appraiser',
51
+ type: 'address',
52
+ },
53
+ {
54
+ name: 'walletBackpack',
55
+ type: 'address',
56
+ },
57
+ {
58
+ name: 'billing',
59
+ type: 'address',
60
+ },
61
+ ],
62
+ },
63
+ ],
64
+ },
65
+ {
66
+ stateMutability: 'view',
67
+ type: 'function',
68
+ name: 'getUndyHq',
69
+ inputs: [],
70
+ outputs: [
71
+ {
72
+ name: '',
73
+ type: 'address',
74
+ },
75
+ ],
76
+ },
77
+ {
78
+ stateMutability: 'nonpayable',
79
+ type: 'function',
80
+ name: 'claimRewards',
81
+ inputs: [
82
+ {
83
+ name: '_user',
84
+ type: 'address',
85
+ },
86
+ {
87
+ name: '_rewardToken',
88
+ type: 'address',
89
+ },
90
+ {
91
+ name: '_rewardAmount',
92
+ type: 'uint256',
93
+ },
94
+ {
95
+ name: '_extraData',
96
+ type: 'bytes32',
97
+ },
98
+ ],
99
+ outputs: [
100
+ {
101
+ name: '',
102
+ type: 'uint256',
103
+ },
104
+ {
105
+ name: '',
106
+ type: 'uint256',
107
+ },
108
+ ],
109
+ },
110
+ {
111
+ stateMutability: 'nonpayable',
112
+ type: 'function',
113
+ name: 'claimRewards',
114
+ inputs: [
115
+ {
116
+ name: '_user',
117
+ type: 'address',
118
+ },
119
+ {
120
+ name: '_rewardToken',
121
+ type: 'address',
122
+ },
123
+ {
124
+ name: '_rewardAmount',
125
+ type: 'uint256',
126
+ },
127
+ {
128
+ name: '_extraData',
129
+ type: 'bytes32',
130
+ },
131
+ {
132
+ name: '_miniAddys',
133
+ type: 'tuple',
134
+ components: [
135
+ {
136
+ name: 'ledger',
137
+ type: 'address',
138
+ },
139
+ {
140
+ name: 'missionControl',
141
+ type: 'address',
142
+ },
143
+ {
144
+ name: 'legoBook',
145
+ type: 'address',
146
+ },
147
+ {
148
+ name: 'appraiser',
149
+ type: 'address',
150
+ },
151
+ ],
152
+ },
153
+ ],
154
+ outputs: [
155
+ {
156
+ name: '',
157
+ type: 'uint256',
158
+ },
159
+ {
160
+ name: '',
161
+ type: 'uint256',
162
+ },
163
+ ],
164
+ },
165
+ {
166
+ stateMutability: 'view',
167
+ type: 'function',
168
+ name: 'hasClaimableRewards',
169
+ inputs: [
170
+ {
171
+ name: '_user',
172
+ type: 'address',
173
+ },
174
+ ],
175
+ outputs: [
176
+ {
177
+ name: '',
178
+ type: 'bool',
179
+ },
180
+ ],
181
+ },
182
+ {
183
+ stateMutability: 'view',
184
+ type: 'function',
185
+ name: 'hasCapability',
186
+ inputs: [
187
+ {
188
+ name: '_action',
189
+ type: 'uint256',
190
+ },
191
+ ],
192
+ outputs: [
193
+ {
194
+ name: '',
195
+ type: 'bool',
196
+ },
197
+ ],
198
+ },
199
+ {
200
+ stateMutability: 'view',
201
+ type: 'function',
202
+ name: 'getRegistries',
203
+ inputs: [],
204
+ outputs: [
205
+ {
206
+ name: '',
207
+ type: 'address[]',
208
+ },
209
+ ],
210
+ },
211
+ {
212
+ stateMutability: 'view',
213
+ type: 'function',
214
+ name: 'isDexLego',
215
+ inputs: [],
216
+ outputs: [
217
+ {
218
+ name: '',
219
+ type: 'bool',
220
+ },
221
+ ],
222
+ },
223
+ {
224
+ stateMutability: 'view',
225
+ type: 'function',
226
+ name: 'isYieldLego',
227
+ inputs: [],
228
+ outputs: [
229
+ {
230
+ name: '',
231
+ type: 'bool',
232
+ },
233
+ ],
234
+ },
235
+ {
236
+ stateMutability: 'view',
237
+ type: 'function',
238
+ name: 'isPaused',
239
+ inputs: [],
240
+ outputs: [
241
+ {
242
+ name: '',
243
+ type: 'bool',
244
+ },
245
+ ],
246
+ },
247
+ {
248
+ stateMutability: 'view',
249
+ type: 'function',
250
+ name: 'getPricePerShare',
251
+ inputs: [
252
+ {
253
+ name: '_asset',
254
+ type: 'address',
255
+ },
256
+ {
257
+ name: '_decimals',
258
+ type: 'uint256',
259
+ },
260
+ ],
261
+ outputs: [
262
+ {
263
+ name: '',
264
+ type: 'uint256',
265
+ },
266
+ ],
267
+ },
268
+ {
269
+ stateMutability: 'view',
270
+ type: 'function',
271
+ name: 'getPrice',
272
+ inputs: [
273
+ {
274
+ name: '_asset',
275
+ type: 'address',
276
+ },
277
+ {
278
+ name: '_decimals',
279
+ type: 'uint256',
280
+ },
281
+ ],
282
+ outputs: [
283
+ {
284
+ name: '',
285
+ type: 'uint256',
286
+ },
287
+ ],
288
+ },
289
+ {
290
+ stateMutability: 'view',
291
+ type: 'function',
292
+ name: 'getAccessForLego',
293
+ inputs: [
294
+ {
295
+ name: '_user',
296
+ type: 'address',
297
+ },
298
+ {
299
+ name: '_action',
300
+ type: 'uint256',
301
+ },
302
+ ],
303
+ outputs: [
304
+ {
305
+ name: '',
306
+ type: 'address',
307
+ },
308
+ {
309
+ name: '',
310
+ type: 'string',
311
+ },
312
+ {
313
+ name: '',
314
+ type: 'uint256',
315
+ },
316
+ ],
317
+ },
318
+ {
319
+ stateMutability: 'nonpayable',
320
+ type: 'function',
321
+ name: 'pause',
322
+ inputs: [
323
+ {
324
+ name: '_shouldPause',
325
+ type: 'bool',
326
+ },
327
+ ],
328
+ outputs: [],
329
+ },
330
+ {
331
+ stateMutability: 'nonpayable',
332
+ type: 'function',
333
+ name: 'recoverFunds',
334
+ inputs: [
335
+ {
336
+ name: '_recipient',
337
+ type: 'address',
338
+ },
339
+ {
340
+ name: '_asset',
341
+ type: 'address',
342
+ },
343
+ ],
344
+ outputs: [],
345
+ },
346
+ {
347
+ stateMutability: 'nonpayable',
348
+ type: 'function',
349
+ name: 'recoverFundsMany',
350
+ inputs: [
351
+ {
352
+ name: '_recipient',
353
+ type: 'address',
354
+ },
355
+ {
356
+ name: '_assets',
357
+ type: 'address[]',
358
+ },
359
+ ],
360
+ outputs: [],
361
+ },
362
+ {
363
+ stateMutability: 'nonpayable',
364
+ type: 'function',
365
+ name: 'depositForYield',
366
+ inputs: [
367
+ {
368
+ name: '_asset',
369
+ type: 'address',
370
+ },
371
+ {
372
+ name: '_amount',
373
+ type: 'uint256',
374
+ },
375
+ {
376
+ name: '_vaultAddr',
377
+ type: 'address',
378
+ },
379
+ {
380
+ name: '_extraData',
381
+ type: 'bytes32',
382
+ },
383
+ {
384
+ name: '_recipient',
385
+ type: 'address',
386
+ },
387
+ ],
388
+ outputs: [
389
+ {
390
+ name: '',
391
+ type: 'uint256',
392
+ },
393
+ {
394
+ name: '',
395
+ type: 'address',
396
+ },
397
+ {
398
+ name: '',
399
+ type: 'uint256',
400
+ },
401
+ {
402
+ name: '',
403
+ type: 'uint256',
404
+ },
405
+ ],
406
+ },
407
+ {
408
+ stateMutability: 'nonpayable',
409
+ type: 'function',
410
+ name: 'depositForYield',
411
+ inputs: [
412
+ {
413
+ name: '_asset',
414
+ type: 'address',
415
+ },
416
+ {
417
+ name: '_amount',
418
+ type: 'uint256',
419
+ },
420
+ {
421
+ name: '_vaultAddr',
422
+ type: 'address',
423
+ },
424
+ {
425
+ name: '_extraData',
426
+ type: 'bytes32',
427
+ },
428
+ {
429
+ name: '_recipient',
430
+ type: 'address',
431
+ },
432
+ {
433
+ name: '_miniAddys',
434
+ type: 'tuple',
435
+ components: [
436
+ {
437
+ name: 'ledger',
438
+ type: 'address',
439
+ },
440
+ {
441
+ name: 'missionControl',
442
+ type: 'address',
443
+ },
444
+ {
445
+ name: 'legoBook',
446
+ type: 'address',
447
+ },
448
+ {
449
+ name: 'appraiser',
450
+ type: 'address',
451
+ },
452
+ ],
453
+ },
454
+ ],
455
+ outputs: [
456
+ {
457
+ name: '',
458
+ type: 'uint256',
459
+ },
460
+ {
461
+ name: '',
462
+ type: 'address',
463
+ },
464
+ {
465
+ name: '',
466
+ type: 'uint256',
467
+ },
468
+ {
469
+ name: '',
470
+ type: 'uint256',
471
+ },
472
+ ],
473
+ },
474
+ {
475
+ stateMutability: 'nonpayable',
476
+ type: 'function',
477
+ name: 'withdrawFromYield',
478
+ inputs: [
479
+ {
480
+ name: '_vaultToken',
481
+ type: 'address',
482
+ },
483
+ {
484
+ name: '_amount',
485
+ type: 'uint256',
486
+ },
487
+ {
488
+ name: '_extraData',
489
+ type: 'bytes32',
490
+ },
491
+ {
492
+ name: '_recipient',
493
+ type: 'address',
494
+ },
495
+ ],
496
+ outputs: [
497
+ {
498
+ name: '',
499
+ type: 'uint256',
500
+ },
501
+ {
502
+ name: '',
503
+ type: 'address',
504
+ },
505
+ {
506
+ name: '',
507
+ type: 'uint256',
508
+ },
509
+ {
510
+ name: '',
511
+ type: 'uint256',
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ stateMutability: 'nonpayable',
517
+ type: 'function',
518
+ name: 'withdrawFromYield',
519
+ inputs: [
520
+ {
521
+ name: '_vaultToken',
522
+ type: 'address',
523
+ },
524
+ {
525
+ name: '_amount',
526
+ type: 'uint256',
527
+ },
528
+ {
529
+ name: '_extraData',
530
+ type: 'bytes32',
531
+ },
532
+ {
533
+ name: '_recipient',
534
+ type: 'address',
535
+ },
536
+ {
537
+ name: '_miniAddys',
538
+ type: 'tuple',
539
+ components: [
540
+ {
541
+ name: 'ledger',
542
+ type: 'address',
543
+ },
544
+ {
545
+ name: 'missionControl',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: 'legoBook',
550
+ type: 'address',
551
+ },
552
+ {
553
+ name: 'appraiser',
554
+ type: 'address',
555
+ },
556
+ ],
557
+ },
558
+ ],
559
+ outputs: [
560
+ {
561
+ name: '',
562
+ type: 'uint256',
563
+ },
564
+ {
565
+ name: '',
566
+ type: 'address',
567
+ },
568
+ {
569
+ name: '',
570
+ type: 'uint256',
571
+ },
572
+ {
573
+ name: '',
574
+ type: 'uint256',
575
+ },
576
+ ],
577
+ },
578
+ {
579
+ stateMutability: 'nonpayable',
580
+ type: 'function',
581
+ name: 'swapTokens',
582
+ inputs: [
583
+ {
584
+ name: '_amountIn',
585
+ type: 'uint256',
586
+ },
587
+ {
588
+ name: '_minAmountOut',
589
+ type: 'uint256',
590
+ },
591
+ {
592
+ name: '_tokenPath',
593
+ type: 'address[]',
594
+ },
595
+ {
596
+ name: '_poolPath',
597
+ type: 'address[]',
598
+ },
599
+ {
600
+ name: '_recipient',
601
+ type: 'address',
602
+ },
603
+ ],
604
+ outputs: [
605
+ {
606
+ name: '',
607
+ type: 'uint256',
608
+ },
609
+ {
610
+ name: '',
611
+ type: 'uint256',
612
+ },
613
+ {
614
+ name: '',
615
+ type: 'uint256',
616
+ },
617
+ ],
618
+ },
619
+ {
620
+ stateMutability: 'nonpayable',
621
+ type: 'function',
622
+ name: 'swapTokens',
623
+ inputs: [
624
+ {
625
+ name: '_amountIn',
626
+ type: 'uint256',
627
+ },
628
+ {
629
+ name: '_minAmountOut',
630
+ type: 'uint256',
631
+ },
632
+ {
633
+ name: '_tokenPath',
634
+ type: 'address[]',
635
+ },
636
+ {
637
+ name: '_poolPath',
638
+ type: 'address[]',
639
+ },
640
+ {
641
+ name: '_recipient',
642
+ type: 'address',
643
+ },
644
+ {
645
+ name: '_miniAddys',
646
+ type: 'tuple',
647
+ components: [
648
+ {
649
+ name: 'ledger',
650
+ type: 'address',
651
+ },
652
+ {
653
+ name: 'missionControl',
654
+ type: 'address',
655
+ },
656
+ {
657
+ name: 'legoBook',
658
+ type: 'address',
659
+ },
660
+ {
661
+ name: 'appraiser',
662
+ type: 'address',
663
+ },
664
+ ],
665
+ },
666
+ ],
667
+ outputs: [
668
+ {
669
+ name: '',
670
+ type: 'uint256',
671
+ },
672
+ {
673
+ name: '',
674
+ type: 'uint256',
675
+ },
676
+ {
677
+ name: '',
678
+ type: 'uint256',
679
+ },
680
+ ],
681
+ },
682
+ {
683
+ stateMutability: 'nonpayable',
684
+ type: 'function',
685
+ name: 'mintOrRedeemAsset',
686
+ inputs: [
687
+ {
688
+ name: '_tokenIn',
689
+ type: 'address',
690
+ },
691
+ {
692
+ name: '_tokenOut',
693
+ type: 'address',
694
+ },
695
+ {
696
+ name: '_tokenInAmount',
697
+ type: 'uint256',
698
+ },
699
+ {
700
+ name: '_minAmountOut',
701
+ type: 'uint256',
702
+ },
703
+ {
704
+ name: '_extraData',
705
+ type: 'bytes32',
706
+ },
707
+ {
708
+ name: '_recipient',
709
+ type: 'address',
710
+ },
711
+ ],
712
+ outputs: [
713
+ {
714
+ name: '',
715
+ type: 'uint256',
716
+ },
717
+ {
718
+ name: '',
719
+ type: 'uint256',
720
+ },
721
+ {
722
+ name: '',
723
+ type: 'bool',
724
+ },
725
+ {
726
+ name: '',
727
+ type: 'uint256',
728
+ },
729
+ ],
730
+ },
731
+ {
732
+ stateMutability: 'nonpayable',
733
+ type: 'function',
734
+ name: 'mintOrRedeemAsset',
735
+ inputs: [
736
+ {
737
+ name: '_tokenIn',
738
+ type: 'address',
739
+ },
740
+ {
741
+ name: '_tokenOut',
742
+ type: 'address',
743
+ },
744
+ {
745
+ name: '_tokenInAmount',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: '_minAmountOut',
750
+ type: 'uint256',
751
+ },
752
+ {
753
+ name: '_extraData',
754
+ type: 'bytes32',
755
+ },
756
+ {
757
+ name: '_recipient',
758
+ type: 'address',
759
+ },
760
+ {
761
+ name: '_miniAddys',
762
+ type: 'tuple',
763
+ components: [
764
+ {
765
+ name: 'ledger',
766
+ type: 'address',
767
+ },
768
+ {
769
+ name: 'missionControl',
770
+ type: 'address',
771
+ },
772
+ {
773
+ name: 'legoBook',
774
+ type: 'address',
775
+ },
776
+ {
777
+ name: 'appraiser',
778
+ type: 'address',
779
+ },
780
+ ],
781
+ },
782
+ ],
783
+ outputs: [
784
+ {
785
+ name: '',
786
+ type: 'uint256',
787
+ },
788
+ {
789
+ name: '',
790
+ type: 'uint256',
791
+ },
792
+ {
793
+ name: '',
794
+ type: 'bool',
795
+ },
796
+ {
797
+ name: '',
798
+ type: 'uint256',
799
+ },
800
+ ],
801
+ },
802
+ {
803
+ stateMutability: 'nonpayable',
804
+ type: 'function',
805
+ name: 'confirmMintOrRedeemAsset',
806
+ inputs: [
807
+ {
808
+ name: '_tokenIn',
809
+ type: 'address',
810
+ },
811
+ {
812
+ name: '_tokenOut',
813
+ type: 'address',
814
+ },
815
+ {
816
+ name: '_extraData',
817
+ type: 'bytes32',
818
+ },
819
+ {
820
+ name: '_recipient',
821
+ type: 'address',
822
+ },
823
+ ],
824
+ outputs: [
825
+ {
826
+ name: '',
827
+ type: 'uint256',
828
+ },
829
+ {
830
+ name: '',
831
+ type: 'uint256',
832
+ },
833
+ ],
834
+ },
835
+ {
836
+ stateMutability: 'nonpayable',
837
+ type: 'function',
838
+ name: 'confirmMintOrRedeemAsset',
839
+ inputs: [
840
+ {
841
+ name: '_tokenIn',
842
+ type: 'address',
843
+ },
844
+ {
845
+ name: '_tokenOut',
846
+ type: 'address',
847
+ },
848
+ {
849
+ name: '_extraData',
850
+ type: 'bytes32',
851
+ },
852
+ {
853
+ name: '_recipient',
854
+ type: 'address',
855
+ },
856
+ {
857
+ name: '_miniAddys',
858
+ type: 'tuple',
859
+ components: [
860
+ {
861
+ name: 'ledger',
862
+ type: 'address',
863
+ },
864
+ {
865
+ name: 'missionControl',
866
+ type: 'address',
867
+ },
868
+ {
869
+ name: 'legoBook',
870
+ type: 'address',
871
+ },
872
+ {
873
+ name: 'appraiser',
874
+ type: 'address',
875
+ },
876
+ ],
877
+ },
878
+ ],
879
+ outputs: [
880
+ {
881
+ name: '',
882
+ type: 'uint256',
883
+ },
884
+ {
885
+ name: '',
886
+ type: 'uint256',
887
+ },
888
+ ],
889
+ },
890
+ {
891
+ stateMutability: 'nonpayable',
892
+ type: 'function',
893
+ name: 'addCollateral',
894
+ inputs: [
895
+ {
896
+ name: '_asset',
897
+ type: 'address',
898
+ },
899
+ {
900
+ name: '_amount',
901
+ type: 'uint256',
902
+ },
903
+ {
904
+ name: '_extraData',
905
+ type: 'bytes32',
906
+ },
907
+ {
908
+ name: '_recipient',
909
+ type: 'address',
910
+ },
911
+ ],
912
+ outputs: [
913
+ {
914
+ name: '',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ name: '',
919
+ type: 'uint256',
920
+ },
921
+ ],
922
+ },
923
+ {
924
+ stateMutability: 'nonpayable',
925
+ type: 'function',
926
+ name: 'addCollateral',
927
+ inputs: [
928
+ {
929
+ name: '_asset',
930
+ type: 'address',
931
+ },
932
+ {
933
+ name: '_amount',
934
+ type: 'uint256',
935
+ },
936
+ {
937
+ name: '_extraData',
938
+ type: 'bytes32',
939
+ },
940
+ {
941
+ name: '_recipient',
942
+ type: 'address',
943
+ },
944
+ {
945
+ name: '_miniAddys',
946
+ type: 'tuple',
947
+ components: [
948
+ {
949
+ name: 'ledger',
950
+ type: 'address',
951
+ },
952
+ {
953
+ name: 'missionControl',
954
+ type: 'address',
955
+ },
956
+ {
957
+ name: 'legoBook',
958
+ type: 'address',
959
+ },
960
+ {
961
+ name: 'appraiser',
962
+ type: 'address',
963
+ },
964
+ ],
965
+ },
966
+ ],
967
+ outputs: [
968
+ {
969
+ name: '',
970
+ type: 'uint256',
971
+ },
972
+ {
973
+ name: '',
974
+ type: 'uint256',
975
+ },
976
+ ],
977
+ },
978
+ {
979
+ stateMutability: 'nonpayable',
980
+ type: 'function',
981
+ name: 'removeCollateral',
982
+ inputs: [
983
+ {
984
+ name: '_asset',
985
+ type: 'address',
986
+ },
987
+ {
988
+ name: '_amount',
989
+ type: 'uint256',
990
+ },
991
+ {
992
+ name: '_extraData',
993
+ type: 'bytes32',
994
+ },
995
+ {
996
+ name: '_recipient',
997
+ type: 'address',
998
+ },
999
+ ],
1000
+ outputs: [
1001
+ {
1002
+ name: '',
1003
+ type: 'uint256',
1004
+ },
1005
+ {
1006
+ name: '',
1007
+ type: 'uint256',
1008
+ },
1009
+ ],
1010
+ },
1011
+ {
1012
+ stateMutability: 'nonpayable',
1013
+ type: 'function',
1014
+ name: 'removeCollateral',
1015
+ inputs: [
1016
+ {
1017
+ name: '_asset',
1018
+ type: 'address',
1019
+ },
1020
+ {
1021
+ name: '_amount',
1022
+ type: 'uint256',
1023
+ },
1024
+ {
1025
+ name: '_extraData',
1026
+ type: 'bytes32',
1027
+ },
1028
+ {
1029
+ name: '_recipient',
1030
+ type: 'address',
1031
+ },
1032
+ {
1033
+ name: '_miniAddys',
1034
+ type: 'tuple',
1035
+ components: [
1036
+ {
1037
+ name: 'ledger',
1038
+ type: 'address',
1039
+ },
1040
+ {
1041
+ name: 'missionControl',
1042
+ type: 'address',
1043
+ },
1044
+ {
1045
+ name: 'legoBook',
1046
+ type: 'address',
1047
+ },
1048
+ {
1049
+ name: 'appraiser',
1050
+ type: 'address',
1051
+ },
1052
+ ],
1053
+ },
1054
+ ],
1055
+ outputs: [
1056
+ {
1057
+ name: '',
1058
+ type: 'uint256',
1059
+ },
1060
+ {
1061
+ name: '',
1062
+ type: 'uint256',
1063
+ },
1064
+ ],
1065
+ },
1066
+ {
1067
+ stateMutability: 'nonpayable',
1068
+ type: 'function',
1069
+ name: 'borrow',
1070
+ inputs: [
1071
+ {
1072
+ name: '_borrowAsset',
1073
+ type: 'address',
1074
+ },
1075
+ {
1076
+ name: '_amount',
1077
+ type: 'uint256',
1078
+ },
1079
+ {
1080
+ name: '_extraData',
1081
+ type: 'bytes32',
1082
+ },
1083
+ {
1084
+ name: '_recipient',
1085
+ type: 'address',
1086
+ },
1087
+ ],
1088
+ outputs: [
1089
+ {
1090
+ name: '',
1091
+ type: 'uint256',
1092
+ },
1093
+ {
1094
+ name: '',
1095
+ type: 'uint256',
1096
+ },
1097
+ ],
1098
+ },
1099
+ {
1100
+ stateMutability: 'nonpayable',
1101
+ type: 'function',
1102
+ name: 'borrow',
1103
+ inputs: [
1104
+ {
1105
+ name: '_borrowAsset',
1106
+ type: 'address',
1107
+ },
1108
+ {
1109
+ name: '_amount',
1110
+ type: 'uint256',
1111
+ },
1112
+ {
1113
+ name: '_extraData',
1114
+ type: 'bytes32',
1115
+ },
1116
+ {
1117
+ name: '_recipient',
1118
+ type: 'address',
1119
+ },
1120
+ {
1121
+ name: '_miniAddys',
1122
+ type: 'tuple',
1123
+ components: [
1124
+ {
1125
+ name: 'ledger',
1126
+ type: 'address',
1127
+ },
1128
+ {
1129
+ name: 'missionControl',
1130
+ type: 'address',
1131
+ },
1132
+ {
1133
+ name: 'legoBook',
1134
+ type: 'address',
1135
+ },
1136
+ {
1137
+ name: 'appraiser',
1138
+ type: 'address',
1139
+ },
1140
+ ],
1141
+ },
1142
+ ],
1143
+ outputs: [
1144
+ {
1145
+ name: '',
1146
+ type: 'uint256',
1147
+ },
1148
+ {
1149
+ name: '',
1150
+ type: 'uint256',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'nonpayable',
1156
+ type: 'function',
1157
+ name: 'repayDebt',
1158
+ inputs: [
1159
+ {
1160
+ name: '_paymentAsset',
1161
+ type: 'address',
1162
+ },
1163
+ {
1164
+ name: '_paymentAmount',
1165
+ type: 'uint256',
1166
+ },
1167
+ {
1168
+ name: '_extraData',
1169
+ type: 'bytes32',
1170
+ },
1171
+ {
1172
+ name: '_recipient',
1173
+ type: 'address',
1174
+ },
1175
+ ],
1176
+ outputs: [
1177
+ {
1178
+ name: '',
1179
+ type: 'uint256',
1180
+ },
1181
+ {
1182
+ name: '',
1183
+ type: 'uint256',
1184
+ },
1185
+ ],
1186
+ },
1187
+ {
1188
+ stateMutability: 'nonpayable',
1189
+ type: 'function',
1190
+ name: 'repayDebt',
1191
+ inputs: [
1192
+ {
1193
+ name: '_paymentAsset',
1194
+ type: 'address',
1195
+ },
1196
+ {
1197
+ name: '_paymentAmount',
1198
+ type: 'uint256',
1199
+ },
1200
+ {
1201
+ name: '_extraData',
1202
+ type: 'bytes32',
1203
+ },
1204
+ {
1205
+ name: '_recipient',
1206
+ type: 'address',
1207
+ },
1208
+ {
1209
+ name: '_miniAddys',
1210
+ type: 'tuple',
1211
+ components: [
1212
+ {
1213
+ name: 'ledger',
1214
+ type: 'address',
1215
+ },
1216
+ {
1217
+ name: 'missionControl',
1218
+ type: 'address',
1219
+ },
1220
+ {
1221
+ name: 'legoBook',
1222
+ type: 'address',
1223
+ },
1224
+ {
1225
+ name: 'appraiser',
1226
+ type: 'address',
1227
+ },
1228
+ ],
1229
+ },
1230
+ ],
1231
+ outputs: [
1232
+ {
1233
+ name: '',
1234
+ type: 'uint256',
1235
+ },
1236
+ {
1237
+ name: '',
1238
+ type: 'uint256',
1239
+ },
1240
+ ],
1241
+ },
1242
+ {
1243
+ stateMutability: 'nonpayable',
1244
+ type: 'function',
1245
+ name: 'addLiquidity',
1246
+ inputs: [
1247
+ {
1248
+ name: '_pool',
1249
+ type: 'address',
1250
+ },
1251
+ {
1252
+ name: '_tokenA',
1253
+ type: 'address',
1254
+ },
1255
+ {
1256
+ name: '_tokenB',
1257
+ type: 'address',
1258
+ },
1259
+ {
1260
+ name: '_amountA',
1261
+ type: 'uint256',
1262
+ },
1263
+ {
1264
+ name: '_amountB',
1265
+ type: 'uint256',
1266
+ },
1267
+ {
1268
+ name: '_minAmountA',
1269
+ type: 'uint256',
1270
+ },
1271
+ {
1272
+ name: '_minAmountB',
1273
+ type: 'uint256',
1274
+ },
1275
+ {
1276
+ name: '_minLpAmount',
1277
+ type: 'uint256',
1278
+ },
1279
+ {
1280
+ name: '_extraData',
1281
+ type: 'bytes32',
1282
+ },
1283
+ {
1284
+ name: '_recipient',
1285
+ type: 'address',
1286
+ },
1287
+ ],
1288
+ outputs: [
1289
+ {
1290
+ name: '',
1291
+ type: 'address',
1292
+ },
1293
+ {
1294
+ name: '',
1295
+ type: 'uint256',
1296
+ },
1297
+ {
1298
+ name: '',
1299
+ type: 'uint256',
1300
+ },
1301
+ {
1302
+ name: '',
1303
+ type: 'uint256',
1304
+ },
1305
+ {
1306
+ name: '',
1307
+ type: 'uint256',
1308
+ },
1309
+ ],
1310
+ },
1311
+ {
1312
+ stateMutability: 'nonpayable',
1313
+ type: 'function',
1314
+ name: 'addLiquidity',
1315
+ inputs: [
1316
+ {
1317
+ name: '_pool',
1318
+ type: 'address',
1319
+ },
1320
+ {
1321
+ name: '_tokenA',
1322
+ type: 'address',
1323
+ },
1324
+ {
1325
+ name: '_tokenB',
1326
+ type: 'address',
1327
+ },
1328
+ {
1329
+ name: '_amountA',
1330
+ type: 'uint256',
1331
+ },
1332
+ {
1333
+ name: '_amountB',
1334
+ type: 'uint256',
1335
+ },
1336
+ {
1337
+ name: '_minAmountA',
1338
+ type: 'uint256',
1339
+ },
1340
+ {
1341
+ name: '_minAmountB',
1342
+ type: 'uint256',
1343
+ },
1344
+ {
1345
+ name: '_minLpAmount',
1346
+ type: 'uint256',
1347
+ },
1348
+ {
1349
+ name: '_extraData',
1350
+ type: 'bytes32',
1351
+ },
1352
+ {
1353
+ name: '_recipient',
1354
+ type: 'address',
1355
+ },
1356
+ {
1357
+ name: '_miniAddys',
1358
+ type: 'tuple',
1359
+ components: [
1360
+ {
1361
+ name: 'ledger',
1362
+ type: 'address',
1363
+ },
1364
+ {
1365
+ name: 'missionControl',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ name: 'legoBook',
1370
+ type: 'address',
1371
+ },
1372
+ {
1373
+ name: 'appraiser',
1374
+ type: 'address',
1375
+ },
1376
+ ],
1377
+ },
1378
+ ],
1379
+ outputs: [
1380
+ {
1381
+ name: '',
1382
+ type: 'address',
1383
+ },
1384
+ {
1385
+ name: '',
1386
+ type: 'uint256',
1387
+ },
1388
+ {
1389
+ name: '',
1390
+ type: 'uint256',
1391
+ },
1392
+ {
1393
+ name: '',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: '',
1398
+ type: 'uint256',
1399
+ },
1400
+ ],
1401
+ },
1402
+ {
1403
+ stateMutability: 'nonpayable',
1404
+ type: 'function',
1405
+ name: 'removeLiquidity',
1406
+ inputs: [
1407
+ {
1408
+ name: '_pool',
1409
+ type: 'address',
1410
+ },
1411
+ {
1412
+ name: '_tokenA',
1413
+ type: 'address',
1414
+ },
1415
+ {
1416
+ name: '_tokenB',
1417
+ type: 'address',
1418
+ },
1419
+ {
1420
+ name: '_lpToken',
1421
+ type: 'address',
1422
+ },
1423
+ {
1424
+ name: '_lpAmount',
1425
+ type: 'uint256',
1426
+ },
1427
+ {
1428
+ name: '_minAmountA',
1429
+ type: 'uint256',
1430
+ },
1431
+ {
1432
+ name: '_minAmountB',
1433
+ type: 'uint256',
1434
+ },
1435
+ {
1436
+ name: '_extraData',
1437
+ type: 'bytes32',
1438
+ },
1439
+ {
1440
+ name: '_recipient',
1441
+ type: 'address',
1442
+ },
1443
+ ],
1444
+ outputs: [
1445
+ {
1446
+ name: '',
1447
+ type: 'uint256',
1448
+ },
1449
+ {
1450
+ name: '',
1451
+ type: 'uint256',
1452
+ },
1453
+ {
1454
+ name: '',
1455
+ type: 'uint256',
1456
+ },
1457
+ {
1458
+ name: '',
1459
+ type: 'uint256',
1460
+ },
1461
+ ],
1462
+ },
1463
+ {
1464
+ stateMutability: 'nonpayable',
1465
+ type: 'function',
1466
+ name: 'removeLiquidity',
1467
+ inputs: [
1468
+ {
1469
+ name: '_pool',
1470
+ type: 'address',
1471
+ },
1472
+ {
1473
+ name: '_tokenA',
1474
+ type: 'address',
1475
+ },
1476
+ {
1477
+ name: '_tokenB',
1478
+ type: 'address',
1479
+ },
1480
+ {
1481
+ name: '_lpToken',
1482
+ type: 'address',
1483
+ },
1484
+ {
1485
+ name: '_lpAmount',
1486
+ type: 'uint256',
1487
+ },
1488
+ {
1489
+ name: '_minAmountA',
1490
+ type: 'uint256',
1491
+ },
1492
+ {
1493
+ name: '_minAmountB',
1494
+ type: 'uint256',
1495
+ },
1496
+ {
1497
+ name: '_extraData',
1498
+ type: 'bytes32',
1499
+ },
1500
+ {
1501
+ name: '_recipient',
1502
+ type: 'address',
1503
+ },
1504
+ {
1505
+ name: '_miniAddys',
1506
+ type: 'tuple',
1507
+ components: [
1508
+ {
1509
+ name: 'ledger',
1510
+ type: 'address',
1511
+ },
1512
+ {
1513
+ name: 'missionControl',
1514
+ type: 'address',
1515
+ },
1516
+ {
1517
+ name: 'legoBook',
1518
+ type: 'address',
1519
+ },
1520
+ {
1521
+ name: 'appraiser',
1522
+ type: 'address',
1523
+ },
1524
+ ],
1525
+ },
1526
+ ],
1527
+ outputs: [
1528
+ {
1529
+ name: '',
1530
+ type: 'uint256',
1531
+ },
1532
+ {
1533
+ name: '',
1534
+ type: 'uint256',
1535
+ },
1536
+ {
1537
+ name: '',
1538
+ type: 'uint256',
1539
+ },
1540
+ {
1541
+ name: '',
1542
+ type: 'uint256',
1543
+ },
1544
+ ],
1545
+ },
1546
+ {
1547
+ stateMutability: 'nonpayable',
1548
+ type: 'function',
1549
+ name: 'addLiquidityConcentrated',
1550
+ inputs: [
1551
+ {
1552
+ name: '_nftTokenId',
1553
+ type: 'uint256',
1554
+ },
1555
+ {
1556
+ name: '_pool',
1557
+ type: 'address',
1558
+ },
1559
+ {
1560
+ name: '_tokenA',
1561
+ type: 'address',
1562
+ },
1563
+ {
1564
+ name: '_tokenB',
1565
+ type: 'address',
1566
+ },
1567
+ {
1568
+ name: '_tickLower',
1569
+ type: 'int24',
1570
+ },
1571
+ {
1572
+ name: '_tickUpper',
1573
+ type: 'int24',
1574
+ },
1575
+ {
1576
+ name: '_amountA',
1577
+ type: 'uint256',
1578
+ },
1579
+ {
1580
+ name: '_amountB',
1581
+ type: 'uint256',
1582
+ },
1583
+ {
1584
+ name: '_minAmountA',
1585
+ type: 'uint256',
1586
+ },
1587
+ {
1588
+ name: '_minAmountB',
1589
+ type: 'uint256',
1590
+ },
1591
+ {
1592
+ name: '_extraData',
1593
+ type: 'bytes32',
1594
+ },
1595
+ {
1596
+ name: '_recipient',
1597
+ type: 'address',
1598
+ },
1599
+ ],
1600
+ outputs: [
1601
+ {
1602
+ name: '',
1603
+ type: 'uint256',
1604
+ },
1605
+ {
1606
+ name: '',
1607
+ type: 'uint256',
1608
+ },
1609
+ {
1610
+ name: '',
1611
+ type: 'uint256',
1612
+ },
1613
+ {
1614
+ name: '',
1615
+ type: 'uint256',
1616
+ },
1617
+ {
1618
+ name: '',
1619
+ type: 'uint256',
1620
+ },
1621
+ ],
1622
+ },
1623
+ {
1624
+ stateMutability: 'nonpayable',
1625
+ type: 'function',
1626
+ name: 'addLiquidityConcentrated',
1627
+ inputs: [
1628
+ {
1629
+ name: '_nftTokenId',
1630
+ type: 'uint256',
1631
+ },
1632
+ {
1633
+ name: '_pool',
1634
+ type: 'address',
1635
+ },
1636
+ {
1637
+ name: '_tokenA',
1638
+ type: 'address',
1639
+ },
1640
+ {
1641
+ name: '_tokenB',
1642
+ type: 'address',
1643
+ },
1644
+ {
1645
+ name: '_tickLower',
1646
+ type: 'int24',
1647
+ },
1648
+ {
1649
+ name: '_tickUpper',
1650
+ type: 'int24',
1651
+ },
1652
+ {
1653
+ name: '_amountA',
1654
+ type: 'uint256',
1655
+ },
1656
+ {
1657
+ name: '_amountB',
1658
+ type: 'uint256',
1659
+ },
1660
+ {
1661
+ name: '_minAmountA',
1662
+ type: 'uint256',
1663
+ },
1664
+ {
1665
+ name: '_minAmountB',
1666
+ type: 'uint256',
1667
+ },
1668
+ {
1669
+ name: '_extraData',
1670
+ type: 'bytes32',
1671
+ },
1672
+ {
1673
+ name: '_recipient',
1674
+ type: 'address',
1675
+ },
1676
+ {
1677
+ name: '_miniAddys',
1678
+ type: 'tuple',
1679
+ components: [
1680
+ {
1681
+ name: 'ledger',
1682
+ type: 'address',
1683
+ },
1684
+ {
1685
+ name: 'missionControl',
1686
+ type: 'address',
1687
+ },
1688
+ {
1689
+ name: 'legoBook',
1690
+ type: 'address',
1691
+ },
1692
+ {
1693
+ name: 'appraiser',
1694
+ type: 'address',
1695
+ },
1696
+ ],
1697
+ },
1698
+ ],
1699
+ outputs: [
1700
+ {
1701
+ name: '',
1702
+ type: 'uint256',
1703
+ },
1704
+ {
1705
+ name: '',
1706
+ type: 'uint256',
1707
+ },
1708
+ {
1709
+ name: '',
1710
+ type: 'uint256',
1711
+ },
1712
+ {
1713
+ name: '',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: '',
1718
+ type: 'uint256',
1719
+ },
1720
+ ],
1721
+ },
1722
+ {
1723
+ stateMutability: 'nonpayable',
1724
+ type: 'function',
1725
+ name: 'removeLiquidityConcentrated',
1726
+ inputs: [
1727
+ {
1728
+ name: '_nftTokenId',
1729
+ type: 'uint256',
1730
+ },
1731
+ {
1732
+ name: '_pool',
1733
+ type: 'address',
1734
+ },
1735
+ {
1736
+ name: '_tokenA',
1737
+ type: 'address',
1738
+ },
1739
+ {
1740
+ name: '_tokenB',
1741
+ type: 'address',
1742
+ },
1743
+ {
1744
+ name: '_liqToRemove',
1745
+ type: 'uint256',
1746
+ },
1747
+ {
1748
+ name: '_minAmountA',
1749
+ type: 'uint256',
1750
+ },
1751
+ {
1752
+ name: '_minAmountB',
1753
+ type: 'uint256',
1754
+ },
1755
+ {
1756
+ name: '_extraData',
1757
+ type: 'bytes32',
1758
+ },
1759
+ {
1760
+ name: '_recipient',
1761
+ type: 'address',
1762
+ },
1763
+ ],
1764
+ outputs: [
1765
+ {
1766
+ name: '',
1767
+ type: 'uint256',
1768
+ },
1769
+ {
1770
+ name: '',
1771
+ type: 'uint256',
1772
+ },
1773
+ {
1774
+ name: '',
1775
+ type: 'uint256',
1776
+ },
1777
+ {
1778
+ name: '',
1779
+ type: 'bool',
1780
+ },
1781
+ {
1782
+ name: '',
1783
+ type: 'uint256',
1784
+ },
1785
+ ],
1786
+ },
1787
+ {
1788
+ stateMutability: 'nonpayable',
1789
+ type: 'function',
1790
+ name: 'removeLiquidityConcentrated',
1791
+ inputs: [
1792
+ {
1793
+ name: '_nftTokenId',
1794
+ type: 'uint256',
1795
+ },
1796
+ {
1797
+ name: '_pool',
1798
+ type: 'address',
1799
+ },
1800
+ {
1801
+ name: '_tokenA',
1802
+ type: 'address',
1803
+ },
1804
+ {
1805
+ name: '_tokenB',
1806
+ type: 'address',
1807
+ },
1808
+ {
1809
+ name: '_liqToRemove',
1810
+ type: 'uint256',
1811
+ },
1812
+ {
1813
+ name: '_minAmountA',
1814
+ type: 'uint256',
1815
+ },
1816
+ {
1817
+ name: '_minAmountB',
1818
+ type: 'uint256',
1819
+ },
1820
+ {
1821
+ name: '_extraData',
1822
+ type: 'bytes32',
1823
+ },
1824
+ {
1825
+ name: '_recipient',
1826
+ type: 'address',
1827
+ },
1828
+ {
1829
+ name: '_miniAddys',
1830
+ type: 'tuple',
1831
+ components: [
1832
+ {
1833
+ name: 'ledger',
1834
+ type: 'address',
1835
+ },
1836
+ {
1837
+ name: 'missionControl',
1838
+ type: 'address',
1839
+ },
1840
+ {
1841
+ name: 'legoBook',
1842
+ type: 'address',
1843
+ },
1844
+ {
1845
+ name: 'appraiser',
1846
+ type: 'address',
1847
+ },
1848
+ ],
1849
+ },
1850
+ ],
1851
+ outputs: [
1852
+ {
1853
+ name: '',
1854
+ type: 'uint256',
1855
+ },
1856
+ {
1857
+ name: '',
1858
+ type: 'uint256',
1859
+ },
1860
+ {
1861
+ name: '',
1862
+ type: 'uint256',
1863
+ },
1864
+ {
1865
+ name: '',
1866
+ type: 'bool',
1867
+ },
1868
+ {
1869
+ name: '',
1870
+ type: 'uint256',
1871
+ },
1872
+ ],
1873
+ },
1874
+ {
1875
+ stateMutability: 'nonpayable',
1876
+ type: 'constructor',
1877
+ inputs: [
1878
+ {
1879
+ name: '_undyHq',
1880
+ type: 'address',
1881
+ },
1882
+ ],
1883
+ outputs: [],
1884
+ },
1885
+ ];
1886
+ export const deployAddress = '0xB99D44C321356B24E36542B1BbEE9C549BCc9607';
1887
+ function getRequest(method, args, contractAddressOrOptions) {
1888
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1889
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1890
+ const call = {
1891
+ contractName: 'UndyRewardsLego',
1892
+ method,
1893
+ args,
1894
+ address,
1895
+ deployAddress,
1896
+ defaultValue,
1897
+ getAbi: () => abi,
1898
+ with: (options) => {
1899
+ call.address = options.contractAddress;
1900
+ call.defaultValue = options.defaultValue;
1901
+ return call;
1902
+ },
1903
+ defaultTo: (defaultValue) => {
1904
+ call.defaultValue = defaultValue;
1905
+ return call;
1906
+ },
1907
+ at: (address) => {
1908
+ call.address = address;
1909
+ return call;
1910
+ },
1911
+ };
1912
+ return call;
1913
+ }
1914
+ export const call = {
1915
+ getAddys: (...args) => getRequest('getAddys', args),
1916
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
1917
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1918
+ hasCapability: (...args) => getRequest('hasCapability', args),
1919
+ getRegistries: (...args) => getRequest('getRegistries', args),
1920
+ isDexLego: (...args) => getRequest('isDexLego', args),
1921
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
1922
+ isPaused: (...args) => getRequest('isPaused', args),
1923
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
1924
+ getPrice: (...args) => getRequest('getPrice', args),
1925
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1926
+ };
1927
+ function getMutation(functionName) {
1928
+ return {
1929
+ contractName: 'UndyRewardsLego',
1930
+ functionName,
1931
+ deployAddress,
1932
+ argsType: undefined,
1933
+ getAbi: () => abi,
1934
+ };
1935
+ }
1936
+ export const mutation = {
1937
+ claimRewards: getMutation('claimRewards'),
1938
+ pause: getMutation('pause'),
1939
+ recoverFunds: getMutation('recoverFunds'),
1940
+ recoverFundsMany: getMutation('recoverFundsMany'),
1941
+ depositForYield: getMutation('depositForYield'),
1942
+ withdrawFromYield: getMutation('withdrawFromYield'),
1943
+ swapTokens: getMutation('swapTokens'),
1944
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
1945
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
1946
+ addCollateral: getMutation('addCollateral'),
1947
+ removeCollateral: getMutation('removeCollateral'),
1948
+ borrow: getMutation('borrow'),
1949
+ repayDebt: getMutation('repayDebt'),
1950
+ addLiquidity: getMutation('addLiquidity'),
1951
+ removeLiquidity: getMutation('removeLiquidity'),
1952
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
1953
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
1954
+ };
1955
+ export function toSdk(publicClient, walletClient) {
1956
+ return {
1957
+ deployAddress,
1958
+ abi,
1959
+ // Queries
1960
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1961
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
1962
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1963
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
1964
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1965
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
1966
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
1967
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1968
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
1969
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
1970
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1971
+ // Mutations
1972
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1973
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1974
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1975
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
1976
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
1977
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
1978
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1979
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
1980
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
1981
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
1982
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
1983
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
1984
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
1985
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1986
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1987
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
1988
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
1989
+ };
1990
+ }