@ripe-finance/sdk 0.0.10 → 0.1.1

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.
Files changed (59) hide show
  1. package/dist/contracts/BlueChipYieldPrices.d.ts +21 -0
  2. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -1
  3. package/dist/contracts/BlueChipYieldPrices.js +26 -1
  4. package/dist/contracts/BondBooster.d.ts +546 -0
  5. package/dist/contracts/BondBooster.d.ts.map +1 -0
  6. package/dist/contracts/BondBooster.js +643 -0
  7. package/dist/contracts/BondRoom.d.ts +40 -1
  8. package/dist/contracts/BondRoom.d.ts.map +1 -1
  9. package/dist/contracts/BondRoom.js +50 -1
  10. package/dist/contracts/ChainlinkPrices.d.ts +21 -0
  11. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -1
  12. package/dist/contracts/ChainlinkPrices.js +26 -1
  13. package/dist/contracts/CurvePrices.d.ts +21 -0
  14. package/dist/contracts/CurvePrices.d.ts.map +1 -1
  15. package/dist/contracts/CurvePrices.js +26 -1
  16. package/dist/contracts/DefaultsBase.d.ts +3 -0
  17. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  18. package/dist/contracts/DefaultsBase.js +5 -1
  19. package/dist/contracts/Endaoment.d.ts +1009 -732
  20. package/dist/contracts/Endaoment.d.ts.map +1 -1
  21. package/dist/contracts/Endaoment.js +1280 -880
  22. package/dist/contracts/PriceDesk.d.ts +21 -0
  23. package/dist/contracts/PriceDesk.d.ts.map +1 -1
  24. package/dist/contracts/PriceDesk.js +26 -1
  25. package/dist/contracts/PythPrices.d.ts +21 -0
  26. package/dist/contracts/PythPrices.d.ts.map +1 -1
  27. package/dist/contracts/PythPrices.js +26 -1
  28. package/dist/contracts/StorkPrices.d.ts +21 -0
  29. package/dist/contracts/StorkPrices.d.ts.map +1 -1
  30. package/dist/contracts/StorkPrices.js +26 -1
  31. package/dist/contracts/Switchboard.d.ts +21 -0
  32. package/dist/contracts/Switchboard.d.ts.map +1 -1
  33. package/dist/contracts/Switchboard.js +26 -1
  34. package/dist/contracts/SwitchboardAlpha.d.ts +21 -0
  35. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  36. package/dist/contracts/SwitchboardAlpha.js +26 -1
  37. package/dist/contracts/SwitchboardBravo.d.ts +21 -0
  38. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  39. package/dist/contracts/SwitchboardBravo.js +26 -1
  40. package/dist/contracts/SwitchboardCharlie.d.ts +235 -411
  41. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  42. package/dist/contracts/SwitchboardCharlie.js +292 -527
  43. package/dist/contracts/SwitchboardDelta.d.ts +273 -0
  44. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  45. package/dist/contracts/SwitchboardDelta.js +337 -1
  46. package/dist/contracts/Teller.js +1 -1
  47. package/dist/contracts/VaultBook.d.ts +21 -0
  48. package/dist/contracts/VaultBook.d.ts.map +1 -1
  49. package/dist/contracts/VaultBook.js +26 -1
  50. package/dist/contracts/index.d.ts +1 -0
  51. package/dist/contracts/index.d.ts.map +1 -1
  52. package/dist/contracts/index.js +1 -0
  53. package/dist/contracts/sdk.d.ts +2 -0
  54. package/dist/contracts/sdk.d.ts.map +1 -1
  55. package/dist/contracts/sdk.js +2 -0
  56. package/dist/index.d.ts +85 -22
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +8 -0
  59. package/package.json +1 -1
@@ -5,82 +5,30 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- name: 'EndaomentDeposit',
8
+ name: 'WalletAction',
9
9
  inputs: [
10
10
  {
11
- name: 'asset',
12
- type: 'address',
13
- indexed: true,
14
- },
15
- {
16
- name: 'vaultToken',
17
- type: 'address',
18
- indexed: true,
19
- },
20
- {
21
- name: 'assetAmountDeposited',
22
- type: 'uint256',
23
- indexed: false,
24
- },
25
- {
26
- name: 'vaultTokenAmountReceived',
27
- type: 'uint256',
28
- indexed: false,
29
- },
30
- {
31
- name: 'refundAssetAmount',
32
- type: 'uint256',
33
- indexed: false,
34
- },
35
- {
36
- name: 'usdValue',
37
- type: 'uint256',
38
- indexed: false,
39
- },
40
- {
41
- name: 'legoId',
42
- type: 'uint256',
43
- indexed: false,
44
- },
45
- {
46
- name: 'legoAddr',
47
- type: 'address',
11
+ name: 'op',
12
+ type: 'uint8',
48
13
  indexed: false,
49
14
  },
50
- ],
51
- anonymous: false,
52
- type: 'event',
53
- },
54
- {
55
- name: 'EndaomentWithdrawal',
56
- inputs: [
57
15
  {
58
- name: 'asset',
16
+ name: 'asset1',
59
17
  type: 'address',
60
18
  indexed: true,
61
19
  },
62
20
  {
63
- name: 'vaultToken',
21
+ name: 'asset2',
64
22
  type: 'address',
65
23
  indexed: true,
66
24
  },
67
25
  {
68
- name: 'hasVaultToken',
69
- type: 'bool',
70
- indexed: false,
71
- },
72
- {
73
- name: 'assetAmountReceived',
74
- type: 'uint256',
75
- indexed: false,
76
- },
77
- {
78
- name: 'vaultTokenAmountBurned',
26
+ name: 'amount1',
79
27
  type: 'uint256',
80
28
  indexed: false,
81
29
  },
82
30
  {
83
- name: 'refundVaultTokenAmount',
31
+ name: 'amount2',
84
32
  type: 'uint256',
85
33
  indexed: false,
86
34
  },
@@ -94,154 +42,40 @@ export const abi = [
94
42
  type: 'uint256',
95
43
  indexed: false,
96
44
  },
97
- {
98
- name: 'legoAddr',
99
- type: 'address',
100
- indexed: false,
101
- },
102
45
  ],
103
46
  anonymous: false,
104
47
  type: 'event',
105
48
  },
106
49
  {
107
- name: 'EndaomentSwap',
50
+ name: 'WalletActionExt',
108
51
  inputs: [
109
52
  {
110
- name: 'tokenIn',
111
- type: 'address',
112
- indexed: true,
113
- },
114
- {
115
- name: 'tokenOut',
116
- type: 'address',
117
- indexed: true,
118
- },
119
- {
120
- name: 'swapAmount',
121
- type: 'uint256',
122
- indexed: false,
123
- },
124
- {
125
- name: 'toAmount',
126
- type: 'uint256',
127
- indexed: false,
128
- },
129
- {
130
- name: 'refundAssetAmount',
131
- type: 'uint256',
132
- indexed: false,
133
- },
134
- {
135
- name: 'usdValue',
136
- type: 'uint256',
137
- indexed: false,
138
- },
139
- {
140
- name: 'numTokens',
141
- type: 'uint256',
142
- indexed: false,
143
- },
144
- {
145
- name: 'legoId',
146
- type: 'uint256',
147
- indexed: false,
148
- },
149
- {
150
- name: 'legoAddr',
151
- type: 'address',
53
+ name: 'op',
54
+ type: 'uint8',
152
55
  indexed: false,
153
56
  },
154
- ],
155
- anonymous: false,
156
- type: 'event',
157
- },
158
- {
159
- name: 'EndaomentLiquidityAdded',
160
- inputs: [
161
57
  {
162
- name: 'tokenA',
58
+ name: 'asset1',
163
59
  type: 'address',
164
60
  indexed: true,
165
61
  },
166
62
  {
167
- name: 'tokenB',
63
+ name: 'asset2',
168
64
  type: 'address',
169
65
  indexed: true,
170
66
  },
171
67
  {
172
- name: 'liqAmountA',
173
- type: 'uint256',
174
- indexed: false,
175
- },
176
- {
177
- name: 'liqAmountB',
178
- type: 'uint256',
179
- indexed: false,
180
- },
181
- {
182
- name: 'liquidityAdded',
183
- type: 'uint256',
184
- indexed: false,
185
- },
186
- {
187
- name: 'pool',
188
- type: 'address',
189
- indexed: false,
190
- },
191
- {
192
- name: 'usdValue',
193
- type: 'uint256',
194
- indexed: false,
195
- },
196
- {
197
- name: 'refundAssetAmountA',
198
- type: 'uint256',
199
- indexed: false,
200
- },
201
- {
202
- name: 'refundAssetAmountB',
203
- type: 'uint256',
204
- indexed: false,
205
- },
206
- {
207
- name: 'nftTokenId',
208
- type: 'uint256',
209
- indexed: false,
210
- },
211
- {
212
- name: 'legoId',
68
+ name: 'tokenId',
213
69
  type: 'uint256',
214
70
  indexed: false,
215
71
  },
216
72
  {
217
- name: 'legoAddr',
218
- type: 'address',
219
- indexed: false,
220
- },
221
- ],
222
- anonymous: false,
223
- type: 'event',
224
- },
225
- {
226
- name: 'EndaomentLiquidityRemoved',
227
- inputs: [
228
- {
229
- name: 'tokenA',
230
- type: 'address',
231
- indexed: true,
232
- },
233
- {
234
- name: 'tokenB',
235
- type: 'address',
236
- indexed: false,
237
- },
238
- {
239
- name: 'removedAmountA',
73
+ name: 'amount1',
240
74
  type: 'uint256',
241
75
  indexed: false,
242
76
  },
243
77
  {
244
- name: 'removedAmountB',
78
+ name: 'amount2',
245
79
  type: 'uint256',
246
80
  indexed: false,
247
81
  },
@@ -251,111 +85,10 @@ export const abi = [
251
85
  indexed: false,
252
86
  },
253
87
  {
254
- name: 'isDepleted',
255
- type: 'bool',
256
- indexed: false,
257
- },
258
- {
259
- name: 'liquidityRemoved',
260
- type: 'uint256',
261
- indexed: false,
262
- },
263
- {
264
- name: 'lpToken',
265
- type: 'address',
266
- indexed: true,
267
- },
268
- {
269
- name: 'refundedLpAmount',
270
- type: 'uint256',
271
- indexed: false,
272
- },
273
- {
274
- name: 'legoId',
275
- type: 'uint256',
276
- indexed: false,
277
- },
278
- {
279
- name: 'legoAddr',
280
- type: 'address',
281
- indexed: false,
282
- },
283
- ],
284
- anonymous: false,
285
- type: 'event',
286
- },
287
- {
288
- name: 'EndaomentEthConvertedToWeth',
289
- inputs: [
290
- {
291
- name: 'amount',
292
- type: 'uint256',
293
- indexed: false,
294
- },
295
- {
296
- name: 'paidEth',
297
- type: 'uint256',
298
- indexed: false,
299
- },
300
- {
301
- name: 'weth',
302
- type: 'address',
303
- indexed: true,
304
- },
305
- ],
306
- anonymous: false,
307
- type: 'event',
308
- },
309
- {
310
- name: 'EndaomentWethConvertedToEth',
311
- inputs: [
312
- {
313
- name: 'amount',
314
- type: 'uint256',
315
- indexed: false,
316
- },
317
- {
318
- name: 'weth',
319
- type: 'address',
320
- indexed: true,
321
- },
322
- ],
323
- anonymous: false,
324
- type: 'event',
325
- },
326
- {
327
- name: 'EndaomentRewardsClaimed',
328
- inputs: [
329
- {
330
- name: 'market',
331
- type: 'address',
332
- indexed: true,
333
- },
334
- {
335
- name: 'rewardToken',
336
- type: 'address',
337
- indexed: true,
338
- },
339
- {
340
- name: 'rewardAmount',
341
- type: 'uint256',
342
- indexed: false,
343
- },
344
- {
345
- name: 'proof',
346
- type: 'bytes32',
347
- indexed: false,
348
- },
349
- {
350
- name: 'legoId',
88
+ name: 'extra',
351
89
  type: 'uint256',
352
90
  indexed: false,
353
91
  },
354
- {
355
- name: 'legoAddr',
356
- type: 'address',
357
- indexed: false,
358
- },
359
92
  ],
360
93
  anonymous: false,
361
94
  type: 'event',
@@ -724,10 +457,6 @@ export const abi = [
724
457
  },
725
458
  ],
726
459
  },
727
- {
728
- stateMutability: 'payable',
729
- type: 'fallback',
730
- },
731
460
  {
732
461
  stateMutability: 'view',
733
462
  type: 'function',
@@ -757,10 +486,14 @@ export const abi = [
757
486
  },
758
487
  ],
759
488
  },
489
+ {
490
+ stateMutability: 'payable',
491
+ type: 'fallback',
492
+ },
760
493
  {
761
494
  stateMutability: 'nonpayable',
762
495
  type: 'function',
763
- name: 'depositTokens',
496
+ name: 'depositForYield',
764
497
  inputs: [
765
498
  {
766
499
  name: '_legoId',
@@ -770,10 +503,6 @@ export const abi = [
770
503
  name: '_asset',
771
504
  type: 'address',
772
505
  },
773
- {
774
- name: '_vault',
775
- type: 'address',
776
- },
777
506
  ],
778
507
  outputs: [
779
508
  {
@@ -797,7 +526,7 @@ export const abi = [
797
526
  {
798
527
  stateMutability: 'nonpayable',
799
528
  type: 'function',
800
- name: 'depositTokens',
529
+ name: 'depositForYield',
801
530
  inputs: [
802
531
  {
803
532
  name: '_legoId',
@@ -808,13 +537,9 @@ export const abi = [
808
537
  type: 'address',
809
538
  },
810
539
  {
811
- name: '_vault',
540
+ name: '_vaultAddr',
812
541
  type: 'address',
813
542
  },
814
- {
815
- name: '_amount',
816
- type: 'uint256',
817
- },
818
543
  ],
819
544
  outputs: [
820
545
  {
@@ -838,7 +563,7 @@ export const abi = [
838
563
  {
839
564
  stateMutability: 'nonpayable',
840
565
  type: 'function',
841
- name: 'withdrawTokens',
566
+ name: 'depositForYield',
842
567
  inputs: [
843
568
  {
844
569
  name: '_legoId',
@@ -852,12 +577,20 @@ export const abi = [
852
577
  name: '_vaultAddr',
853
578
  type: 'address',
854
579
  },
580
+ {
581
+ name: '_amount',
582
+ type: 'uint256',
583
+ },
855
584
  ],
856
585
  outputs: [
857
586
  {
858
587
  name: '',
859
588
  type: 'uint256',
860
589
  },
590
+ {
591
+ name: '',
592
+ type: 'address',
593
+ },
861
594
  {
862
595
  name: '',
863
596
  type: 'uint256',
@@ -871,7 +604,7 @@ export const abi = [
871
604
  {
872
605
  stateMutability: 'nonpayable',
873
606
  type: 'function',
874
- name: 'withdrawTokens',
607
+ name: 'depositForYield',
875
608
  inputs: [
876
609
  {
877
610
  name: '_legoId',
@@ -886,15 +619,23 @@ export const abi = [
886
619
  type: 'address',
887
620
  },
888
621
  {
889
- name: '_withdrawAmount',
622
+ name: '_amount',
890
623
  type: 'uint256',
891
624
  },
625
+ {
626
+ name: '_extraData',
627
+ type: 'bytes32',
628
+ },
892
629
  ],
893
630
  outputs: [
894
631
  {
895
632
  name: '',
896
633
  type: 'uint256',
897
634
  },
635
+ {
636
+ name: '',
637
+ type: 'address',
638
+ },
898
639
  {
899
640
  name: '',
900
641
  type: 'uint256',
@@ -908,27 +649,52 @@ export const abi = [
908
649
  {
909
650
  stateMutability: 'nonpayable',
910
651
  type: 'function',
911
- name: 'withdrawTokens',
652
+ name: 'withdrawFromYield',
912
653
  inputs: [
913
654
  {
914
655
  name: '_legoId',
915
656
  type: 'uint256',
916
657
  },
917
658
  {
918
- name: '_asset',
659
+ name: '_vaultToken',
919
660
  type: 'address',
920
661
  },
662
+ ],
663
+ outputs: [
921
664
  {
922
- name: '_vaultAddr',
665
+ name: '',
666
+ type: 'uint256',
667
+ },
668
+ {
669
+ name: '',
923
670
  type: 'address',
924
671
  },
925
672
  {
926
- name: '_withdrawAmount',
673
+ name: '',
927
674
  type: 'uint256',
928
675
  },
929
676
  {
930
- name: '_hasVaultToken',
931
- type: 'bool',
677
+ name: '',
678
+ type: 'uint256',
679
+ },
680
+ ],
681
+ },
682
+ {
683
+ stateMutability: 'nonpayable',
684
+ type: 'function',
685
+ name: 'withdrawFromYield',
686
+ inputs: [
687
+ {
688
+ name: '_legoId',
689
+ type: 'uint256',
690
+ },
691
+ {
692
+ name: '_vaultToken',
693
+ type: 'address',
694
+ },
695
+ {
696
+ name: '_amount',
697
+ type: 'uint256',
932
698
  },
933
699
  ],
934
700
  outputs: [
@@ -936,6 +702,10 @@ export const abi = [
936
702
  name: '',
937
703
  type: 'uint256',
938
704
  },
705
+ {
706
+ name: '',
707
+ type: 'address',
708
+ },
939
709
  {
940
710
  name: '',
941
711
  type: 'uint256',
@@ -949,28 +719,61 @@ export const abi = [
949
719
  {
950
720
  stateMutability: 'nonpayable',
951
721
  type: 'function',
952
- name: 'rebalance',
722
+ name: 'withdrawFromYield',
953
723
  inputs: [
954
724
  {
955
- name: '_fromLegoId',
725
+ name: '_legoId',
956
726
  type: 'uint256',
957
727
  },
958
728
  {
959
- name: '_fromAsset',
729
+ name: '_vaultToken',
960
730
  type: 'address',
961
731
  },
962
732
  {
963
- name: '_fromVaultAddr',
733
+ name: '_amount',
734
+ type: 'uint256',
735
+ },
736
+ {
737
+ name: '_extraData',
738
+ type: 'bytes32',
739
+ },
740
+ ],
741
+ outputs: [
742
+ {
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
+ {
747
+ name: '',
964
748
  type: 'address',
965
749
  },
966
750
  {
967
- name: '_toLegoId',
751
+ name: '',
968
752
  type: 'uint256',
969
753
  },
970
754
  {
971
- name: '_toVaultAddr',
755
+ name: '',
756
+ type: 'uint256',
757
+ },
758
+ ],
759
+ },
760
+ {
761
+ stateMutability: 'nonpayable',
762
+ type: 'function',
763
+ name: 'rebalanceYieldPosition',
764
+ inputs: [
765
+ {
766
+ name: '_fromLegoId',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: '_fromVaultToken',
972
771
  type: 'address',
973
772
  },
773
+ {
774
+ name: '_toLegoId',
775
+ type: 'uint256',
776
+ },
974
777
  ],
975
778
  outputs: [
976
779
  {
@@ -994,18 +797,55 @@ export const abi = [
994
797
  {
995
798
  stateMutability: 'nonpayable',
996
799
  type: 'function',
997
- name: 'rebalance',
800
+ name: 'rebalanceYieldPosition',
998
801
  inputs: [
999
802
  {
1000
803
  name: '_fromLegoId',
1001
804
  type: 'uint256',
1002
805
  },
1003
806
  {
1004
- name: '_fromAsset',
807
+ name: '_fromVaultToken',
808
+ type: 'address',
809
+ },
810
+ {
811
+ name: '_toLegoId',
812
+ type: 'uint256',
813
+ },
814
+ {
815
+ name: '_toVaultAddr',
816
+ type: 'address',
817
+ },
818
+ ],
819
+ outputs: [
820
+ {
821
+ name: '',
822
+ type: 'uint256',
823
+ },
824
+ {
825
+ name: '',
1005
826
  type: 'address',
1006
827
  },
1007
828
  {
1008
- name: '_fromVaultAddr',
829
+ name: '',
830
+ type: 'uint256',
831
+ },
832
+ {
833
+ name: '',
834
+ type: 'uint256',
835
+ },
836
+ ],
837
+ },
838
+ {
839
+ stateMutability: 'nonpayable',
840
+ type: 'function',
841
+ name: 'rebalanceYieldPosition',
842
+ inputs: [
843
+ {
844
+ name: '_fromLegoId',
845
+ type: 'uint256',
846
+ },
847
+ {
848
+ name: '_fromVaultToken',
1009
849
  type: 'address',
1010
850
  },
1011
851
  {
@@ -1043,18 +883,14 @@ export const abi = [
1043
883
  {
1044
884
  stateMutability: 'nonpayable',
1045
885
  type: 'function',
1046
- name: 'rebalance',
886
+ name: 'rebalanceYieldPosition',
1047
887
  inputs: [
1048
888
  {
1049
889
  name: '_fromLegoId',
1050
890
  type: 'uint256',
1051
891
  },
1052
892
  {
1053
- name: '_fromAsset',
1054
- type: 'address',
1055
- },
1056
- {
1057
- name: '_fromVaultAddr',
893
+ name: '_fromVaultToken',
1058
894
  type: 'address',
1059
895
  },
1060
896
  {
@@ -1070,8 +906,8 @@ export const abi = [
1070
906
  type: 'uint256',
1071
907
  },
1072
908
  {
1073
- name: '_hasFromVaultToken',
1074
- type: 'bool',
909
+ name: '_extraData',
910
+ type: 'bytes32',
1075
911
  },
1076
912
  ],
1077
913
  outputs: [
@@ -1099,7 +935,7 @@ export const abi = [
1099
935
  name: 'swapTokens',
1100
936
  inputs: [
1101
937
  {
1102
- name: '_swapInstructions',
938
+ name: '_instructions',
1103
939
  type: 'tuple[]',
1104
940
  components: [
1105
941
  {
@@ -1126,10 +962,18 @@ export const abi = [
1126
962
  },
1127
963
  ],
1128
964
  outputs: [
965
+ {
966
+ name: '',
967
+ type: 'address',
968
+ },
1129
969
  {
1130
970
  name: '',
1131
971
  type: 'uint256',
1132
972
  },
973
+ {
974
+ name: '',
975
+ type: 'address',
976
+ },
1133
977
  {
1134
978
  name: '',
1135
979
  type: 'uint256',
@@ -1143,30 +987,18 @@ export const abi = [
1143
987
  {
1144
988
  stateMutability: 'nonpayable',
1145
989
  type: 'function',
1146
- name: 'addLiquidity',
990
+ name: 'mintOrRedeemAsset',
1147
991
  inputs: [
1148
992
  {
1149
993
  name: '_legoId',
1150
994
  type: 'uint256',
1151
995
  },
1152
996
  {
1153
- name: '_nftAddr',
1154
- type: 'address',
1155
- },
1156
- {
1157
- name: '_nftTokenId',
1158
- type: 'uint256',
1159
- },
1160
- {
1161
- name: '_pool',
1162
- type: 'address',
1163
- },
1164
- {
1165
- name: '_tokenA',
997
+ name: '_tokenIn',
1166
998
  type: 'address',
1167
999
  },
1168
1000
  {
1169
- name: '_tokenB',
1001
+ name: '_tokenOut',
1170
1002
  type: 'address',
1171
1003
  },
1172
1004
  ],
@@ -1181,11 +1013,7 @@ export const abi = [
1181
1013
  },
1182
1014
  {
1183
1015
  name: '',
1184
- type: 'uint256',
1185
- },
1186
- {
1187
- name: '',
1188
- type: 'uint256',
1016
+ type: 'bool',
1189
1017
  },
1190
1018
  {
1191
1019
  name: '',
@@ -1196,34 +1024,22 @@ export const abi = [
1196
1024
  {
1197
1025
  stateMutability: 'nonpayable',
1198
1026
  type: 'function',
1199
- name: 'addLiquidity',
1027
+ name: 'mintOrRedeemAsset',
1200
1028
  inputs: [
1201
1029
  {
1202
1030
  name: '_legoId',
1203
1031
  type: 'uint256',
1204
1032
  },
1205
1033
  {
1206
- name: '_nftAddr',
1207
- type: 'address',
1208
- },
1209
- {
1210
- name: '_nftTokenId',
1211
- type: 'uint256',
1212
- },
1213
- {
1214
- name: '_pool',
1215
- type: 'address',
1216
- },
1217
- {
1218
- name: '_tokenA',
1034
+ name: '_tokenIn',
1219
1035
  type: 'address',
1220
1036
  },
1221
1037
  {
1222
- name: '_tokenB',
1038
+ name: '_tokenOut',
1223
1039
  type: 'address',
1224
1040
  },
1225
1041
  {
1226
- name: '_amountA',
1042
+ name: '_amountIn',
1227
1043
  type: 'uint256',
1228
1044
  },
1229
1045
  ],
@@ -1238,11 +1054,7 @@ export const abi = [
1238
1054
  },
1239
1055
  {
1240
1056
  name: '',
1241
- type: 'uint256',
1242
- },
1243
- {
1244
- name: '',
1245
- type: 'uint256',
1057
+ type: 'bool',
1246
1058
  },
1247
1059
  {
1248
1060
  name: '',
@@ -1253,38 +1065,26 @@ export const abi = [
1253
1065
  {
1254
1066
  stateMutability: 'nonpayable',
1255
1067
  type: 'function',
1256
- name: 'addLiquidity',
1068
+ name: 'mintOrRedeemAsset',
1257
1069
  inputs: [
1258
1070
  {
1259
1071
  name: '_legoId',
1260
1072
  type: 'uint256',
1261
1073
  },
1262
1074
  {
1263
- name: '_nftAddr',
1264
- type: 'address',
1265
- },
1266
- {
1267
- name: '_nftTokenId',
1268
- type: 'uint256',
1269
- },
1270
- {
1271
- name: '_pool',
1272
- type: 'address',
1273
- },
1274
- {
1275
- name: '_tokenA',
1075
+ name: '_tokenIn',
1276
1076
  type: 'address',
1277
1077
  },
1278
1078
  {
1279
- name: '_tokenB',
1079
+ name: '_tokenOut',
1280
1080
  type: 'address',
1281
1081
  },
1282
1082
  {
1283
- name: '_amountA',
1083
+ name: '_amountIn',
1284
1084
  type: 'uint256',
1285
1085
  },
1286
1086
  {
1287
- name: '_amountB',
1087
+ name: '_minAmountOut',
1288
1088
  type: 'uint256',
1289
1089
  },
1290
1090
  ],
@@ -1299,11 +1099,7 @@ export const abi = [
1299
1099
  },
1300
1100
  {
1301
1101
  name: '',
1302
- type: 'uint256',
1303
- },
1304
- {
1305
- name: '',
1306
- type: 'uint256',
1102
+ type: 'bool',
1307
1103
  },
1308
1104
  {
1309
1105
  name: '',
@@ -1314,43 +1110,31 @@ export const abi = [
1314
1110
  {
1315
1111
  stateMutability: 'nonpayable',
1316
1112
  type: 'function',
1317
- name: 'addLiquidity',
1113
+ name: 'mintOrRedeemAsset',
1318
1114
  inputs: [
1319
1115
  {
1320
1116
  name: '_legoId',
1321
1117
  type: 'uint256',
1322
1118
  },
1323
1119
  {
1324
- name: '_nftAddr',
1325
- type: 'address',
1326
- },
1327
- {
1328
- name: '_nftTokenId',
1329
- type: 'uint256',
1330
- },
1331
- {
1332
- name: '_pool',
1333
- type: 'address',
1334
- },
1335
- {
1336
- name: '_tokenA',
1120
+ name: '_tokenIn',
1337
1121
  type: 'address',
1338
1122
  },
1339
1123
  {
1340
- name: '_tokenB',
1124
+ name: '_tokenOut',
1341
1125
  type: 'address',
1342
1126
  },
1343
1127
  {
1344
- name: '_amountA',
1128
+ name: '_amountIn',
1345
1129
  type: 'uint256',
1346
1130
  },
1347
1131
  {
1348
- name: '_amountB',
1132
+ name: '_minAmountOut',
1349
1133
  type: 'uint256',
1350
1134
  },
1351
1135
  {
1352
- name: '_tickLower',
1353
- type: 'int24',
1136
+ name: '_extraData',
1137
+ type: 'bytes32',
1354
1138
  },
1355
1139
  ],
1356
1140
  outputs: [
@@ -1364,11 +1148,7 @@ export const abi = [
1364
1148
  },
1365
1149
  {
1366
1150
  name: '',
1367
- type: 'uint256',
1368
- },
1369
- {
1370
- name: '',
1371
- type: 'uint256',
1151
+ type: 'bool',
1372
1152
  },
1373
1153
  {
1374
1154
  name: '',
@@ -1379,47 +1159,52 @@ export const abi = [
1379
1159
  {
1380
1160
  stateMutability: 'nonpayable',
1381
1161
  type: 'function',
1382
- name: 'addLiquidity',
1162
+ name: 'confirmMintOrRedeemAsset',
1383
1163
  inputs: [
1384
1164
  {
1385
1165
  name: '_legoId',
1386
1166
  type: 'uint256',
1387
1167
  },
1388
1168
  {
1389
- name: '_nftAddr',
1169
+ name: '_tokenIn',
1390
1170
  type: 'address',
1391
1171
  },
1392
1172
  {
1393
- name: '_nftTokenId',
1394
- type: 'uint256',
1395
- },
1396
- {
1397
- name: '_pool',
1173
+ name: '_tokenOut',
1398
1174
  type: 'address',
1399
1175
  },
1176
+ ],
1177
+ outputs: [
1400
1178
  {
1401
- name: '_tokenA',
1402
- type: 'address',
1179
+ name: '',
1180
+ type: 'uint256',
1403
1181
  },
1404
1182
  {
1405
- name: '_tokenB',
1406
- type: 'address',
1183
+ name: '',
1184
+ type: 'uint256',
1407
1185
  },
1186
+ ],
1187
+ },
1188
+ {
1189
+ stateMutability: 'nonpayable',
1190
+ type: 'function',
1191
+ name: 'confirmMintOrRedeemAsset',
1192
+ inputs: [
1408
1193
  {
1409
- name: '_amountA',
1194
+ name: '_legoId',
1410
1195
  type: 'uint256',
1411
1196
  },
1412
1197
  {
1413
- name: '_amountB',
1414
- type: 'uint256',
1198
+ name: '_tokenIn',
1199
+ type: 'address',
1415
1200
  },
1416
1201
  {
1417
- name: '_tickLower',
1418
- type: 'int24',
1202
+ name: '_tokenOut',
1203
+ type: 'address',
1419
1204
  },
1420
1205
  {
1421
- name: '_tickUpper',
1422
- type: 'int24',
1206
+ name: '_extraData',
1207
+ type: 'bytes32',
1423
1208
  },
1424
1209
  ],
1425
1210
  outputs: [
@@ -1431,10 +1216,19 @@ export const abi = [
1431
1216
  name: '',
1432
1217
  type: 'uint256',
1433
1218
  },
1434
- {
1435
- name: '',
1219
+ ],
1220
+ },
1221
+ {
1222
+ stateMutability: 'nonpayable',
1223
+ type: 'function',
1224
+ name: 'claimRewards',
1225
+ inputs: [
1226
+ {
1227
+ name: '_legoId',
1436
1228
  type: 'uint256',
1437
1229
  },
1230
+ ],
1231
+ outputs: [
1438
1232
  {
1439
1233
  name: '',
1440
1234
  type: 'uint256',
@@ -1448,50 +1242,43 @@ export const abi = [
1448
1242
  {
1449
1243
  stateMutability: 'nonpayable',
1450
1244
  type: 'function',
1451
- name: 'addLiquidity',
1245
+ name: 'claimRewards',
1452
1246
  inputs: [
1453
1247
  {
1454
1248
  name: '_legoId',
1455
1249
  type: 'uint256',
1456
1250
  },
1457
1251
  {
1458
- name: '_nftAddr',
1252
+ name: '_rewardToken',
1459
1253
  type: 'address',
1460
1254
  },
1255
+ ],
1256
+ outputs: [
1461
1257
  {
1462
- name: '_nftTokenId',
1258
+ name: '',
1463
1259
  type: 'uint256',
1464
1260
  },
1465
1261
  {
1466
- name: '_pool',
1467
- type: 'address',
1468
- },
1469
- {
1470
- name: '_tokenA',
1471
- type: 'address',
1472
- },
1473
- {
1474
- name: '_tokenB',
1475
- type: 'address',
1476
- },
1477
- {
1478
- name: '_amountA',
1262
+ name: '',
1479
1263
  type: 'uint256',
1480
1264
  },
1265
+ ],
1266
+ },
1267
+ {
1268
+ stateMutability: 'nonpayable',
1269
+ type: 'function',
1270
+ name: 'claimRewards',
1271
+ inputs: [
1481
1272
  {
1482
- name: '_amountB',
1273
+ name: '_legoId',
1483
1274
  type: 'uint256',
1484
1275
  },
1485
1276
  {
1486
- name: '_tickLower',
1487
- type: 'int24',
1488
- },
1489
- {
1490
- name: '_tickUpper',
1491
- type: 'int24',
1277
+ name: '_rewardToken',
1278
+ type: 'address',
1492
1279
  },
1493
1280
  {
1494
- name: '_minAmountA',
1281
+ name: '_rewardAmount',
1495
1282
  type: 'uint256',
1496
1283
  },
1497
1284
  ],
@@ -1504,74 +1291,83 @@ export const abi = [
1504
1291
  name: '',
1505
1292
  type: 'uint256',
1506
1293
  },
1507
- {
1508
- name: '',
1509
- type: 'uint256',
1510
- },
1511
- {
1512
- name: '',
1513
- type: 'uint256',
1514
- },
1515
- {
1516
- name: '',
1517
- type: 'uint256',
1518
- },
1519
1294
  ],
1520
1295
  },
1521
1296
  {
1522
1297
  stateMutability: 'nonpayable',
1523
1298
  type: 'function',
1524
- name: 'addLiquidity',
1299
+ name: 'claimRewards',
1525
1300
  inputs: [
1526
1301
  {
1527
1302
  name: '_legoId',
1528
1303
  type: 'uint256',
1529
1304
  },
1530
1305
  {
1531
- name: '_nftAddr',
1306
+ name: '_rewardToken',
1532
1307
  type: 'address',
1533
1308
  },
1534
1309
  {
1535
- name: '_nftTokenId',
1310
+ name: '_rewardAmount',
1536
1311
  type: 'uint256',
1537
1312
  },
1538
1313
  {
1539
- name: '_pool',
1540
- type: 'address',
1541
- },
1542
- {
1543
- name: '_tokenA',
1544
- type: 'address',
1314
+ name: '_extraData',
1315
+ type: 'bytes32',
1545
1316
  },
1317
+ ],
1318
+ outputs: [
1546
1319
  {
1547
- name: '_tokenB',
1548
- type: 'address',
1320
+ name: '',
1321
+ type: 'uint256',
1549
1322
  },
1550
1323
  {
1551
- name: '_amountA',
1324
+ name: '',
1552
1325
  type: 'uint256',
1553
1326
  },
1327
+ ],
1328
+ },
1329
+ {
1330
+ stateMutability: 'payable',
1331
+ type: 'function',
1332
+ name: 'convertEthToWeth',
1333
+ inputs: [],
1334
+ outputs: [
1554
1335
  {
1555
- name: '_amountB',
1336
+ name: '',
1556
1337
  type: 'uint256',
1557
1338
  },
1558
1339
  {
1559
- name: '_tickLower',
1560
- type: 'int24',
1340
+ name: '',
1341
+ type: 'uint256',
1561
1342
  },
1343
+ ],
1344
+ },
1345
+ {
1346
+ stateMutability: 'payable',
1347
+ type: 'function',
1348
+ name: 'convertEthToWeth',
1349
+ inputs: [
1562
1350
  {
1563
- name: '_tickUpper',
1564
- type: 'int24',
1351
+ name: '_amount',
1352
+ type: 'uint256',
1565
1353
  },
1354
+ ],
1355
+ outputs: [
1566
1356
  {
1567
- name: '_minAmountA',
1357
+ name: '',
1568
1358
  type: 'uint256',
1569
1359
  },
1570
1360
  {
1571
- name: '_minAmountB',
1361
+ name: '',
1572
1362
  type: 'uint256',
1573
1363
  },
1574
1364
  ],
1365
+ },
1366
+ {
1367
+ stateMutability: 'nonpayable',
1368
+ type: 'function',
1369
+ name: 'convertWethToEth',
1370
+ inputs: [],
1575
1371
  outputs: [
1576
1372
  {
1577
1373
  name: '',
@@ -1581,10 +1377,19 @@ export const abi = [
1581
1377
  name: '',
1582
1378
  type: 'uint256',
1583
1379
  },
1380
+ ],
1381
+ },
1382
+ {
1383
+ stateMutability: 'nonpayable',
1384
+ type: 'function',
1385
+ name: 'convertWethToEth',
1386
+ inputs: [
1584
1387
  {
1585
- name: '',
1388
+ name: '_amount',
1586
1389
  type: 'uint256',
1587
1390
  },
1391
+ ],
1392
+ outputs: [
1588
1393
  {
1589
1394
  name: '',
1590
1395
  type: 'uint256',
@@ -1604,14 +1409,6 @@ export const abi = [
1604
1409
  name: '_legoId',
1605
1410
  type: 'uint256',
1606
1411
  },
1607
- {
1608
- name: '_nftAddr',
1609
- type: 'address',
1610
- },
1611
- {
1612
- name: '_nftTokenId',
1613
- type: 'uint256',
1614
- },
1615
1412
  {
1616
1413
  name: '_pool',
1617
1414
  type: 'address',
@@ -1624,34 +1421,6 @@ export const abi = [
1624
1421
  name: '_tokenB',
1625
1422
  type: 'address',
1626
1423
  },
1627
- {
1628
- name: '_amountA',
1629
- type: 'uint256',
1630
- },
1631
- {
1632
- name: '_amountB',
1633
- type: 'uint256',
1634
- },
1635
- {
1636
- name: '_tickLower',
1637
- type: 'int24',
1638
- },
1639
- {
1640
- name: '_tickUpper',
1641
- type: 'int24',
1642
- },
1643
- {
1644
- name: '_minAmountA',
1645
- type: 'uint256',
1646
- },
1647
- {
1648
- name: '_minAmountB',
1649
- type: 'uint256',
1650
- },
1651
- {
1652
- name: '_minLpAmount',
1653
- type: 'uint256',
1654
- },
1655
1424
  ],
1656
1425
  outputs: [
1657
1426
  {
@@ -1670,29 +1439,17 @@ export const abi = [
1670
1439
  name: '',
1671
1440
  type: 'uint256',
1672
1441
  },
1673
- {
1674
- name: '',
1675
- type: 'uint256',
1676
- },
1677
1442
  ],
1678
1443
  },
1679
1444
  {
1680
1445
  stateMutability: 'nonpayable',
1681
1446
  type: 'function',
1682
- name: 'removeLiquidity',
1447
+ name: 'addLiquidity',
1683
1448
  inputs: [
1684
1449
  {
1685
1450
  name: '_legoId',
1686
1451
  type: 'uint256',
1687
1452
  },
1688
- {
1689
- name: '_nftAddr',
1690
- type: 'address',
1691
- },
1692
- {
1693
- name: '_nftTokenId',
1694
- type: 'uint256',
1695
- },
1696
1453
  {
1697
1454
  name: '_pool',
1698
1455
  type: 'address',
@@ -1705,6 +1462,10 @@ export const abi = [
1705
1462
  name: '_tokenB',
1706
1463
  type: 'address',
1707
1464
  },
1465
+ {
1466
+ name: '_amountA',
1467
+ type: 'uint256',
1468
+ },
1708
1469
  ],
1709
1470
  outputs: [
1710
1471
  {
@@ -1721,27 +1482,19 @@ export const abi = [
1721
1482
  },
1722
1483
  {
1723
1484
  name: '',
1724
- type: 'bool',
1485
+ type: 'uint256',
1725
1486
  },
1726
1487
  ],
1727
1488
  },
1728
1489
  {
1729
1490
  stateMutability: 'nonpayable',
1730
1491
  type: 'function',
1731
- name: 'removeLiquidity',
1492
+ name: 'addLiquidity',
1732
1493
  inputs: [
1733
1494
  {
1734
1495
  name: '_legoId',
1735
1496
  type: 'uint256',
1736
1497
  },
1737
- {
1738
- name: '_nftAddr',
1739
- type: 'address',
1740
- },
1741
- {
1742
- name: '_nftTokenId',
1743
- type: 'uint256',
1744
- },
1745
1498
  {
1746
1499
  name: '_pool',
1747
1500
  type: 'address',
@@ -1755,7 +1508,11 @@ export const abi = [
1755
1508
  type: 'address',
1756
1509
  },
1757
1510
  {
1758
- name: '_liqToRemove',
1511
+ name: '_amountA',
1512
+ type: 'uint256',
1513
+ },
1514
+ {
1515
+ name: '_amountB',
1759
1516
  type: 'uint256',
1760
1517
  },
1761
1518
  ],
@@ -1774,27 +1531,19 @@ export const abi = [
1774
1531
  },
1775
1532
  {
1776
1533
  name: '',
1777
- type: 'bool',
1534
+ type: 'uint256',
1778
1535
  },
1779
1536
  ],
1780
1537
  },
1781
1538
  {
1782
1539
  stateMutability: 'nonpayable',
1783
1540
  type: 'function',
1784
- name: 'removeLiquidity',
1541
+ name: 'addLiquidity',
1785
1542
  inputs: [
1786
1543
  {
1787
1544
  name: '_legoId',
1788
1545
  type: 'uint256',
1789
1546
  },
1790
- {
1791
- name: '_nftAddr',
1792
- type: 'address',
1793
- },
1794
- {
1795
- name: '_nftTokenId',
1796
- type: 'uint256',
1797
- },
1798
1547
  {
1799
1548
  name: '_pool',
1800
1549
  type: 'address',
@@ -1808,7 +1557,11 @@ export const abi = [
1808
1557
  type: 'address',
1809
1558
  },
1810
1559
  {
1811
- name: '_liqToRemove',
1560
+ name: '_amountA',
1561
+ type: 'uint256',
1562
+ },
1563
+ {
1564
+ name: '_amountB',
1812
1565
  type: 'uint256',
1813
1566
  },
1814
1567
  {
@@ -1831,27 +1584,19 @@ export const abi = [
1831
1584
  },
1832
1585
  {
1833
1586
  name: '',
1834
- type: 'bool',
1587
+ type: 'uint256',
1835
1588
  },
1836
1589
  ],
1837
1590
  },
1838
1591
  {
1839
1592
  stateMutability: 'nonpayable',
1840
1593
  type: 'function',
1841
- name: 'removeLiquidity',
1594
+ name: 'addLiquidity',
1842
1595
  inputs: [
1843
1596
  {
1844
1597
  name: '_legoId',
1845
1598
  type: 'uint256',
1846
1599
  },
1847
- {
1848
- name: '_nftAddr',
1849
- type: 'address',
1850
- },
1851
- {
1852
- name: '_nftTokenId',
1853
- type: 'uint256',
1854
- },
1855
1600
  {
1856
1601
  name: '_pool',
1857
1602
  type: 'address',
@@ -1865,7 +1610,11 @@ export const abi = [
1865
1610
  type: 'address',
1866
1611
  },
1867
1612
  {
1868
- name: '_liqToRemove',
1613
+ name: '_amountA',
1614
+ type: 'uint256',
1615
+ },
1616
+ {
1617
+ name: '_amountB',
1869
1618
  type: 'uint256',
1870
1619
  },
1871
1620
  {
@@ -1892,66 +1641,49 @@ export const abi = [
1892
1641
  },
1893
1642
  {
1894
1643
  name: '',
1895
- type: 'bool',
1644
+ type: 'uint256',
1896
1645
  },
1897
1646
  ],
1898
1647
  },
1899
1648
  {
1900
- stateMutability: 'payable',
1649
+ stateMutability: 'nonpayable',
1901
1650
  type: 'function',
1902
- name: 'convertEthToWeth',
1903
- inputs: [],
1904
- outputs: [
1651
+ name: 'addLiquidity',
1652
+ inputs: [
1905
1653
  {
1906
- name: '',
1654
+ name: '_legoId',
1907
1655
  type: 'uint256',
1908
1656
  },
1909
1657
  {
1910
- name: '',
1658
+ name: '_pool',
1911
1659
  type: 'address',
1912
1660
  },
1913
1661
  {
1914
- name: '',
1915
- type: 'uint256',
1662
+ name: '_tokenA',
1663
+ type: 'address',
1916
1664
  },
1917
- ],
1918
- },
1919
- {
1920
- stateMutability: 'payable',
1921
- type: 'function',
1922
- name: 'convertEthToWeth',
1923
- inputs: [
1924
1665
  {
1925
- name: '_amount',
1926
- type: 'uint256',
1666
+ name: '_tokenB',
1667
+ type: 'address',
1927
1668
  },
1928
- ],
1929
- outputs: [
1930
1669
  {
1931
- name: '',
1670
+ name: '_amountA',
1932
1671
  type: 'uint256',
1933
1672
  },
1934
1673
  {
1935
- name: '',
1936
- type: 'address',
1674
+ name: '_amountB',
1675
+ type: 'uint256',
1937
1676
  },
1938
1677
  {
1939
- name: '',
1678
+ name: '_minAmountA',
1940
1679
  type: 'uint256',
1941
1680
  },
1942
- ],
1943
- },
1944
- {
1945
- stateMutability: 'payable',
1946
- type: 'function',
1947
- name: 'convertEthToWeth',
1948
- inputs: [
1949
1681
  {
1950
- name: '_amount',
1682
+ name: '_minAmountB',
1951
1683
  type: 'uint256',
1952
1684
  },
1953
1685
  {
1954
- name: '_depositLegoId',
1686
+ name: '_minLpAmount',
1955
1687
  type: 'uint256',
1956
1688
  },
1957
1689
  ],
@@ -1962,7 +1694,11 @@ export const abi = [
1962
1694
  },
1963
1695
  {
1964
1696
  name: '',
1965
- type: 'address',
1697
+ type: 'uint256',
1698
+ },
1699
+ {
1700
+ name: '',
1701
+ type: 'uint256',
1966
1702
  },
1967
1703
  {
1968
1704
  name: '',
@@ -1971,79 +1707,49 @@ export const abi = [
1971
1707
  ],
1972
1708
  },
1973
1709
  {
1974
- stateMutability: 'payable',
1710
+ stateMutability: 'nonpayable',
1975
1711
  type: 'function',
1976
- name: 'convertEthToWeth',
1712
+ name: 'addLiquidity',
1977
1713
  inputs: [
1978
1714
  {
1979
- name: '_amount',
1980
- type: 'uint256',
1981
- },
1982
- {
1983
- name: '_depositLegoId',
1715
+ name: '_legoId',
1984
1716
  type: 'uint256',
1985
1717
  },
1986
1718
  {
1987
- name: '_depositVault',
1719
+ name: '_pool',
1988
1720
  type: 'address',
1989
1721
  },
1990
- ],
1991
- outputs: [
1992
1722
  {
1993
- name: '',
1994
- type: 'uint256',
1723
+ name: '_tokenA',
1724
+ type: 'address',
1995
1725
  },
1996
1726
  {
1997
- name: '',
1727
+ name: '_tokenB',
1998
1728
  type: 'address',
1999
1729
  },
2000
1730
  {
2001
- name: '',
1731
+ name: '_amountA',
2002
1732
  type: 'uint256',
2003
1733
  },
2004
- ],
2005
- },
2006
- {
2007
- stateMutability: 'nonpayable',
2008
- type: 'function',
2009
- name: 'convertWethToEth',
2010
- inputs: [],
2011
- outputs: [
2012
1734
  {
2013
- name: '',
1735
+ name: '_amountB',
2014
1736
  type: 'uint256',
2015
1737
  },
2016
- ],
2017
- },
2018
- {
2019
- stateMutability: 'nonpayable',
2020
- type: 'function',
2021
- name: 'convertWethToEth',
2022
- inputs: [
2023
1738
  {
2024
- name: '_amount',
1739
+ name: '_minAmountA',
2025
1740
  type: 'uint256',
2026
1741
  },
2027
- ],
2028
- outputs: [
2029
1742
  {
2030
- name: '',
1743
+ name: '_minAmountB',
2031
1744
  type: 'uint256',
2032
1745
  },
2033
- ],
2034
- },
2035
- {
2036
- stateMutability: 'nonpayable',
2037
- type: 'function',
2038
- name: 'convertWethToEth',
2039
- inputs: [
2040
1746
  {
2041
- name: '_amount',
1747
+ name: '_minLpAmount',
2042
1748
  type: 'uint256',
2043
1749
  },
2044
1750
  {
2045
- name: '_recipient',
2046
- type: 'address',
1751
+ name: '_extraData',
1752
+ type: 'bytes32',
2047
1753
  },
2048
1754
  ],
2049
1755
  outputs: [
@@ -2051,27 +1757,14 @@ export const abi = [
2051
1757
  name: '',
2052
1758
  type: 'uint256',
2053
1759
  },
2054
- ],
2055
- },
2056
- {
2057
- stateMutability: 'nonpayable',
2058
- type: 'function',
2059
- name: 'convertWethToEth',
2060
- inputs: [
2061
1760
  {
2062
- name: '_amount',
1761
+ name: '',
2063
1762
  type: 'uint256',
2064
1763
  },
2065
1764
  {
2066
- name: '_recipient',
2067
- type: 'address',
2068
- },
2069
- {
2070
- name: '_withdrawLegoId',
1765
+ name: '',
2071
1766
  type: 'uint256',
2072
1767
  },
2073
- ],
2074
- outputs: [
2075
1768
  {
2076
1769
  name: '',
2077
1770
  type: 'uint256',
@@ -2081,22 +1774,26 @@ export const abi = [
2081
1774
  {
2082
1775
  stateMutability: 'nonpayable',
2083
1776
  type: 'function',
2084
- name: 'convertWethToEth',
1777
+ name: 'removeLiquidity',
2085
1778
  inputs: [
2086
1779
  {
2087
- name: '_amount',
1780
+ name: '_legoId',
2088
1781
  type: 'uint256',
2089
1782
  },
2090
1783
  {
2091
- name: '_recipient',
1784
+ name: '_pool',
2092
1785
  type: 'address',
2093
1786
  },
2094
1787
  {
2095
- name: '_withdrawLegoId',
2096
- type: 'uint256',
1788
+ name: '_tokenA',
1789
+ type: 'address',
1790
+ },
1791
+ {
1792
+ name: '_tokenB',
1793
+ type: 'address',
2097
1794
  },
2098
1795
  {
2099
- name: '_withdrawVaultAddr',
1796
+ name: '_lpToken',
2100
1797
  type: 'address',
2101
1798
  },
2102
1799
  ],
@@ -2105,32 +1802,48 @@ export const abi = [
2105
1802
  name: '',
2106
1803
  type: 'uint256',
2107
1804
  },
1805
+ {
1806
+ name: '',
1807
+ type: 'uint256',
1808
+ },
1809
+ {
1810
+ name: '',
1811
+ type: 'uint256',
1812
+ },
1813
+ {
1814
+ name: '',
1815
+ type: 'uint256',
1816
+ },
2108
1817
  ],
2109
1818
  },
2110
1819
  {
2111
1820
  stateMutability: 'nonpayable',
2112
1821
  type: 'function',
2113
- name: 'convertWethToEth',
1822
+ name: 'removeLiquidity',
2114
1823
  inputs: [
2115
1824
  {
2116
- name: '_amount',
1825
+ name: '_legoId',
2117
1826
  type: 'uint256',
2118
1827
  },
2119
1828
  {
2120
- name: '_recipient',
1829
+ name: '_pool',
2121
1830
  type: 'address',
2122
1831
  },
2123
1832
  {
2124
- name: '_withdrawLegoId',
2125
- type: 'uint256',
1833
+ name: '_tokenA',
1834
+ type: 'address',
2126
1835
  },
2127
1836
  {
2128
- name: '_withdrawVaultAddr',
1837
+ name: '_tokenB',
2129
1838
  type: 'address',
2130
1839
  },
2131
1840
  {
2132
- name: '_hasWithdrawVaultToken',
2133
- type: 'bool',
1841
+ name: '_lpToken',
1842
+ type: 'address',
1843
+ },
1844
+ {
1845
+ name: '_lpAmount',
1846
+ type: 'uint256',
2134
1847
  },
2135
1848
  ],
2136
1849
  outputs: [
@@ -2138,184 +1851,823 @@ export const abi = [
2138
1851
  name: '',
2139
1852
  type: 'uint256',
2140
1853
  },
2141
- ],
2142
- },
2143
- {
2144
- stateMutability: 'nonpayable',
2145
- type: 'function',
2146
- name: 'claimRewards',
2147
- inputs: [
2148
1854
  {
2149
- name: '_legoId',
1855
+ name: '',
2150
1856
  type: 'uint256',
2151
1857
  },
2152
- ],
2153
- outputs: [],
2154
- },
2155
- {
2156
- stateMutability: 'nonpayable',
2157
- type: 'function',
2158
- name: 'claimRewards',
2159
- inputs: [
2160
1858
  {
2161
- name: '_legoId',
1859
+ name: '',
2162
1860
  type: 'uint256',
2163
1861
  },
2164
1862
  {
2165
- name: '_market',
2166
- type: 'address',
1863
+ name: '',
1864
+ type: 'uint256',
2167
1865
  },
2168
1866
  ],
2169
- outputs: [],
2170
1867
  },
2171
1868
  {
2172
1869
  stateMutability: 'nonpayable',
2173
1870
  type: 'function',
2174
- name: 'claimRewards',
1871
+ name: 'removeLiquidity',
2175
1872
  inputs: [
2176
1873
  {
2177
1874
  name: '_legoId',
2178
1875
  type: 'uint256',
2179
1876
  },
2180
1877
  {
2181
- name: '_market',
1878
+ name: '_pool',
1879
+ type: 'address',
1880
+ },
1881
+ {
1882
+ name: '_tokenA',
2182
1883
  type: 'address',
2183
1884
  },
2184
1885
  {
2185
- name: '_rewardToken',
1886
+ name: '_tokenB',
1887
+ type: 'address',
1888
+ },
1889
+ {
1890
+ name: '_lpToken',
2186
1891
  type: 'address',
2187
1892
  },
1893
+ {
1894
+ name: '_lpAmount',
1895
+ type: 'uint256',
1896
+ },
1897
+ {
1898
+ name: '_minAmountA',
1899
+ type: 'uint256',
1900
+ },
2188
1901
  ],
2189
- outputs: [],
2190
- },
2191
- {
2192
- stateMutability: 'nonpayable',
2193
- type: 'function',
2194
- name: 'claimRewards',
2195
- inputs: [
1902
+ outputs: [
2196
1903
  {
2197
- name: '_legoId',
1904
+ name: '',
2198
1905
  type: 'uint256',
2199
1906
  },
2200
1907
  {
2201
- name: '_market',
2202
- type: 'address',
1908
+ name: '',
1909
+ type: 'uint256',
2203
1910
  },
2204
1911
  {
2205
- name: '_rewardToken',
2206
- type: 'address',
1912
+ name: '',
1913
+ type: 'uint256',
2207
1914
  },
2208
1915
  {
2209
- name: '_rewardAmount',
1916
+ name: '',
2210
1917
  type: 'uint256',
2211
1918
  },
2212
1919
  ],
2213
- outputs: [],
2214
1920
  },
2215
1921
  {
2216
1922
  stateMutability: 'nonpayable',
2217
1923
  type: 'function',
2218
- name: 'claimRewards',
1924
+ name: 'removeLiquidity',
2219
1925
  inputs: [
2220
1926
  {
2221
1927
  name: '_legoId',
2222
1928
  type: 'uint256',
2223
1929
  },
2224
1930
  {
2225
- name: '_market',
1931
+ name: '_pool',
2226
1932
  type: 'address',
2227
1933
  },
2228
1934
  {
2229
- name: '_rewardToken',
1935
+ name: '_tokenA',
2230
1936
  type: 'address',
2231
1937
  },
2232
1938
  {
2233
- name: '_rewardAmount',
1939
+ name: '_tokenB',
1940
+ type: 'address',
1941
+ },
1942
+ {
1943
+ name: '_lpToken',
1944
+ type: 'address',
1945
+ },
1946
+ {
1947
+ name: '_lpAmount',
2234
1948
  type: 'uint256',
2235
1949
  },
2236
1950
  {
2237
- name: '_proof',
2238
- type: 'bytes32',
1951
+ name: '_minAmountA',
1952
+ type: 'uint256',
2239
1953
  },
2240
- ],
2241
- outputs: [],
2242
- },
2243
- {
2244
- stateMutability: 'nonpayable',
2245
- type: 'function',
2246
- name: 'stabilizeGreenRefPool',
2247
- inputs: [],
2248
- outputs: [
2249
1954
  {
2250
- name: '',
2251
- type: 'bool',
1955
+ name: '_minAmountB',
1956
+ type: 'uint256',
2252
1957
  },
2253
1958
  ],
2254
- },
2255
- {
2256
- stateMutability: 'view',
2257
- type: 'function',
2258
- name: 'getGreenAmountToAddInStabilizer',
2259
- inputs: [],
2260
1959
  outputs: [
2261
1960
  {
2262
1961
  name: '',
2263
1962
  type: 'uint256',
2264
1963
  },
2265
- ],
2266
- },
2267
- {
2268
- stateMutability: 'view',
2269
- type: 'function',
2270
- name: 'getGreenAmountToRemoveInStabilizer',
2271
- inputs: [],
2272
- outputs: [
2273
1964
  {
2274
1965
  name: '',
2275
1966
  type: 'uint256',
2276
1967
  },
2277
- ],
1968
+ {
1969
+ name: '',
1970
+ type: 'uint256',
1971
+ },
1972
+ {
1973
+ name: '',
1974
+ type: 'uint256',
1975
+ },
1976
+ ],
1977
+ },
1978
+ {
1979
+ stateMutability: 'nonpayable',
1980
+ type: 'function',
1981
+ name: 'removeLiquidity',
1982
+ inputs: [
1983
+ {
1984
+ name: '_legoId',
1985
+ type: 'uint256',
1986
+ },
1987
+ {
1988
+ name: '_pool',
1989
+ type: 'address',
1990
+ },
1991
+ {
1992
+ name: '_tokenA',
1993
+ type: 'address',
1994
+ },
1995
+ {
1996
+ name: '_tokenB',
1997
+ type: 'address',
1998
+ },
1999
+ {
2000
+ name: '_lpToken',
2001
+ type: 'address',
2002
+ },
2003
+ {
2004
+ name: '_lpAmount',
2005
+ type: 'uint256',
2006
+ },
2007
+ {
2008
+ name: '_minAmountA',
2009
+ type: 'uint256',
2010
+ },
2011
+ {
2012
+ name: '_minAmountB',
2013
+ type: 'uint256',
2014
+ },
2015
+ {
2016
+ name: '_extraData',
2017
+ type: 'bytes32',
2018
+ },
2019
+ ],
2020
+ outputs: [
2021
+ {
2022
+ name: '',
2023
+ type: 'uint256',
2024
+ },
2025
+ {
2026
+ name: '',
2027
+ type: 'uint256',
2028
+ },
2029
+ {
2030
+ name: '',
2031
+ type: 'uint256',
2032
+ },
2033
+ {
2034
+ name: '',
2035
+ type: 'uint256',
2036
+ },
2037
+ ],
2038
+ },
2039
+ {
2040
+ stateMutability: 'nonpayable',
2041
+ type: 'function',
2042
+ name: 'addLiquidityConcentrated',
2043
+ inputs: [
2044
+ {
2045
+ name: '_legoId',
2046
+ type: 'uint256',
2047
+ },
2048
+ {
2049
+ name: '_nftAddr',
2050
+ type: 'address',
2051
+ },
2052
+ {
2053
+ name: '_nftTokenId',
2054
+ type: 'uint256',
2055
+ },
2056
+ {
2057
+ name: '_pool',
2058
+ type: 'address',
2059
+ },
2060
+ {
2061
+ name: '_tokenA',
2062
+ type: 'address',
2063
+ },
2064
+ {
2065
+ name: '_tokenB',
2066
+ type: 'address',
2067
+ },
2068
+ ],
2069
+ outputs: [
2070
+ {
2071
+ name: '',
2072
+ type: 'uint256',
2073
+ },
2074
+ {
2075
+ name: '',
2076
+ type: 'uint256',
2077
+ },
2078
+ {
2079
+ name: '',
2080
+ type: 'uint256',
2081
+ },
2082
+ {
2083
+ name: '',
2084
+ type: 'uint256',
2085
+ },
2086
+ {
2087
+ name: '',
2088
+ type: 'uint256',
2089
+ },
2090
+ ],
2091
+ },
2092
+ {
2093
+ stateMutability: 'nonpayable',
2094
+ type: 'function',
2095
+ name: 'addLiquidityConcentrated',
2096
+ inputs: [
2097
+ {
2098
+ name: '_legoId',
2099
+ type: 'uint256',
2100
+ },
2101
+ {
2102
+ name: '_nftAddr',
2103
+ type: 'address',
2104
+ },
2105
+ {
2106
+ name: '_nftTokenId',
2107
+ type: 'uint256',
2108
+ },
2109
+ {
2110
+ name: '_pool',
2111
+ type: 'address',
2112
+ },
2113
+ {
2114
+ name: '_tokenA',
2115
+ type: 'address',
2116
+ },
2117
+ {
2118
+ name: '_tokenB',
2119
+ type: 'address',
2120
+ },
2121
+ {
2122
+ name: '_amountA',
2123
+ type: 'uint256',
2124
+ },
2125
+ ],
2126
+ outputs: [
2127
+ {
2128
+ name: '',
2129
+ type: 'uint256',
2130
+ },
2131
+ {
2132
+ name: '',
2133
+ type: 'uint256',
2134
+ },
2135
+ {
2136
+ name: '',
2137
+ type: 'uint256',
2138
+ },
2139
+ {
2140
+ name: '',
2141
+ type: 'uint256',
2142
+ },
2143
+ {
2144
+ name: '',
2145
+ type: 'uint256',
2146
+ },
2147
+ ],
2148
+ },
2149
+ {
2150
+ stateMutability: 'nonpayable',
2151
+ type: 'function',
2152
+ name: 'addLiquidityConcentrated',
2153
+ inputs: [
2154
+ {
2155
+ name: '_legoId',
2156
+ type: 'uint256',
2157
+ },
2158
+ {
2159
+ name: '_nftAddr',
2160
+ type: 'address',
2161
+ },
2162
+ {
2163
+ name: '_nftTokenId',
2164
+ type: 'uint256',
2165
+ },
2166
+ {
2167
+ name: '_pool',
2168
+ type: 'address',
2169
+ },
2170
+ {
2171
+ name: '_tokenA',
2172
+ type: 'address',
2173
+ },
2174
+ {
2175
+ name: '_tokenB',
2176
+ type: 'address',
2177
+ },
2178
+ {
2179
+ name: '_amountA',
2180
+ type: 'uint256',
2181
+ },
2182
+ {
2183
+ name: '_amountB',
2184
+ type: 'uint256',
2185
+ },
2186
+ ],
2187
+ outputs: [
2188
+ {
2189
+ name: '',
2190
+ type: 'uint256',
2191
+ },
2192
+ {
2193
+ name: '',
2194
+ type: 'uint256',
2195
+ },
2196
+ {
2197
+ name: '',
2198
+ type: 'uint256',
2199
+ },
2200
+ {
2201
+ name: '',
2202
+ type: 'uint256',
2203
+ },
2204
+ {
2205
+ name: '',
2206
+ type: 'uint256',
2207
+ },
2208
+ ],
2209
+ },
2210
+ {
2211
+ stateMutability: 'nonpayable',
2212
+ type: 'function',
2213
+ name: 'addLiquidityConcentrated',
2214
+ inputs: [
2215
+ {
2216
+ name: '_legoId',
2217
+ type: 'uint256',
2218
+ },
2219
+ {
2220
+ name: '_nftAddr',
2221
+ type: 'address',
2222
+ },
2223
+ {
2224
+ name: '_nftTokenId',
2225
+ type: 'uint256',
2226
+ },
2227
+ {
2228
+ name: '_pool',
2229
+ type: 'address',
2230
+ },
2231
+ {
2232
+ name: '_tokenA',
2233
+ type: 'address',
2234
+ },
2235
+ {
2236
+ name: '_tokenB',
2237
+ type: 'address',
2238
+ },
2239
+ {
2240
+ name: '_amountA',
2241
+ type: 'uint256',
2242
+ },
2243
+ {
2244
+ name: '_amountB',
2245
+ type: 'uint256',
2246
+ },
2247
+ {
2248
+ name: '_tickLower',
2249
+ type: 'int24',
2250
+ },
2251
+ ],
2252
+ outputs: [
2253
+ {
2254
+ name: '',
2255
+ type: 'uint256',
2256
+ },
2257
+ {
2258
+ name: '',
2259
+ type: 'uint256',
2260
+ },
2261
+ {
2262
+ name: '',
2263
+ type: 'uint256',
2264
+ },
2265
+ {
2266
+ name: '',
2267
+ type: 'uint256',
2268
+ },
2269
+ {
2270
+ name: '',
2271
+ type: 'uint256',
2272
+ },
2273
+ ],
2274
+ },
2275
+ {
2276
+ stateMutability: 'nonpayable',
2277
+ type: 'function',
2278
+ name: 'addLiquidityConcentrated',
2279
+ inputs: [
2280
+ {
2281
+ name: '_legoId',
2282
+ type: 'uint256',
2283
+ },
2284
+ {
2285
+ name: '_nftAddr',
2286
+ type: 'address',
2287
+ },
2288
+ {
2289
+ name: '_nftTokenId',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ name: '_pool',
2294
+ type: 'address',
2295
+ },
2296
+ {
2297
+ name: '_tokenA',
2298
+ type: 'address',
2299
+ },
2300
+ {
2301
+ name: '_tokenB',
2302
+ type: 'address',
2303
+ },
2304
+ {
2305
+ name: '_amountA',
2306
+ type: 'uint256',
2307
+ },
2308
+ {
2309
+ name: '_amountB',
2310
+ type: 'uint256',
2311
+ },
2312
+ {
2313
+ name: '_tickLower',
2314
+ type: 'int24',
2315
+ },
2316
+ {
2317
+ name: '_tickUpper',
2318
+ type: 'int24',
2319
+ },
2320
+ ],
2321
+ outputs: [
2322
+ {
2323
+ name: '',
2324
+ type: 'uint256',
2325
+ },
2326
+ {
2327
+ name: '',
2328
+ type: 'uint256',
2329
+ },
2330
+ {
2331
+ name: '',
2332
+ type: 'uint256',
2333
+ },
2334
+ {
2335
+ name: '',
2336
+ type: 'uint256',
2337
+ },
2338
+ {
2339
+ name: '',
2340
+ type: 'uint256',
2341
+ },
2342
+ ],
2343
+ },
2344
+ {
2345
+ stateMutability: 'nonpayable',
2346
+ type: 'function',
2347
+ name: 'addLiquidityConcentrated',
2348
+ inputs: [
2349
+ {
2350
+ name: '_legoId',
2351
+ type: 'uint256',
2352
+ },
2353
+ {
2354
+ name: '_nftAddr',
2355
+ type: 'address',
2356
+ },
2357
+ {
2358
+ name: '_nftTokenId',
2359
+ type: 'uint256',
2360
+ },
2361
+ {
2362
+ name: '_pool',
2363
+ type: 'address',
2364
+ },
2365
+ {
2366
+ name: '_tokenA',
2367
+ type: 'address',
2368
+ },
2369
+ {
2370
+ name: '_tokenB',
2371
+ type: 'address',
2372
+ },
2373
+ {
2374
+ name: '_amountA',
2375
+ type: 'uint256',
2376
+ },
2377
+ {
2378
+ name: '_amountB',
2379
+ type: 'uint256',
2380
+ },
2381
+ {
2382
+ name: '_tickLower',
2383
+ type: 'int24',
2384
+ },
2385
+ {
2386
+ name: '_tickUpper',
2387
+ type: 'int24',
2388
+ },
2389
+ {
2390
+ name: '_minAmountA',
2391
+ type: 'uint256',
2392
+ },
2393
+ ],
2394
+ outputs: [
2395
+ {
2396
+ name: '',
2397
+ type: 'uint256',
2398
+ },
2399
+ {
2400
+ name: '',
2401
+ type: 'uint256',
2402
+ },
2403
+ {
2404
+ name: '',
2405
+ type: 'uint256',
2406
+ },
2407
+ {
2408
+ name: '',
2409
+ type: 'uint256',
2410
+ },
2411
+ {
2412
+ name: '',
2413
+ type: 'uint256',
2414
+ },
2415
+ ],
2278
2416
  },
2279
2417
  {
2280
2418
  stateMutability: 'nonpayable',
2281
2419
  type: 'function',
2282
- name: 'mintPartnerLiquidity',
2420
+ name: 'addLiquidityConcentrated',
2283
2421
  inputs: [
2284
2422
  {
2285
- name: '_partner',
2423
+ name: '_legoId',
2424
+ type: 'uint256',
2425
+ },
2426
+ {
2427
+ name: '_nftAddr',
2286
2428
  type: 'address',
2287
2429
  },
2288
2430
  {
2289
- name: '_asset',
2431
+ name: '_nftTokenId',
2432
+ type: 'uint256',
2433
+ },
2434
+ {
2435
+ name: '_pool',
2436
+ type: 'address',
2437
+ },
2438
+ {
2439
+ name: '_tokenA',
2440
+ type: 'address',
2441
+ },
2442
+ {
2443
+ name: '_tokenB',
2290
2444
  type: 'address',
2291
2445
  },
2446
+ {
2447
+ name: '_amountA',
2448
+ type: 'uint256',
2449
+ },
2450
+ {
2451
+ name: '_amountB',
2452
+ type: 'uint256',
2453
+ },
2454
+ {
2455
+ name: '_tickLower',
2456
+ type: 'int24',
2457
+ },
2458
+ {
2459
+ name: '_tickUpper',
2460
+ type: 'int24',
2461
+ },
2462
+ {
2463
+ name: '_minAmountA',
2464
+ type: 'uint256',
2465
+ },
2466
+ {
2467
+ name: '_minAmountB',
2468
+ type: 'uint256',
2469
+ },
2292
2470
  ],
2293
2471
  outputs: [
2294
2472
  {
2295
2473
  name: '',
2296
2474
  type: 'uint256',
2297
2475
  },
2476
+ {
2477
+ name: '',
2478
+ type: 'uint256',
2479
+ },
2480
+ {
2481
+ name: '',
2482
+ type: 'uint256',
2483
+ },
2484
+ {
2485
+ name: '',
2486
+ type: 'uint256',
2487
+ },
2488
+ {
2489
+ name: '',
2490
+ type: 'uint256',
2491
+ },
2298
2492
  ],
2299
2493
  },
2300
2494
  {
2301
2495
  stateMutability: 'nonpayable',
2302
2496
  type: 'function',
2303
- name: 'mintPartnerLiquidity',
2497
+ name: 'addLiquidityConcentrated',
2304
2498
  inputs: [
2305
2499
  {
2306
- name: '_partner',
2500
+ name: '_legoId',
2501
+ type: 'uint256',
2502
+ },
2503
+ {
2504
+ name: '_nftAddr',
2505
+ type: 'address',
2506
+ },
2507
+ {
2508
+ name: '_nftTokenId',
2509
+ type: 'uint256',
2510
+ },
2511
+ {
2512
+ name: '_pool',
2513
+ type: 'address',
2514
+ },
2515
+ {
2516
+ name: '_tokenA',
2517
+ type: 'address',
2518
+ },
2519
+ {
2520
+ name: '_tokenB',
2521
+ type: 'address',
2522
+ },
2523
+ {
2524
+ name: '_amountA',
2525
+ type: 'uint256',
2526
+ },
2527
+ {
2528
+ name: '_amountB',
2529
+ type: 'uint256',
2530
+ },
2531
+ {
2532
+ name: '_tickLower',
2533
+ type: 'int24',
2534
+ },
2535
+ {
2536
+ name: '_tickUpper',
2537
+ type: 'int24',
2538
+ },
2539
+ {
2540
+ name: '_minAmountA',
2541
+ type: 'uint256',
2542
+ },
2543
+ {
2544
+ name: '_minAmountB',
2545
+ type: 'uint256',
2546
+ },
2547
+ {
2548
+ name: '_extraData',
2549
+ type: 'bytes32',
2550
+ },
2551
+ ],
2552
+ outputs: [
2553
+ {
2554
+ name: '',
2555
+ type: 'uint256',
2556
+ },
2557
+ {
2558
+ name: '',
2559
+ type: 'uint256',
2560
+ },
2561
+ {
2562
+ name: '',
2563
+ type: 'uint256',
2564
+ },
2565
+ {
2566
+ name: '',
2567
+ type: 'uint256',
2568
+ },
2569
+ {
2570
+ name: '',
2571
+ type: 'uint256',
2572
+ },
2573
+ ],
2574
+ },
2575
+ {
2576
+ stateMutability: 'nonpayable',
2577
+ type: 'function',
2578
+ name: 'removeLiquidityConcentrated',
2579
+ inputs: [
2580
+ {
2581
+ name: '_legoId',
2582
+ type: 'uint256',
2583
+ },
2584
+ {
2585
+ name: '_nftAddr',
2586
+ type: 'address',
2587
+ },
2588
+ {
2589
+ name: '_nftTokenId',
2590
+ type: 'uint256',
2591
+ },
2592
+ {
2593
+ name: '_pool',
2594
+ type: 'address',
2595
+ },
2596
+ {
2597
+ name: '_tokenA',
2598
+ type: 'address',
2599
+ },
2600
+ {
2601
+ name: '_tokenB',
2602
+ type: 'address',
2603
+ },
2604
+ ],
2605
+ outputs: [
2606
+ {
2607
+ name: '',
2608
+ type: 'uint256',
2609
+ },
2610
+ {
2611
+ name: '',
2612
+ type: 'uint256',
2613
+ },
2614
+ {
2615
+ name: '',
2616
+ type: 'uint256',
2617
+ },
2618
+ {
2619
+ name: '',
2620
+ type: 'uint256',
2621
+ },
2622
+ ],
2623
+ },
2624
+ {
2625
+ stateMutability: 'nonpayable',
2626
+ type: 'function',
2627
+ name: 'removeLiquidityConcentrated',
2628
+ inputs: [
2629
+ {
2630
+ name: '_legoId',
2631
+ type: 'uint256',
2632
+ },
2633
+ {
2634
+ name: '_nftAddr',
2635
+ type: 'address',
2636
+ },
2637
+ {
2638
+ name: '_nftTokenId',
2639
+ type: 'uint256',
2640
+ },
2641
+ {
2642
+ name: '_pool',
2643
+ type: 'address',
2644
+ },
2645
+ {
2646
+ name: '_tokenA',
2647
+ type: 'address',
2648
+ },
2649
+ {
2650
+ name: '_tokenB',
2307
2651
  type: 'address',
2308
2652
  },
2309
2653
  {
2310
- name: '_asset',
2311
- type: 'address',
2654
+ name: '_liqToRemove',
2655
+ type: 'uint256',
2656
+ },
2657
+ ],
2658
+ outputs: [
2659
+ {
2660
+ name: '',
2661
+ type: 'uint256',
2662
+ },
2663
+ {
2664
+ name: '',
2665
+ type: 'uint256',
2312
2666
  },
2313
2667
  {
2314
- name: '_amount',
2668
+ name: '',
2315
2669
  type: 'uint256',
2316
2670
  },
2317
- ],
2318
- outputs: [
2319
2671
  {
2320
2672
  name: '',
2321
2673
  type: 'uint256',
@@ -2325,24 +2677,40 @@ export const abi = [
2325
2677
  {
2326
2678
  stateMutability: 'nonpayable',
2327
2679
  type: 'function',
2328
- name: 'addPartnerLiquidity',
2680
+ name: 'removeLiquidityConcentrated',
2329
2681
  inputs: [
2330
2682
  {
2331
2683
  name: '_legoId',
2332
2684
  type: 'uint256',
2333
2685
  },
2686
+ {
2687
+ name: '_nftAddr',
2688
+ type: 'address',
2689
+ },
2690
+ {
2691
+ name: '_nftTokenId',
2692
+ type: 'uint256',
2693
+ },
2334
2694
  {
2335
2695
  name: '_pool',
2336
2696
  type: 'address',
2337
2697
  },
2338
2698
  {
2339
- name: '_partner',
2699
+ name: '_tokenA',
2340
2700
  type: 'address',
2341
2701
  },
2342
2702
  {
2343
- name: '_asset',
2703
+ name: '_tokenB',
2344
2704
  type: 'address',
2345
2705
  },
2706
+ {
2707
+ name: '_liqToRemove',
2708
+ type: 'uint256',
2709
+ },
2710
+ {
2711
+ name: '_minAmountA',
2712
+ type: 'uint256',
2713
+ },
2346
2714
  ],
2347
2715
  outputs: [
2348
2716
  {
@@ -2357,31 +2725,51 @@ export const abi = [
2357
2725
  name: '',
2358
2726
  type: 'uint256',
2359
2727
  },
2728
+ {
2729
+ name: '',
2730
+ type: 'uint256',
2731
+ },
2360
2732
  ],
2361
2733
  },
2362
2734
  {
2363
2735
  stateMutability: 'nonpayable',
2364
2736
  type: 'function',
2365
- name: 'addPartnerLiquidity',
2737
+ name: 'removeLiquidityConcentrated',
2366
2738
  inputs: [
2367
2739
  {
2368
2740
  name: '_legoId',
2369
2741
  type: 'uint256',
2370
2742
  },
2743
+ {
2744
+ name: '_nftAddr',
2745
+ type: 'address',
2746
+ },
2747
+ {
2748
+ name: '_nftTokenId',
2749
+ type: 'uint256',
2750
+ },
2371
2751
  {
2372
2752
  name: '_pool',
2373
2753
  type: 'address',
2374
2754
  },
2375
2755
  {
2376
- name: '_partner',
2756
+ name: '_tokenA',
2377
2757
  type: 'address',
2378
2758
  },
2379
2759
  {
2380
- name: '_asset',
2760
+ name: '_tokenB',
2381
2761
  type: 'address',
2382
2762
  },
2383
2763
  {
2384
- name: '_amount',
2764
+ name: '_liqToRemove',
2765
+ type: 'uint256',
2766
+ },
2767
+ {
2768
+ name: '_minAmountA',
2769
+ type: 'uint256',
2770
+ },
2771
+ {
2772
+ name: '_minAmountB',
2385
2773
  type: 'uint256',
2386
2774
  },
2387
2775
  ],
@@ -2398,37 +2786,57 @@ export const abi = [
2398
2786
  name: '',
2399
2787
  type: 'uint256',
2400
2788
  },
2789
+ {
2790
+ name: '',
2791
+ type: 'uint256',
2792
+ },
2401
2793
  ],
2402
2794
  },
2403
2795
  {
2404
2796
  stateMutability: 'nonpayable',
2405
2797
  type: 'function',
2406
- name: 'addPartnerLiquidity',
2798
+ name: 'removeLiquidityConcentrated',
2407
2799
  inputs: [
2408
2800
  {
2409
2801
  name: '_legoId',
2410
2802
  type: 'uint256',
2411
2803
  },
2804
+ {
2805
+ name: '_nftAddr',
2806
+ type: 'address',
2807
+ },
2808
+ {
2809
+ name: '_nftTokenId',
2810
+ type: 'uint256',
2811
+ },
2412
2812
  {
2413
2813
  name: '_pool',
2414
2814
  type: 'address',
2415
2815
  },
2416
2816
  {
2417
- name: '_partner',
2817
+ name: '_tokenA',
2418
2818
  type: 'address',
2419
2819
  },
2420
2820
  {
2421
- name: '_asset',
2821
+ name: '_tokenB',
2422
2822
  type: 'address',
2423
2823
  },
2424
2824
  {
2425
- name: '_amount',
2825
+ name: '_liqToRemove',
2426
2826
  type: 'uint256',
2427
2827
  },
2428
2828
  {
2429
- name: '_minLpAmount',
2829
+ name: '_minAmountA',
2830
+ type: 'uint256',
2831
+ },
2832
+ {
2833
+ name: '_minAmountB',
2430
2834
  type: 'uint256',
2431
2835
  },
2836
+ {
2837
+ name: '_extraData',
2838
+ type: 'bytes32',
2839
+ },
2432
2840
  ],
2433
2841
  outputs: [
2434
2842
  {
@@ -2443,18 +2851,17 @@ export const abi = [
2443
2851
  name: '',
2444
2852
  type: 'uint256',
2445
2853
  },
2854
+ {
2855
+ name: '',
2856
+ type: 'uint256',
2857
+ },
2446
2858
  ],
2447
2859
  },
2448
2860
  {
2449
2861
  stateMutability: 'nonpayable',
2450
2862
  type: 'function',
2451
- name: 'repayPoolDebt',
2452
- inputs: [
2453
- {
2454
- name: '_pool',
2455
- type: 'address',
2456
- },
2457
- ],
2863
+ name: 'stabilizeGreenRefPool',
2864
+ inputs: [],
2458
2865
  outputs: [
2459
2866
  {
2460
2867
  name: '',
@@ -2463,70 +2870,69 @@ export const abi = [
2463
2870
  ],
2464
2871
  },
2465
2872
  {
2466
- stateMutability: 'nonpayable',
2873
+ stateMutability: 'view',
2467
2874
  type: 'function',
2468
- name: 'repayPoolDebt',
2469
- inputs: [
2470
- {
2471
- name: '_pool',
2472
- type: 'address',
2473
- },
2875
+ name: 'getGreenAmountToAddInStabilizer',
2876
+ inputs: [],
2877
+ outputs: [
2474
2878
  {
2475
- name: '_amount',
2879
+ name: '',
2476
2880
  type: 'uint256',
2477
2881
  },
2478
2882
  ],
2883
+ },
2884
+ {
2885
+ stateMutability: 'view',
2886
+ type: 'function',
2887
+ name: 'getGreenAmountToRemoveInStabilizer',
2888
+ inputs: [],
2479
2889
  outputs: [
2480
2890
  {
2481
2891
  name: '',
2482
- type: 'bool',
2892
+ type: 'uint256',
2483
2893
  },
2484
2894
  ],
2485
2895
  },
2486
2896
  {
2487
2897
  stateMutability: 'nonpayable',
2488
2898
  type: 'function',
2489
- name: 'recoverNft',
2899
+ name: 'mintPartnerLiquidity',
2490
2900
  inputs: [
2491
2901
  {
2492
- name: '_collection',
2902
+ name: '_partner',
2493
2903
  type: 'address',
2494
2904
  },
2495
2905
  {
2496
- name: '_nftTokenId',
2497
- type: 'uint256',
2498
- },
2499
- {
2500
- name: '_recipient',
2906
+ name: '_asset',
2501
2907
  type: 'address',
2502
2908
  },
2503
2909
  ],
2504
2910
  outputs: [
2505
2911
  {
2506
2912
  name: '',
2507
- type: 'bool',
2913
+ type: 'uint256',
2508
2914
  },
2509
2915
  ],
2510
2916
  },
2511
2917
  {
2512
2918
  stateMutability: 'nonpayable',
2513
2919
  type: 'function',
2514
- name: 'borrow',
2920
+ name: 'mintPartnerLiquidity',
2515
2921
  inputs: [
2516
2922
  {
2517
- name: '_legoId',
2518
- type: 'uint256',
2923
+ name: '_partner',
2924
+ type: 'address',
2519
2925
  },
2520
- ],
2521
- outputs: [
2522
2926
  {
2523
- name: '',
2927
+ name: '_asset',
2524
2928
  type: 'address',
2525
2929
  },
2526
2930
  {
2527
- name: '',
2931
+ name: '_amount',
2528
2932
  type: 'uint256',
2529
2933
  },
2934
+ ],
2935
+ outputs: [
2530
2936
  {
2531
2937
  name: '',
2532
2938
  type: 'uint256',
@@ -2536,21 +2942,29 @@ export const abi = [
2536
2942
  {
2537
2943
  stateMutability: 'nonpayable',
2538
2944
  type: 'function',
2539
- name: 'borrow',
2945
+ name: 'addPartnerLiquidity',
2540
2946
  inputs: [
2541
2947
  {
2542
2948
  name: '_legoId',
2543
2949
  type: 'uint256',
2544
2950
  },
2545
2951
  {
2546
- name: '_borrowAsset',
2952
+ name: '_pool',
2953
+ type: 'address',
2954
+ },
2955
+ {
2956
+ name: '_partner',
2957
+ type: 'address',
2958
+ },
2959
+ {
2960
+ name: '_asset',
2547
2961
  type: 'address',
2548
2962
  },
2549
2963
  ],
2550
2964
  outputs: [
2551
2965
  {
2552
2966
  name: '',
2553
- type: 'address',
2967
+ type: 'uint256',
2554
2968
  },
2555
2969
  {
2556
2970
  name: '',
@@ -2565,14 +2979,22 @@ export const abi = [
2565
2979
  {
2566
2980
  stateMutability: 'nonpayable',
2567
2981
  type: 'function',
2568
- name: 'borrow',
2982
+ name: 'addPartnerLiquidity',
2569
2983
  inputs: [
2570
2984
  {
2571
2985
  name: '_legoId',
2572
2986
  type: 'uint256',
2573
2987
  },
2574
2988
  {
2575
- name: '_borrowAsset',
2989
+ name: '_pool',
2990
+ type: 'address',
2991
+ },
2992
+ {
2993
+ name: '_partner',
2994
+ type: 'address',
2995
+ },
2996
+ {
2997
+ name: '_asset',
2576
2998
  type: 'address',
2577
2999
  },
2578
3000
  {
@@ -2583,7 +3005,7 @@ export const abi = [
2583
3005
  outputs: [
2584
3006
  {
2585
3007
  name: '',
2586
- type: 'address',
3008
+ type: 'uint256',
2587
3009
  },
2588
3010
  {
2589
3011
  name: '',
@@ -2598,59 +3020,34 @@ export const abi = [
2598
3020
  {
2599
3021
  stateMutability: 'nonpayable',
2600
3022
  type: 'function',
2601
- name: 'repayDebt',
3023
+ name: 'addPartnerLiquidity',
2602
3024
  inputs: [
2603
3025
  {
2604
3026
  name: '_legoId',
2605
3027
  type: 'uint256',
2606
3028
  },
2607
3029
  {
2608
- name: '_paymentAsset',
3030
+ name: '_pool',
2609
3031
  type: 'address',
2610
3032
  },
2611
- ],
2612
- outputs: [
2613
3033
  {
2614
- name: '',
3034
+ name: '_partner',
2615
3035
  type: 'address',
2616
3036
  },
2617
3037
  {
2618
- name: '',
2619
- type: 'uint256',
2620
- },
2621
- {
2622
- name: '',
2623
- type: 'uint256',
2624
- },
2625
- {
2626
- name: '',
2627
- type: 'uint256',
3038
+ name: '_asset',
3039
+ type: 'address',
2628
3040
  },
2629
- ],
2630
- },
2631
- {
2632
- stateMutability: 'nonpayable',
2633
- type: 'function',
2634
- name: 'repayDebt',
2635
- inputs: [
2636
3041
  {
2637
- name: '_legoId',
3042
+ name: '_amount',
2638
3043
  type: 'uint256',
2639
3044
  },
2640
3045
  {
2641
- name: '_paymentAsset',
2642
- type: 'address',
2643
- },
2644
- {
2645
- name: '_paymentAmount',
3046
+ name: '_minLpAmount',
2646
3047
  type: 'uint256',
2647
3048
  },
2648
3049
  ],
2649
3050
  outputs: [
2650
- {
2651
- name: '',
2652
- type: 'address',
2653
- },
2654
3051
  {
2655
3052
  name: '',
2656
3053
  type: 'uint256',
@@ -2668,31 +3065,27 @@ export const abi = [
2668
3065
  {
2669
3066
  stateMutability: 'nonpayable',
2670
3067
  type: 'function',
2671
- name: 'transferFunds',
3068
+ name: 'repayPoolDebt',
2672
3069
  inputs: [
2673
3070
  {
2674
- name: '_recipient',
3071
+ name: '_pool',
2675
3072
  type: 'address',
2676
3073
  },
2677
3074
  ],
2678
3075
  outputs: [
2679
3076
  {
2680
3077
  name: '',
2681
- type: 'uint256',
2682
- },
2683
- {
2684
- name: '',
2685
- type: 'uint256',
3078
+ type: 'bool',
2686
3079
  },
2687
3080
  ],
2688
3081
  },
2689
3082
  {
2690
3083
  stateMutability: 'nonpayable',
2691
3084
  type: 'function',
2692
- name: 'transferFunds',
3085
+ name: 'repayPoolDebt',
2693
3086
  inputs: [
2694
3087
  {
2695
- name: '_recipient',
3088
+ name: '_pool',
2696
3089
  type: 'address',
2697
3090
  },
2698
3091
  {
@@ -2703,47 +3096,46 @@ export const abi = [
2703
3096
  outputs: [
2704
3097
  {
2705
3098
  name: '',
2706
- type: 'uint256',
2707
- },
2708
- {
2709
- name: '',
2710
- type: 'uint256',
3099
+ type: 'bool',
2711
3100
  },
2712
3101
  ],
2713
3102
  },
2714
3103
  {
2715
3104
  stateMutability: 'nonpayable',
2716
3105
  type: 'function',
2717
- name: 'transferFunds',
3106
+ name: 'recoverNft',
2718
3107
  inputs: [
2719
3108
  {
2720
- name: '_recipient',
3109
+ name: '_collection',
2721
3110
  type: 'address',
2722
3111
  },
2723
3112
  {
2724
- name: '_amount',
3113
+ name: '_nftTokenId',
2725
3114
  type: 'uint256',
2726
3115
  },
2727
3116
  {
2728
- name: '_asset',
3117
+ name: '_recipient',
2729
3118
  type: 'address',
2730
3119
  },
2731
3120
  ],
3121
+ outputs: [],
3122
+ },
3123
+ {
3124
+ stateMutability: 'view',
3125
+ type: 'function',
3126
+ name: 'WETH',
3127
+ inputs: [],
2732
3128
  outputs: [
2733
3129
  {
2734
3130
  name: '',
2735
- type: 'uint256',
2736
- },
2737
- {
2738
- name: '',
2739
- type: 'uint256',
3131
+ type: 'address',
2740
3132
  },
2741
3133
  ],
2742
3134
  },
2743
3135
  {
2744
3136
  stateMutability: 'view',
2745
3137
  type: 'function',
2746
- name: 'WETH',
3138
+ name: 'ETH',
2747
3139
  inputs: [],
2748
3140
  outputs: [
2749
3141
  {
@@ -2764,11 +3156,15 @@ export const abi = [
2764
3156
  name: '_weth',
2765
3157
  type: 'address',
2766
3158
  },
3159
+ {
3160
+ name: '_eth',
3161
+ type: 'address',
3162
+ },
2767
3163
  ],
2768
3164
  outputs: [],
2769
3165
  },
2770
3166
  ];
2771
- export const deployAddress = '0x2d987CA3467925BcE8b6d40382f87EdCf0A3DF43';
3167
+ export const deployAddress = '0x9fEa7B792B8528a20731C3e7c14F0Bd6F7ae9dfE';
2772
3168
  function getRequest(method, args, contractAddressOrOptions) {
2773
3169
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2774
3170
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2806,6 +3202,7 @@ export const call = {
2806
3202
  getGreenAmountToAddInStabilizer: (...args) => getRequest('getGreenAmountToAddInStabilizer', args),
2807
3203
  getGreenAmountToRemoveInStabilizer: (...args) => getRequest('getGreenAmountToRemoveInStabilizer', args),
2808
3204
  WETH: (...args) => getRequest('WETH', args),
3205
+ ETH: (...args) => getRequest('ETH', args),
2809
3206
  };
2810
3207
  function getMutation(functionName) {
2811
3208
  return {
@@ -2820,23 +3217,24 @@ export const mutation = {
2820
3217
  pause: getMutation('pause'),
2821
3218
  recoverFunds: getMutation('recoverFunds'),
2822
3219
  recoverFundsMany: getMutation('recoverFundsMany'),
2823
- depositTokens: getMutation('depositTokens'),
2824
- withdrawTokens: getMutation('withdrawTokens'),
2825
- rebalance: getMutation('rebalance'),
3220
+ depositForYield: getMutation('depositForYield'),
3221
+ withdrawFromYield: getMutation('withdrawFromYield'),
3222
+ rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
2826
3223
  swapTokens: getMutation('swapTokens'),
2827
- addLiquidity: getMutation('addLiquidity'),
2828
- removeLiquidity: getMutation('removeLiquidity'),
3224
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3225
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3226
+ claimRewards: getMutation('claimRewards'),
2829
3227
  convertEthToWeth: getMutation('convertEthToWeth'),
2830
3228
  convertWethToEth: getMutation('convertWethToEth'),
2831
- claimRewards: getMutation('claimRewards'),
3229
+ addLiquidity: getMutation('addLiquidity'),
3230
+ removeLiquidity: getMutation('removeLiquidity'),
3231
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3232
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
2832
3233
  stabilizeGreenRefPool: getMutation('stabilizeGreenRefPool'),
2833
3234
  mintPartnerLiquidity: getMutation('mintPartnerLiquidity'),
2834
3235
  addPartnerLiquidity: getMutation('addPartnerLiquidity'),
2835
3236
  repayPoolDebt: getMutation('repayPoolDebt'),
2836
3237
  recoverNft: getMutation('recoverNft'),
2837
- borrow: getMutation('borrow'),
2838
- repayDebt: getMutation('repayDebt'),
2839
- transferFunds: getMutation('transferFunds'),
2840
3238
  };
2841
3239
  export function toSdk(publicClient, walletClient) {
2842
3240
  return {
@@ -2852,26 +3250,28 @@ export function toSdk(publicClient, walletClient) {
2852
3250
  getGreenAmountToAddInStabilizer: (...args) => singleQuery(publicClient, call.getGreenAmountToAddInStabilizer(...args)),
2853
3251
  getGreenAmountToRemoveInStabilizer: (...args) => singleQuery(publicClient, call.getGreenAmountToRemoveInStabilizer(...args)),
2854
3252
  WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
3253
+ ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
2855
3254
  // Mutations
2856
3255
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2857
3256
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2858
3257
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2859
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens)(...args),
2860
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens)(...args),
2861
- rebalance: (...args) => mutate(walletClient, mutation.rebalance)(...args),
3258
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3259
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3260
+ rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition)(...args),
2862
3261
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2863
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2864
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3262
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
3263
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
3264
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2865
3265
  convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth)(...args),
2866
3266
  convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth)(...args),
2867
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3267
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
3268
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3269
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
3270
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
2868
3271
  stabilizeGreenRefPool: (...args) => mutate(walletClient, mutation.stabilizeGreenRefPool)(...args),
2869
3272
  mintPartnerLiquidity: (...args) => mutate(walletClient, mutation.mintPartnerLiquidity)(...args),
2870
3273
  addPartnerLiquidity: (...args) => mutate(walletClient, mutation.addPartnerLiquidity)(...args),
2871
3274
  repayPoolDebt: (...args) => mutate(walletClient, mutation.repayPoolDebt)(...args),
2872
3275
  recoverNft: (...args) => mutate(walletClient, mutation.recoverNft)(...args),
2873
- borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2874
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2875
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds)(...args),
2876
3276
  };
2877
3277
  }