@underscore-finance/sdk 1.0.11 → 1.1.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 (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -1,2577 +0,0 @@
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: 'asset',
612
- type: 'address',
613
- },
614
- {
615
- indexed: true,
616
- name: 'protocolRecipient',
617
- type: 'address',
618
- },
619
- {
620
- indexed: false,
621
- name: 'protocolAmount',
622
- type: 'uint256',
623
- },
624
- {
625
- indexed: true,
626
- name: 'ambassadorRecipient',
627
- type: 'address',
628
- },
629
- {
630
- indexed: false,
631
- name: 'ambassadorAmount',
632
- type: 'uint256',
633
- },
634
- {
635
- indexed: false,
636
- name: 'fee',
637
- type: 'uint256',
638
- },
639
- {
640
- indexed: false,
641
- name: 'action',
642
- type: 'uint256',
643
- },
644
- ],
645
- name: 'UserWalletTransactionFeePaid',
646
- type: 'event',
647
- },
648
- {
649
- anonymous: false,
650
- inputs: [
651
- {
652
- indexed: true,
653
- name: 'asset',
654
- type: 'address',
655
- },
656
- {
657
- indexed: false,
658
- name: 'amountRecovered',
659
- type: 'uint256',
660
- },
661
- {
662
- indexed: false,
663
- name: 'remainingAmount',
664
- type: 'uint256',
665
- },
666
- ],
667
- name: 'UserWalletTrialFundsRecovered',
668
- type: 'event',
669
- },
670
- {
671
- anonymous: false,
672
- inputs: [
673
- {
674
- indexed: true,
675
- name: 'collection',
676
- type: 'address',
677
- },
678
- {
679
- indexed: false,
680
- name: 'nftTokenId',
681
- type: 'uint256',
682
- },
683
- {
684
- indexed: true,
685
- name: 'owner',
686
- type: 'address',
687
- },
688
- ],
689
- name: 'UserWalletNftRecovered',
690
- type: 'event',
691
- },
692
- {
693
- stateMutability: 'payable',
694
- type: 'fallback',
695
- },
696
- {
697
- inputs: [
698
- {
699
- name: '_operator',
700
- type: 'address',
701
- },
702
- {
703
- name: '_owner',
704
- type: 'address',
705
- },
706
- {
707
- name: '_tokenId',
708
- type: 'uint256',
709
- },
710
- {
711
- name: '_data',
712
- type: 'bytes',
713
- },
714
- ],
715
- name: 'onERC721Received',
716
- outputs: [
717
- {
718
- name: '',
719
- type: 'bytes4',
720
- },
721
- ],
722
- stateMutability: 'view',
723
- type: 'function',
724
- },
725
- {
726
- inputs: [],
727
- name: 'apiVersion',
728
- outputs: [
729
- {
730
- name: '',
731
- type: 'string',
732
- },
733
- ],
734
- stateMutability: 'pure',
735
- type: 'function',
736
- },
737
- {
738
- inputs: [],
739
- name: 'canBeAmbassador',
740
- outputs: [
741
- {
742
- name: '',
743
- type: 'bool',
744
- },
745
- ],
746
- stateMutability: 'view',
747
- type: 'function',
748
- },
749
- {
750
- inputs: [
751
- {
752
- name: '_legoId',
753
- type: 'uint256',
754
- },
755
- {
756
- name: '_asset',
757
- type: 'address',
758
- },
759
- {
760
- name: '_vault',
761
- type: 'address',
762
- },
763
- ],
764
- name: 'depositTokens',
765
- outputs: [
766
- {
767
- name: '',
768
- type: 'uint256',
769
- },
770
- {
771
- name: '',
772
- type: 'address',
773
- },
774
- {
775
- name: '',
776
- type: 'uint256',
777
- },
778
- {
779
- name: '',
780
- type: 'uint256',
781
- },
782
- ],
783
- stateMutability: 'nonpayable',
784
- type: 'function',
785
- },
786
- {
787
- inputs: [
788
- {
789
- name: '_legoId',
790
- type: 'uint256',
791
- },
792
- {
793
- name: '_asset',
794
- type: 'address',
795
- },
796
- {
797
- name: '_vault',
798
- type: 'address',
799
- },
800
- {
801
- name: '_amount',
802
- type: 'uint256',
803
- },
804
- ],
805
- name: 'depositTokens',
806
- outputs: [
807
- {
808
- name: '',
809
- type: 'uint256',
810
- },
811
- {
812
- name: '',
813
- type: 'address',
814
- },
815
- {
816
- name: '',
817
- type: 'uint256',
818
- },
819
- {
820
- name: '',
821
- type: 'uint256',
822
- },
823
- ],
824
- stateMutability: 'nonpayable',
825
- type: 'function',
826
- },
827
- {
828
- inputs: [
829
- {
830
- name: '_legoId',
831
- type: 'uint256',
832
- },
833
- {
834
- name: '_asset',
835
- type: 'address',
836
- },
837
- {
838
- name: '_vaultToken',
839
- type: 'address',
840
- },
841
- ],
842
- name: 'withdrawTokens',
843
- outputs: [
844
- {
845
- name: '',
846
- type: 'uint256',
847
- },
848
- {
849
- name: '',
850
- type: 'uint256',
851
- },
852
- {
853
- name: '',
854
- type: 'uint256',
855
- },
856
- ],
857
- stateMutability: 'nonpayable',
858
- type: 'function',
859
- },
860
- {
861
- inputs: [
862
- {
863
- name: '_legoId',
864
- type: 'uint256',
865
- },
866
- {
867
- name: '_asset',
868
- type: 'address',
869
- },
870
- {
871
- name: '_vaultToken',
872
- type: 'address',
873
- },
874
- {
875
- name: '_vaultTokenAmount',
876
- type: 'uint256',
877
- },
878
- ],
879
- name: 'withdrawTokens',
880
- outputs: [
881
- {
882
- name: '',
883
- type: 'uint256',
884
- },
885
- {
886
- name: '',
887
- type: 'uint256',
888
- },
889
- {
890
- name: '',
891
- type: 'uint256',
892
- },
893
- ],
894
- stateMutability: 'nonpayable',
895
- type: 'function',
896
- },
897
- {
898
- inputs: [
899
- {
900
- name: '_fromLegoId',
901
- type: 'uint256',
902
- },
903
- {
904
- name: '_fromAsset',
905
- type: 'address',
906
- },
907
- {
908
- name: '_fromVaultToken',
909
- type: 'address',
910
- },
911
- {
912
- name: '_toLegoId',
913
- type: 'uint256',
914
- },
915
- {
916
- name: '_toVault',
917
- type: 'address',
918
- },
919
- ],
920
- name: 'rebalance',
921
- outputs: [
922
- {
923
- name: '',
924
- type: 'uint256',
925
- },
926
- {
927
- name: '',
928
- type: 'address',
929
- },
930
- {
931
- name: '',
932
- type: 'uint256',
933
- },
934
- {
935
- name: '',
936
- type: 'uint256',
937
- },
938
- ],
939
- stateMutability: 'nonpayable',
940
- type: 'function',
941
- },
942
- {
943
- inputs: [
944
- {
945
- name: '_fromLegoId',
946
- type: 'uint256',
947
- },
948
- {
949
- name: '_fromAsset',
950
- type: 'address',
951
- },
952
- {
953
- name: '_fromVaultToken',
954
- type: 'address',
955
- },
956
- {
957
- name: '_toLegoId',
958
- type: 'uint256',
959
- },
960
- {
961
- name: '_toVault',
962
- type: 'address',
963
- },
964
- {
965
- name: '_fromVaultTokenAmount',
966
- type: 'uint256',
967
- },
968
- ],
969
- name: 'rebalance',
970
- outputs: [
971
- {
972
- name: '',
973
- type: 'uint256',
974
- },
975
- {
976
- name: '',
977
- type: 'address',
978
- },
979
- {
980
- name: '',
981
- type: 'uint256',
982
- },
983
- {
984
- name: '',
985
- type: 'uint256',
986
- },
987
- ],
988
- stateMutability: 'nonpayable',
989
- type: 'function',
990
- },
991
- {
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
- stateMutability: 'nonpayable',
1036
- type: 'function',
1037
- },
1038
- {
1039
- inputs: [
1040
- {
1041
- name: '_legoId',
1042
- type: 'uint256',
1043
- },
1044
- ],
1045
- name: 'borrow',
1046
- outputs: [
1047
- {
1048
- name: '',
1049
- type: 'address',
1050
- },
1051
- {
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',
1068
- },
1069
- {
1070
- name: '_borrowAsset',
1071
- type: 'address',
1072
- },
1073
- ],
1074
- name: 'borrow',
1075
- outputs: [
1076
- {
1077
- name: '',
1078
- type: 'address',
1079
- },
1080
- {
1081
- name: '',
1082
- type: 'uint256',
1083
- },
1084
- {
1085
- name: '',
1086
- type: 'uint256',
1087
- },
1088
- ],
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
- },
1102
- {
1103
- name: '_amount',
1104
- type: 'uint256',
1105
- },
1106
- ],
1107
- name: 'borrow',
1108
- outputs: [
1109
- {
1110
- name: '',
1111
- type: 'address',
1112
- },
1113
- {
1114
- name: '',
1115
- type: 'uint256',
1116
- },
1117
- {
1118
- name: '',
1119
- type: 'uint256',
1120
- },
1121
- ],
1122
- stateMutability: 'nonpayable',
1123
- type: 'function',
1124
- },
1125
- {
1126
- inputs: [
1127
- {
1128
- name: '_legoId',
1129
- type: 'uint256',
1130
- },
1131
- {
1132
- name: '_paymentAsset',
1133
- type: 'address',
1134
- },
1135
- ],
1136
- name: 'repayDebt',
1137
- outputs: [
1138
- {
1139
- name: '',
1140
- type: 'address',
1141
- },
1142
- {
1143
- name: '',
1144
- type: 'uint256',
1145
- },
1146
- {
1147
- name: '',
1148
- type: 'uint256',
1149
- },
1150
- {
1151
- name: '',
1152
- type: 'uint256',
1153
- },
1154
- ],
1155
- stateMutability: 'nonpayable',
1156
- type: 'function',
1157
- },
1158
- {
1159
- inputs: [
1160
- {
1161
- name: '_legoId',
1162
- type: 'uint256',
1163
- },
1164
- {
1165
- name: '_paymentAsset',
1166
- type: 'address',
1167
- },
1168
- {
1169
- name: '_paymentAmount',
1170
- type: 'uint256',
1171
- },
1172
- ],
1173
- name: 'repayDebt',
1174
- outputs: [
1175
- {
1176
- name: '',
1177
- type: 'address',
1178
- },
1179
- {
1180
- name: '',
1181
- type: 'uint256',
1182
- },
1183
- {
1184
- name: '',
1185
- type: 'uint256',
1186
- },
1187
- {
1188
- name: '',
1189
- type: 'uint256',
1190
- },
1191
- ],
1192
- stateMutability: 'nonpayable',
1193
- type: 'function',
1194
- },
1195
- {
1196
- inputs: [
1197
- {
1198
- name: '_legoId',
1199
- type: 'uint256',
1200
- },
1201
- ],
1202
- name: 'claimRewards',
1203
- outputs: [],
1204
- stateMutability: 'nonpayable',
1205
- type: 'function',
1206
- },
1207
- {
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
- stateMutability: 'nonpayable',
1221
- type: 'function',
1222
- },
1223
- {
1224
- inputs: [
1225
- {
1226
- name: '_legoId',
1227
- type: 'uint256',
1228
- },
1229
- {
1230
- name: '_market',
1231
- type: 'address',
1232
- },
1233
- {
1234
- name: '_rewardToken',
1235
- type: 'address',
1236
- },
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
- {
1250
- name: '_market',
1251
- type: 'address',
1252
- },
1253
- {
1254
- name: '_rewardToken',
1255
- type: 'address',
1256
- },
1257
- {
1258
- name: '_rewardAmount',
1259
- type: 'uint256',
1260
- },
1261
- ],
1262
- name: 'claimRewards',
1263
- outputs: [],
1264
- stateMutability: 'nonpayable',
1265
- type: 'function',
1266
- },
1267
- {
1268
- inputs: [
1269
- {
1270
- name: '_legoId',
1271
- type: 'uint256',
1272
- },
1273
- {
1274
- name: '_market',
1275
- type: 'address',
1276
- },
1277
- {
1278
- name: '_rewardToken',
1279
- type: 'address',
1280
- },
1281
- {
1282
- name: '_rewardAmount',
1283
- type: 'uint256',
1284
- },
1285
- {
1286
- name: '_proof',
1287
- type: 'bytes32',
1288
- },
1289
- ],
1290
- name: 'claimRewards',
1291
- outputs: [],
1292
- stateMutability: 'nonpayable',
1293
- type: 'function',
1294
- },
1295
- {
1296
- inputs: [
1297
- {
1298
- name: '_legoId',
1299
- type: 'uint256',
1300
- },
1301
- {
1302
- name: '_nftAddr',
1303
- type: 'address',
1304
- },
1305
- {
1306
- name: '_nftTokenId',
1307
- type: 'uint256',
1308
- },
1309
- {
1310
- name: '_pool',
1311
- type: 'address',
1312
- },
1313
- {
1314
- name: '_tokenA',
1315
- type: 'address',
1316
- },
1317
- {
1318
- name: '_tokenB',
1319
- type: 'address',
1320
- },
1321
- ],
1322
- name: 'addLiquidity',
1323
- outputs: [
1324
- {
1325
- name: '',
1326
- type: 'uint256',
1327
- },
1328
- {
1329
- name: '',
1330
- type: 'uint256',
1331
- },
1332
- {
1333
- name: '',
1334
- type: 'uint256',
1335
- },
1336
- {
1337
- name: '',
1338
- type: 'uint256',
1339
- },
1340
- {
1341
- name: '',
1342
- type: 'uint256',
1343
- },
1344
- ],
1345
- stateMutability: 'nonpayable',
1346
- type: 'function',
1347
- },
1348
- {
1349
- inputs: [
1350
- {
1351
- name: '_legoId',
1352
- type: 'uint256',
1353
- },
1354
- {
1355
- name: '_nftAddr',
1356
- type: 'address',
1357
- },
1358
- {
1359
- name: '_nftTokenId',
1360
- type: 'uint256',
1361
- },
1362
- {
1363
- name: '_pool',
1364
- type: 'address',
1365
- },
1366
- {
1367
- name: '_tokenA',
1368
- type: 'address',
1369
- },
1370
- {
1371
- name: '_tokenB',
1372
- type: 'address',
1373
- },
1374
- {
1375
- name: '_amountA',
1376
- type: 'uint256',
1377
- },
1378
- ],
1379
- name: 'addLiquidity',
1380
- outputs: [
1381
- {
1382
- name: '',
1383
- type: 'uint256',
1384
- },
1385
- {
1386
- name: '',
1387
- type: 'uint256',
1388
- },
1389
- {
1390
- name: '',
1391
- type: 'uint256',
1392
- },
1393
- {
1394
- name: '',
1395
- type: 'uint256',
1396
- },
1397
- {
1398
- name: '',
1399
- type: 'uint256',
1400
- },
1401
- ],
1402
- stateMutability: 'nonpayable',
1403
- type: 'function',
1404
- },
1405
- {
1406
- inputs: [
1407
- {
1408
- name: '_legoId',
1409
- type: 'uint256',
1410
- },
1411
- {
1412
- name: '_nftAddr',
1413
- type: 'address',
1414
- },
1415
- {
1416
- name: '_nftTokenId',
1417
- type: 'uint256',
1418
- },
1419
- {
1420
- name: '_pool',
1421
- type: 'address',
1422
- },
1423
- {
1424
- name: '_tokenA',
1425
- type: 'address',
1426
- },
1427
- {
1428
- name: '_tokenB',
1429
- type: 'address',
1430
- },
1431
- {
1432
- name: '_amountA',
1433
- type: 'uint256',
1434
- },
1435
- {
1436
- name: '_amountB',
1437
- type: 'uint256',
1438
- },
1439
- ],
1440
- name: 'addLiquidity',
1441
- outputs: [
1442
- {
1443
- name: '',
1444
- type: 'uint256',
1445
- },
1446
- {
1447
- name: '',
1448
- type: 'uint256',
1449
- },
1450
- {
1451
- name: '',
1452
- type: 'uint256',
1453
- },
1454
- {
1455
- name: '',
1456
- type: 'uint256',
1457
- },
1458
- {
1459
- name: '',
1460
- type: 'uint256',
1461
- },
1462
- ],
1463
- stateMutability: 'nonpayable',
1464
- type: 'function',
1465
- },
1466
- {
1467
- inputs: [
1468
- {
1469
- name: '_legoId',
1470
- type: 'uint256',
1471
- },
1472
- {
1473
- name: '_nftAddr',
1474
- type: 'address',
1475
- },
1476
- {
1477
- name: '_nftTokenId',
1478
- type: 'uint256',
1479
- },
1480
- {
1481
- name: '_pool',
1482
- type: 'address',
1483
- },
1484
- {
1485
- name: '_tokenA',
1486
- type: 'address',
1487
- },
1488
- {
1489
- name: '_tokenB',
1490
- type: 'address',
1491
- },
1492
- {
1493
- name: '_amountA',
1494
- type: 'uint256',
1495
- },
1496
- {
1497
- name: '_amountB',
1498
- type: 'uint256',
1499
- },
1500
- {
1501
- name: '_tickLower',
1502
- type: 'int24',
1503
- },
1504
- ],
1505
- name: 'addLiquidity',
1506
- outputs: [
1507
- {
1508
- name: '',
1509
- type: 'uint256',
1510
- },
1511
- {
1512
- name: '',
1513
- type: 'uint256',
1514
- },
1515
- {
1516
- name: '',
1517
- type: 'uint256',
1518
- },
1519
- {
1520
- name: '',
1521
- type: 'uint256',
1522
- },
1523
- {
1524
- name: '',
1525
- type: 'uint256',
1526
- },
1527
- ],
1528
- stateMutability: 'nonpayable',
1529
- type: 'function',
1530
- },
1531
- {
1532
- inputs: [
1533
- {
1534
- name: '_legoId',
1535
- type: 'uint256',
1536
- },
1537
- {
1538
- name: '_nftAddr',
1539
- type: 'address',
1540
- },
1541
- {
1542
- name: '_nftTokenId',
1543
- type: 'uint256',
1544
- },
1545
- {
1546
- name: '_pool',
1547
- type: 'address',
1548
- },
1549
- {
1550
- name: '_tokenA',
1551
- type: 'address',
1552
- },
1553
- {
1554
- name: '_tokenB',
1555
- type: 'address',
1556
- },
1557
- {
1558
- name: '_amountA',
1559
- type: 'uint256',
1560
- },
1561
- {
1562
- name: '_amountB',
1563
- type: 'uint256',
1564
- },
1565
- {
1566
- name: '_tickLower',
1567
- type: 'int24',
1568
- },
1569
- {
1570
- name: '_tickUpper',
1571
- type: 'int24',
1572
- },
1573
- ],
1574
- name: 'addLiquidity',
1575
- outputs: [
1576
- {
1577
- name: '',
1578
- type: 'uint256',
1579
- },
1580
- {
1581
- name: '',
1582
- type: 'uint256',
1583
- },
1584
- {
1585
- name: '',
1586
- type: 'uint256',
1587
- },
1588
- {
1589
- name: '',
1590
- type: 'uint256',
1591
- },
1592
- {
1593
- name: '',
1594
- type: 'uint256',
1595
- },
1596
- ],
1597
- stateMutability: 'nonpayable',
1598
- type: 'function',
1599
- },
1600
- {
1601
- inputs: [
1602
- {
1603
- name: '_legoId',
1604
- type: 'uint256',
1605
- },
1606
- {
1607
- name: '_nftAddr',
1608
- type: 'address',
1609
- },
1610
- {
1611
- name: '_nftTokenId',
1612
- type: 'uint256',
1613
- },
1614
- {
1615
- name: '_pool',
1616
- type: 'address',
1617
- },
1618
- {
1619
- name: '_tokenA',
1620
- type: 'address',
1621
- },
1622
- {
1623
- name: '_tokenB',
1624
- type: 'address',
1625
- },
1626
- {
1627
- name: '_amountA',
1628
- type: 'uint256',
1629
- },
1630
- {
1631
- name: '_amountB',
1632
- type: 'uint256',
1633
- },
1634
- {
1635
- name: '_tickLower',
1636
- type: 'int24',
1637
- },
1638
- {
1639
- name: '_tickUpper',
1640
- type: 'int24',
1641
- },
1642
- {
1643
- name: '_minAmountA',
1644
- type: 'uint256',
1645
- },
1646
- ],
1647
- name: 'addLiquidity',
1648
- outputs: [
1649
- {
1650
- name: '',
1651
- type: 'uint256',
1652
- },
1653
- {
1654
- name: '',
1655
- type: 'uint256',
1656
- },
1657
- {
1658
- name: '',
1659
- type: 'uint256',
1660
- },
1661
- {
1662
- name: '',
1663
- type: 'uint256',
1664
- },
1665
- {
1666
- name: '',
1667
- type: 'uint256',
1668
- },
1669
- ],
1670
- stateMutability: 'nonpayable',
1671
- type: 'function',
1672
- },
1673
- {
1674
- inputs: [
1675
- {
1676
- name: '_legoId',
1677
- type: 'uint256',
1678
- },
1679
- {
1680
- name: '_nftAddr',
1681
- type: 'address',
1682
- },
1683
- {
1684
- name: '_nftTokenId',
1685
- type: 'uint256',
1686
- },
1687
- {
1688
- name: '_pool',
1689
- type: 'address',
1690
- },
1691
- {
1692
- name: '_tokenA',
1693
- type: 'address',
1694
- },
1695
- {
1696
- name: '_tokenB',
1697
- type: 'address',
1698
- },
1699
- {
1700
- name: '_amountA',
1701
- type: 'uint256',
1702
- },
1703
- {
1704
- name: '_amountB',
1705
- type: 'uint256',
1706
- },
1707
- {
1708
- name: '_tickLower',
1709
- type: 'int24',
1710
- },
1711
- {
1712
- name: '_tickUpper',
1713
- type: 'int24',
1714
- },
1715
- {
1716
- name: '_minAmountA',
1717
- type: 'uint256',
1718
- },
1719
- {
1720
- name: '_minAmountB',
1721
- type: 'uint256',
1722
- },
1723
- ],
1724
- name: 'addLiquidity',
1725
- outputs: [
1726
- {
1727
- name: '',
1728
- type: 'uint256',
1729
- },
1730
- {
1731
- name: '',
1732
- type: 'uint256',
1733
- },
1734
- {
1735
- name: '',
1736
- type: 'uint256',
1737
- },
1738
- {
1739
- name: '',
1740
- type: 'uint256',
1741
- },
1742
- {
1743
- name: '',
1744
- type: 'uint256',
1745
- },
1746
- ],
1747
- stateMutability: 'nonpayable',
1748
- type: 'function',
1749
- },
1750
- {
1751
- inputs: [
1752
- {
1753
- name: '_legoId',
1754
- type: 'uint256',
1755
- },
1756
- {
1757
- name: '_nftAddr',
1758
- type: 'address',
1759
- },
1760
- {
1761
- name: '_nftTokenId',
1762
- type: 'uint256',
1763
- },
1764
- {
1765
- name: '_pool',
1766
- type: 'address',
1767
- },
1768
- {
1769
- name: '_tokenA',
1770
- type: 'address',
1771
- },
1772
- {
1773
- name: '_tokenB',
1774
- type: 'address',
1775
- },
1776
- {
1777
- name: '_amountA',
1778
- type: 'uint256',
1779
- },
1780
- {
1781
- name: '_amountB',
1782
- type: 'uint256',
1783
- },
1784
- {
1785
- name: '_tickLower',
1786
- type: 'int24',
1787
- },
1788
- {
1789
- name: '_tickUpper',
1790
- type: 'int24',
1791
- },
1792
- {
1793
- name: '_minAmountA',
1794
- type: 'uint256',
1795
- },
1796
- {
1797
- name: '_minAmountB',
1798
- type: 'uint256',
1799
- },
1800
- {
1801
- name: '_minLpAmount',
1802
- type: 'uint256',
1803
- },
1804
- ],
1805
- name: 'addLiquidity',
1806
- outputs: [
1807
- {
1808
- name: '',
1809
- type: 'uint256',
1810
- },
1811
- {
1812
- name: '',
1813
- type: 'uint256',
1814
- },
1815
- {
1816
- name: '',
1817
- type: 'uint256',
1818
- },
1819
- {
1820
- name: '',
1821
- type: 'uint256',
1822
- },
1823
- {
1824
- name: '',
1825
- type: 'uint256',
1826
- },
1827
- ],
1828
- stateMutability: 'nonpayable',
1829
- type: 'function',
1830
- },
1831
- {
1832
- inputs: [
1833
- {
1834
- name: '_legoId',
1835
- type: 'uint256',
1836
- },
1837
- {
1838
- name: '_nftAddr',
1839
- type: 'address',
1840
- },
1841
- {
1842
- name: '_nftTokenId',
1843
- type: 'uint256',
1844
- },
1845
- {
1846
- name: '_pool',
1847
- type: 'address',
1848
- },
1849
- {
1850
- name: '_tokenA',
1851
- type: 'address',
1852
- },
1853
- {
1854
- name: '_tokenB',
1855
- type: 'address',
1856
- },
1857
- ],
1858
- name: 'removeLiquidity',
1859
- outputs: [
1860
- {
1861
- name: '',
1862
- type: 'uint256',
1863
- },
1864
- {
1865
- name: '',
1866
- type: 'uint256',
1867
- },
1868
- {
1869
- name: '',
1870
- type: 'uint256',
1871
- },
1872
- {
1873
- name: '',
1874
- type: 'bool',
1875
- },
1876
- ],
1877
- stateMutability: 'nonpayable',
1878
- type: 'function',
1879
- },
1880
- {
1881
- inputs: [
1882
- {
1883
- name: '_legoId',
1884
- type: 'uint256',
1885
- },
1886
- {
1887
- name: '_nftAddr',
1888
- type: 'address',
1889
- },
1890
- {
1891
- name: '_nftTokenId',
1892
- type: 'uint256',
1893
- },
1894
- {
1895
- name: '_pool',
1896
- type: 'address',
1897
- },
1898
- {
1899
- name: '_tokenA',
1900
- type: 'address',
1901
- },
1902
- {
1903
- name: '_tokenB',
1904
- type: 'address',
1905
- },
1906
- {
1907
- name: '_liqToRemove',
1908
- type: 'uint256',
1909
- },
1910
- ],
1911
- name: 'removeLiquidity',
1912
- outputs: [
1913
- {
1914
- name: '',
1915
- type: 'uint256',
1916
- },
1917
- {
1918
- name: '',
1919
- type: 'uint256',
1920
- },
1921
- {
1922
- name: '',
1923
- type: 'uint256',
1924
- },
1925
- {
1926
- name: '',
1927
- type: 'bool',
1928
- },
1929
- ],
1930
- stateMutability: 'nonpayable',
1931
- type: 'function',
1932
- },
1933
- {
1934
- inputs: [
1935
- {
1936
- name: '_legoId',
1937
- type: 'uint256',
1938
- },
1939
- {
1940
- name: '_nftAddr',
1941
- type: 'address',
1942
- },
1943
- {
1944
- name: '_nftTokenId',
1945
- type: 'uint256',
1946
- },
1947
- {
1948
- name: '_pool',
1949
- type: 'address',
1950
- },
1951
- {
1952
- name: '_tokenA',
1953
- type: 'address',
1954
- },
1955
- {
1956
- name: '_tokenB',
1957
- type: 'address',
1958
- },
1959
- {
1960
- name: '_liqToRemove',
1961
- type: 'uint256',
1962
- },
1963
- {
1964
- name: '_minAmountA',
1965
- type: 'uint256',
1966
- },
1967
- ],
1968
- name: 'removeLiquidity',
1969
- outputs: [
1970
- {
1971
- name: '',
1972
- type: 'uint256',
1973
- },
1974
- {
1975
- name: '',
1976
- type: 'uint256',
1977
- },
1978
- {
1979
- name: '',
1980
- type: 'uint256',
1981
- },
1982
- {
1983
- name: '',
1984
- type: 'bool',
1985
- },
1986
- ],
1987
- stateMutability: 'nonpayable',
1988
- type: 'function',
1989
- },
1990
- {
1991
- inputs: [
1992
- {
1993
- name: '_legoId',
1994
- type: 'uint256',
1995
- },
1996
- {
1997
- name: '_nftAddr',
1998
- type: 'address',
1999
- },
2000
- {
2001
- name: '_nftTokenId',
2002
- type: 'uint256',
2003
- },
2004
- {
2005
- name: '_pool',
2006
- type: 'address',
2007
- },
2008
- {
2009
- name: '_tokenA',
2010
- type: 'address',
2011
- },
2012
- {
2013
- name: '_tokenB',
2014
- type: 'address',
2015
- },
2016
- {
2017
- name: '_liqToRemove',
2018
- type: 'uint256',
2019
- },
2020
- {
2021
- name: '_minAmountA',
2022
- type: 'uint256',
2023
- },
2024
- {
2025
- name: '_minAmountB',
2026
- type: 'uint256',
2027
- },
2028
- ],
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
- outputs: [
2184
- {
2185
- name: '',
2186
- type: 'uint256',
2187
- },
2188
- {
2189
- name: '',
2190
- type: 'address',
2191
- },
2192
- {
2193
- name: '',
2194
- type: 'uint256',
2195
- },
2196
- ],
2197
- stateMutability: 'payable',
2198
- type: 'function',
2199
- },
2200
- {
2201
- inputs: [
2202
- {
2203
- name: '_amount',
2204
- type: 'uint256',
2205
- },
2206
- {
2207
- name: '_depositLegoId',
2208
- type: 'uint256',
2209
- },
2210
- {
2211
- name: '_depositVault',
2212
- type: 'address',
2213
- },
2214
- ],
2215
- name: 'convertEthToWeth',
2216
- outputs: [
2217
- {
2218
- name: '',
2219
- type: 'uint256',
2220
- },
2221
- {
2222
- name: '',
2223
- type: 'address',
2224
- },
2225
- {
2226
- name: '',
2227
- type: 'uint256',
2228
- },
2229
- ],
2230
- stateMutability: 'payable',
2231
- type: 'function',
2232
- },
2233
- {
2234
- inputs: [],
2235
- name: 'convertWethToEth',
2236
- outputs: [
2237
- {
2238
- name: '',
2239
- type: 'uint256',
2240
- },
2241
- ],
2242
- stateMutability: 'nonpayable',
2243
- type: 'function',
2244
- },
2245
- {
2246
- inputs: [
2247
- {
2248
- name: '_amount',
2249
- type: 'uint256',
2250
- },
2251
- ],
2252
- name: 'convertWethToEth',
2253
- outputs: [
2254
- {
2255
- name: '',
2256
- type: 'uint256',
2257
- },
2258
- ],
2259
- stateMutability: 'nonpayable',
2260
- type: 'function',
2261
- },
2262
- {
2263
- inputs: [
2264
- {
2265
- name: '_amount',
2266
- type: 'uint256',
2267
- },
2268
- {
2269
- name: '_recipient',
2270
- type: 'address',
2271
- },
2272
- ],
2273
- name: 'convertWethToEth',
2274
- outputs: [
2275
- {
2276
- name: '',
2277
- type: 'uint256',
2278
- },
2279
- ],
2280
- stateMutability: 'nonpayable',
2281
- type: 'function',
2282
- },
2283
- {
2284
- inputs: [
2285
- {
2286
- name: '_amount',
2287
- type: 'uint256',
2288
- },
2289
- {
2290
- name: '_recipient',
2291
- type: 'address',
2292
- },
2293
- {
2294
- name: '_withdrawLegoId',
2295
- type: 'uint256',
2296
- },
2297
- ],
2298
- name: 'convertWethToEth',
2299
- outputs: [
2300
- {
2301
- name: '',
2302
- type: 'uint256',
2303
- },
2304
- ],
2305
- stateMutability: 'nonpayable',
2306
- type: 'function',
2307
- },
2308
- {
2309
- inputs: [
2310
- {
2311
- name: '_amount',
2312
- type: 'uint256',
2313
- },
2314
- {
2315
- name: '_recipient',
2316
- type: 'address',
2317
- },
2318
- {
2319
- name: '_withdrawLegoId',
2320
- type: 'uint256',
2321
- },
2322
- {
2323
- name: '_withdrawVaultToken',
2324
- type: 'address',
2325
- },
2326
- ],
2327
- name: 'convertWethToEth',
2328
- outputs: [
2329
- {
2330
- name: '',
2331
- type: 'uint256',
2332
- },
2333
- ],
2334
- stateMutability: 'nonpayable',
2335
- type: 'function',
2336
- },
2337
- {
2338
- inputs: [],
2339
- name: 'clawBackTrialFunds',
2340
- outputs: [
2341
- {
2342
- name: '',
2343
- type: 'bool',
2344
- },
2345
- ],
2346
- stateMutability: 'nonpayable',
2347
- type: 'function',
2348
- },
2349
- {
2350
- inputs: [
2351
- {
2352
- name: '_collection',
2353
- type: 'address',
2354
- },
2355
- {
2356
- name: '_nftTokenId',
2357
- type: 'uint256',
2358
- },
2359
- ],
2360
- name: 'recoverNft',
2361
- outputs: [
2362
- {
2363
- name: '',
2364
- type: 'bool',
2365
- },
2366
- ],
2367
- stateMutability: 'nonpayable',
2368
- type: 'function',
2369
- },
2370
- {
2371
- inputs: [
2372
- {
2373
- name: '_newWallet',
2374
- type: 'address',
2375
- },
2376
- {
2377
- name: '_assetsToMigrate',
2378
- type: 'address[]',
2379
- },
2380
- {
2381
- name: '_whitelistToMigrate',
2382
- type: 'address[]',
2383
- },
2384
- ],
2385
- name: 'migrateWalletOut',
2386
- outputs: [
2387
- {
2388
- name: '',
2389
- type: 'bool',
2390
- },
2391
- ],
2392
- stateMutability: 'nonpayable',
2393
- type: 'function',
2394
- },
2395
- {
2396
- inputs: [],
2397
- name: 'walletConfig',
2398
- outputs: [
2399
- {
2400
- name: '',
2401
- type: 'address',
2402
- },
2403
- ],
2404
- stateMutability: 'view',
2405
- type: 'function',
2406
- },
2407
- {
2408
- inputs: [],
2409
- name: 'trialFundsAsset',
2410
- outputs: [
2411
- {
2412
- name: '',
2413
- type: 'address',
2414
- },
2415
- ],
2416
- stateMutability: 'view',
2417
- type: 'function',
2418
- },
2419
- {
2420
- inputs: [],
2421
- name: 'trialFundsInitialAmount',
2422
- outputs: [
2423
- {
2424
- name: '',
2425
- type: 'uint256',
2426
- },
2427
- ],
2428
- stateMutability: 'view',
2429
- type: 'function',
2430
- },
2431
- {
2432
- inputs: [],
2433
- name: 'wethAddr',
2434
- outputs: [
2435
- {
2436
- name: '',
2437
- type: 'address',
2438
- },
2439
- ],
2440
- stateMutability: 'view',
2441
- type: 'function',
2442
- },
2443
- {
2444
- inputs: [],
2445
- name: 'ADDY_REGISTRY',
2446
- outputs: [
2447
- {
2448
- name: '',
2449
- type: 'address',
2450
- },
2451
- ],
2452
- stateMutability: 'view',
2453
- type: 'function',
2454
- },
2455
- {
2456
- inputs: [
2457
- {
2458
- name: '_walletConfig',
2459
- type: 'address',
2460
- },
2461
- {
2462
- name: '_addyRegistry',
2463
- type: 'address',
2464
- },
2465
- {
2466
- name: '_wethAddr',
2467
- type: 'address',
2468
- },
2469
- {
2470
- name: '_trialFundsAsset',
2471
- type: 'address',
2472
- },
2473
- {
2474
- name: '_trialFundsInitialAmount',
2475
- type: 'uint256',
2476
- },
2477
- ],
2478
- outputs: [],
2479
- stateMutability: 'nonpayable',
2480
- type: 'constructor',
2481
- },
2482
- ];
2483
- export const deployAddress = '0xe43D5bD11a2A6A9348EFC516ad9Ac3D32164A5A0';
2484
- function getRequest(method, args, contractAddressOrOptions) {
2485
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2486
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2487
- const call = {
2488
- contractName: 'v0_3_UserWallet',
2489
- method,
2490
- args,
2491
- address,
2492
- deployAddress,
2493
- defaultValue,
2494
- getAbi: () => abi,
2495
- with: (options) => {
2496
- call.address = options.contractAddress;
2497
- call.defaultValue = options.defaultValue;
2498
- return call;
2499
- },
2500
- defaultTo: (defaultValue) => {
2501
- call.defaultValue = defaultValue;
2502
- return call;
2503
- },
2504
- at: (address) => {
2505
- call.address = address;
2506
- return call;
2507
- },
2508
- };
2509
- return call;
2510
- }
2511
- export const call = {
2512
- onERC721Received: (...args) => getRequest('onERC721Received', args),
2513
- apiVersion: (...args) => getRequest('apiVersion', args),
2514
- canBeAmbassador: (...args) => getRequest('canBeAmbassador', args),
2515
- 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),
2520
- };
2521
- function getMutation(functionName) {
2522
- return {
2523
- contractName: 'v0_3_UserWallet',
2524
- functionName,
2525
- deployAddress,
2526
- argsType: undefined,
2527
- getAbi: () => abi,
2528
- };
2529
- }
2530
- export const mutation = {
2531
- depositTokens: getMutation('depositTokens'),
2532
- withdrawTokens: getMutation('withdrawTokens'),
2533
- rebalance: getMutation('rebalance'),
2534
- swapTokens: getMutation('swapTokens'),
2535
- borrow: getMutation('borrow'),
2536
- repayDebt: getMutation('repayDebt'),
2537
- claimRewards: getMutation('claimRewards'),
2538
- addLiquidity: getMutation('addLiquidity'),
2539
- removeLiquidity: getMutation('removeLiquidity'),
2540
- transferFunds: getMutation('transferFunds'),
2541
- convertEthToWeth: getMutation('convertEthToWeth'),
2542
- convertWethToEth: getMutation('convertWethToEth'),
2543
- clawBackTrialFunds: getMutation('clawBackTrialFunds'),
2544
- recoverNft: getMutation('recoverNft'),
2545
- migrateWalletOut: getMutation('migrateWalletOut'),
2546
- };
2547
- export function toSdk(deployAddress, publicClient, walletClient) {
2548
- return {
2549
- deployAddress,
2550
- abi,
2551
- // Queries
2552
- onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args).at(deployAddress)),
2553
- apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
2554
- canBeAmbassador: (...args) => singleQuery(publicClient, call.canBeAmbassador(...args).at(deployAddress)),
2555
- 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)),
2560
- // 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),
2564
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
2565
- borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
2566
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
2567
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
2568
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
2569
- 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),
2574
- recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress })(...args),
2575
- migrateWalletOut: (...args) => mutate(walletClient, mutation.migrateWalletOut, { address: deployAddress })(...args),
2576
- };
2577
- }