@underscore-finance/sdk 0.3.5 → 1.0.2

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