@underscore-finance/sdk 0.3.4 → 1.0.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 (244) hide show
  1. package/dist/contracts/AaveV3.d.ts +2120 -0
  2. package/dist/contracts/AaveV3.d.ts.map +1 -0
  3. package/dist/contracts/AaveV3.js +2714 -0
  4. package/dist/contracts/AeroClassic.d.ts +2017 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  6. package/dist/contracts/AeroClassic.js +2567 -0
  7. package/dist/contracts/AeroSlipstream.d.ts +2113 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  9. package/dist/contracts/AeroSlipstream.js +2692 -0
  10. package/dist/contracts/Agent.d.ts +2189 -1138
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +2807 -1343
  13. package/dist/contracts/AgentWrapper.d.ts +3760 -0
  14. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  15. package/dist/contracts/AgentWrapper.js +4922 -0
  16. package/dist/contracts/Appraiser.d.ts +997 -0
  17. package/dist/contracts/Appraiser.d.ts.map +1 -0
  18. package/dist/contracts/Appraiser.js +1285 -0
  19. package/dist/contracts/Billing.d.ts +420 -0
  20. package/dist/contracts/Billing.d.ts.map +1 -0
  21. package/dist/contracts/Billing.js +506 -0
  22. package/dist/contracts/ChequeBook.d.ts +1184 -0
  23. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  24. package/dist/contracts/ChequeBook.js +1352 -0
  25. package/dist/contracts/CompoundV3.d.ts +2158 -0
  26. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  27. package/dist/contracts/CompoundV3.js +2764 -0
  28. package/dist/contracts/Curve.d.ts +1077 -0
  29. package/dist/contracts/Curve.d.ts.map +1 -0
  30. package/dist/contracts/Curve.js +1357 -0
  31. package/dist/contracts/DefaultsBase.d.ts +290 -0
  32. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  33. package/dist/contracts/DefaultsBase.js +316 -0
  34. package/dist/contracts/Euler.d.ts +2172 -0
  35. package/dist/contracts/Euler.d.ts.map +1 -0
  36. package/dist/contracts/Euler.js +2782 -0
  37. package/dist/contracts/Fluid.d.ts +2106 -0
  38. package/dist/contracts/Fluid.d.ts.map +1 -0
  39. package/dist/contracts/Fluid.js +2696 -0
  40. package/dist/contracts/Hatchery.d.ts +541 -0
  41. package/dist/contracts/Hatchery.d.ts.map +1 -0
  42. package/dist/contracts/Hatchery.js +671 -0
  43. package/dist/contracts/HighCommand.d.ts +1868 -0
  44. package/dist/contracts/HighCommand.d.ts.map +1 -0
  45. package/dist/contracts/HighCommand.js +2149 -0
  46. package/dist/contracts/Kernel.d.ts +354 -0
  47. package/dist/contracts/Kernel.d.ts.map +1 -0
  48. package/dist/contracts/Kernel.js +412 -0
  49. package/dist/contracts/Ledger.d.ts +694 -0
  50. package/dist/contracts/Ledger.d.ts.map +1 -0
  51. package/dist/contracts/Ledger.js +834 -0
  52. package/dist/contracts/LegoBook.d.ts +1424 -0
  53. package/dist/contracts/LegoBook.d.ts.map +1 -0
  54. package/dist/contracts/LegoBook.js +1783 -0
  55. package/dist/contracts/LegoTools.d.ts +1898 -0
  56. package/dist/contracts/LegoTools.d.ts.map +1 -0
  57. package/dist/contracts/LegoTools.js +2378 -0
  58. package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
  59. package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
  60. package/dist/contracts/LegoUniswapV0_2.js +1546 -0
  61. package/dist/contracts/LootDistributor.d.ts +996 -0
  62. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  63. package/dist/contracts/LootDistributor.js +1255 -0
  64. package/dist/contracts/Migrator.d.ts +268 -0
  65. package/dist/contracts/Migrator.d.ts.map +1 -0
  66. package/dist/contracts/Migrator.js +324 -0
  67. package/dist/contracts/MissionControl.d.ts +1331 -0
  68. package/dist/contracts/MissionControl.d.ts.map +1 -0
  69. package/dist/contracts/MissionControl.js +1485 -0
  70. package/dist/contracts/Moonwell.d.ts +2137 -0
  71. package/dist/contracts/Moonwell.d.ts.map +1 -0
  72. package/dist/contracts/Moonwell.js +2737 -0
  73. package/dist/contracts/Morpho.d.ts +2172 -0
  74. package/dist/contracts/Morpho.d.ts.map +1 -0
  75. package/dist/contracts/Morpho.js +2782 -0
  76. package/dist/contracts/Paymaster.d.ts +1679 -0
  77. package/dist/contracts/Paymaster.d.ts.map +1 -0
  78. package/dist/contracts/Paymaster.js +2077 -0
  79. package/dist/contracts/RipeLego.d.ts +2263 -0
  80. package/dist/contracts/RipeLego.d.ts.map +1 -0
  81. package/dist/contracts/RipeLego.js +2891 -0
  82. package/dist/contracts/Sentinel.d.ts +1804 -0
  83. package/dist/contracts/Sentinel.d.ts.map +1 -0
  84. package/dist/contracts/Sentinel.js +2152 -0
  85. package/dist/contracts/Switchboard.d.ts +1395 -0
  86. package/dist/contracts/Switchboard.d.ts.map +1 -0
  87. package/dist/contracts/Switchboard.js +1746 -0
  88. package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
  89. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  90. package/dist/contracts/SwitchboardAlpha.js +2743 -0
  91. package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
  92. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  93. package/dist/contracts/SwitchboardBravo.js +1855 -0
  94. package/dist/contracts/UndyHq.d.ts +1580 -0
  95. package/dist/contracts/UndyHq.d.ts.map +1 -0
  96. package/dist/contracts/UndyHq.js +1986 -0
  97. package/dist/contracts/UniswapV2.d.ts +2017 -0
  98. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  99. package/dist/contracts/UniswapV2.js +2567 -0
  100. package/dist/contracts/UniswapV3.d.ts +2113 -0
  101. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  102. package/dist/contracts/UniswapV3.js +2692 -0
  103. package/dist/contracts/UserWallet.d.ts +1438 -784
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +1854 -935
  106. package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +3395 -1407
  109. package/dist/contracts/WalletBackpack.d.ts +1183 -0
  110. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  111. package/dist/contracts/WalletBackpack.js +1484 -0
  112. package/dist/contracts/index.d.ts +72 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +72 -36
  115. package/dist/contracts/sdk.d.ts +146 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +146 -72
  118. package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
  119. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
  120. package/dist/contracts/v0_1_AddyRegistry.js +594 -0
  121. package/dist/contracts/v0_1_Agent.d.ts +2631 -0
  122. package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
  123. package/dist/contracts/v0_1_Agent.js +3372 -0
  124. package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
  125. package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
  126. package/dist/contracts/v0_1_AgentFactory.js +1336 -0
  127. package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
  128. package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
  129. package/dist/contracts/v0_1_UserWallet.js +2581 -0
  130. package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
  131. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
  132. package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
  133. package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
  134. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
  135. package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
  136. package/dist/contracts/v0_2_Agent.d.ts +2709 -0
  137. package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
  138. package/dist/contracts/v0_2_Agent.js +3458 -0
  139. package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
  140. package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
  141. package/dist/contracts/v0_2_AgentFactory.js +1609 -0
  142. package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
  143. package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
  144. package/dist/contracts/v0_2_UserWallet.js +2553 -0
  145. package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
  146. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
  147. package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
  148. package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
  149. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
  150. package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
  151. package/dist/contracts/v0_3_Agent.d.ts +2709 -0
  152. package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
  153. package/dist/contracts/v0_3_Agent.js +3458 -0
  154. package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
  155. package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
  156. package/dist/contracts/v0_3_AgentFactory.js +2078 -0
  157. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
  158. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
  159. package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
  160. package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
  161. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
  162. package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
  163. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
  164. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
  165. package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
  166. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
  167. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
  168. package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
  169. package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
  170. package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
  171. package/dist/contracts/v0_3_LegoCommon.js +202 -0
  172. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
  173. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
  174. package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
  175. package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
  176. package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
  177. package/dist/contracts/v0_3_LegoCredit.js +179 -0
  178. package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
  179. package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
  180. package/dist/contracts/v0_3_LegoCurve.js +1519 -0
  181. package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
  182. package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
  183. package/dist/contracts/v0_3_LegoDex.js +774 -0
  184. package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
  185. package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
  186. package/dist/contracts/v0_3_LegoEuler.js +1383 -0
  187. package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
  188. package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
  189. package/dist/contracts/v0_3_LegoFluid.js +1320 -0
  190. package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
  191. package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
  192. package/dist/contracts/v0_3_LegoHelper.js +1947 -0
  193. package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
  194. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
  195. package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
  196. package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
  197. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
  198. package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
  199. package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
  200. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
  201. package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
  202. package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
  203. package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
  204. package/dist/contracts/v0_3_LegoSky.js +1180 -0
  205. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
  206. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
  207. package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
  208. package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
  209. package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
  210. package/dist/contracts/v0_3_LegoYield.js +511 -0
  211. package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
  212. package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
  213. package/dist/contracts/v0_3_OracleParser.js +264 -0
  214. package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
  215. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
  216. package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
  217. package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
  218. package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
  219. package/dist/contracts/v0_3_PriceSheets.js +1383 -0
  220. package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
  221. package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
  222. package/dist/contracts/v0_3_PythFeeds.js +813 -0
  223. package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
  224. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
  225. package/dist/contracts/v0_3_StorkFeeds.js +813 -0
  226. package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
  227. package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
  228. package/dist/contracts/v0_3_UserWallet.js +2577 -0
  229. package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
  230. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
  231. package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
  232. package/dist/getContracts.d.ts +77 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +67 -0
  235. package/dist/getLegacyContracts.d.ts +69 -0
  236. package/dist/getLegacyContracts.d.ts.map +1 -0
  237. package/dist/getLegacyContracts.js +55 -0
  238. package/dist/getSwapInstructions.d.ts +60 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +41 -0
  241. package/dist/index.d.ts +7 -477
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -5,763 +5,1818 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
8
+ name: 'WalletAction',
9
9
  inputs: [
10
10
  {
11
- indexed: true,
12
- name: 'signer',
13
- type: 'address',
11
+ name: 'op',
12
+ type: 'uint8',
13
+ indexed: false,
14
14
  },
15
15
  {
16
- indexed: true,
17
- name: 'asset',
16
+ name: 'asset1',
18
17
  type: 'address',
18
+ indexed: true,
19
19
  },
20
20
  {
21
- indexed: true,
22
- name: 'vaultToken',
21
+ name: 'asset2',
23
22
  type: 'address',
23
+ indexed: true,
24
24
  },
25
25
  {
26
- indexed: false,
27
- name: 'assetAmountDeposited',
26
+ name: 'amount1',
28
27
  type: 'uint256',
29
- },
30
- {
31
28
  indexed: false,
32
- name: 'vaultTokenAmountReceived',
33
- type: 'uint256',
34
29
  },
35
30
  {
36
- indexed: false,
37
- name: 'refundAssetAmount',
31
+ name: 'amount2',
38
32
  type: 'uint256',
33
+ indexed: false,
39
34
  },
40
35
  {
41
- indexed: false,
42
36
  name: 'usdValue',
43
37
  type: 'uint256',
38
+ indexed: false,
44
39
  },
45
40
  {
46
- indexed: false,
47
41
  name: 'legoId',
48
42
  type: 'uint256',
49
- },
50
- {
51
43
  indexed: false,
52
- name: 'legoAddr',
53
- type: 'address',
54
44
  },
55
45
  {
56
- indexed: false,
57
- name: 'isSignerAgent',
58
- type: 'bool',
46
+ name: 'signer',
47
+ type: 'address',
48
+ indexed: true,
59
49
  },
60
50
  ],
61
- name: 'UserWalletDeposit',
51
+ anonymous: false,
62
52
  type: 'event',
63
53
  },
64
54
  {
65
- anonymous: false,
55
+ name: 'WalletActionExt',
66
56
  inputs: [
67
57
  {
68
- indexed: true,
69
- name: 'signer',
70
- type: 'address',
58
+ name: 'op',
59
+ type: 'uint8',
60
+ indexed: false,
71
61
  },
72
62
  {
73
- indexed: true,
74
- name: 'asset',
63
+ name: 'asset1',
75
64
  type: 'address',
65
+ indexed: true,
76
66
  },
77
67
  {
78
- indexed: true,
79
- name: 'vaultToken',
68
+ name: 'asset2',
80
69
  type: 'address',
70
+ indexed: true,
81
71
  },
82
72
  {
83
- indexed: false,
84
- name: 'assetAmountReceived',
73
+ name: 'tokenId',
85
74
  type: 'uint256',
86
- },
87
- {
88
75
  indexed: false,
89
- name: 'vaultTokenAmountBurned',
90
- type: 'uint256',
91
76
  },
92
77
  {
93
- indexed: false,
94
- name: 'refundVaultTokenAmount',
78
+ name: 'amount1',
95
79
  type: 'uint256',
96
- },
97
- {
98
80
  indexed: false,
99
- name: 'usdValue',
100
- type: 'uint256',
101
81
  },
102
82
  {
103
- indexed: false,
104
- name: 'legoId',
83
+ name: 'amount2',
105
84
  type: 'uint256',
85
+ indexed: false,
106
86
  },
107
87
  {
88
+ name: 'usdValue',
89
+ type: 'uint256',
108
90
  indexed: false,
109
- name: 'legoAddr',
110
- type: 'address',
111
91
  },
112
92
  {
93
+ name: 'extra',
94
+ type: 'uint256',
113
95
  indexed: false,
114
- name: 'isSignerAgent',
115
- type: 'bool',
116
96
  },
117
97
  ],
118
- name: 'UserWalletWithdrawal',
98
+ anonymous: false,
119
99
  type: 'event',
120
100
  },
121
101
  {
122
- anonymous: false,
102
+ stateMutability: 'view',
103
+ type: 'function',
104
+ name: 'onERC721Received',
123
105
  inputs: [
124
106
  {
125
- indexed: true,
126
- name: 'signer',
107
+ name: '_operator',
127
108
  type: 'address',
128
109
  },
129
110
  {
130
- indexed: true,
131
- name: 'tokenIn',
111
+ name: '_owner',
132
112
  type: 'address',
133
113
  },
134
114
  {
135
- indexed: true,
136
- name: 'tokenOut',
137
- type: 'address',
115
+ name: '_tokenId',
116
+ type: 'uint256',
138
117
  },
139
118
  {
140
- indexed: false,
141
- name: 'swapAmount',
142
- type: 'uint256',
119
+ name: '_data',
120
+ type: 'bytes',
143
121
  },
122
+ ],
123
+ outputs: [
144
124
  {
145
- indexed: false,
146
- name: 'toAmount',
147
- type: 'uint256',
125
+ name: '',
126
+ type: 'bytes4',
148
127
  },
128
+ ],
129
+ },
130
+ {
131
+ stateMutability: 'payable',
132
+ type: 'fallback',
133
+ },
134
+ {
135
+ stateMutability: 'pure',
136
+ type: 'function',
137
+ name: 'apiVersion',
138
+ inputs: [],
139
+ outputs: [
149
140
  {
150
- indexed: false,
151
- name: 'refundAssetAmount',
152
- type: 'uint256',
141
+ name: '',
142
+ type: 'string',
153
143
  },
144
+ ],
145
+ },
146
+ {
147
+ stateMutability: 'nonpayable',
148
+ type: 'function',
149
+ name: 'transferFunds',
150
+ inputs: [
154
151
  {
155
- indexed: false,
156
- name: 'usdValue',
157
- type: 'uint256',
152
+ name: '_recipient',
153
+ type: 'address',
158
154
  },
155
+ ],
156
+ outputs: [
159
157
  {
160
- indexed: false,
161
- name: 'numTokens',
158
+ name: '',
162
159
  type: 'uint256',
163
160
  },
164
161
  {
165
- indexed: false,
166
- name: 'legoId',
162
+ name: '',
167
163
  type: 'uint256',
168
164
  },
165
+ ],
166
+ },
167
+ {
168
+ stateMutability: 'nonpayable',
169
+ type: 'function',
170
+ name: 'transferFunds',
171
+ inputs: [
169
172
  {
170
- indexed: false,
171
- name: 'legoAddr',
173
+ name: '_recipient',
172
174
  type: 'address',
173
175
  },
174
176
  {
175
- indexed: false,
176
- name: 'isSignerAgent',
177
- type: 'bool',
177
+ name: '_asset',
178
+ type: 'address',
179
+ },
180
+ ],
181
+ outputs: [
182
+ {
183
+ name: '',
184
+ type: 'uint256',
185
+ },
186
+ {
187
+ name: '',
188
+ type: 'uint256',
178
189
  },
179
190
  ],
180
- name: 'UserWalletSwap',
181
- type: 'event',
182
191
  },
183
192
  {
184
- anonymous: false,
193
+ stateMutability: 'nonpayable',
194
+ type: 'function',
195
+ name: 'transferFunds',
185
196
  inputs: [
186
197
  {
187
- indexed: true,
188
- name: 'signer',
198
+ name: '_recipient',
189
199
  type: 'address',
190
200
  },
191
201
  {
192
- indexed: true,
193
- name: 'borrowAsset',
202
+ name: '_asset',
194
203
  type: 'address',
195
204
  },
196
205
  {
197
- indexed: false,
198
- name: 'borrowAmount',
206
+ name: '_amount',
199
207
  type: 'uint256',
200
208
  },
209
+ ],
210
+ outputs: [
201
211
  {
202
- indexed: false,
203
- name: 'usdValue',
212
+ name: '',
204
213
  type: 'uint256',
205
214
  },
206
215
  {
207
- indexed: false,
208
- name: 'legoId',
216
+ name: '',
209
217
  type: 'uint256',
210
218
  },
211
- {
212
- indexed: false,
213
- name: 'legoAddr',
214
- type: 'address',
215
- },
216
- {
217
- indexed: false,
218
- name: 'isSignerAgent',
219
- type: 'bool',
220
- },
221
219
  ],
222
- name: 'UserWalletBorrow',
223
- type: 'event',
224
220
  },
225
221
  {
226
- anonymous: false,
222
+ stateMutability: 'nonpayable',
223
+ type: 'function',
224
+ name: 'transferFunds',
227
225
  inputs: [
228
226
  {
229
- indexed: true,
230
- name: 'signer',
227
+ name: '_recipient',
231
228
  type: 'address',
232
229
  },
233
230
  {
234
- indexed: true,
235
- name: 'paymentAsset',
231
+ name: '_asset',
236
232
  type: 'address',
237
233
  },
238
234
  {
239
- indexed: false,
240
- name: 'paymentAmount',
235
+ name: '_amount',
241
236
  type: 'uint256',
242
237
  },
243
238
  {
244
- indexed: false,
245
- name: 'usdValue',
246
- type: 'uint256',
239
+ name: '_isCheque',
240
+ type: 'bool',
247
241
  },
242
+ ],
243
+ outputs: [
248
244
  {
249
- indexed: false,
250
- name: 'remainingDebt',
245
+ name: '',
251
246
  type: 'uint256',
252
247
  },
253
248
  {
254
- indexed: false,
255
- name: 'legoId',
249
+ name: '',
256
250
  type: 'uint256',
257
251
  },
258
- {
259
- indexed: true,
260
- name: 'legoAddr',
261
- type: 'address',
262
- },
263
- {
264
- indexed: false,
265
- name: 'isSignerAgent',
266
- type: 'bool',
267
- },
268
252
  ],
269
- name: 'UserWalletRepayDebt',
270
- type: 'event',
271
253
  },
272
254
  {
273
- anonymous: false,
255
+ stateMutability: 'nonpayable',
256
+ type: 'function',
257
+ name: 'transferFunds',
274
258
  inputs: [
275
259
  {
276
- indexed: true,
277
- name: 'signer',
260
+ name: '_recipient',
278
261
  type: 'address',
279
262
  },
280
263
  {
281
- indexed: true,
282
- name: 'tokenA',
264
+ name: '_asset',
283
265
  type: 'address',
284
266
  },
285
267
  {
286
- indexed: true,
287
- name: 'tokenB',
288
- type: 'address',
268
+ name: '_amount',
269
+ type: 'uint256',
289
270
  },
290
271
  {
291
- indexed: false,
292
- name: 'liqAmountA',
272
+ name: '_isCheque',
273
+ type: 'bool',
274
+ },
275
+ {
276
+ name: '_isSpecialTx',
277
+ type: 'bool',
278
+ },
279
+ ],
280
+ outputs: [
281
+ {
282
+ name: '',
293
283
  type: 'uint256',
294
284
  },
295
285
  {
296
- indexed: false,
297
- name: 'liqAmountB',
286
+ name: '',
298
287
  type: 'uint256',
299
288
  },
289
+ ],
290
+ },
291
+ {
292
+ stateMutability: 'nonpayable',
293
+ type: 'function',
294
+ name: 'depositForYield',
295
+ inputs: [
300
296
  {
301
- indexed: false,
302
- name: 'liquidityAdded',
297
+ name: '_legoId',
303
298
  type: 'uint256',
304
299
  },
305
300
  {
306
- indexed: false,
307
- name: 'pool',
301
+ name: '_asset',
308
302
  type: 'address',
309
303
  },
304
+ ],
305
+ outputs: [
310
306
  {
311
- indexed: false,
312
- name: 'usdValue',
307
+ name: '',
313
308
  type: 'uint256',
314
309
  },
315
310
  {
316
- indexed: false,
317
- name: 'refundAssetAmountA',
318
- type: 'uint256',
311
+ name: '',
312
+ type: 'address',
319
313
  },
320
314
  {
321
- indexed: false,
322
- name: 'refundAssetAmountB',
315
+ name: '',
323
316
  type: 'uint256',
324
317
  },
325
318
  {
326
- indexed: false,
327
- name: 'nftTokenId',
319
+ name: '',
328
320
  type: 'uint256',
329
321
  },
322
+ ],
323
+ },
324
+ {
325
+ stateMutability: 'nonpayable',
326
+ type: 'function',
327
+ name: 'depositForYield',
328
+ inputs: [
330
329
  {
331
- indexed: false,
332
- name: 'legoId',
330
+ name: '_legoId',
333
331
  type: 'uint256',
334
332
  },
335
333
  {
336
- indexed: false,
337
- name: 'legoAddr',
334
+ name: '_asset',
338
335
  type: 'address',
339
336
  },
340
337
  {
341
- indexed: false,
342
- name: 'isSignerAgent',
343
- type: 'bool',
338
+ name: '_vaultAddr',
339
+ type: 'address',
340
+ },
341
+ ],
342
+ outputs: [
343
+ {
344
+ name: '',
345
+ type: 'uint256',
346
+ },
347
+ {
348
+ name: '',
349
+ type: 'address',
350
+ },
351
+ {
352
+ name: '',
353
+ type: 'uint256',
354
+ },
355
+ {
356
+ name: '',
357
+ type: 'uint256',
344
358
  },
345
359
  ],
346
- name: 'UserWalletLiquidityAdded',
347
- type: 'event',
348
360
  },
349
361
  {
350
- anonymous: false,
362
+ stateMutability: 'nonpayable',
363
+ type: 'function',
364
+ name: 'depositForYield',
351
365
  inputs: [
352
366
  {
353
- indexed: true,
354
- name: 'signer',
367
+ name: '_legoId',
368
+ type: 'uint256',
369
+ },
370
+ {
371
+ name: '_asset',
355
372
  type: 'address',
356
373
  },
357
374
  {
358
- indexed: true,
359
- name: 'tokenA',
375
+ name: '_vaultAddr',
360
376
  type: 'address',
361
377
  },
362
378
  {
363
- indexed: false,
364
- name: 'tokenB',
379
+ name: '_amount',
380
+ type: 'uint256',
381
+ },
382
+ ],
383
+ outputs: [
384
+ {
385
+ name: '',
386
+ type: 'uint256',
387
+ },
388
+ {
389
+ name: '',
365
390
  type: 'address',
366
391
  },
367
392
  {
368
- indexed: false,
369
- name: 'removedAmountA',
393
+ name: '',
370
394
  type: 'uint256',
371
395
  },
372
396
  {
373
- indexed: false,
374
- name: 'removedAmountB',
397
+ name: '',
375
398
  type: 'uint256',
376
399
  },
400
+ ],
401
+ },
402
+ {
403
+ stateMutability: 'nonpayable',
404
+ type: 'function',
405
+ name: 'depositForYield',
406
+ inputs: [
377
407
  {
378
- indexed: false,
379
- name: 'usdValue',
408
+ name: '_legoId',
380
409
  type: 'uint256',
381
410
  },
382
411
  {
383
- indexed: false,
384
- name: 'isDepleted',
385
- type: 'bool',
412
+ name: '_asset',
413
+ type: 'address',
386
414
  },
387
415
  {
388
- indexed: false,
389
- name: 'liquidityRemoved',
416
+ name: '_vaultAddr',
417
+ type: 'address',
418
+ },
419
+ {
420
+ name: '_amount',
390
421
  type: 'uint256',
391
422
  },
392
423
  {
393
- indexed: true,
394
- name: 'lpToken',
424
+ name: '_extraData',
425
+ type: 'bytes32',
426
+ },
427
+ ],
428
+ outputs: [
429
+ {
430
+ name: '',
431
+ type: 'uint256',
432
+ },
433
+ {
434
+ name: '',
395
435
  type: 'address',
396
436
  },
397
437
  {
398
- indexed: false,
399
- name: 'refundedLpAmount',
438
+ name: '',
400
439
  type: 'uint256',
401
440
  },
402
441
  {
403
- indexed: false,
404
- name: 'legoId',
442
+ name: '',
405
443
  type: 'uint256',
406
444
  },
445
+ ],
446
+ },
447
+ {
448
+ stateMutability: 'nonpayable',
449
+ type: 'function',
450
+ name: 'withdrawFromYield',
451
+ inputs: [
407
452
  {
408
- indexed: false,
409
- name: 'legoAddr',
453
+ name: '_legoId',
454
+ type: 'uint256',
455
+ },
456
+ {
457
+ name: '_vaultToken',
410
458
  type: 'address',
411
459
  },
460
+ ],
461
+ outputs: [
412
462
  {
413
- indexed: false,
414
- name: 'isSignerAgent',
415
- type: 'bool',
463
+ name: '',
464
+ type: 'uint256',
465
+ },
466
+ {
467
+ name: '',
468
+ type: 'address',
469
+ },
470
+ {
471
+ name: '',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ name: '',
476
+ type: 'uint256',
416
477
  },
417
478
  ],
418
- name: 'UserWalletLiquidityRemoved',
419
- type: 'event',
420
479
  },
421
480
  {
422
- anonymous: false,
481
+ stateMutability: 'nonpayable',
482
+ type: 'function',
483
+ name: 'withdrawFromYield',
423
484
  inputs: [
424
485
  {
425
- indexed: true,
426
- name: 'signer',
486
+ name: '_legoId',
487
+ type: 'uint256',
488
+ },
489
+ {
490
+ name: '_vaultToken',
427
491
  type: 'address',
428
492
  },
429
493
  {
430
- indexed: true,
431
- name: 'recipient',
494
+ name: '_amount',
495
+ type: 'uint256',
496
+ },
497
+ ],
498
+ outputs: [
499
+ {
500
+ name: '',
501
+ type: 'uint256',
502
+ },
503
+ {
504
+ name: '',
432
505
  type: 'address',
433
506
  },
434
507
  {
435
- indexed: true,
436
- name: 'asset',
508
+ name: '',
509
+ type: 'uint256',
510
+ },
511
+ {
512
+ name: '',
513
+ type: 'uint256',
514
+ },
515
+ ],
516
+ },
517
+ {
518
+ stateMutability: 'nonpayable',
519
+ type: 'function',
520
+ name: 'withdrawFromYield',
521
+ inputs: [
522
+ {
523
+ name: '_legoId',
524
+ type: 'uint256',
525
+ },
526
+ {
527
+ name: '_vaultToken',
437
528
  type: 'address',
438
529
  },
439
530
  {
440
- indexed: false,
441
- name: 'amount',
531
+ name: '_amount',
442
532
  type: 'uint256',
443
533
  },
444
534
  {
445
- indexed: false,
446
- name: 'usdValue',
535
+ name: '_extraData',
536
+ type: 'bytes32',
537
+ },
538
+ ],
539
+ outputs: [
540
+ {
541
+ name: '',
447
542
  type: 'uint256',
448
543
  },
449
544
  {
450
- indexed: false,
451
- name: 'isSignerAgent',
452
- type: 'bool',
545
+ name: '',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: '',
550
+ type: 'uint256',
551
+ },
552
+ {
553
+ name: '',
554
+ type: 'uint256',
453
555
  },
454
556
  ],
455
- name: 'UserWalletFundsTransferred',
456
- type: 'event',
457
557
  },
458
558
  {
459
- anonymous: false,
559
+ stateMutability: 'nonpayable',
560
+ type: 'function',
561
+ name: 'withdrawFromYield',
460
562
  inputs: [
461
563
  {
462
- indexed: false,
463
- name: 'signer',
564
+ name: '_legoId',
565
+ type: 'uint256',
566
+ },
567
+ {
568
+ name: '_vaultToken',
464
569
  type: 'address',
465
570
  },
466
571
  {
467
- indexed: false,
468
- name: 'market',
572
+ name: '_amount',
573
+ type: 'uint256',
574
+ },
575
+ {
576
+ name: '_extraData',
577
+ type: 'bytes32',
578
+ },
579
+ {
580
+ name: '_isSpecialTx',
581
+ type: 'bool',
582
+ },
583
+ ],
584
+ outputs: [
585
+ {
586
+ name: '',
587
+ type: 'uint256',
588
+ },
589
+ {
590
+ name: '',
469
591
  type: 'address',
470
592
  },
471
593
  {
472
- indexed: false,
473
- name: 'rewardToken',
594
+ name: '',
595
+ type: 'uint256',
596
+ },
597
+ {
598
+ name: '',
599
+ type: 'uint256',
600
+ },
601
+ ],
602
+ },
603
+ {
604
+ stateMutability: 'nonpayable',
605
+ type: 'function',
606
+ name: 'rebalanceYieldPosition',
607
+ inputs: [
608
+ {
609
+ name: '_fromLegoId',
610
+ type: 'uint256',
611
+ },
612
+ {
613
+ name: '_fromVaultToken',
614
+ type: 'address',
615
+ },
616
+ {
617
+ name: '_toLegoId',
618
+ type: 'uint256',
619
+ },
620
+ ],
621
+ outputs: [
622
+ {
623
+ name: '',
624
+ type: 'uint256',
625
+ },
626
+ {
627
+ name: '',
474
628
  type: 'address',
475
629
  },
476
630
  {
477
- indexed: false,
478
- name: 'rewardAmount',
631
+ name: '',
632
+ type: 'uint256',
633
+ },
634
+ {
635
+ name: '',
636
+ type: 'uint256',
637
+ },
638
+ ],
639
+ },
640
+ {
641
+ stateMutability: 'nonpayable',
642
+ type: 'function',
643
+ name: 'rebalanceYieldPosition',
644
+ inputs: [
645
+ {
646
+ name: '_fromLegoId',
647
+ type: 'uint256',
648
+ },
649
+ {
650
+ name: '_fromVaultToken',
651
+ type: 'address',
652
+ },
653
+ {
654
+ name: '_toLegoId',
655
+ type: 'uint256',
656
+ },
657
+ {
658
+ name: '_toVaultAddr',
659
+ type: 'address',
660
+ },
661
+ ],
662
+ outputs: [
663
+ {
664
+ name: '',
665
+ type: 'uint256',
666
+ },
667
+ {
668
+ name: '',
669
+ type: 'address',
670
+ },
671
+ {
672
+ name: '',
673
+ type: 'uint256',
674
+ },
675
+ {
676
+ name: '',
677
+ type: 'uint256',
678
+ },
679
+ ],
680
+ },
681
+ {
682
+ stateMutability: 'nonpayable',
683
+ type: 'function',
684
+ name: 'rebalanceYieldPosition',
685
+ inputs: [
686
+ {
687
+ name: '_fromLegoId',
688
+ type: 'uint256',
689
+ },
690
+ {
691
+ name: '_fromVaultToken',
692
+ type: 'address',
693
+ },
694
+ {
695
+ name: '_toLegoId',
696
+ type: 'uint256',
697
+ },
698
+ {
699
+ name: '_toVaultAddr',
700
+ type: 'address',
701
+ },
702
+ {
703
+ name: '_fromVaultAmount',
704
+ type: 'uint256',
705
+ },
706
+ ],
707
+ outputs: [
708
+ {
709
+ name: '',
710
+ type: 'uint256',
711
+ },
712
+ {
713
+ name: '',
714
+ type: 'address',
715
+ },
716
+ {
717
+ name: '',
718
+ type: 'uint256',
719
+ },
720
+ {
721
+ name: '',
722
+ type: 'uint256',
723
+ },
724
+ ],
725
+ },
726
+ {
727
+ stateMutability: 'nonpayable',
728
+ type: 'function',
729
+ name: 'rebalanceYieldPosition',
730
+ inputs: [
731
+ {
732
+ name: '_fromLegoId',
733
+ type: 'uint256',
734
+ },
735
+ {
736
+ name: '_fromVaultToken',
737
+ type: 'address',
738
+ },
739
+ {
740
+ name: '_toLegoId',
741
+ type: 'uint256',
742
+ },
743
+ {
744
+ name: '_toVaultAddr',
745
+ type: 'address',
746
+ },
747
+ {
748
+ name: '_fromVaultAmount',
749
+ type: 'uint256',
750
+ },
751
+ {
752
+ name: '_extraData',
753
+ type: 'bytes32',
754
+ },
755
+ ],
756
+ outputs: [
757
+ {
758
+ name: '',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: '',
763
+ type: 'address',
764
+ },
765
+ {
766
+ name: '',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: '',
771
+ type: 'uint256',
772
+ },
773
+ ],
774
+ },
775
+ {
776
+ stateMutability: 'nonpayable',
777
+ type: 'function',
778
+ name: 'swapTokens',
779
+ inputs: [
780
+ {
781
+ name: '_instructions',
782
+ type: 'tuple[]',
783
+ components: [
784
+ {
785
+ name: 'legoId',
786
+ type: 'uint256',
787
+ },
788
+ {
789
+ name: 'amountIn',
790
+ type: 'uint256',
791
+ },
792
+ {
793
+ name: 'minAmountOut',
794
+ type: 'uint256',
795
+ },
796
+ {
797
+ name: 'tokenPath',
798
+ type: 'address[]',
799
+ },
800
+ {
801
+ name: 'poolPath',
802
+ type: 'address[]',
803
+ },
804
+ ],
805
+ },
806
+ ],
807
+ outputs: [
808
+ {
809
+ name: '',
810
+ type: 'address',
811
+ },
812
+ {
813
+ name: '',
814
+ type: 'uint256',
815
+ },
816
+ {
817
+ name: '',
818
+ type: 'address',
819
+ },
820
+ {
821
+ name: '',
822
+ type: 'uint256',
823
+ },
824
+ {
825
+ name: '',
826
+ type: 'uint256',
827
+ },
828
+ ],
829
+ },
830
+ {
831
+ stateMutability: 'nonpayable',
832
+ type: 'function',
833
+ name: 'mintOrRedeemAsset',
834
+ inputs: [
835
+ {
836
+ name: '_legoId',
837
+ type: 'uint256',
838
+ },
839
+ {
840
+ name: '_tokenIn',
841
+ type: 'address',
842
+ },
843
+ {
844
+ name: '_tokenOut',
845
+ type: 'address',
846
+ },
847
+ ],
848
+ outputs: [
849
+ {
850
+ name: '',
851
+ type: 'uint256',
852
+ },
853
+ {
854
+ name: '',
855
+ type: 'uint256',
856
+ },
857
+ {
858
+ name: '',
859
+ type: 'bool',
860
+ },
861
+ {
862
+ name: '',
863
+ type: 'uint256',
864
+ },
865
+ ],
866
+ },
867
+ {
868
+ stateMutability: 'nonpayable',
869
+ type: 'function',
870
+ name: 'mintOrRedeemAsset',
871
+ inputs: [
872
+ {
873
+ name: '_legoId',
874
+ type: 'uint256',
875
+ },
876
+ {
877
+ name: '_tokenIn',
878
+ type: 'address',
879
+ },
880
+ {
881
+ name: '_tokenOut',
882
+ type: 'address',
883
+ },
884
+ {
885
+ name: '_amountIn',
886
+ type: 'uint256',
887
+ },
888
+ ],
889
+ outputs: [
890
+ {
891
+ name: '',
892
+ type: 'uint256',
893
+ },
894
+ {
895
+ name: '',
896
+ type: 'uint256',
897
+ },
898
+ {
899
+ name: '',
900
+ type: 'bool',
901
+ },
902
+ {
903
+ name: '',
904
+ type: 'uint256',
905
+ },
906
+ ],
907
+ },
908
+ {
909
+ stateMutability: 'nonpayable',
910
+ type: 'function',
911
+ name: 'mintOrRedeemAsset',
912
+ inputs: [
913
+ {
914
+ name: '_legoId',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ name: '_tokenIn',
919
+ type: 'address',
920
+ },
921
+ {
922
+ name: '_tokenOut',
923
+ type: 'address',
924
+ },
925
+ {
926
+ name: '_amountIn',
927
+ type: 'uint256',
928
+ },
929
+ {
930
+ name: '_minAmountOut',
931
+ type: 'uint256',
932
+ },
933
+ ],
934
+ outputs: [
935
+ {
936
+ name: '',
937
+ type: 'uint256',
938
+ },
939
+ {
940
+ name: '',
941
+ type: 'uint256',
942
+ },
943
+ {
944
+ name: '',
945
+ type: 'bool',
946
+ },
947
+ {
948
+ name: '',
949
+ type: 'uint256',
950
+ },
951
+ ],
952
+ },
953
+ {
954
+ stateMutability: 'nonpayable',
955
+ type: 'function',
956
+ name: 'mintOrRedeemAsset',
957
+ inputs: [
958
+ {
959
+ name: '_legoId',
960
+ type: 'uint256',
961
+ },
962
+ {
963
+ name: '_tokenIn',
964
+ type: 'address',
965
+ },
966
+ {
967
+ name: '_tokenOut',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '_amountIn',
972
+ type: 'uint256',
973
+ },
974
+ {
975
+ name: '_minAmountOut',
976
+ type: 'uint256',
977
+ },
978
+ {
979
+ name: '_extraData',
980
+ type: 'bytes32',
981
+ },
982
+ ],
983
+ outputs: [
984
+ {
985
+ name: '',
986
+ type: 'uint256',
987
+ },
988
+ {
989
+ name: '',
990
+ type: 'uint256',
991
+ },
992
+ {
993
+ name: '',
994
+ type: 'bool',
995
+ },
996
+ {
997
+ name: '',
998
+ type: 'uint256',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ stateMutability: 'nonpayable',
1004
+ type: 'function',
1005
+ name: 'confirmMintOrRedeemAsset',
1006
+ inputs: [
1007
+ {
1008
+ name: '_legoId',
1009
+ type: 'uint256',
1010
+ },
1011
+ {
1012
+ name: '_tokenIn',
1013
+ type: 'address',
1014
+ },
1015
+ {
1016
+ name: '_tokenOut',
1017
+ type: 'address',
1018
+ },
1019
+ ],
1020
+ outputs: [
1021
+ {
1022
+ name: '',
1023
+ type: 'uint256',
1024
+ },
1025
+ {
1026
+ name: '',
1027
+ type: 'uint256',
1028
+ },
1029
+ ],
1030
+ },
1031
+ {
1032
+ stateMutability: 'nonpayable',
1033
+ type: 'function',
1034
+ name: 'confirmMintOrRedeemAsset',
1035
+ inputs: [
1036
+ {
1037
+ name: '_legoId',
1038
+ type: 'uint256',
1039
+ },
1040
+ {
1041
+ name: '_tokenIn',
1042
+ type: 'address',
1043
+ },
1044
+ {
1045
+ name: '_tokenOut',
1046
+ type: 'address',
1047
+ },
1048
+ {
1049
+ name: '_extraData',
1050
+ type: 'bytes32',
1051
+ },
1052
+ ],
1053
+ outputs: [
1054
+ {
1055
+ name: '',
1056
+ type: 'uint256',
1057
+ },
1058
+ {
1059
+ name: '',
1060
+ type: 'uint256',
1061
+ },
1062
+ ],
1063
+ },
1064
+ {
1065
+ stateMutability: 'nonpayable',
1066
+ type: 'function',
1067
+ name: 'addCollateral',
1068
+ inputs: [
1069
+ {
1070
+ name: '_legoId',
1071
+ type: 'uint256',
1072
+ },
1073
+ {
1074
+ name: '_asset',
1075
+ type: 'address',
1076
+ },
1077
+ ],
1078
+ outputs: [
1079
+ {
1080
+ name: '',
1081
+ type: 'uint256',
1082
+ },
1083
+ {
1084
+ name: '',
1085
+ type: 'uint256',
1086
+ },
1087
+ ],
1088
+ },
1089
+ {
1090
+ stateMutability: 'nonpayable',
1091
+ type: 'function',
1092
+ name: 'addCollateral',
1093
+ inputs: [
1094
+ {
1095
+ name: '_legoId',
1096
+ type: 'uint256',
1097
+ },
1098
+ {
1099
+ name: '_asset',
1100
+ type: 'address',
1101
+ },
1102
+ {
1103
+ name: '_amount',
1104
+ type: 'uint256',
1105
+ },
1106
+ ],
1107
+ outputs: [
1108
+ {
1109
+ name: '',
1110
+ type: 'uint256',
1111
+ },
1112
+ {
1113
+ name: '',
1114
+ type: 'uint256',
1115
+ },
1116
+ ],
1117
+ },
1118
+ {
1119
+ stateMutability: 'nonpayable',
1120
+ type: 'function',
1121
+ name: 'addCollateral',
1122
+ inputs: [
1123
+ {
1124
+ name: '_legoId',
1125
+ type: 'uint256',
1126
+ },
1127
+ {
1128
+ name: '_asset',
1129
+ type: 'address',
1130
+ },
1131
+ {
1132
+ name: '_amount',
1133
+ type: 'uint256',
1134
+ },
1135
+ {
1136
+ name: '_extraData',
1137
+ type: 'bytes32',
1138
+ },
1139
+ ],
1140
+ outputs: [
1141
+ {
1142
+ name: '',
1143
+ type: 'uint256',
1144
+ },
1145
+ {
1146
+ name: '',
1147
+ type: 'uint256',
1148
+ },
1149
+ ],
1150
+ },
1151
+ {
1152
+ stateMutability: 'nonpayable',
1153
+ type: 'function',
1154
+ name: 'removeCollateral',
1155
+ inputs: [
1156
+ {
1157
+ name: '_legoId',
1158
+ type: 'uint256',
1159
+ },
1160
+ {
1161
+ name: '_asset',
1162
+ type: 'address',
1163
+ },
1164
+ ],
1165
+ outputs: [
1166
+ {
1167
+ name: '',
1168
+ type: 'uint256',
1169
+ },
1170
+ {
1171
+ name: '',
1172
+ type: 'uint256',
1173
+ },
1174
+ ],
1175
+ },
1176
+ {
1177
+ stateMutability: 'nonpayable',
1178
+ type: 'function',
1179
+ name: 'removeCollateral',
1180
+ inputs: [
1181
+ {
1182
+ name: '_legoId',
1183
+ type: 'uint256',
1184
+ },
1185
+ {
1186
+ name: '_asset',
1187
+ type: 'address',
1188
+ },
1189
+ {
1190
+ name: '_amount',
1191
+ type: 'uint256',
1192
+ },
1193
+ ],
1194
+ outputs: [
1195
+ {
1196
+ name: '',
1197
+ type: 'uint256',
1198
+ },
1199
+ {
1200
+ name: '',
1201
+ type: 'uint256',
1202
+ },
1203
+ ],
1204
+ },
1205
+ {
1206
+ stateMutability: 'nonpayable',
1207
+ type: 'function',
1208
+ name: 'removeCollateral',
1209
+ inputs: [
1210
+ {
1211
+ name: '_legoId',
1212
+ type: 'uint256',
1213
+ },
1214
+ {
1215
+ name: '_asset',
1216
+ type: 'address',
1217
+ },
1218
+ {
1219
+ name: '_amount',
1220
+ type: 'uint256',
1221
+ },
1222
+ {
1223
+ name: '_extraData',
1224
+ type: 'bytes32',
1225
+ },
1226
+ ],
1227
+ outputs: [
1228
+ {
1229
+ name: '',
1230
+ type: 'uint256',
1231
+ },
1232
+ {
1233
+ name: '',
1234
+ type: 'uint256',
1235
+ },
1236
+ ],
1237
+ },
1238
+ {
1239
+ stateMutability: 'nonpayable',
1240
+ type: 'function',
1241
+ name: 'borrow',
1242
+ inputs: [
1243
+ {
1244
+ name: '_legoId',
1245
+ type: 'uint256',
1246
+ },
1247
+ {
1248
+ name: '_borrowAsset',
1249
+ type: 'address',
1250
+ },
1251
+ ],
1252
+ outputs: [
1253
+ {
1254
+ name: '',
1255
+ type: 'uint256',
1256
+ },
1257
+ {
1258
+ name: '',
1259
+ type: 'uint256',
1260
+ },
1261
+ ],
1262
+ },
1263
+ {
1264
+ stateMutability: 'nonpayable',
1265
+ type: 'function',
1266
+ name: 'borrow',
1267
+ inputs: [
1268
+ {
1269
+ name: '_legoId',
1270
+ type: 'uint256',
1271
+ },
1272
+ {
1273
+ name: '_borrowAsset',
1274
+ type: 'address',
1275
+ },
1276
+ {
1277
+ name: '_amount',
1278
+ type: 'uint256',
1279
+ },
1280
+ ],
1281
+ outputs: [
1282
+ {
1283
+ name: '',
1284
+ type: 'uint256',
1285
+ },
1286
+ {
1287
+ name: '',
1288
+ type: 'uint256',
1289
+ },
1290
+ ],
1291
+ },
1292
+ {
1293
+ stateMutability: 'nonpayable',
1294
+ type: 'function',
1295
+ name: 'borrow',
1296
+ inputs: [
1297
+ {
1298
+ name: '_legoId',
1299
+ type: 'uint256',
1300
+ },
1301
+ {
1302
+ name: '_borrowAsset',
1303
+ type: 'address',
1304
+ },
1305
+ {
1306
+ name: '_amount',
1307
+ type: 'uint256',
1308
+ },
1309
+ {
1310
+ name: '_extraData',
1311
+ type: 'bytes32',
1312
+ },
1313
+ ],
1314
+ outputs: [
1315
+ {
1316
+ name: '',
1317
+ type: 'uint256',
1318
+ },
1319
+ {
1320
+ name: '',
1321
+ type: 'uint256',
1322
+ },
1323
+ ],
1324
+ },
1325
+ {
1326
+ stateMutability: 'nonpayable',
1327
+ type: 'function',
1328
+ name: 'repayDebt',
1329
+ inputs: [
1330
+ {
1331
+ name: '_legoId',
1332
+ type: 'uint256',
1333
+ },
1334
+ {
1335
+ name: '_paymentAsset',
1336
+ type: 'address',
1337
+ },
1338
+ ],
1339
+ outputs: [
1340
+ {
1341
+ name: '',
1342
+ type: 'uint256',
1343
+ },
1344
+ {
1345
+ name: '',
1346
+ type: 'uint256',
1347
+ },
1348
+ ],
1349
+ },
1350
+ {
1351
+ stateMutability: 'nonpayable',
1352
+ type: 'function',
1353
+ name: 'repayDebt',
1354
+ inputs: [
1355
+ {
1356
+ name: '_legoId',
1357
+ type: 'uint256',
1358
+ },
1359
+ {
1360
+ name: '_paymentAsset',
1361
+ type: 'address',
1362
+ },
1363
+ {
1364
+ name: '_paymentAmount',
1365
+ type: 'uint256',
1366
+ },
1367
+ ],
1368
+ outputs: [
1369
+ {
1370
+ name: '',
1371
+ type: 'uint256',
1372
+ },
1373
+ {
1374
+ name: '',
1375
+ type: 'uint256',
1376
+ },
1377
+ ],
1378
+ },
1379
+ {
1380
+ stateMutability: 'nonpayable',
1381
+ type: 'function',
1382
+ name: 'repayDebt',
1383
+ inputs: [
1384
+ {
1385
+ name: '_legoId',
1386
+ type: 'uint256',
1387
+ },
1388
+ {
1389
+ name: '_paymentAsset',
1390
+ type: 'address',
1391
+ },
1392
+ {
1393
+ name: '_paymentAmount',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: '_extraData',
1398
+ type: 'bytes32',
1399
+ },
1400
+ ],
1401
+ outputs: [
1402
+ {
1403
+ name: '',
1404
+ type: 'uint256',
1405
+ },
1406
+ {
1407
+ name: '',
1408
+ type: 'uint256',
1409
+ },
1410
+ ],
1411
+ },
1412
+ {
1413
+ stateMutability: 'nonpayable',
1414
+ type: 'function',
1415
+ name: 'claimRewards',
1416
+ inputs: [
1417
+ {
1418
+ name: '_legoId',
1419
+ type: 'uint256',
1420
+ },
1421
+ ],
1422
+ outputs: [
1423
+ {
1424
+ name: '',
1425
+ type: 'uint256',
1426
+ },
1427
+ {
1428
+ name: '',
1429
+ type: 'uint256',
1430
+ },
1431
+ ],
1432
+ },
1433
+ {
1434
+ stateMutability: 'nonpayable',
1435
+ type: 'function',
1436
+ name: 'claimRewards',
1437
+ inputs: [
1438
+ {
1439
+ name: '_legoId',
1440
+ type: 'uint256',
1441
+ },
1442
+ {
1443
+ name: '_rewardToken',
1444
+ type: 'address',
1445
+ },
1446
+ ],
1447
+ outputs: [
1448
+ {
1449
+ name: '',
1450
+ type: 'uint256',
1451
+ },
1452
+ {
1453
+ name: '',
1454
+ type: 'uint256',
1455
+ },
1456
+ ],
1457
+ },
1458
+ {
1459
+ stateMutability: 'nonpayable',
1460
+ type: 'function',
1461
+ name: 'claimRewards',
1462
+ inputs: [
1463
+ {
1464
+ name: '_legoId',
1465
+ type: 'uint256',
1466
+ },
1467
+ {
1468
+ name: '_rewardToken',
1469
+ type: 'address',
1470
+ },
1471
+ {
1472
+ name: '_rewardAmount',
1473
+ type: 'uint256',
1474
+ },
1475
+ ],
1476
+ outputs: [
1477
+ {
1478
+ name: '',
1479
+ type: 'uint256',
1480
+ },
1481
+ {
1482
+ name: '',
1483
+ type: 'uint256',
1484
+ },
1485
+ ],
1486
+ },
1487
+ {
1488
+ stateMutability: 'nonpayable',
1489
+ type: 'function',
1490
+ name: 'claimRewards',
1491
+ inputs: [
1492
+ {
1493
+ name: '_legoId',
1494
+ type: 'uint256',
1495
+ },
1496
+ {
1497
+ name: '_rewardToken',
1498
+ type: 'address',
1499
+ },
1500
+ {
1501
+ name: '_rewardAmount',
1502
+ type: 'uint256',
1503
+ },
1504
+ {
1505
+ name: '_extraData',
1506
+ type: 'bytes32',
1507
+ },
1508
+ ],
1509
+ outputs: [
1510
+ {
1511
+ name: '',
1512
+ type: 'uint256',
1513
+ },
1514
+ {
1515
+ name: '',
1516
+ type: 'uint256',
1517
+ },
1518
+ ],
1519
+ },
1520
+ {
1521
+ stateMutability: 'nonpayable',
1522
+ type: 'function',
1523
+ name: 'convertWethToEth',
1524
+ inputs: [],
1525
+ outputs: [
1526
+ {
1527
+ name: '',
1528
+ type: 'uint256',
1529
+ },
1530
+ {
1531
+ name: '',
1532
+ type: 'uint256',
1533
+ },
1534
+ ],
1535
+ },
1536
+ {
1537
+ stateMutability: 'nonpayable',
1538
+ type: 'function',
1539
+ name: 'convertWethToEth',
1540
+ inputs: [
1541
+ {
1542
+ name: '_amount',
1543
+ type: 'uint256',
1544
+ },
1545
+ ],
1546
+ outputs: [
1547
+ {
1548
+ name: '',
1549
+ type: 'uint256',
1550
+ },
1551
+ {
1552
+ name: '',
1553
+ type: 'uint256',
1554
+ },
1555
+ ],
1556
+ },
1557
+ {
1558
+ stateMutability: 'payable',
1559
+ type: 'function',
1560
+ name: 'convertEthToWeth',
1561
+ inputs: [],
1562
+ outputs: [
1563
+ {
1564
+ name: '',
1565
+ type: 'uint256',
1566
+ },
1567
+ {
1568
+ name: '',
1569
+ type: 'uint256',
1570
+ },
1571
+ ],
1572
+ },
1573
+ {
1574
+ stateMutability: 'payable',
1575
+ type: 'function',
1576
+ name: 'convertEthToWeth',
1577
+ inputs: [
1578
+ {
1579
+ name: '_amount',
479
1580
  type: 'uint256',
480
1581
  },
1582
+ ],
1583
+ outputs: [
481
1584
  {
482
- indexed: false,
483
- name: 'usdValue',
1585
+ name: '',
484
1586
  type: 'uint256',
485
1587
  },
486
1588
  {
487
- indexed: false,
488
- name: 'proof',
489
- type: 'bytes32',
1589
+ name: '',
1590
+ type: 'uint256',
490
1591
  },
1592
+ ],
1593
+ },
1594
+ {
1595
+ stateMutability: 'nonpayable',
1596
+ type: 'function',
1597
+ name: 'addLiquidity',
1598
+ inputs: [
491
1599
  {
492
- indexed: false,
493
- name: 'legoId',
1600
+ name: '_legoId',
494
1601
  type: 'uint256',
495
1602
  },
496
1603
  {
497
- indexed: false,
498
- name: 'legoAddr',
1604
+ name: '_pool',
499
1605
  type: 'address',
500
1606
  },
501
1607
  {
502
- indexed: false,
503
- name: 'isSignerAgent',
504
- type: 'bool',
1608
+ name: '_tokenA',
1609
+ type: 'address',
505
1610
  },
506
- ],
507
- name: 'UserWalletRewardsClaimed',
508
- type: 'event',
509
- },
510
- {
511
- anonymous: false,
512
- inputs: [
513
1611
  {
514
- indexed: true,
515
- name: 'signer',
1612
+ name: '_tokenB',
516
1613
  type: 'address',
517
1614
  },
1615
+ ],
1616
+ outputs: [
518
1617
  {
519
- indexed: false,
520
- name: 'amount',
1618
+ name: '',
521
1619
  type: 'uint256',
522
1620
  },
523
1621
  {
524
- indexed: false,
525
- name: 'paidEth',
1622
+ name: '',
526
1623
  type: 'uint256',
527
1624
  },
528
1625
  {
529
- indexed: true,
530
- name: 'weth',
531
- type: 'address',
1626
+ name: '',
1627
+ type: 'uint256',
532
1628
  },
533
1629
  {
534
- indexed: false,
535
- name: 'isSignerAgent',
536
- type: 'bool',
1630
+ name: '',
1631
+ type: 'uint256',
537
1632
  },
538
1633
  ],
539
- name: 'UserWalletEthConvertedToWeth',
540
- type: 'event',
541
1634
  },
542
1635
  {
543
- anonymous: false,
1636
+ stateMutability: 'nonpayable',
1637
+ type: 'function',
1638
+ name: 'addLiquidity',
544
1639
  inputs: [
545
1640
  {
546
- indexed: true,
547
- name: 'signer',
548
- type: 'address',
549
- },
550
- {
551
- indexed: false,
552
- name: 'amount',
1641
+ name: '_legoId',
553
1642
  type: 'uint256',
554
1643
  },
555
1644
  {
556
- indexed: true,
557
- name: 'weth',
1645
+ name: '_pool',
558
1646
  type: 'address',
559
1647
  },
560
1648
  {
561
- indexed: false,
562
- name: 'isSignerAgent',
563
- type: 'bool',
1649
+ name: '_tokenA',
1650
+ type: 'address',
564
1651
  },
565
- ],
566
- name: 'UserWalletWethConvertedToEth',
567
- type: 'event',
568
- },
569
- {
570
- anonymous: false,
571
- inputs: [
572
1652
  {
573
- indexed: true,
574
- name: 'recipient',
1653
+ name: '_tokenB',
575
1654
  type: 'address',
576
1655
  },
577
1656
  {
578
- indexed: true,
579
- name: 'asset',
580
- type: 'address',
1657
+ name: '_amountA',
1658
+ type: 'uint256',
581
1659
  },
1660
+ ],
1661
+ outputs: [
582
1662
  {
583
- indexed: false,
584
- name: 'amount',
1663
+ name: '',
585
1664
  type: 'uint256',
586
1665
  },
587
1666
  {
588
- indexed: false,
589
- name: 'usdValue',
1667
+ name: '',
590
1668
  type: 'uint256',
591
1669
  },
592
1670
  {
593
- indexed: false,
594
- name: 'paidThroughBlock',
1671
+ name: '',
595
1672
  type: 'uint256',
596
1673
  },
597
1674
  {
598
- indexed: false,
599
- name: 'isAgent',
600
- type: 'bool',
1675
+ name: '',
1676
+ type: 'uint256',
601
1677
  },
602
1678
  ],
603
- name: 'UserWalletSubscriptionPaid',
604
- type: 'event',
605
1679
  },
606
1680
  {
607
- anonymous: false,
1681
+ stateMutability: 'nonpayable',
1682
+ type: 'function',
1683
+ name: 'addLiquidity',
608
1684
  inputs: [
609
1685
  {
610
- indexed: true,
611
- name: 'asset',
612
- type: 'address',
1686
+ name: '_legoId',
1687
+ type: 'uint256',
613
1688
  },
614
1689
  {
615
- indexed: true,
616
- name: 'protocolRecipient',
1690
+ name: '_pool',
617
1691
  type: 'address',
618
1692
  },
619
1693
  {
620
- indexed: false,
621
- name: 'protocolAmount',
622
- type: 'uint256',
1694
+ name: '_tokenA',
1695
+ type: 'address',
623
1696
  },
624
1697
  {
625
- indexed: true,
626
- name: 'ambassadorRecipient',
1698
+ name: '_tokenB',
627
1699
  type: 'address',
628
1700
  },
629
1701
  {
630
- indexed: false,
631
- name: 'ambassadorAmount',
1702
+ name: '_amountA',
632
1703
  type: 'uint256',
633
1704
  },
634
1705
  {
635
- indexed: false,
636
- name: 'fee',
1706
+ name: '_amountB',
637
1707
  type: 'uint256',
638
1708
  },
1709
+ ],
1710
+ outputs: [
639
1711
  {
640
- indexed: false,
641
- name: 'action',
1712
+ name: '',
642
1713
  type: 'uint256',
643
1714
  },
644
- ],
645
- name: 'UserWalletTransactionFeePaid',
646
- type: 'event',
647
- },
648
- {
649
- anonymous: false,
650
- inputs: [
651
1715
  {
652
- indexed: true,
653
- name: 'asset',
654
- type: 'address',
1716
+ name: '',
1717
+ type: 'uint256',
655
1718
  },
656
1719
  {
657
- indexed: false,
658
- name: 'amountRecovered',
1720
+ name: '',
659
1721
  type: 'uint256',
660
1722
  },
661
1723
  {
662
- indexed: false,
663
- name: 'remainingAmount',
1724
+ name: '',
664
1725
  type: 'uint256',
665
1726
  },
666
1727
  ],
667
- name: 'UserWalletTrialFundsRecovered',
668
- type: 'event',
669
1728
  },
670
1729
  {
671
- anonymous: false,
1730
+ stateMutability: 'nonpayable',
1731
+ type: 'function',
1732
+ name: 'addLiquidity',
672
1733
  inputs: [
673
1734
  {
674
- indexed: true,
675
- name: 'collection',
676
- type: 'address',
677
- },
678
- {
679
- indexed: false,
680
- name: 'nftTokenId',
1735
+ name: '_legoId',
681
1736
  type: 'uint256',
682
1737
  },
683
1738
  {
684
- indexed: true,
685
- name: 'owner',
1739
+ name: '_pool',
686
1740
  type: 'address',
687
1741
  },
688
- ],
689
- name: 'UserWalletNftRecovered',
690
- type: 'event',
691
- },
692
- {
693
- stateMutability: 'payable',
694
- type: 'fallback',
695
- },
696
- {
697
- inputs: [
698
1742
  {
699
- name: '_operator',
1743
+ name: '_tokenA',
700
1744
  type: 'address',
701
1745
  },
702
1746
  {
703
- name: '_owner',
1747
+ name: '_tokenB',
704
1748
  type: 'address',
705
1749
  },
706
1750
  {
707
- name: '_tokenId',
1751
+ name: '_amountA',
708
1752
  type: 'uint256',
709
1753
  },
710
1754
  {
711
- name: '_data',
712
- type: 'bytes',
1755
+ name: '_amountB',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ name: '_minAmountA',
1760
+ type: 'uint256',
713
1761
  },
714
1762
  ],
715
- name: 'onERC721Received',
716
1763
  outputs: [
717
1764
  {
718
1765
  name: '',
719
- type: 'bytes4',
1766
+ type: 'uint256',
720
1767
  },
721
- ],
722
- stateMutability: 'view',
723
- type: 'function',
724
- },
725
- {
726
- inputs: [],
727
- name: 'apiVersion',
728
- outputs: [
729
1768
  {
730
1769
  name: '',
731
- type: 'string',
1770
+ type: 'uint256',
732
1771
  },
733
- ],
734
- stateMutability: 'pure',
735
- type: 'function',
736
- },
737
- {
738
- inputs: [],
739
- name: 'canBeAmbassador',
740
- outputs: [
741
1772
  {
742
1773
  name: '',
743
- type: 'bool',
1774
+ type: 'uint256',
1775
+ },
1776
+ {
1777
+ name: '',
1778
+ type: 'uint256',
744
1779
  },
745
1780
  ],
746
- stateMutability: 'view',
747
- type: 'function',
748
1781
  },
749
1782
  {
1783
+ stateMutability: 'nonpayable',
1784
+ type: 'function',
1785
+ name: 'addLiquidity',
750
1786
  inputs: [
751
1787
  {
752
1788
  name: '_legoId',
753
1789
  type: 'uint256',
754
1790
  },
755
1791
  {
756
- name: '_asset',
1792
+ name: '_pool',
1793
+ type: 'address',
1794
+ },
1795
+ {
1796
+ name: '_tokenA',
757
1797
  type: 'address',
758
1798
  },
759
1799
  {
760
- name: '_vault',
1800
+ name: '_tokenB',
761
1801
  type: 'address',
762
1802
  },
1803
+ {
1804
+ name: '_amountA',
1805
+ type: 'uint256',
1806
+ },
1807
+ {
1808
+ name: '_amountB',
1809
+ type: 'uint256',
1810
+ },
1811
+ {
1812
+ name: '_minAmountA',
1813
+ type: 'uint256',
1814
+ },
1815
+ {
1816
+ name: '_minAmountB',
1817
+ type: 'uint256',
1818
+ },
763
1819
  ],
764
- name: 'depositTokens',
765
1820
  outputs: [
766
1821
  {
767
1822
  name: '',
@@ -769,7 +1824,7 @@ export const abi = [
769
1824
  },
770
1825
  {
771
1826
  name: '',
772
- type: 'address',
1827
+ type: 'uint256',
773
1828
  },
774
1829
  {
775
1830
  name: '',
@@ -780,29 +1835,49 @@ export const abi = [
780
1835
  type: 'uint256',
781
1836
  },
782
1837
  ],
783
- stateMutability: 'nonpayable',
784
- type: 'function',
785
1838
  },
786
1839
  {
1840
+ stateMutability: 'nonpayable',
1841
+ type: 'function',
1842
+ name: 'addLiquidity',
787
1843
  inputs: [
788
1844
  {
789
1845
  name: '_legoId',
790
1846
  type: 'uint256',
791
1847
  },
792
1848
  {
793
- name: '_asset',
1849
+ name: '_pool',
794
1850
  type: 'address',
795
1851
  },
796
1852
  {
797
- name: '_vault',
1853
+ name: '_tokenA',
798
1854
  type: 'address',
799
1855
  },
800
1856
  {
801
- name: '_amount',
1857
+ name: '_tokenB',
1858
+ type: 'address',
1859
+ },
1860
+ {
1861
+ name: '_amountA',
1862
+ type: 'uint256',
1863
+ },
1864
+ {
1865
+ name: '_amountB',
1866
+ type: 'uint256',
1867
+ },
1868
+ {
1869
+ name: '_minAmountA',
1870
+ type: 'uint256',
1871
+ },
1872
+ {
1873
+ name: '_minAmountB',
1874
+ type: 'uint256',
1875
+ },
1876
+ {
1877
+ name: '_minLpAmount',
802
1878
  type: 'uint256',
803
1879
  },
804
1880
  ],
805
- name: 'depositTokens',
806
1881
  outputs: [
807
1882
  {
808
1883
  name: '',
@@ -810,7 +1885,7 @@ export const abi = [
810
1885
  },
811
1886
  {
812
1887
  name: '',
813
- type: 'address',
1888
+ type: 'uint256',
814
1889
  },
815
1890
  {
816
1891
  name: '',
@@ -821,62 +1896,53 @@ export const abi = [
821
1896
  type: 'uint256',
822
1897
  },
823
1898
  ],
824
- stateMutability: 'nonpayable',
825
- type: 'function',
826
1899
  },
827
1900
  {
1901
+ stateMutability: 'nonpayable',
1902
+ type: 'function',
1903
+ name: 'addLiquidity',
828
1904
  inputs: [
829
1905
  {
830
1906
  name: '_legoId',
831
1907
  type: 'uint256',
832
1908
  },
833
1909
  {
834
- name: '_asset',
1910
+ name: '_pool',
835
1911
  type: 'address',
836
1912
  },
837
1913
  {
838
- name: '_vaultToken',
1914
+ name: '_tokenA',
839
1915
  type: 'address',
840
1916
  },
841
- ],
842
- name: 'withdrawTokens',
843
- outputs: [
844
1917
  {
845
- name: '',
846
- type: 'uint256',
1918
+ name: '_tokenB',
1919
+ type: 'address',
847
1920
  },
848
1921
  {
849
- name: '',
1922
+ name: '_amountA',
850
1923
  type: 'uint256',
851
1924
  },
852
1925
  {
853
- name: '',
1926
+ name: '_amountB',
854
1927
  type: 'uint256',
855
1928
  },
856
- ],
857
- stateMutability: 'nonpayable',
858
- type: 'function',
859
- },
860
- {
861
- inputs: [
862
1929
  {
863
- name: '_legoId',
1930
+ name: '_minAmountA',
864
1931
  type: 'uint256',
865
1932
  },
866
1933
  {
867
- name: '_asset',
868
- type: 'address',
1934
+ name: '_minAmountB',
1935
+ type: 'uint256',
869
1936
  },
870
1937
  {
871
- name: '_vaultToken',
872
- type: 'address',
1938
+ name: '_minLpAmount',
1939
+ type: 'uint256',
873
1940
  },
874
1941
  {
875
- name: '_vaultTokenAmount',
876
- type: 'uint256',
1942
+ name: '_extraData',
1943
+ type: 'bytes32',
877
1944
  },
878
1945
  ],
879
- name: 'withdrawTokens',
880
1946
  outputs: [
881
1947
  {
882
1948
  name: '',
@@ -890,34 +1956,38 @@ export const abi = [
890
1956
  name: '',
891
1957
  type: 'uint256',
892
1958
  },
1959
+ {
1960
+ name: '',
1961
+ type: 'uint256',
1962
+ },
893
1963
  ],
894
- stateMutability: 'nonpayable',
895
- type: 'function',
896
1964
  },
897
1965
  {
1966
+ stateMutability: 'nonpayable',
1967
+ type: 'function',
1968
+ name: 'removeLiquidity',
898
1969
  inputs: [
899
1970
  {
900
- name: '_fromLegoId',
1971
+ name: '_legoId',
901
1972
  type: 'uint256',
902
1973
  },
903
1974
  {
904
- name: '_fromAsset',
1975
+ name: '_pool',
905
1976
  type: 'address',
906
1977
  },
907
1978
  {
908
- name: '_fromVaultToken',
1979
+ name: '_tokenA',
909
1980
  type: 'address',
910
1981
  },
911
1982
  {
912
- name: '_toLegoId',
913
- type: 'uint256',
1983
+ name: '_tokenB',
1984
+ type: 'address',
914
1985
  },
915
1986
  {
916
- name: '_toVault',
1987
+ name: '_lpToken',
917
1988
  type: 'address',
918
1989
  },
919
1990
  ],
920
- name: 'rebalance',
921
1991
  outputs: [
922
1992
  {
923
1993
  name: '',
@@ -925,7 +1995,7 @@ export const abi = [
925
1995
  },
926
1996
  {
927
1997
  name: '',
928
- type: 'address',
1998
+ type: 'uint256',
929
1999
  },
930
2000
  {
931
2001
  name: '',
@@ -936,37 +2006,37 @@ export const abi = [
936
2006
  type: 'uint256',
937
2007
  },
938
2008
  ],
939
- stateMutability: 'nonpayable',
940
- type: 'function',
941
2009
  },
942
2010
  {
2011
+ stateMutability: 'nonpayable',
2012
+ type: 'function',
2013
+ name: 'removeLiquidity',
943
2014
  inputs: [
944
2015
  {
945
- name: '_fromLegoId',
2016
+ name: '_legoId',
946
2017
  type: 'uint256',
947
2018
  },
948
2019
  {
949
- name: '_fromAsset',
2020
+ name: '_pool',
950
2021
  type: 'address',
951
2022
  },
952
2023
  {
953
- name: '_fromVaultToken',
2024
+ name: '_tokenA',
954
2025
  type: 'address',
955
2026
  },
956
2027
  {
957
- name: '_toLegoId',
958
- type: 'uint256',
2028
+ name: '_tokenB',
2029
+ type: 'address',
959
2030
  },
960
2031
  {
961
- name: '_toVault',
2032
+ name: '_lpToken',
962
2033
  type: 'address',
963
2034
  },
964
2035
  {
965
- name: '_fromVaultTokenAmount',
2036
+ name: '_lpAmount',
966
2037
  type: 'uint256',
967
2038
  },
968
2039
  ],
969
- name: 'rebalance',
970
2040
  outputs: [
971
2041
  {
972
2042
  name: '',
@@ -974,7 +2044,7 @@ export const abi = [
974
2044
  },
975
2045
  {
976
2046
  name: '',
977
- type: 'address',
2047
+ type: 'uint256',
978
2048
  },
979
2049
  {
980
2050
  name: '',
@@ -985,130 +2055,49 @@ export const abi = [
985
2055
  type: 'uint256',
986
2056
  },
987
2057
  ],
988
- stateMutability: 'nonpayable',
989
- type: 'function',
990
2058
  },
991
2059
  {
992
- inputs: [
993
- {
994
- components: [
995
- {
996
- name: 'legoId',
997
- type: 'uint256',
998
- },
999
- {
1000
- name: 'amountIn',
1001
- type: 'uint256',
1002
- },
1003
- {
1004
- name: 'minAmountOut',
1005
- type: 'uint256',
1006
- },
1007
- {
1008
- name: 'tokenPath',
1009
- type: 'address[]',
1010
- },
1011
- {
1012
- name: 'poolPath',
1013
- type: 'address[]',
1014
- },
1015
- ],
1016
- name: '_swapInstructions',
1017
- type: 'tuple[]',
1018
- },
1019
- ],
1020
- name: 'swapTokens',
1021
- outputs: [
1022
- {
1023
- name: '',
1024
- type: 'uint256',
1025
- },
1026
- {
1027
- name: '',
1028
- type: 'uint256',
1029
- },
1030
- {
1031
- name: '',
1032
- type: 'uint256',
1033
- },
1034
- ],
1035
2060
  stateMutability: 'nonpayable',
1036
2061
  type: 'function',
1037
- },
1038
- {
2062
+ name: 'removeLiquidity',
1039
2063
  inputs: [
1040
2064
  {
1041
2065
  name: '_legoId',
1042
2066
  type: 'uint256',
1043
2067
  },
1044
- ],
1045
- name: 'borrow',
1046
- outputs: [
1047
2068
  {
1048
- name: '',
2069
+ name: '_pool',
1049
2070
  type: 'address',
1050
2071
  },
1051
2072
  {
1052
- name: '',
1053
- type: 'uint256',
1054
- },
1055
- {
1056
- name: '',
1057
- type: 'uint256',
1058
- },
1059
- ],
1060
- stateMutability: 'nonpayable',
1061
- type: 'function',
1062
- },
1063
- {
1064
- inputs: [
1065
- {
1066
- name: '_legoId',
1067
- type: 'uint256',
2073
+ name: '_tokenA',
2074
+ type: 'address',
1068
2075
  },
1069
2076
  {
1070
- name: '_borrowAsset',
2077
+ name: '_tokenB',
1071
2078
  type: 'address',
1072
2079
  },
1073
- ],
1074
- name: 'borrow',
1075
- outputs: [
1076
2080
  {
1077
- name: '',
2081
+ name: '_lpToken',
1078
2082
  type: 'address',
1079
2083
  },
1080
2084
  {
1081
- name: '',
2085
+ name: '_lpAmount',
1082
2086
  type: 'uint256',
1083
2087
  },
1084
2088
  {
1085
- name: '',
2089
+ name: '_minAmountA',
1086
2090
  type: 'uint256',
1087
2091
  },
1088
2092
  ],
1089
- stateMutability: 'nonpayable',
1090
- type: 'function',
1091
- },
1092
- {
1093
- inputs: [
1094
- {
1095
- name: '_legoId',
1096
- type: 'uint256',
1097
- },
1098
- {
1099
- name: '_borrowAsset',
1100
- type: 'address',
1101
- },
2093
+ outputs: [
1102
2094
  {
1103
- name: '_amount',
2095
+ name: '',
1104
2096
  type: 'uint256',
1105
2097
  },
1106
- ],
1107
- name: 'borrow',
1108
- outputs: [
1109
2098
  {
1110
2099
  name: '',
1111
- type: 'address',
2100
+ type: 'uint256',
1112
2101
  },
1113
2102
  {
1114
2103
  name: '',
@@ -1119,63 +2108,46 @@ export const abi = [
1119
2108
  type: 'uint256',
1120
2109
  },
1121
2110
  ],
1122
- stateMutability: 'nonpayable',
1123
- type: 'function',
1124
2111
  },
1125
2112
  {
2113
+ stateMutability: 'nonpayable',
2114
+ type: 'function',
2115
+ name: 'removeLiquidity',
1126
2116
  inputs: [
1127
2117
  {
1128
2118
  name: '_legoId',
1129
2119
  type: 'uint256',
1130
2120
  },
1131
2121
  {
1132
- name: '_paymentAsset',
2122
+ name: '_pool',
1133
2123
  type: 'address',
1134
2124
  },
1135
- ],
1136
- name: 'repayDebt',
1137
- outputs: [
1138
2125
  {
1139
- name: '',
2126
+ name: '_tokenA',
1140
2127
  type: 'address',
1141
2128
  },
1142
2129
  {
1143
- name: '',
1144
- type: 'uint256',
2130
+ name: '_tokenB',
2131
+ type: 'address',
1145
2132
  },
1146
2133
  {
1147
- name: '',
1148
- type: 'uint256',
2134
+ name: '_lpToken',
2135
+ type: 'address',
1149
2136
  },
1150
2137
  {
1151
- name: '',
2138
+ name: '_lpAmount',
1152
2139
  type: 'uint256',
1153
2140
  },
1154
- ],
1155
- stateMutability: 'nonpayable',
1156
- type: 'function',
1157
- },
1158
- {
1159
- inputs: [
1160
2141
  {
1161
- name: '_legoId',
2142
+ name: '_minAmountA',
1162
2143
  type: 'uint256',
1163
2144
  },
1164
2145
  {
1165
- name: '_paymentAsset',
1166
- type: 'address',
1167
- },
1168
- {
1169
- name: '_paymentAmount',
2146
+ name: '_minAmountB',
1170
2147
  type: 'uint256',
1171
2148
  },
1172
2149
  ],
1173
- name: 'repayDebt',
1174
2150
  outputs: [
1175
- {
1176
- name: '',
1177
- type: 'address',
1178
- },
1179
2151
  {
1180
2152
  name: '',
1181
2153
  type: 'uint256',
@@ -1188,111 +2160,77 @@ export const abi = [
1188
2160
  name: '',
1189
2161
  type: 'uint256',
1190
2162
  },
1191
- ],
1192
- stateMutability: 'nonpayable',
1193
- type: 'function',
1194
- },
1195
- {
1196
- inputs: [
1197
2163
  {
1198
- name: '_legoId',
2164
+ name: '',
1199
2165
  type: 'uint256',
1200
2166
  },
1201
2167
  ],
1202
- name: 'claimRewards',
1203
- outputs: [],
1204
- stateMutability: 'nonpayable',
1205
- type: 'function',
1206
2168
  },
1207
2169
  {
1208
- inputs: [
1209
- {
1210
- name: '_legoId',
1211
- type: 'uint256',
1212
- },
1213
- {
1214
- name: '_market',
1215
- type: 'address',
1216
- },
1217
- ],
1218
- name: 'claimRewards',
1219
- outputs: [],
1220
2170
  stateMutability: 'nonpayable',
1221
2171
  type: 'function',
1222
- },
1223
- {
2172
+ name: 'removeLiquidity',
1224
2173
  inputs: [
1225
2174
  {
1226
2175
  name: '_legoId',
1227
2176
  type: 'uint256',
1228
2177
  },
1229
2178
  {
1230
- name: '_market',
2179
+ name: '_pool',
1231
2180
  type: 'address',
1232
2181
  },
1233
2182
  {
1234
- name: '_rewardToken',
2183
+ name: '_tokenA',
1235
2184
  type: 'address',
1236
2185
  },
1237
- ],
1238
- name: 'claimRewards',
1239
- outputs: [],
1240
- stateMutability: 'nonpayable',
1241
- type: 'function',
1242
- },
1243
- {
1244
- inputs: [
1245
- {
1246
- name: '_legoId',
1247
- type: 'uint256',
1248
- },
1249
2186
  {
1250
- name: '_market',
2187
+ name: '_tokenB',
1251
2188
  type: 'address',
1252
2189
  },
1253
2190
  {
1254
- name: '_rewardToken',
2191
+ name: '_lpToken',
1255
2192
  type: 'address',
1256
2193
  },
1257
2194
  {
1258
- name: '_rewardAmount',
2195
+ name: '_lpAmount',
1259
2196
  type: 'uint256',
1260
2197
  },
1261
- ],
1262
- name: 'claimRewards',
1263
- outputs: [],
1264
- stateMutability: 'nonpayable',
1265
- type: 'function',
1266
- },
1267
- {
1268
- inputs: [
1269
2198
  {
1270
- name: '_legoId',
2199
+ name: '_minAmountA',
1271
2200
  type: 'uint256',
1272
2201
  },
1273
2202
  {
1274
- name: '_market',
1275
- type: 'address',
2203
+ name: '_minAmountB',
2204
+ type: 'uint256',
1276
2205
  },
1277
2206
  {
1278
- name: '_rewardToken',
1279
- type: 'address',
2207
+ name: '_extraData',
2208
+ type: 'bytes32',
1280
2209
  },
2210
+ ],
2211
+ outputs: [
1281
2212
  {
1282
- name: '_rewardAmount',
2213
+ name: '',
1283
2214
  type: 'uint256',
1284
2215
  },
1285
2216
  {
1286
- name: '_proof',
1287
- type: 'bytes32',
2217
+ name: '',
2218
+ type: 'uint256',
2219
+ },
2220
+ {
2221
+ name: '',
2222
+ type: 'uint256',
2223
+ },
2224
+ {
2225
+ name: '',
2226
+ type: 'uint256',
1288
2227
  },
1289
2228
  ],
1290
- name: 'claimRewards',
1291
- outputs: [],
1292
- stateMutability: 'nonpayable',
1293
- type: 'function',
1294
2229
  },
1295
2230
  {
2231
+ stateMutability: 'nonpayable',
2232
+ type: 'function',
2233
+ name: 'addLiquidityConcentrated',
1296
2234
  inputs: [
1297
2235
  {
1298
2236
  name: '_legoId',
@@ -1319,7 +2257,6 @@ export const abi = [
1319
2257
  type: 'address',
1320
2258
  },
1321
2259
  ],
1322
- name: 'addLiquidity',
1323
2260
  outputs: [
1324
2261
  {
1325
2262
  name: '',
@@ -1342,10 +2279,11 @@ export const abi = [
1342
2279
  type: 'uint256',
1343
2280
  },
1344
2281
  ],
1345
- stateMutability: 'nonpayable',
1346
- type: 'function',
1347
2282
  },
1348
2283
  {
2284
+ stateMutability: 'nonpayable',
2285
+ type: 'function',
2286
+ name: 'addLiquidityConcentrated',
1349
2287
  inputs: [
1350
2288
  {
1351
2289
  name: '_legoId',
@@ -1376,7 +2314,6 @@ export const abi = [
1376
2314
  type: 'uint256',
1377
2315
  },
1378
2316
  ],
1379
- name: 'addLiquidity',
1380
2317
  outputs: [
1381
2318
  {
1382
2319
  name: '',
@@ -1399,10 +2336,11 @@ export const abi = [
1399
2336
  type: 'uint256',
1400
2337
  },
1401
2338
  ],
1402
- stateMutability: 'nonpayable',
1403
- type: 'function',
1404
2339
  },
1405
2340
  {
2341
+ stateMutability: 'nonpayable',
2342
+ type: 'function',
2343
+ name: 'addLiquidityConcentrated',
1406
2344
  inputs: [
1407
2345
  {
1408
2346
  name: '_legoId',
@@ -1437,7 +2375,6 @@ export const abi = [
1437
2375
  type: 'uint256',
1438
2376
  },
1439
2377
  ],
1440
- name: 'addLiquidity',
1441
2378
  outputs: [
1442
2379
  {
1443
2380
  name: '',
@@ -1460,10 +2397,11 @@ export const abi = [
1460
2397
  type: 'uint256',
1461
2398
  },
1462
2399
  ],
1463
- stateMutability: 'nonpayable',
1464
- type: 'function',
1465
2400
  },
1466
2401
  {
2402
+ stateMutability: 'nonpayable',
2403
+ type: 'function',
2404
+ name: 'addLiquidityConcentrated',
1467
2405
  inputs: [
1468
2406
  {
1469
2407
  name: '_legoId',
@@ -1502,7 +2440,6 @@ export const abi = [
1502
2440
  type: 'int24',
1503
2441
  },
1504
2442
  ],
1505
- name: 'addLiquidity',
1506
2443
  outputs: [
1507
2444
  {
1508
2445
  name: '',
@@ -1525,10 +2462,11 @@ export const abi = [
1525
2462
  type: 'uint256',
1526
2463
  },
1527
2464
  ],
1528
- stateMutability: 'nonpayable',
1529
- type: 'function',
1530
2465
  },
1531
2466
  {
2467
+ stateMutability: 'nonpayable',
2468
+ type: 'function',
2469
+ name: 'addLiquidityConcentrated',
1532
2470
  inputs: [
1533
2471
  {
1534
2472
  name: '_legoId',
@@ -1571,7 +2509,6 @@ export const abi = [
1571
2509
  type: 'int24',
1572
2510
  },
1573
2511
  ],
1574
- name: 'addLiquidity',
1575
2512
  outputs: [
1576
2513
  {
1577
2514
  name: '',
@@ -1594,10 +2531,11 @@ export const abi = [
1594
2531
  type: 'uint256',
1595
2532
  },
1596
2533
  ],
1597
- stateMutability: 'nonpayable',
1598
- type: 'function',
1599
2534
  },
1600
2535
  {
2536
+ stateMutability: 'nonpayable',
2537
+ type: 'function',
2538
+ name: 'addLiquidityConcentrated',
1601
2539
  inputs: [
1602
2540
  {
1603
2541
  name: '_legoId',
@@ -1644,7 +2582,6 @@ export const abi = [
1644
2582
  type: 'uint256',
1645
2583
  },
1646
2584
  ],
1647
- name: 'addLiquidity',
1648
2585
  outputs: [
1649
2586
  {
1650
2587
  name: '',
@@ -1667,10 +2604,11 @@ export const abi = [
1667
2604
  type: 'uint256',
1668
2605
  },
1669
2606
  ],
1670
- stateMutability: 'nonpayable',
1671
- type: 'function',
1672
2607
  },
1673
2608
  {
2609
+ stateMutability: 'nonpayable',
2610
+ type: 'function',
2611
+ name: 'addLiquidityConcentrated',
1674
2612
  inputs: [
1675
2613
  {
1676
2614
  name: '_legoId',
@@ -1721,7 +2659,6 @@ export const abi = [
1721
2659
  type: 'uint256',
1722
2660
  },
1723
2661
  ],
1724
- name: 'addLiquidity',
1725
2662
  outputs: [
1726
2663
  {
1727
2664
  name: '',
@@ -1744,10 +2681,11 @@ export const abi = [
1744
2681
  type: 'uint256',
1745
2682
  },
1746
2683
  ],
1747
- stateMutability: 'nonpayable',
1748
- type: 'function',
1749
2684
  },
1750
2685
  {
2686
+ stateMutability: 'nonpayable',
2687
+ type: 'function',
2688
+ name: 'addLiquidityConcentrated',
1751
2689
  inputs: [
1752
2690
  {
1753
2691
  name: '_legoId',
@@ -1798,11 +2736,10 @@ export const abi = [
1798
2736
  type: 'uint256',
1799
2737
  },
1800
2738
  {
1801
- name: '_minLpAmount',
1802
- type: 'uint256',
2739
+ name: '_extraData',
2740
+ type: 'bytes32',
1803
2741
  },
1804
2742
  ],
1805
- name: 'addLiquidity',
1806
2743
  outputs: [
1807
2744
  {
1808
2745
  name: '',
@@ -1825,10 +2762,11 @@ export const abi = [
1825
2762
  type: 'uint256',
1826
2763
  },
1827
2764
  ],
1828
- stateMutability: 'nonpayable',
1829
- type: 'function',
1830
2765
  },
1831
2766
  {
2767
+ stateMutability: 'nonpayable',
2768
+ type: 'function',
2769
+ name: 'removeLiquidityConcentrated',
1832
2770
  inputs: [
1833
2771
  {
1834
2772
  name: '_legoId',
@@ -1855,7 +2793,6 @@ export const abi = [
1855
2793
  type: 'address',
1856
2794
  },
1857
2795
  ],
1858
- name: 'removeLiquidity',
1859
2796
  outputs: [
1860
2797
  {
1861
2798
  name: '',
@@ -1871,13 +2808,14 @@ export const abi = [
1871
2808
  },
1872
2809
  {
1873
2810
  name: '',
1874
- type: 'bool',
2811
+ type: 'uint256',
1875
2812
  },
1876
2813
  ],
1877
- stateMutability: 'nonpayable',
1878
- type: 'function',
1879
2814
  },
1880
2815
  {
2816
+ stateMutability: 'nonpayable',
2817
+ type: 'function',
2818
+ name: 'removeLiquidityConcentrated',
1881
2819
  inputs: [
1882
2820
  {
1883
2821
  name: '_legoId',
@@ -1908,7 +2846,6 @@ export const abi = [
1908
2846
  type: 'uint256',
1909
2847
  },
1910
2848
  ],
1911
- name: 'removeLiquidity',
1912
2849
  outputs: [
1913
2850
  {
1914
2851
  name: '',
@@ -1924,13 +2861,14 @@ export const abi = [
1924
2861
  },
1925
2862
  {
1926
2863
  name: '',
1927
- type: 'bool',
2864
+ type: 'uint256',
1928
2865
  },
1929
2866
  ],
1930
- stateMutability: 'nonpayable',
1931
- type: 'function',
1932
2867
  },
1933
2868
  {
2869
+ stateMutability: 'nonpayable',
2870
+ type: 'function',
2871
+ name: 'removeLiquidityConcentrated',
1934
2872
  inputs: [
1935
2873
  {
1936
2874
  name: '_legoId',
@@ -1965,7 +2903,6 @@ export const abi = [
1965
2903
  type: 'uint256',
1966
2904
  },
1967
2905
  ],
1968
- name: 'removeLiquidity',
1969
2906
  outputs: [
1970
2907
  {
1971
2908
  name: '',
@@ -1981,13 +2918,14 @@ export const abi = [
1981
2918
  },
1982
2919
  {
1983
2920
  name: '',
1984
- type: 'bool',
2921
+ type: 'uint256',
1985
2922
  },
1986
2923
  ],
1987
- stateMutability: 'nonpayable',
1988
- type: 'function',
1989
2924
  },
1990
2925
  {
2926
+ stateMutability: 'nonpayable',
2927
+ type: 'function',
2928
+ name: 'removeLiquidityConcentrated',
1991
2929
  inputs: [
1992
2930
  {
1993
2931
  name: '_legoId',
@@ -2026,160 +2964,6 @@ export const abi = [
2026
2964
  type: 'uint256',
2027
2965
  },
2028
2966
  ],
2029
- name: 'removeLiquidity',
2030
- outputs: [
2031
- {
2032
- name: '',
2033
- type: 'uint256',
2034
- },
2035
- {
2036
- name: '',
2037
- type: 'uint256',
2038
- },
2039
- {
2040
- name: '',
2041
- type: 'uint256',
2042
- },
2043
- {
2044
- name: '',
2045
- type: 'bool',
2046
- },
2047
- ],
2048
- stateMutability: 'nonpayable',
2049
- type: 'function',
2050
- },
2051
- {
2052
- inputs: [
2053
- {
2054
- name: '_recipient',
2055
- type: 'address',
2056
- },
2057
- ],
2058
- name: 'transferFunds',
2059
- outputs: [
2060
- {
2061
- name: '',
2062
- type: 'uint256',
2063
- },
2064
- {
2065
- name: '',
2066
- type: 'uint256',
2067
- },
2068
- ],
2069
- stateMutability: 'nonpayable',
2070
- type: 'function',
2071
- },
2072
- {
2073
- inputs: [
2074
- {
2075
- name: '_recipient',
2076
- type: 'address',
2077
- },
2078
- {
2079
- name: '_amount',
2080
- type: 'uint256',
2081
- },
2082
- ],
2083
- name: 'transferFunds',
2084
- outputs: [
2085
- {
2086
- name: '',
2087
- type: 'uint256',
2088
- },
2089
- {
2090
- name: '',
2091
- type: 'uint256',
2092
- },
2093
- ],
2094
- stateMutability: 'nonpayable',
2095
- type: 'function',
2096
- },
2097
- {
2098
- inputs: [
2099
- {
2100
- name: '_recipient',
2101
- type: 'address',
2102
- },
2103
- {
2104
- name: '_amount',
2105
- type: 'uint256',
2106
- },
2107
- {
2108
- name: '_asset',
2109
- type: 'address',
2110
- },
2111
- ],
2112
- name: 'transferFunds',
2113
- outputs: [
2114
- {
2115
- name: '',
2116
- type: 'uint256',
2117
- },
2118
- {
2119
- name: '',
2120
- type: 'uint256',
2121
- },
2122
- ],
2123
- stateMutability: 'nonpayable',
2124
- type: 'function',
2125
- },
2126
- {
2127
- inputs: [],
2128
- name: 'convertEthToWeth',
2129
- outputs: [
2130
- {
2131
- name: '',
2132
- type: 'uint256',
2133
- },
2134
- {
2135
- name: '',
2136
- type: 'address',
2137
- },
2138
- {
2139
- name: '',
2140
- type: 'uint256',
2141
- },
2142
- ],
2143
- stateMutability: 'payable',
2144
- type: 'function',
2145
- },
2146
- {
2147
- inputs: [
2148
- {
2149
- name: '_amount',
2150
- type: 'uint256',
2151
- },
2152
- ],
2153
- name: 'convertEthToWeth',
2154
- outputs: [
2155
- {
2156
- name: '',
2157
- type: 'uint256',
2158
- },
2159
- {
2160
- name: '',
2161
- type: 'address',
2162
- },
2163
- {
2164
- name: '',
2165
- type: 'uint256',
2166
- },
2167
- ],
2168
- stateMutability: 'payable',
2169
- type: 'function',
2170
- },
2171
- {
2172
- inputs: [
2173
- {
2174
- name: '_amount',
2175
- type: 'uint256',
2176
- },
2177
- {
2178
- name: '_depositLegoId',
2179
- type: 'uint256',
2180
- },
2181
- ],
2182
- name: 'convertEthToWeth',
2183
2967
  outputs: [
2184
2968
  {
2185
2969
  name: '',
@@ -2187,166 +2971,244 @@ export const abi = [
2187
2971
  },
2188
2972
  {
2189
2973
  name: '',
2190
- type: 'address',
2974
+ type: 'uint256',
2975
+ },
2976
+ {
2977
+ name: '',
2978
+ type: 'uint256',
2191
2979
  },
2192
2980
  {
2193
2981
  name: '',
2194
2982
  type: 'uint256',
2195
2983
  },
2196
2984
  ],
2197
- stateMutability: 'payable',
2198
- type: 'function',
2199
2985
  },
2200
2986
  {
2987
+ stateMutability: 'nonpayable',
2988
+ type: 'function',
2989
+ name: 'removeLiquidityConcentrated',
2201
2990
  inputs: [
2202
2991
  {
2203
- name: '_amount',
2992
+ name: '_legoId',
2204
2993
  type: 'uint256',
2205
2994
  },
2206
2995
  {
2207
- name: '_depositLegoId',
2996
+ name: '_nftAddr',
2997
+ type: 'address',
2998
+ },
2999
+ {
3000
+ name: '_nftTokenId',
2208
3001
  type: 'uint256',
2209
3002
  },
2210
3003
  {
2211
- name: '_depositVault',
3004
+ name: '_pool',
2212
3005
  type: 'address',
2213
3006
  },
2214
- ],
2215
- name: 'convertEthToWeth',
2216
- outputs: [
2217
3007
  {
2218
- name: '',
2219
- type: 'uint256',
3008
+ name: '_tokenA',
3009
+ type: 'address',
2220
3010
  },
2221
3011
  {
2222
- name: '',
3012
+ name: '_tokenB',
2223
3013
  type: 'address',
2224
3014
  },
2225
3015
  {
2226
- name: '',
3016
+ name: '_liqToRemove',
2227
3017
  type: 'uint256',
2228
3018
  },
2229
- ],
2230
- stateMutability: 'payable',
2231
- type: 'function',
2232
- },
2233
- {
2234
- inputs: [],
2235
- name: 'convertWethToEth',
2236
- outputs: [
2237
3019
  {
2238
- name: '',
3020
+ name: '_minAmountA',
2239
3021
  type: 'uint256',
2240
3022
  },
2241
- ],
2242
- stateMutability: 'nonpayable',
2243
- type: 'function',
2244
- },
2245
- {
2246
- inputs: [
2247
3023
  {
2248
- name: '_amount',
3024
+ name: '_minAmountB',
2249
3025
  type: 'uint256',
2250
3026
  },
3027
+ {
3028
+ name: '_extraData',
3029
+ type: 'bytes32',
3030
+ },
2251
3031
  ],
2252
- name: 'convertWethToEth',
2253
3032
  outputs: [
2254
3033
  {
2255
3034
  name: '',
2256
3035
  type: 'uint256',
2257
3036
  },
2258
- ],
2259
- stateMutability: 'nonpayable',
2260
- type: 'function',
2261
- },
2262
- {
2263
- inputs: [
2264
3037
  {
2265
- name: '_amount',
3038
+ name: '',
2266
3039
  type: 'uint256',
2267
3040
  },
2268
3041
  {
2269
- name: '_recipient',
2270
- type: 'address',
3042
+ name: '',
3043
+ type: 'uint256',
2271
3044
  },
2272
- ],
2273
- name: 'convertWethToEth',
2274
- outputs: [
2275
3045
  {
2276
3046
  name: '',
2277
3047
  type: 'uint256',
2278
3048
  },
2279
3049
  ],
2280
- stateMutability: 'nonpayable',
2281
- type: 'function',
2282
3050
  },
2283
3051
  {
3052
+ stateMutability: 'nonpayable',
3053
+ type: 'function',
3054
+ name: 'updateAssetData',
2284
3055
  inputs: [
2285
3056
  {
2286
- name: '_amount',
3057
+ name: '_legoId',
2287
3058
  type: 'uint256',
2288
3059
  },
2289
3060
  {
2290
- name: '_recipient',
3061
+ name: '_asset',
2291
3062
  type: 'address',
2292
3063
  },
2293
3064
  {
2294
- name: '_withdrawLegoId',
3065
+ name: '_shouldCheckYield',
3066
+ type: 'bool',
3067
+ },
3068
+ {
3069
+ name: '_prevTotalUsdValue',
2295
3070
  type: 'uint256',
2296
3071
  },
2297
3072
  ],
2298
- name: 'convertWethToEth',
2299
3073
  outputs: [
2300
3074
  {
2301
3075
  name: '',
2302
3076
  type: 'uint256',
2303
3077
  },
2304
3078
  ],
2305
- stateMutability: 'nonpayable',
2306
- type: 'function',
2307
3079
  },
2308
3080
  {
3081
+ stateMutability: 'nonpayable',
3082
+ type: 'function',
3083
+ name: 'updateAssetData',
2309
3084
  inputs: [
2310
3085
  {
2311
- name: '_amount',
3086
+ name: '_legoId',
2312
3087
  type: 'uint256',
2313
3088
  },
2314
3089
  {
2315
- name: '_recipient',
3090
+ name: '_asset',
2316
3091
  type: 'address',
2317
3092
  },
2318
3093
  {
2319
- name: '_withdrawLegoId',
3094
+ name: '_shouldCheckYield',
3095
+ type: 'bool',
3096
+ },
3097
+ {
3098
+ name: '_prevTotalUsdValue',
2320
3099
  type: 'uint256',
2321
3100
  },
2322
3101
  {
2323
- name: '_withdrawVaultToken',
2324
- type: 'address',
3102
+ name: '_ad',
3103
+ type: 'tuple',
3104
+ components: [
3105
+ {
3106
+ name: 'ledger',
3107
+ type: 'address',
3108
+ },
3109
+ {
3110
+ name: 'missionControl',
3111
+ type: 'address',
3112
+ },
3113
+ {
3114
+ name: 'legoBook',
3115
+ type: 'address',
3116
+ },
3117
+ {
3118
+ name: 'hatchery',
3119
+ type: 'address',
3120
+ },
3121
+ {
3122
+ name: 'lootDistributor',
3123
+ type: 'address',
3124
+ },
3125
+ {
3126
+ name: 'appraiser',
3127
+ type: 'address',
3128
+ },
3129
+ {
3130
+ name: 'billing',
3131
+ type: 'address',
3132
+ },
3133
+ {
3134
+ name: 'wallet',
3135
+ type: 'address',
3136
+ },
3137
+ {
3138
+ name: 'walletConfig',
3139
+ type: 'address',
3140
+ },
3141
+ {
3142
+ name: 'walletOwner',
3143
+ type: 'address',
3144
+ },
3145
+ {
3146
+ name: 'inEjectMode',
3147
+ type: 'bool',
3148
+ },
3149
+ {
3150
+ name: 'isFrozen',
3151
+ type: 'bool',
3152
+ },
3153
+ {
3154
+ name: 'lastTotalUsdValue',
3155
+ type: 'uint256',
3156
+ },
3157
+ {
3158
+ name: 'signer',
3159
+ type: 'address',
3160
+ },
3161
+ {
3162
+ name: 'isManager',
3163
+ type: 'bool',
3164
+ },
3165
+ {
3166
+ name: 'legoId',
3167
+ type: 'uint256',
3168
+ },
3169
+ {
3170
+ name: 'legoAddr',
3171
+ type: 'address',
3172
+ },
3173
+ {
3174
+ name: 'eth',
3175
+ type: 'address',
3176
+ },
3177
+ {
3178
+ name: 'weth',
3179
+ type: 'address',
3180
+ },
3181
+ ],
2325
3182
  },
2326
3183
  ],
2327
- name: 'convertWethToEth',
2328
3184
  outputs: [
2329
3185
  {
2330
3186
  name: '',
2331
3187
  type: 'uint256',
2332
3188
  },
2333
3189
  ],
2334
- stateMutability: 'nonpayable',
2335
- type: 'function',
2336
3190
  },
2337
3191
  {
2338
- inputs: [],
2339
- name: 'clawBackTrialFunds',
3192
+ stateMutability: 'nonpayable',
3193
+ type: 'function',
3194
+ name: 'deregisterAsset',
3195
+ inputs: [
3196
+ {
3197
+ name: '_asset',
3198
+ type: 'address',
3199
+ },
3200
+ ],
2340
3201
  outputs: [
2341
3202
  {
2342
3203
  name: '',
2343
3204
  type: 'bool',
2344
3205
  },
2345
3206
  ],
2346
- stateMutability: 'nonpayable',
2347
- type: 'function',
2348
3207
  },
2349
3208
  {
3209
+ stateMutability: 'nonpayable',
3210
+ type: 'function',
3211
+ name: 'recoverNft',
2350
3212
  inputs: [
2351
3213
  {
2352
3214
  name: '_collection',
@@ -2356,131 +3218,172 @@ export const abi = [
2356
3218
  name: '_nftTokenId',
2357
3219
  type: 'uint256',
2358
3220
  },
2359
- ],
2360
- name: 'recoverNft',
2361
- outputs: [
2362
3221
  {
2363
- name: '',
2364
- type: 'bool',
3222
+ name: '_recipient',
3223
+ type: 'address',
2365
3224
  },
2366
3225
  ],
2367
- stateMutability: 'nonpayable',
2368
- type: 'function',
3226
+ outputs: [],
2369
3227
  },
2370
3228
  {
3229
+ stateMutability: 'nonpayable',
3230
+ type: 'function',
3231
+ name: 'setLegoAccessForAction',
2371
3232
  inputs: [
2372
3233
  {
2373
- name: '_newWallet',
3234
+ name: '_legoAddr',
2374
3235
  type: 'address',
2375
3236
  },
2376
3237
  {
2377
- name: '_assetsToMigrate',
2378
- type: 'address[]',
2379
- },
2380
- {
2381
- name: '_whitelistToMigrate',
2382
- type: 'address[]',
3238
+ name: '_action',
3239
+ type: 'uint256',
2383
3240
  },
2384
3241
  ],
2385
- name: 'migrateWalletOut',
2386
3242
  outputs: [
2387
3243
  {
2388
3244
  name: '',
2389
3245
  type: 'bool',
2390
3246
  },
2391
3247
  ],
2392
- stateMutability: 'nonpayable',
2393
- type: 'function',
2394
3248
  },
2395
3249
  {
2396
- inputs: [],
3250
+ stateMutability: 'view',
3251
+ type: 'function',
2397
3252
  name: 'walletConfig',
3253
+ inputs: [],
2398
3254
  outputs: [
2399
3255
  {
2400
3256
  name: '',
2401
3257
  type: 'address',
2402
3258
  },
2403
3259
  ],
3260
+ },
3261
+ {
2404
3262
  stateMutability: 'view',
2405
3263
  type: 'function',
3264
+ name: 'assetData',
3265
+ inputs: [
3266
+ {
3267
+ name: 'arg0',
3268
+ type: 'address',
3269
+ },
3270
+ ],
3271
+ outputs: [
3272
+ {
3273
+ name: '',
3274
+ type: 'tuple',
3275
+ components: [
3276
+ {
3277
+ name: 'assetBalance',
3278
+ type: 'uint256',
3279
+ },
3280
+ {
3281
+ name: 'usdValue',
3282
+ type: 'uint256',
3283
+ },
3284
+ {
3285
+ name: 'isYieldAsset',
3286
+ type: 'bool',
3287
+ },
3288
+ {
3289
+ name: 'lastPricePerShare',
3290
+ type: 'uint256',
3291
+ },
3292
+ ],
3293
+ },
3294
+ ],
2406
3295
  },
2407
3296
  {
2408
- inputs: [],
2409
- name: 'trialFundsAsset',
3297
+ stateMutability: 'view',
3298
+ type: 'function',
3299
+ name: 'assets',
3300
+ inputs: [
3301
+ {
3302
+ name: 'arg0',
3303
+ type: 'uint256',
3304
+ },
3305
+ ],
2410
3306
  outputs: [
2411
3307
  {
2412
3308
  name: '',
2413
3309
  type: 'address',
2414
3310
  },
2415
3311
  ],
3312
+ },
3313
+ {
2416
3314
  stateMutability: 'view',
2417
3315
  type: 'function',
3316
+ name: 'indexOfAsset',
3317
+ inputs: [
3318
+ {
3319
+ name: 'arg0',
3320
+ type: 'address',
3321
+ },
3322
+ ],
3323
+ outputs: [
3324
+ {
3325
+ name: '',
3326
+ type: 'uint256',
3327
+ },
3328
+ ],
2418
3329
  },
2419
3330
  {
3331
+ stateMutability: 'view',
3332
+ type: 'function',
3333
+ name: 'numAssets',
2420
3334
  inputs: [],
2421
- name: 'trialFundsInitialAmount',
2422
3335
  outputs: [
2423
3336
  {
2424
3337
  name: '',
2425
3338
  type: 'uint256',
2426
3339
  },
2427
3340
  ],
2428
- stateMutability: 'view',
2429
- type: 'function',
2430
3341
  },
2431
3342
  {
3343
+ stateMutability: 'view',
3344
+ type: 'function',
3345
+ name: 'WETH',
2432
3346
  inputs: [],
2433
- name: 'wethAddr',
2434
3347
  outputs: [
2435
3348
  {
2436
3349
  name: '',
2437
3350
  type: 'address',
2438
3351
  },
2439
3352
  ],
2440
- stateMutability: 'view',
2441
- type: 'function',
2442
3353
  },
2443
3354
  {
3355
+ stateMutability: 'view',
3356
+ type: 'function',
3357
+ name: 'ETH',
2444
3358
  inputs: [],
2445
- name: 'ADDY_REGISTRY',
2446
3359
  outputs: [
2447
3360
  {
2448
3361
  name: '',
2449
3362
  type: 'address',
2450
3363
  },
2451
3364
  ],
2452
- stateMutability: 'view',
2453
- type: 'function',
2454
3365
  },
2455
3366
  {
3367
+ stateMutability: 'nonpayable',
3368
+ type: 'constructor',
2456
3369
  inputs: [
2457
- {
2458
- name: '_walletConfig',
2459
- type: 'address',
2460
- },
2461
- {
2462
- name: '_addyRegistry',
2463
- type: 'address',
2464
- },
2465
3370
  {
2466
3371
  name: '_wethAddr',
2467
3372
  type: 'address',
2468
3373
  },
2469
3374
  {
2470
- name: '_trialFundsAsset',
3375
+ name: '_ethAddr',
2471
3376
  type: 'address',
2472
3377
  },
2473
3378
  {
2474
- name: '_trialFundsInitialAmount',
2475
- type: 'uint256',
3379
+ name: '_walletConfig',
3380
+ type: 'address',
2476
3381
  },
2477
3382
  ],
2478
3383
  outputs: [],
2479
- stateMutability: 'nonpayable',
2480
- type: 'constructor',
2481
3384
  },
2482
3385
  ];
2483
- export const deployAddress = '0xe43D5bD11a2A6A9348EFC516ad9Ac3D32164A5A0';
3386
+ export const deployAddress = '0x5aB75ef37A30736f38F637a9129348AD327EfD08';
2484
3387
  function getRequest(method, args, contractAddressOrOptions) {
2485
3388
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2486
3389
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2511,12 +3414,13 @@ function getRequest(method, args, contractAddressOrOptions) {
2511
3414
  export const call = {
2512
3415
  onERC721Received: (...args) => getRequest('onERC721Received', args),
2513
3416
  apiVersion: (...args) => getRequest('apiVersion', args),
2514
- canBeAmbassador: (...args) => getRequest('canBeAmbassador', args),
2515
3417
  walletConfig: (...args) => getRequest('walletConfig', args),
2516
- trialFundsAsset: (...args) => getRequest('trialFundsAsset', args),
2517
- trialFundsInitialAmount: (...args) => getRequest('trialFundsInitialAmount', args),
2518
- wethAddr: (...args) => getRequest('wethAddr', args),
2519
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
3418
+ assetData: (...args) => getRequest('assetData', args),
3419
+ assets: (...args) => getRequest('assets', args),
3420
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
3421
+ numAssets: (...args) => getRequest('numAssets', args),
3422
+ WETH: (...args) => getRequest('WETH', args),
3423
+ ETH: (...args) => getRequest('ETH', args),
2520
3424
  };
2521
3425
  function getMutation(functionName) {
2522
3426
  return {
@@ -2528,21 +3432,28 @@ function getMutation(functionName) {
2528
3432
  };
2529
3433
  }
2530
3434
  export const mutation = {
2531
- depositTokens: getMutation('depositTokens'),
2532
- withdrawTokens: getMutation('withdrawTokens'),
2533
- rebalance: getMutation('rebalance'),
3435
+ transferFunds: getMutation('transferFunds'),
3436
+ depositForYield: getMutation('depositForYield'),
3437
+ withdrawFromYield: getMutation('withdrawFromYield'),
3438
+ rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
2534
3439
  swapTokens: getMutation('swapTokens'),
3440
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3441
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3442
+ addCollateral: getMutation('addCollateral'),
3443
+ removeCollateral: getMutation('removeCollateral'),
2535
3444
  borrow: getMutation('borrow'),
2536
3445
  repayDebt: getMutation('repayDebt'),
2537
3446
  claimRewards: getMutation('claimRewards'),
3447
+ convertWethToEth: getMutation('convertWethToEth'),
3448
+ convertEthToWeth: getMutation('convertEthToWeth'),
2538
3449
  addLiquidity: getMutation('addLiquidity'),
2539
3450
  removeLiquidity: getMutation('removeLiquidity'),
2540
- transferFunds: getMutation('transferFunds'),
2541
- convertEthToWeth: getMutation('convertEthToWeth'),
2542
- convertWethToEth: getMutation('convertWethToEth'),
2543
- clawBackTrialFunds: getMutation('clawBackTrialFunds'),
3451
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3452
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3453
+ updateAssetData: getMutation('updateAssetData'),
3454
+ deregisterAsset: getMutation('deregisterAsset'),
2544
3455
  recoverNft: getMutation('recoverNft'),
2545
- migrateWalletOut: getMutation('migrateWalletOut'),
3456
+ setLegoAccessForAction: getMutation('setLegoAccessForAction'),
2546
3457
  };
2547
3458
  export function toSdk(deployAddress, publicClient, walletClient) {
2548
3459
  return {
@@ -2551,27 +3462,35 @@ export function toSdk(deployAddress, publicClient, walletClient) {
2551
3462
  // Queries
2552
3463
  onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args).at(deployAddress)),
2553
3464
  apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
2554
- canBeAmbassador: (...args) => singleQuery(publicClient, call.canBeAmbassador(...args).at(deployAddress)),
2555
3465
  walletConfig: (...args) => singleQuery(publicClient, call.walletConfig(...args).at(deployAddress)),
2556
- trialFundsAsset: (...args) => singleQuery(publicClient, call.trialFundsAsset(...args).at(deployAddress)),
2557
- trialFundsInitialAmount: (...args) => singleQuery(publicClient, call.trialFundsInitialAmount(...args).at(deployAddress)),
2558
- wethAddr: (...args) => singleQuery(publicClient, call.wethAddr(...args).at(deployAddress)),
2559
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args).at(deployAddress)),
3466
+ assetData: (...args) => singleQuery(publicClient, call.assetData(...args).at(deployAddress)),
3467
+ assets: (...args) => singleQuery(publicClient, call.assets(...args).at(deployAddress)),
3468
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args).at(deployAddress)),
3469
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args).at(deployAddress)),
3470
+ WETH: (...args) => singleQuery(publicClient, call.WETH(...args).at(deployAddress)),
3471
+ ETH: (...args) => singleQuery(publicClient, call.ETH(...args).at(deployAddress)),
2560
3472
  // Mutations
2561
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
2562
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
2563
- rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address: deployAddress })(...args),
3473
+ transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
3474
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress })(...args),
3475
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress })(...args),
3476
+ rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress })(...args),
2564
3477
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
3478
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { address: deployAddress })(...args),
3479
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { address: deployAddress })(...args),
3480
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress })(...args),
3481
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress })(...args),
2565
3482
  borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
2566
3483
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
2567
3484
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
3485
+ convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
3486
+ convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
2568
3487
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
2569
3488
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
2570
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
2571
- convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
2572
- convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
2573
- clawBackTrialFunds: (...args) => mutate(walletClient, mutation.clawBackTrialFunds, { address: deployAddress })(...args),
3489
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { address: deployAddress })(...args),
3490
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { address: deployAddress })(...args),
3491
+ updateAssetData: (...args) => mutate(walletClient, mutation.updateAssetData, { address: deployAddress })(...args),
3492
+ deregisterAsset: (...args) => mutate(walletClient, mutation.deregisterAsset, { address: deployAddress })(...args),
2574
3493
  recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress })(...args),
2575
- migrateWalletOut: (...args) => mutate(walletClient, mutation.migrateWalletOut, { address: deployAddress })(...args),
3494
+ setLegoAccessForAction: (...args) => mutate(walletClient, mutation.setLegoAccessForAction, { address: deployAddress })(...args),
2576
3495
  };
2577
3496
  }