@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
@@ -5,515 +5,859 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
8
+ name: 'UnderscoreEarnVaultDeposit',
9
9
  inputs: [
10
10
  {
11
- indexed: true,
12
- name: 'prevOwner',
11
+ name: 'sender',
13
12
  type: 'address',
13
+ indexed: true,
14
14
  },
15
15
  {
16
+ name: 'asset',
17
+ type: 'address',
16
18
  indexed: true,
17
- name: 'newOwner',
19
+ },
20
+ {
21
+ name: 'vaultToken',
18
22
  type: 'address',
23
+ indexed: true,
19
24
  },
20
25
  {
26
+ name: 'assetAmountDeposited',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'usdValue',
32
+ type: 'uint256',
21
33
  indexed: false,
22
- name: 'confirmBlock',
34
+ },
35
+ {
36
+ name: 'vaultTokenAmountReceived',
23
37
  type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ {
41
+ name: 'recipient',
42
+ type: 'address',
43
+ indexed: false,
24
44
  },
25
45
  ],
26
- name: 'AgentOwnershipChangeInitiated',
46
+ anonymous: false,
27
47
  type: 'event',
28
48
  },
29
49
  {
30
- anonymous: false,
50
+ name: 'UnderscoreEarnVaultWithdrawal',
31
51
  inputs: [
32
52
  {
33
- indexed: true,
34
- name: 'prevOwner',
53
+ name: 'sender',
35
54
  type: 'address',
55
+ indexed: true,
36
56
  },
37
57
  {
58
+ name: 'asset',
59
+ type: 'address',
38
60
  indexed: true,
39
- name: 'newOwner',
61
+ },
62
+ {
63
+ name: 'vaultToken',
40
64
  type: 'address',
65
+ indexed: true,
41
66
  },
42
67
  {
43
- indexed: false,
44
- name: 'initiatedBlock',
68
+ name: 'assetAmountReceived',
45
69
  type: 'uint256',
70
+ indexed: false,
46
71
  },
47
72
  {
73
+ name: 'usdValue',
74
+ type: 'uint256',
48
75
  indexed: false,
49
- name: 'confirmBlock',
76
+ },
77
+ {
78
+ name: 'vaultTokenAmountBurned',
50
79
  type: 'uint256',
80
+ indexed: false,
81
+ },
82
+ {
83
+ name: 'recipient',
84
+ type: 'address',
85
+ indexed: false,
51
86
  },
52
87
  ],
53
- name: 'AgentOwnershipChangeConfirmed',
88
+ anonymous: false,
54
89
  type: 'event',
55
90
  },
56
91
  {
92
+ name: 'LegoPauseModified',
93
+ inputs: [
94
+ {
95
+ name: 'isPaused',
96
+ type: 'bool',
97
+ indexed: false,
98
+ },
99
+ ],
57
100
  anonymous: false,
101
+ type: 'event',
102
+ },
103
+ {
104
+ name: 'LegoFundsRecovered',
58
105
  inputs: [
59
106
  {
60
- indexed: true,
61
- name: 'cancelledOwner',
107
+ name: 'asset',
62
108
  type: 'address',
109
+ indexed: true,
63
110
  },
64
111
  {
65
- indexed: false,
66
- name: 'initiatedBlock',
67
- type: 'uint256',
112
+ name: 'recipient',
113
+ type: 'address',
114
+ indexed: true,
68
115
  },
69
116
  {
70
- indexed: false,
71
- name: 'confirmBlock',
117
+ name: 'balance',
72
118
  type: 'uint256',
119
+ indexed: false,
73
120
  },
74
121
  ],
75
- name: 'AgentOwnershipChangeCancelled',
122
+ anonymous: false,
76
123
  type: 'event',
77
124
  },
78
125
  {
79
- anonymous: false,
126
+ name: 'SnapShotPriceConfigSet',
80
127
  inputs: [
81
128
  {
129
+ name: 'minSnapshotDelay',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ {
134
+ name: 'maxNumSnapshots',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ {
139
+ name: 'maxUpsideDeviation',
140
+ type: 'uint256',
82
141
  indexed: false,
83
- name: 'delayBlocks',
142
+ },
143
+ {
144
+ name: 'staleTime',
84
145
  type: 'uint256',
146
+ indexed: false,
85
147
  },
86
148
  ],
87
- name: 'AgentOwnershipChangeDelaySet',
149
+ anonymous: false,
88
150
  type: 'event',
89
151
  },
90
152
  {
91
- anonymous: false,
153
+ name: 'AssetOpportunityAdded',
92
154
  inputs: [
93
155
  {
94
- indexed: true,
95
156
  name: 'asset',
96
157
  type: 'address',
158
+ indexed: true,
97
159
  },
98
160
  {
161
+ name: 'vaultAddr',
162
+ type: 'address',
99
163
  indexed: true,
100
- name: 'recipient',
164
+ },
165
+ ],
166
+ anonymous: false,
167
+ type: 'event',
168
+ },
169
+ {
170
+ name: 'AssetOpportunityRemoved',
171
+ inputs: [
172
+ {
173
+ name: 'asset',
101
174
  type: 'address',
175
+ indexed: true,
102
176
  },
103
177
  {
104
- indexed: false,
105
- name: 'balance',
106
- type: 'uint256',
178
+ name: 'vaultAddr',
179
+ type: 'address',
180
+ indexed: true,
107
181
  },
108
182
  ],
109
- name: 'AgentFundsRecovered',
183
+ anonymous: false,
110
184
  type: 'event',
111
185
  },
112
186
  {
187
+ name: 'PricePerShareSnapShotAdded',
113
188
  inputs: [
114
189
  {
115
- name: '_owner',
190
+ name: 'vaultToken',
116
191
  type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'totalSupply',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'pricePerShare',
201
+ type: 'uint256',
202
+ indexed: false,
117
203
  },
118
204
  ],
119
- name: 'initialize',
205
+ anonymous: false,
206
+ type: 'event',
207
+ },
208
+ {
209
+ stateMutability: 'view',
210
+ type: 'function',
211
+ name: 'getAddys',
212
+ inputs: [],
120
213
  outputs: [
121
214
  {
122
215
  name: '',
123
- type: 'bool',
216
+ type: 'tuple',
217
+ components: [
218
+ {
219
+ name: 'hq',
220
+ type: 'address',
221
+ },
222
+ {
223
+ name: 'undyToken',
224
+ type: 'address',
225
+ },
226
+ {
227
+ name: 'ledger',
228
+ type: 'address',
229
+ },
230
+ {
231
+ name: 'missionControl',
232
+ type: 'address',
233
+ },
234
+ {
235
+ name: 'legoBook',
236
+ type: 'address',
237
+ },
238
+ {
239
+ name: 'switchboard',
240
+ type: 'address',
241
+ },
242
+ {
243
+ name: 'hatchery',
244
+ type: 'address',
245
+ },
246
+ {
247
+ name: 'lootDistributor',
248
+ type: 'address',
249
+ },
250
+ {
251
+ name: 'appraiser',
252
+ type: 'address',
253
+ },
254
+ {
255
+ name: 'walletBackpack',
256
+ type: 'address',
257
+ },
258
+ {
259
+ name: 'billing',
260
+ type: 'address',
261
+ },
262
+ {
263
+ name: 'vaultRegistry',
264
+ type: 'address',
265
+ },
266
+ ],
124
267
  },
125
268
  ],
126
- stateMutability: 'nonpayable',
127
- type: 'function',
128
269
  },
129
270
  {
271
+ stateMutability: 'view',
272
+ type: 'function',
273
+ name: 'getUndyHq',
130
274
  inputs: [],
131
- name: 'apiVersion',
132
275
  outputs: [
133
276
  {
134
277
  name: '',
135
- type: 'string',
278
+ type: 'address',
136
279
  },
137
280
  ],
138
- stateMutability: 'pure',
139
- type: 'function',
140
281
  },
141
282
  {
283
+ stateMutability: 'view',
284
+ type: 'function',
285
+ name: 'isLegoAsset',
142
286
  inputs: [
143
287
  {
144
- name: '_userWallet',
288
+ name: '_asset',
145
289
  type: 'address',
146
290
  },
291
+ ],
292
+ outputs: [
147
293
  {
148
- name: '_legoId',
149
- type: 'uint256',
294
+ name: '',
295
+ type: 'bool',
150
296
  },
297
+ ],
298
+ },
299
+ {
300
+ stateMutability: 'view',
301
+ type: 'function',
302
+ name: 'getAssetOpportunities',
303
+ inputs: [
151
304
  {
152
305
  name: '_asset',
153
306
  type: 'address',
154
307
  },
308
+ ],
309
+ outputs: [
155
310
  {
156
- name: '_vault',
157
- type: 'address',
311
+ name: '',
312
+ type: 'address[]',
158
313
  },
159
314
  ],
160
- name: 'depositTokens',
315
+ },
316
+ {
317
+ stateMutability: 'view',
318
+ type: 'function',
319
+ name: 'getAssets',
320
+ inputs: [],
161
321
  outputs: [
162
322
  {
163
323
  name: '',
164
- type: 'uint256',
324
+ type: 'address[]',
165
325
  },
326
+ ],
327
+ },
328
+ {
329
+ stateMutability: 'view',
330
+ type: 'function',
331
+ name: 'isAssetOpportunity',
332
+ inputs: [
166
333
  {
167
- name: '',
334
+ name: '_asset',
335
+ type: 'address',
336
+ },
337
+ {
338
+ name: '_vaultAddr',
168
339
  type: 'address',
169
340
  },
341
+ ],
342
+ outputs: [
170
343
  {
171
344
  name: '',
172
- type: 'uint256',
345
+ type: 'bool',
173
346
  },
347
+ ],
348
+ },
349
+ {
350
+ stateMutability: 'view',
351
+ type: 'function',
352
+ name: 'getNumLegoAssets',
353
+ inputs: [],
354
+ outputs: [
174
355
  {
175
356
  name: '',
176
357
  type: 'uint256',
177
358
  },
178
359
  ],
360
+ },
361
+ {
179
362
  stateMutability: 'nonpayable',
180
363
  type: 'function',
364
+ name: 'pause',
365
+ inputs: [
366
+ {
367
+ name: '_shouldPause',
368
+ type: 'bool',
369
+ },
370
+ ],
371
+ outputs: [],
181
372
  },
182
373
  {
374
+ stateMutability: 'nonpayable',
375
+ type: 'function',
376
+ name: 'recoverFunds',
183
377
  inputs: [
184
378
  {
185
- name: '_userWallet',
379
+ name: '_recipient',
186
380
  type: 'address',
187
381
  },
188
- {
189
- name: '_legoId',
190
- type: 'uint256',
191
- },
192
382
  {
193
383
  name: '_asset',
194
384
  type: 'address',
195
385
  },
386
+ ],
387
+ outputs: [],
388
+ },
389
+ {
390
+ stateMutability: 'nonpayable',
391
+ type: 'function',
392
+ name: 'recoverFundsMany',
393
+ inputs: [
196
394
  {
197
- name: '_vault',
395
+ name: '_recipient',
198
396
  type: 'address',
199
397
  },
200
398
  {
201
- name: '_amount',
202
- type: 'uint256',
399
+ name: '_assets',
400
+ type: 'address[]',
203
401
  },
204
402
  ],
205
- name: 'depositTokens',
206
- outputs: [
207
- {
208
- name: '',
209
- type: 'uint256',
210
- },
403
+ outputs: [],
404
+ },
405
+ {
406
+ stateMutability: 'view',
407
+ type: 'function',
408
+ name: 'getWeightedPricePerShare',
409
+ inputs: [
211
410
  {
212
- name: '',
411
+ name: '_vaultToken',
213
412
  type: 'address',
214
413
  },
215
- {
216
- name: '',
217
- type: 'uint256',
218
- },
414
+ ],
415
+ outputs: [
219
416
  {
220
417
  name: '',
221
418
  type: 'uint256',
222
419
  },
223
420
  ],
224
- stateMutability: 'nonpayable',
225
- type: 'function',
226
421
  },
227
422
  {
423
+ stateMutability: 'view',
424
+ type: 'function',
425
+ name: 'getLatestSnapshot',
228
426
  inputs: [
229
427
  {
230
- name: '_userWallet',
428
+ name: '_vaultToken',
231
429
  type: 'address',
232
430
  },
233
431
  {
234
- name: '_legoId',
432
+ name: '_pricePerShare',
235
433
  type: 'uint256',
236
434
  },
435
+ ],
436
+ outputs: [
237
437
  {
238
- name: '_asset',
239
- type: 'address',
240
- },
241
- {
242
- name: '_vault',
243
- type: 'address',
438
+ name: '',
439
+ type: 'tuple',
440
+ components: [
441
+ {
442
+ name: 'totalSupply',
443
+ type: 'uint256',
444
+ },
445
+ {
446
+ name: 'pricePerShare',
447
+ type: 'uint256',
448
+ },
449
+ {
450
+ name: 'lastUpdate',
451
+ type: 'uint256',
452
+ },
453
+ ],
244
454
  },
455
+ ],
456
+ },
457
+ {
458
+ stateMutability: 'nonpayable',
459
+ type: 'function',
460
+ name: 'setSnapShotPriceConfig',
461
+ inputs: [
245
462
  {
246
- name: '_amount',
247
- type: 'uint256',
463
+ name: '_config',
464
+ type: 'tuple',
465
+ components: [
466
+ {
467
+ name: 'minSnapshotDelay',
468
+ type: 'uint256',
469
+ },
470
+ {
471
+ name: 'maxNumSnapshots',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ name: 'maxUpsideDeviation',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'staleTime',
480
+ type: 'uint256',
481
+ },
482
+ ],
248
483
  },
484
+ ],
485
+ outputs: [],
486
+ },
487
+ {
488
+ stateMutability: 'view',
489
+ type: 'function',
490
+ name: 'isValidPriceConfig',
491
+ inputs: [
249
492
  {
493
+ name: '_config',
494
+ type: 'tuple',
250
495
  components: [
251
496
  {
252
- name: 'signature',
253
- type: 'bytes',
497
+ name: 'minSnapshotDelay',
498
+ type: 'uint256',
499
+ },
500
+ {
501
+ name: 'maxNumSnapshots',
502
+ type: 'uint256',
254
503
  },
255
504
  {
256
- name: 'signer',
257
- type: 'address',
505
+ name: 'maxUpsideDeviation',
506
+ type: 'uint256',
258
507
  },
259
508
  {
260
- name: 'expiration',
509
+ name: 'staleTime',
261
510
  type: 'uint256',
262
511
  },
263
512
  ],
264
- name: '_sig',
265
- type: 'tuple',
266
513
  },
267
514
  ],
268
- name: 'depositTokens',
269
515
  outputs: [
270
516
  {
271
517
  name: '',
272
- type: 'uint256',
518
+ type: 'bool',
273
519
  },
520
+ ],
521
+ },
522
+ {
523
+ stateMutability: 'view',
524
+ type: 'function',
525
+ name: 'vaultToAsset',
526
+ inputs: [
274
527
  {
275
- name: '',
528
+ name: 'arg0',
276
529
  type: 'address',
277
530
  },
531
+ ],
532
+ outputs: [
278
533
  {
279
534
  name: '',
280
- type: 'uint256',
281
- },
282
- {
283
- name: '',
284
- type: 'uint256',
535
+ type: 'tuple',
536
+ components: [
537
+ {
538
+ name: 'underlyingAsset',
539
+ type: 'address',
540
+ },
541
+ {
542
+ name: 'decimals',
543
+ type: 'uint256',
544
+ },
545
+ {
546
+ name: 'lastAveragePricePerShare',
547
+ type: 'uint256',
548
+ },
549
+ ],
285
550
  },
286
551
  ],
287
- stateMutability: 'nonpayable',
288
- type: 'function',
289
552
  },
290
553
  {
554
+ stateMutability: 'view',
555
+ type: 'function',
556
+ name: 'assetOpportunities',
291
557
  inputs: [
292
558
  {
293
- name: '_userWallet',
559
+ name: 'arg0',
294
560
  type: 'address',
295
561
  },
296
562
  {
297
- name: '_legoId',
563
+ name: 'arg1',
298
564
  type: 'uint256',
299
565
  },
566
+ ],
567
+ outputs: [
300
568
  {
301
- name: '_asset',
569
+ name: '',
302
570
  type: 'address',
303
571
  },
572
+ ],
573
+ },
574
+ {
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ name: 'indexOfAssetOpportunity',
578
+ inputs: [
304
579
  {
305
- name: '_vaultToken',
580
+ name: 'arg0',
581
+ type: 'address',
582
+ },
583
+ {
584
+ name: 'arg1',
306
585
  type: 'address',
307
586
  },
308
587
  ],
309
- name: 'withdrawTokens',
310
588
  outputs: [
311
589
  {
312
590
  name: '',
313
591
  type: 'uint256',
314
592
  },
593
+ ],
594
+ },
595
+ {
596
+ stateMutability: 'view',
597
+ type: 'function',
598
+ name: 'numAssetOpportunities',
599
+ inputs: [
315
600
  {
316
- name: '',
317
- type: 'uint256',
601
+ name: 'arg0',
602
+ type: 'address',
318
603
  },
604
+ ],
605
+ outputs: [
319
606
  {
320
607
  name: '',
321
608
  type: 'uint256',
322
609
  },
323
610
  ],
324
- stateMutability: 'nonpayable',
325
- type: 'function',
326
611
  },
327
612
  {
613
+ stateMutability: 'view',
614
+ type: 'function',
615
+ name: 'assets',
328
616
  inputs: [
329
617
  {
330
- name: '_userWallet',
331
- type: 'address',
332
- },
333
- {
334
- name: '_legoId',
618
+ name: 'arg0',
335
619
  type: 'uint256',
336
620
  },
621
+ ],
622
+ outputs: [
337
623
  {
338
- name: '_asset',
624
+ name: '',
339
625
  type: 'address',
340
626
  },
627
+ ],
628
+ },
629
+ {
630
+ stateMutability: 'view',
631
+ type: 'function',
632
+ name: 'indexOfAsset',
633
+ inputs: [
341
634
  {
342
- name: '_vaultToken',
635
+ name: 'arg0',
343
636
  type: 'address',
344
637
  },
345
- {
346
- name: '_vaultTokenAmount',
347
- type: 'uint256',
348
- },
349
638
  ],
350
- name: 'withdrawTokens',
351
639
  outputs: [
352
640
  {
353
641
  name: '',
354
642
  type: 'uint256',
355
643
  },
356
- {
357
- name: '',
358
- type: 'uint256',
359
- },
644
+ ],
645
+ },
646
+ {
647
+ stateMutability: 'view',
648
+ type: 'function',
649
+ name: 'numAssets',
650
+ inputs: [],
651
+ outputs: [
360
652
  {
361
653
  name: '',
362
654
  type: 'uint256',
363
655
  },
364
656
  ],
365
- stateMutability: 'nonpayable',
366
- type: 'function',
367
657
  },
368
658
  {
659
+ stateMutability: 'view',
660
+ type: 'function',
661
+ name: 'snapShotData',
369
662
  inputs: [
370
663
  {
371
- name: '_userWallet',
664
+ name: 'arg0',
372
665
  type: 'address',
373
666
  },
667
+ ],
668
+ outputs: [
374
669
  {
375
- name: '_legoId',
376
- type: 'uint256',
377
- },
378
- {
379
- name: '_asset',
380
- type: 'address',
670
+ name: '',
671
+ type: 'tuple',
672
+ components: [
673
+ {
674
+ name: 'lastSnapShot',
675
+ type: 'tuple',
676
+ components: [
677
+ {
678
+ name: 'totalSupply',
679
+ type: 'uint256',
680
+ },
681
+ {
682
+ name: 'pricePerShare',
683
+ type: 'uint256',
684
+ },
685
+ {
686
+ name: 'lastUpdate',
687
+ type: 'uint256',
688
+ },
689
+ ],
690
+ },
691
+ {
692
+ name: 'nextIndex',
693
+ type: 'uint256',
694
+ },
695
+ ],
381
696
  },
697
+ ],
698
+ },
699
+ {
700
+ stateMutability: 'view',
701
+ type: 'function',
702
+ name: 'snapShots',
703
+ inputs: [
382
704
  {
383
- name: '_vaultToken',
705
+ name: 'arg0',
384
706
  type: 'address',
385
707
  },
386
708
  {
387
- name: '_vaultTokenAmount',
709
+ name: 'arg1',
388
710
  type: 'uint256',
389
711
  },
712
+ ],
713
+ outputs: [
390
714
  {
715
+ name: '',
716
+ type: 'tuple',
391
717
  components: [
392
718
  {
393
- name: 'signature',
394
- type: 'bytes',
719
+ name: 'totalSupply',
720
+ type: 'uint256',
395
721
  },
396
722
  {
397
- name: 'signer',
398
- type: 'address',
723
+ name: 'pricePerShare',
724
+ type: 'uint256',
399
725
  },
400
726
  {
401
- name: 'expiration',
727
+ name: 'lastUpdate',
402
728
  type: 'uint256',
403
729
  },
404
730
  ],
405
- name: '_sig',
406
- type: 'tuple',
407
731
  },
408
732
  ],
409
- name: 'withdrawTokens',
733
+ },
734
+ {
735
+ stateMutability: 'view',
736
+ type: 'function',
737
+ name: 'snapShotPriceConfig',
738
+ inputs: [],
410
739
  outputs: [
411
740
  {
412
741
  name: '',
413
- type: 'uint256',
414
- },
415
- {
416
- name: '',
417
- type: 'uint256',
742
+ type: 'tuple',
743
+ components: [
744
+ {
745
+ name: 'minSnapshotDelay',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: 'maxNumSnapshots',
750
+ type: 'uint256',
751
+ },
752
+ {
753
+ name: 'maxUpsideDeviation',
754
+ type: 'uint256',
755
+ },
756
+ {
757
+ name: 'staleTime',
758
+ type: 'uint256',
759
+ },
760
+ ],
418
761
  },
762
+ ],
763
+ },
764
+ {
765
+ stateMutability: 'view',
766
+ type: 'function',
767
+ name: 'isPaused',
768
+ inputs: [],
769
+ outputs: [
419
770
  {
420
771
  name: '',
421
- type: 'uint256',
772
+ type: 'bool',
422
773
  },
423
774
  ],
424
- stateMutability: 'nonpayable',
425
- type: 'function',
426
775
  },
427
776
  {
777
+ stateMutability: 'view',
778
+ type: 'function',
779
+ name: 'hasCapability',
428
780
  inputs: [
429
781
  {
430
- name: '_userWallet',
431
- type: 'address',
432
- },
433
- {
434
- name: '_fromLegoId',
435
- type: 'uint256',
436
- },
437
- {
438
- name: '_fromAsset',
439
- type: 'address',
440
- },
441
- {
442
- name: '_fromVaultToken',
443
- type: 'address',
444
- },
445
- {
446
- name: '_toLegoId',
782
+ name: '_action',
447
783
  type: 'uint256',
448
784
  },
449
- {
450
- name: '_toVault',
451
- type: 'address',
452
- },
453
785
  ],
454
- name: 'rebalance',
455
786
  outputs: [
456
787
  {
457
788
  name: '',
458
- type: 'uint256',
789
+ type: 'bool',
459
790
  },
791
+ ],
792
+ },
793
+ {
794
+ stateMutability: 'view',
795
+ type: 'function',
796
+ name: 'getRegistries',
797
+ inputs: [],
798
+ outputs: [
460
799
  {
461
800
  name: '',
462
- type: 'address',
463
- },
464
- {
465
- name: '',
466
- type: 'uint256',
801
+ type: 'address[]',
467
802
  },
803
+ ],
804
+ },
805
+ {
806
+ stateMutability: 'view',
807
+ type: 'function',
808
+ name: 'isYieldLego',
809
+ inputs: [],
810
+ outputs: [
468
811
  {
469
812
  name: '',
470
- type: 'uint256',
813
+ type: 'bool',
471
814
  },
472
815
  ],
473
- stateMutability: 'nonpayable',
474
- type: 'function',
475
816
  },
476
817
  {
477
- inputs: [
478
- {
479
- name: '_userWallet',
480
- type: 'address',
481
- },
818
+ stateMutability: 'view',
819
+ type: 'function',
820
+ name: 'isDexLego',
821
+ inputs: [],
822
+ outputs: [
482
823
  {
483
- name: '_fromLegoId',
484
- type: 'uint256',
824
+ name: '',
825
+ type: 'bool',
485
826
  },
827
+ ],
828
+ },
829
+ {
830
+ stateMutability: 'view',
831
+ type: 'function',
832
+ name: 'getUnderlyingAsset',
833
+ inputs: [
486
834
  {
487
- name: '_fromAsset',
835
+ name: '_vaultToken',
488
836
  type: 'address',
489
837
  },
838
+ ],
839
+ outputs: [
490
840
  {
491
- name: '_fromVaultToken',
841
+ name: '',
492
842
  type: 'address',
493
843
  },
844
+ ],
845
+ },
846
+ {
847
+ stateMutability: 'view',
848
+ type: 'function',
849
+ name: 'getUnderlyingBalances',
850
+ inputs: [
494
851
  {
495
- name: '_toLegoId',
496
- type: 'uint256',
497
- },
498
- {
499
- name: '_toVault',
852
+ name: '_vaultToken',
500
853
  type: 'address',
501
854
  },
502
855
  {
503
- name: '_fromVaultTokenAmount',
856
+ name: '_vaultTokenBalance',
504
857
  type: 'uint256',
505
858
  },
506
859
  ],
507
- name: 'rebalance',
508
860
  outputs: [
509
- {
510
- name: '',
511
- type: 'uint256',
512
- },
513
- {
514
- name: '',
515
- type: 'address',
516
- },
517
861
  {
518
862
  name: '',
519
863
  type: 'uint256',
@@ -523,118 +867,67 @@ export const abi = [
523
867
  type: 'uint256',
524
868
  },
525
869
  ],
526
- stateMutability: 'nonpayable',
527
- type: 'function',
528
870
  },
529
871
  {
872
+ stateMutability: 'view',
873
+ type: 'function',
874
+ name: 'getUnderlyingAmount',
530
875
  inputs: [
531
876
  {
532
- name: '_userWallet',
533
- type: 'address',
534
- },
535
- {
536
- name: '_fromLegoId',
537
- type: 'uint256',
538
- },
539
- {
540
- name: '_fromAsset',
541
- type: 'address',
542
- },
543
- {
544
- name: '_fromVaultToken',
545
- type: 'address',
546
- },
547
- {
548
- name: '_toLegoId',
549
- type: 'uint256',
550
- },
551
- {
552
- name: '_toVault',
877
+ name: '_vaultToken',
553
878
  type: 'address',
554
879
  },
555
880
  {
556
- name: '_fromVaultTokenAmount',
881
+ name: '_vaultTokenAmount',
557
882
  type: 'uint256',
558
883
  },
559
- {
560
- components: [
561
- {
562
- name: 'signature',
563
- type: 'bytes',
564
- },
565
- {
566
- name: 'signer',
567
- type: 'address',
568
- },
569
- {
570
- name: 'expiration',
571
- type: 'uint256',
572
- },
573
- ],
574
- name: '_sig',
575
- type: 'tuple',
576
- },
577
884
  ],
578
- name: 'rebalance',
579
885
  outputs: [
580
886
  {
581
887
  name: '',
582
888
  type: 'uint256',
583
889
  },
890
+ ],
891
+ },
892
+ {
893
+ stateMutability: 'view',
894
+ type: 'function',
895
+ name: 'getUnderlyingAmountSafe',
896
+ inputs: [
584
897
  {
585
- name: '',
898
+ name: '_vaultToken',
586
899
  type: 'address',
587
900
  },
588
901
  {
589
- name: '',
902
+ name: '_vaultTokenBalance',
590
903
  type: 'uint256',
591
904
  },
905
+ ],
906
+ outputs: [
592
907
  {
593
908
  name: '',
594
909
  type: 'uint256',
595
910
  },
596
911
  ],
597
- stateMutability: 'nonpayable',
598
- type: 'function',
599
912
  },
600
913
  {
914
+ stateMutability: 'view',
915
+ type: 'function',
916
+ name: 'getUnderlyingData',
601
917
  inputs: [
602
918
  {
603
- name: '_userWallet',
919
+ name: '_vaultToken',
604
920
  type: 'address',
605
921
  },
606
922
  {
607
- components: [
608
- {
609
- name: 'legoId',
610
- type: 'uint256',
611
- },
612
- {
613
- name: 'amountIn',
614
- type: 'uint256',
615
- },
616
- {
617
- name: 'minAmountOut',
618
- type: 'uint256',
619
- },
620
- {
621
- name: 'tokenPath',
622
- type: 'address[]',
623
- },
624
- {
625
- name: 'poolPath',
626
- type: 'address[]',
627
- },
628
- ],
629
- name: '_swapInstructions',
630
- type: 'tuple[]',
923
+ name: '_vaultTokenAmount',
924
+ type: 'uint256',
631
925
  },
632
926
  ],
633
- name: 'swapTokens',
634
927
  outputs: [
635
928
  {
636
929
  name: '',
637
- type: 'uint256',
930
+ type: 'address',
638
931
  },
639
932
  {
640
933
  name: '',
@@ -645,65 +938,29 @@ export const abi = [
645
938
  type: 'uint256',
646
939
  },
647
940
  ],
648
- stateMutability: 'nonpayable',
649
- type: 'function',
650
941
  },
651
942
  {
943
+ stateMutability: 'view',
944
+ type: 'function',
945
+ name: 'getUnderlyingData',
652
946
  inputs: [
653
947
  {
654
- name: '_userWallet',
948
+ name: '_vaultToken',
655
949
  type: 'address',
656
950
  },
657
951
  {
658
- components: [
659
- {
660
- name: 'legoId',
661
- type: 'uint256',
662
- },
663
- {
664
- name: 'amountIn',
665
- type: 'uint256',
666
- },
667
- {
668
- name: 'minAmountOut',
669
- type: 'uint256',
670
- },
671
- {
672
- name: 'tokenPath',
673
- type: 'address[]',
674
- },
675
- {
676
- name: 'poolPath',
677
- type: 'address[]',
678
- },
679
- ],
680
- name: '_swapInstructions',
681
- type: 'tuple[]',
952
+ name: '_vaultTokenAmount',
953
+ type: 'uint256',
682
954
  },
683
955
  {
684
- components: [
685
- {
686
- name: 'signature',
687
- type: 'bytes',
688
- },
689
- {
690
- name: 'signer',
691
- type: 'address',
692
- },
693
- {
694
- name: 'expiration',
695
- type: 'uint256',
696
- },
697
- ],
698
- name: '_sig',
699
- type: 'tuple',
956
+ name: '_appraiser',
957
+ type: 'address',
700
958
  },
701
959
  ],
702
- name: 'swapTokens',
703
960
  outputs: [
704
961
  {
705
962
  name: '',
706
- type: 'uint256',
963
+ type: 'address',
707
964
  },
708
965
  {
709
966
  name: '',
@@ -714,275 +971,323 @@ export const abi = [
714
971
  type: 'uint256',
715
972
  },
716
973
  ],
717
- stateMutability: 'nonpayable',
718
- type: 'function',
719
974
  },
720
975
  {
976
+ stateMutability: 'view',
977
+ type: 'function',
978
+ name: 'getUsdValueOfVaultToken',
721
979
  inputs: [
722
980
  {
723
- name: '_userWallet',
981
+ name: '_vaultToken',
724
982
  type: 'address',
725
983
  },
726
984
  {
727
- components: [
728
- {
729
- name: 'legoId',
730
- type: 'uint256',
731
- },
732
- {
733
- name: 'amountIn',
734
- type: 'uint256',
735
- },
736
- {
737
- name: 'minAmountOut',
738
- type: 'uint256',
739
- },
740
- {
741
- name: 'tokenPath',
742
- type: 'address[]',
743
- },
744
- {
745
- name: 'poolPath',
746
- type: 'address[]',
747
- },
748
- ],
749
- name: '_swapInstructions',
750
- type: 'tuple[]',
751
- },
752
- {
753
- name: '_expiration',
985
+ name: '_vaultTokenAmount',
754
986
  type: 'uint256',
755
987
  },
756
988
  ],
757
- name: 'getSwapActionHash',
758
989
  outputs: [
759
990
  {
760
991
  name: '',
761
- type: 'bytes32',
992
+ type: 'uint256',
762
993
  },
763
994
  ],
764
- stateMutability: 'view',
765
- type: 'function',
766
995
  },
767
996
  {
997
+ stateMutability: 'view',
998
+ type: 'function',
999
+ name: 'getUsdValueOfVaultToken',
768
1000
  inputs: [
769
1001
  {
770
- name: '_userWallet',
1002
+ name: '_vaultToken',
771
1003
  type: 'address',
772
1004
  },
773
1005
  {
774
- name: '_legoId',
1006
+ name: '_vaultTokenAmount',
775
1007
  type: 'uint256',
776
1008
  },
777
- ],
778
- name: 'borrow',
779
- outputs: [
780
1009
  {
781
- name: '',
1010
+ name: '_appraiser',
782
1011
  type: 'address',
783
1012
  },
1013
+ ],
1014
+ outputs: [
784
1015
  {
785
1016
  name: '',
786
1017
  type: 'uint256',
787
1018
  },
1019
+ ],
1020
+ },
1021
+ {
1022
+ stateMutability: 'view',
1023
+ type: 'function',
1024
+ name: 'isRebasing',
1025
+ inputs: [],
1026
+ outputs: [
788
1027
  {
789
1028
  name: '',
790
- type: 'uint256',
1029
+ type: 'bool',
791
1030
  },
792
1031
  ],
793
- stateMutability: 'nonpayable',
794
- type: 'function',
795
1032
  },
796
1033
  {
1034
+ stateMutability: 'view',
1035
+ type: 'function',
1036
+ name: 'getPricePerShare',
797
1037
  inputs: [
798
1038
  {
799
- name: '_userWallet',
1039
+ name: '_vaultToken',
800
1040
  type: 'address',
801
1041
  },
1042
+ ],
1043
+ outputs: [
802
1044
  {
803
- name: '_legoId',
1045
+ name: '',
804
1046
  type: 'uint256',
805
1047
  },
806
- {
807
- name: '_borrowAsset',
808
- type: 'address',
809
- },
810
1048
  ],
811
- name: 'borrow',
812
- outputs: [
1049
+ },
1050
+ {
1051
+ stateMutability: 'view',
1052
+ type: 'function',
1053
+ name: 'getPricePerShare',
1054
+ inputs: [
813
1055
  {
814
- name: '',
1056
+ name: '_vaultToken',
815
1057
  type: 'address',
816
1058
  },
817
1059
  {
818
- name: '',
1060
+ name: '_decimals',
819
1061
  type: 'uint256',
820
1062
  },
1063
+ ],
1064
+ outputs: [
821
1065
  {
822
1066
  name: '',
823
1067
  type: 'uint256',
824
1068
  },
825
1069
  ],
826
- stateMutability: 'nonpayable',
827
- type: 'function',
828
1070
  },
829
1071
  {
1072
+ stateMutability: 'view',
1073
+ type: 'function',
1074
+ name: 'getVaultTokenAmount',
830
1075
  inputs: [
831
1076
  {
832
- name: '_userWallet',
1077
+ name: '_asset',
833
1078
  type: 'address',
834
1079
  },
835
1080
  {
836
- name: '_legoId',
1081
+ name: '_assetAmount',
837
1082
  type: 'uint256',
838
1083
  },
839
1084
  {
840
- name: '_borrowAsset',
1085
+ name: '_vaultToken',
841
1086
  type: 'address',
842
1087
  },
843
- {
844
- name: '_amount',
845
- type: 'uint256',
846
- },
847
1088
  ],
848
- name: 'borrow',
849
1089
  outputs: [
850
- {
851
- name: '',
852
- type: 'address',
853
- },
854
- {
855
- name: '',
856
- type: 'uint256',
857
- },
858
1090
  {
859
1091
  name: '',
860
1092
  type: 'uint256',
861
1093
  },
862
1094
  ],
863
- stateMutability: 'nonpayable',
864
- type: 'function',
865
1095
  },
866
1096
  {
1097
+ stateMutability: 'view',
1098
+ type: 'function',
1099
+ name: 'isEligibleVaultForTrialFunds',
867
1100
  inputs: [
868
1101
  {
869
- name: '_userWallet',
1102
+ name: '_vaultToken',
870
1103
  type: 'address',
871
1104
  },
872
1105
  {
873
- name: '_legoId',
874
- type: 'uint256',
875
- },
876
- {
877
- name: '_borrowAsset',
878
- type: 'address',
1106
+ name: '_underlyingAsset',
1107
+ type: 'address',
879
1108
  },
1109
+ ],
1110
+ outputs: [
880
1111
  {
881
- name: '_amount',
882
- type: 'uint256',
1112
+ name: '',
1113
+ type: 'bool',
883
1114
  },
1115
+ ],
1116
+ },
1117
+ {
1118
+ stateMutability: 'view',
1119
+ type: 'function',
1120
+ name: 'isEligibleForYieldBonus',
1121
+ inputs: [
884
1122
  {
885
- components: [
886
- {
887
- name: 'signature',
888
- type: 'bytes',
889
- },
890
- {
891
- name: 'signer',
892
- type: 'address',
893
- },
894
- {
895
- name: 'expiration',
896
- type: 'uint256',
897
- },
898
- ],
899
- name: '_sig',
900
- type: 'tuple',
1123
+ name: '_asset',
1124
+ type: 'address',
901
1125
  },
902
1126
  ],
903
- name: 'borrow',
904
1127
  outputs: [
905
1128
  {
906
1129
  name: '',
907
- type: 'address',
1130
+ type: 'bool',
908
1131
  },
1132
+ ],
1133
+ },
1134
+ {
1135
+ stateMutability: 'view',
1136
+ type: 'function',
1137
+ name: 'totalAssets',
1138
+ inputs: [
909
1139
  {
910
- name: '',
911
- type: 'uint256',
1140
+ name: '_vaultToken',
1141
+ type: 'address',
912
1142
  },
1143
+ ],
1144
+ outputs: [
913
1145
  {
914
1146
  name: '',
915
1147
  type: 'uint256',
916
1148
  },
917
1149
  ],
918
- stateMutability: 'nonpayable',
919
- type: 'function',
920
1150
  },
921
1151
  {
1152
+ stateMutability: 'view',
1153
+ type: 'function',
1154
+ name: 'totalBorrows',
922
1155
  inputs: [
923
1156
  {
924
- name: '_userWallet',
1157
+ name: '_vaultToken',
925
1158
  type: 'address',
926
1159
  },
1160
+ ],
1161
+ outputs: [
927
1162
  {
928
- name: '_legoId',
1163
+ name: '',
929
1164
  type: 'uint256',
930
1165
  },
1166
+ ],
1167
+ },
1168
+ {
1169
+ stateMutability: 'view',
1170
+ type: 'function',
1171
+ name: 'canRegisterVaultToken',
1172
+ inputs: [
1173
+ {
1174
+ name: '_asset',
1175
+ type: 'address',
1176
+ },
931
1177
  {
932
- name: '_paymentAsset',
1178
+ name: '_vaultToken',
933
1179
  type: 'address',
934
1180
  },
935
1181
  ],
936
- name: 'repayDebt',
937
1182
  outputs: [
938
1183
  {
939
1184
  name: '',
1185
+ type: 'bool',
1186
+ },
1187
+ ],
1188
+ },
1189
+ {
1190
+ stateMutability: 'nonpayable',
1191
+ type: 'function',
1192
+ name: 'registerVaultTokenLocally',
1193
+ inputs: [
1194
+ {
1195
+ name: '_asset',
940
1196
  type: 'address',
941
1197
  },
942
1198
  {
943
- name: '',
944
- type: 'uint256',
1199
+ name: '_vaultAddr',
1200
+ type: 'address',
945
1201
  },
1202
+ ],
1203
+ outputs: [
946
1204
  {
947
1205
  name: '',
948
- type: 'uint256',
1206
+ type: 'tuple',
1207
+ components: [
1208
+ {
1209
+ name: 'underlyingAsset',
1210
+ type: 'address',
1211
+ },
1212
+ {
1213
+ name: 'decimals',
1214
+ type: 'uint256',
1215
+ },
1216
+ {
1217
+ name: 'lastAveragePricePerShare',
1218
+ type: 'uint256',
1219
+ },
1220
+ ],
1221
+ },
1222
+ ],
1223
+ },
1224
+ {
1225
+ stateMutability: 'nonpayable',
1226
+ type: 'function',
1227
+ name: 'deregisterVaultTokenLocally',
1228
+ inputs: [
1229
+ {
1230
+ name: '_asset',
1231
+ type: 'address',
949
1232
  },
950
1233
  {
951
- name: '',
952
- type: 'uint256',
1234
+ name: '_vaultAddr',
1235
+ type: 'address',
953
1236
  },
954
1237
  ],
1238
+ outputs: [],
1239
+ },
1240
+ {
955
1241
  stateMutability: 'nonpayable',
956
1242
  type: 'function',
1243
+ name: 'addPriceSnapshot',
1244
+ inputs: [
1245
+ {
1246
+ name: '_vaultToken',
1247
+ type: 'address',
1248
+ },
1249
+ ],
1250
+ outputs: [
1251
+ {
1252
+ name: '',
1253
+ type: 'bool',
1254
+ },
1255
+ ],
957
1256
  },
958
1257
  {
1258
+ stateMutability: 'nonpayable',
1259
+ type: 'function',
1260
+ name: 'depositForYield',
959
1261
  inputs: [
960
1262
  {
961
- name: '_userWallet',
1263
+ name: '_asset',
962
1264
  type: 'address',
963
1265
  },
964
1266
  {
965
- name: '_legoId',
1267
+ name: '_amount',
966
1268
  type: 'uint256',
967
1269
  },
968
1270
  {
969
- name: '_paymentAsset',
1271
+ name: '_vaultAddr',
970
1272
  type: 'address',
971
1273
  },
972
1274
  {
973
- name: '_paymentAmount',
974
- type: 'uint256',
1275
+ name: '_extraData',
1276
+ type: 'bytes32',
1277
+ },
1278
+ {
1279
+ name: '_recipient',
1280
+ type: 'address',
975
1281
  },
976
1282
  ],
977
- name: 'repayDebt',
978
1283
  outputs: [
979
1284
  {
980
1285
  name: '',
981
- type: 'address',
1286
+ type: 'uint256',
982
1287
  },
983
1288
  {
984
1289
  name: '',
985
- type: 'uint256',
1290
+ type: 'address',
986
1291
  },
987
1292
  {
988
1293
  name: '',
@@ -993,55 +1298,63 @@ export const abi = [
993
1298
  type: 'uint256',
994
1299
  },
995
1300
  ],
996
- stateMutability: 'nonpayable',
997
- type: 'function',
998
1301
  },
999
1302
  {
1303
+ stateMutability: 'nonpayable',
1304
+ type: 'function',
1305
+ name: 'depositForYield',
1000
1306
  inputs: [
1001
1307
  {
1002
- name: '_userWallet',
1308
+ name: '_asset',
1003
1309
  type: 'address',
1004
1310
  },
1005
1311
  {
1006
- name: '_legoId',
1312
+ name: '_amount',
1007
1313
  type: 'uint256',
1008
1314
  },
1009
1315
  {
1010
- name: '_paymentAsset',
1316
+ name: '_vaultAddr',
1011
1317
  type: 'address',
1012
1318
  },
1013
1319
  {
1014
- name: '_paymentAmount',
1015
- type: 'uint256',
1320
+ name: '_extraData',
1321
+ type: 'bytes32',
1322
+ },
1323
+ {
1324
+ name: '_recipient',
1325
+ type: 'address',
1016
1326
  },
1017
1327
  {
1328
+ name: '_miniAddys',
1329
+ type: 'tuple',
1018
1330
  components: [
1019
1331
  {
1020
- name: 'signature',
1021
- type: 'bytes',
1332
+ name: 'ledger',
1333
+ type: 'address',
1022
1334
  },
1023
1335
  {
1024
- name: 'signer',
1336
+ name: 'missionControl',
1025
1337
  type: 'address',
1026
1338
  },
1027
1339
  {
1028
- name: 'expiration',
1029
- type: 'uint256',
1340
+ name: 'legoBook',
1341
+ type: 'address',
1342
+ },
1343
+ {
1344
+ name: 'appraiser',
1345
+ type: 'address',
1030
1346
  },
1031
1347
  ],
1032
- name: '_sig',
1033
- type: 'tuple',
1034
1348
  },
1035
1349
  ],
1036
- name: 'repayDebt',
1037
1350
  outputs: [
1038
1351
  {
1039
1352
  name: '',
1040
- type: 'address',
1353
+ type: 'uint256',
1041
1354
  },
1042
1355
  {
1043
1356
  name: '',
1044
- type: 'uint256',
1357
+ type: 'address',
1045
1358
  },
1046
1359
  {
1047
1360
  name: '',
@@ -1052,109 +1365,118 @@ export const abi = [
1052
1365
  type: 'uint256',
1053
1366
  },
1054
1367
  ],
1055
- stateMutability: 'nonpayable',
1056
- type: 'function',
1057
1368
  },
1058
1369
  {
1370
+ stateMutability: 'nonpayable',
1371
+ type: 'function',
1372
+ name: 'withdrawFromYield',
1059
1373
  inputs: [
1060
1374
  {
1061
- name: '_userWallet',
1375
+ name: '_vaultToken',
1062
1376
  type: 'address',
1063
1377
  },
1064
1378
  {
1065
- name: '_legoId',
1379
+ name: '_amount',
1066
1380
  type: 'uint256',
1067
1381
  },
1068
- ],
1069
- name: 'claimRewards',
1070
- outputs: [],
1071
- stateMutability: 'nonpayable',
1072
- type: 'function',
1073
- },
1074
- {
1075
- inputs: [
1076
1382
  {
1077
- name: '_userWallet',
1383
+ name: '_extraData',
1384
+ type: 'bytes32',
1385
+ },
1386
+ {
1387
+ name: '_recipient',
1078
1388
  type: 'address',
1079
1389
  },
1390
+ ],
1391
+ outputs: [
1080
1392
  {
1081
- name: '_legoId',
1393
+ name: '',
1082
1394
  type: 'uint256',
1083
1395
  },
1084
1396
  {
1085
- name: '_market',
1397
+ name: '',
1086
1398
  type: 'address',
1087
1399
  },
1400
+ {
1401
+ name: '',
1402
+ type: 'uint256',
1403
+ },
1404
+ {
1405
+ name: '',
1406
+ type: 'uint256',
1407
+ },
1088
1408
  ],
1089
- name: 'claimRewards',
1090
- outputs: [],
1091
- stateMutability: 'nonpayable',
1092
- type: 'function',
1093
1409
  },
1094
1410
  {
1411
+ stateMutability: 'nonpayable',
1412
+ type: 'function',
1413
+ name: 'withdrawFromYield',
1095
1414
  inputs: [
1096
1415
  {
1097
- name: '_userWallet',
1416
+ name: '_vaultToken',
1098
1417
  type: 'address',
1099
1418
  },
1100
1419
  {
1101
- name: '_legoId',
1420
+ name: '_amount',
1102
1421
  type: 'uint256',
1103
1422
  },
1104
1423
  {
1105
- name: '_market',
1106
- type: 'address',
1424
+ name: '_extraData',
1425
+ type: 'bytes32',
1107
1426
  },
1108
1427
  {
1109
- name: '_rewardToken',
1428
+ name: '_recipient',
1110
1429
  type: 'address',
1111
1430
  },
1112
- ],
1113
- name: 'claimRewards',
1114
- outputs: [],
1115
- stateMutability: 'nonpayable',
1116
- type: 'function',
1117
- },
1118
- {
1119
- inputs: [
1120
1431
  {
1121
- name: '_userWallet',
1122
- type: 'address',
1432
+ name: '_miniAddys',
1433
+ type: 'tuple',
1434
+ components: [
1435
+ {
1436
+ name: 'ledger',
1437
+ type: 'address',
1438
+ },
1439
+ {
1440
+ name: 'missionControl',
1441
+ type: 'address',
1442
+ },
1443
+ {
1444
+ name: 'legoBook',
1445
+ type: 'address',
1446
+ },
1447
+ {
1448
+ name: 'appraiser',
1449
+ type: 'address',
1450
+ },
1451
+ ],
1123
1452
  },
1453
+ ],
1454
+ outputs: [
1124
1455
  {
1125
- name: '_legoId',
1456
+ name: '',
1126
1457
  type: 'uint256',
1127
1458
  },
1128
1459
  {
1129
- name: '_market',
1460
+ name: '',
1130
1461
  type: 'address',
1131
1462
  },
1132
1463
  {
1133
- name: '_rewardToken',
1134
- type: 'address',
1464
+ name: '',
1465
+ type: 'uint256',
1135
1466
  },
1136
1467
  {
1137
- name: '_rewardAmount',
1468
+ name: '',
1138
1469
  type: 'uint256',
1139
1470
  },
1140
1471
  ],
1141
- name: 'claimRewards',
1142
- outputs: [],
1143
- stateMutability: 'nonpayable',
1144
- type: 'function',
1145
1472
  },
1146
1473
  {
1474
+ stateMutability: 'nonpayable',
1475
+ type: 'function',
1476
+ name: 'claimRewards',
1147
1477
  inputs: [
1148
1478
  {
1149
- name: '_userWallet',
1150
- type: 'address',
1151
- },
1152
- {
1153
- name: '_legoId',
1154
- type: 'uint256',
1155
- },
1156
- {
1157
- name: '_market',
1479
+ name: '_user',
1158
1480
  type: 'address',
1159
1481
  },
1160
1482
  {
@@ -1166,27 +1488,28 @@ export const abi = [
1166
1488
  type: 'uint256',
1167
1489
  },
1168
1490
  {
1169
- name: '_proof',
1491
+ name: '_extraData',
1170
1492
  type: 'bytes32',
1171
1493
  },
1172
1494
  ],
1173
- name: 'claimRewards',
1174
- outputs: [],
1175
- stateMutability: 'nonpayable',
1176
- type: 'function',
1177
- },
1178
- {
1179
- inputs: [
1495
+ outputs: [
1180
1496
  {
1181
- name: '_userWallet',
1182
- type: 'address',
1497
+ name: '',
1498
+ type: 'uint256',
1183
1499
  },
1184
1500
  {
1185
- name: '_legoId',
1501
+ name: '',
1186
1502
  type: 'uint256',
1187
1503
  },
1504
+ ],
1505
+ },
1506
+ {
1507
+ stateMutability: 'nonpayable',
1508
+ type: 'function',
1509
+ name: 'claimRewards',
1510
+ inputs: [
1188
1511
  {
1189
- name: '_market',
1512
+ name: '_user',
1190
1513
  type: 'address',
1191
1514
  },
1192
1515
  {
@@ -1198,126 +1521,115 @@ export const abi = [
1198
1521
  type: 'uint256',
1199
1522
  },
1200
1523
  {
1201
- name: '_proof',
1524
+ name: '_extraData',
1202
1525
  type: 'bytes32',
1203
1526
  },
1204
1527
  {
1528
+ name: '_miniAddys',
1529
+ type: 'tuple',
1205
1530
  components: [
1206
1531
  {
1207
- name: 'signature',
1208
- type: 'bytes',
1532
+ name: 'ledger',
1533
+ type: 'address',
1209
1534
  },
1210
1535
  {
1211
- name: 'signer',
1536
+ name: 'missionControl',
1212
1537
  type: 'address',
1213
1538
  },
1214
1539
  {
1215
- name: 'expiration',
1216
- type: 'uint256',
1540
+ name: 'legoBook',
1541
+ type: 'address',
1542
+ },
1543
+ {
1544
+ name: 'appraiser',
1545
+ type: 'address',
1217
1546
  },
1218
1547
  ],
1219
- name: '_sig',
1220
- type: 'tuple',
1221
1548
  },
1222
1549
  ],
1223
- name: 'claimRewards',
1224
- outputs: [],
1225
- stateMutability: 'nonpayable',
1226
- type: 'function',
1227
- },
1228
- {
1229
- inputs: [
1230
- {
1231
- name: '_userWallet',
1232
- type: 'address',
1233
- },
1550
+ outputs: [
1234
1551
  {
1235
- name: '_legoId',
1552
+ name: '',
1236
1553
  type: 'uint256',
1237
1554
  },
1238
1555
  {
1239
- name: '_nftAddr',
1240
- type: 'address',
1241
- },
1242
- {
1243
- name: '_nftTokenId',
1556
+ name: '',
1244
1557
  type: 'uint256',
1245
1558
  },
1559
+ ],
1560
+ },
1561
+ {
1562
+ stateMutability: 'view',
1563
+ type: 'function',
1564
+ name: 'hasClaimableRewards',
1565
+ inputs: [
1246
1566
  {
1247
- name: '_pool',
1248
- type: 'address',
1249
- },
1250
- {
1251
- name: '_tokenA',
1252
- type: 'address',
1253
- },
1254
- {
1255
- name: '_tokenB',
1567
+ name: '_user',
1256
1568
  type: 'address',
1257
1569
  },
1258
1570
  ],
1259
- name: 'addLiquidity',
1260
1571
  outputs: [
1261
1572
  {
1262
1573
  name: '',
1263
- type: 'uint256',
1574
+ type: 'bool',
1575
+ },
1576
+ ],
1577
+ },
1578
+ {
1579
+ stateMutability: 'view',
1580
+ type: 'function',
1581
+ name: 'getAccessForLego',
1582
+ inputs: [
1583
+ {
1584
+ name: '_user',
1585
+ type: 'address',
1264
1586
  },
1265
1587
  {
1266
- name: '',
1588
+ name: '_action',
1267
1589
  type: 'uint256',
1268
1590
  },
1591
+ ],
1592
+ outputs: [
1269
1593
  {
1270
1594
  name: '',
1271
- type: 'uint256',
1595
+ type: 'address',
1272
1596
  },
1273
1597
  {
1274
1598
  name: '',
1275
- type: 'uint256',
1599
+ type: 'string',
1276
1600
  },
1277
1601
  {
1278
1602
  name: '',
1279
1603
  type: 'uint256',
1280
1604
  },
1281
1605
  ],
1282
- stateMutability: 'nonpayable',
1283
- type: 'function',
1284
1606
  },
1285
1607
  {
1608
+ stateMutability: 'nonpayable',
1609
+ type: 'function',
1610
+ name: 'swapTokens',
1286
1611
  inputs: [
1287
1612
  {
1288
- name: '_userWallet',
1289
- type: 'address',
1290
- },
1291
- {
1292
- name: '_legoId',
1613
+ name: '_amountIn',
1293
1614
  type: 'uint256',
1294
1615
  },
1295
1616
  {
1296
- name: '_nftAddr',
1297
- type: 'address',
1298
- },
1299
- {
1300
- name: '_nftTokenId',
1617
+ name: '_minAmountOut',
1301
1618
  type: 'uint256',
1302
1619
  },
1303
1620
  {
1304
- name: '_pool',
1305
- type: 'address',
1621
+ name: '_tokenPath',
1622
+ type: 'address[]',
1306
1623
  },
1307
1624
  {
1308
- name: '_tokenA',
1309
- type: 'address',
1625
+ name: '_poolPath',
1626
+ type: 'address[]',
1310
1627
  },
1311
1628
  {
1312
- name: '_tokenB',
1629
+ name: '_recipient',
1313
1630
  type: 'address',
1314
1631
  },
1315
- {
1316
- name: '_amountA',
1317
- type: 'uint256',
1318
- },
1319
1632
  ],
1320
- name: 'addLiquidity',
1321
1633
  outputs: [
1322
1634
  {
1323
1635
  name: '',
@@ -1331,58 +1643,56 @@ export const abi = [
1331
1643
  name: '',
1332
1644
  type: 'uint256',
1333
1645
  },
1334
- {
1335
- name: '',
1336
- type: 'uint256',
1337
- },
1338
- {
1339
- name: '',
1340
- type: 'uint256',
1341
- },
1342
1646
  ],
1343
- stateMutability: 'nonpayable',
1344
- type: 'function',
1345
1647
  },
1346
1648
  {
1649
+ stateMutability: 'nonpayable',
1650
+ type: 'function',
1651
+ name: 'swapTokens',
1347
1652
  inputs: [
1348
1653
  {
1349
- name: '_userWallet',
1350
- type: 'address',
1351
- },
1352
- {
1353
- name: '_legoId',
1654
+ name: '_amountIn',
1354
1655
  type: 'uint256',
1355
1656
  },
1356
1657
  {
1357
- name: '_nftAddr',
1358
- type: 'address',
1359
- },
1360
- {
1361
- name: '_nftTokenId',
1658
+ name: '_minAmountOut',
1362
1659
  type: 'uint256',
1363
1660
  },
1364
1661
  {
1365
- name: '_pool',
1366
- type: 'address',
1662
+ name: '_tokenPath',
1663
+ type: 'address[]',
1367
1664
  },
1368
1665
  {
1369
- name: '_tokenA',
1370
- type: 'address',
1666
+ name: '_poolPath',
1667
+ type: 'address[]',
1371
1668
  },
1372
1669
  {
1373
- name: '_tokenB',
1670
+ name: '_recipient',
1374
1671
  type: 'address',
1375
1672
  },
1376
1673
  {
1377
- name: '_amountA',
1378
- type: 'uint256',
1379
- },
1380
- {
1381
- name: '_amountB',
1382
- type: 'uint256',
1674
+ name: '_miniAddys',
1675
+ type: 'tuple',
1676
+ components: [
1677
+ {
1678
+ name: 'ledger',
1679
+ type: 'address',
1680
+ },
1681
+ {
1682
+ name: 'missionControl',
1683
+ type: 'address',
1684
+ },
1685
+ {
1686
+ name: 'legoBook',
1687
+ type: 'address',
1688
+ },
1689
+ {
1690
+ name: 'appraiser',
1691
+ type: 'address',
1692
+ },
1693
+ ],
1383
1694
  },
1384
1695
  ],
1385
- name: 'addLiquidity',
1386
1696
  outputs: [
1387
1697
  {
1388
1698
  name: '',
@@ -1396,62 +1706,38 @@ export const abi = [
1396
1706
  name: '',
1397
1707
  type: 'uint256',
1398
1708
  },
1399
- {
1400
- name: '',
1401
- type: 'uint256',
1402
- },
1403
- {
1404
- name: '',
1405
- type: 'uint256',
1406
- },
1407
1709
  ],
1408
- stateMutability: 'nonpayable',
1409
- type: 'function',
1410
1710
  },
1411
1711
  {
1712
+ stateMutability: 'nonpayable',
1713
+ type: 'function',
1714
+ name: 'mintOrRedeemAsset',
1412
1715
  inputs: [
1413
1716
  {
1414
- name: '_userWallet',
1717
+ name: '_tokenIn',
1415
1718
  type: 'address',
1416
1719
  },
1417
1720
  {
1418
- name: '_legoId',
1419
- type: 'uint256',
1420
- },
1421
- {
1422
- name: '_nftAddr',
1721
+ name: '_tokenOut',
1423
1722
  type: 'address',
1424
1723
  },
1425
1724
  {
1426
- name: '_nftTokenId',
1725
+ name: '_tokenInAmount',
1427
1726
  type: 'uint256',
1428
1727
  },
1429
1728
  {
1430
- name: '_pool',
1431
- type: 'address',
1432
- },
1433
- {
1434
- name: '_tokenA',
1435
- type: 'address',
1436
- },
1437
- {
1438
- name: '_tokenB',
1439
- type: 'address',
1440
- },
1441
- {
1442
- name: '_amountA',
1729
+ name: '_minAmountOut',
1443
1730
  type: 'uint256',
1444
1731
  },
1445
1732
  {
1446
- name: '_amountB',
1447
- type: 'uint256',
1733
+ name: '_extraData',
1734
+ type: 'bytes32',
1448
1735
  },
1449
1736
  {
1450
- name: '_tickLower',
1451
- type: 'int24',
1737
+ name: '_recipient',
1738
+ type: 'address',
1452
1739
  },
1453
1740
  ],
1454
- name: 'addLiquidity',
1455
1741
  outputs: [
1456
1742
  {
1457
1743
  name: '',
@@ -1463,68 +1749,66 @@ export const abi = [
1463
1749
  },
1464
1750
  {
1465
1751
  name: '',
1466
- type: 'uint256',
1467
- },
1468
- {
1469
- name: '',
1470
- type: 'uint256',
1752
+ type: 'bool',
1471
1753
  },
1472
1754
  {
1473
1755
  name: '',
1474
1756
  type: 'uint256',
1475
1757
  },
1476
1758
  ],
1477
- stateMutability: 'nonpayable',
1478
- type: 'function',
1479
1759
  },
1480
1760
  {
1761
+ stateMutability: 'nonpayable',
1762
+ type: 'function',
1763
+ name: 'mintOrRedeemAsset',
1481
1764
  inputs: [
1482
1765
  {
1483
- name: '_userWallet',
1766
+ name: '_tokenIn',
1484
1767
  type: 'address',
1485
1768
  },
1486
1769
  {
1487
- name: '_legoId',
1488
- type: 'uint256',
1489
- },
1490
- {
1491
- name: '_nftAddr',
1770
+ name: '_tokenOut',
1492
1771
  type: 'address',
1493
1772
  },
1494
1773
  {
1495
- name: '_nftTokenId',
1774
+ name: '_tokenInAmount',
1496
1775
  type: 'uint256',
1497
1776
  },
1498
1777
  {
1499
- name: '_pool',
1500
- type: 'address',
1501
- },
1502
- {
1503
- name: '_tokenA',
1504
- type: 'address',
1505
- },
1506
- {
1507
- name: '_tokenB',
1508
- type: 'address',
1509
- },
1510
- {
1511
- name: '_amountA',
1778
+ name: '_minAmountOut',
1512
1779
  type: 'uint256',
1513
1780
  },
1514
1781
  {
1515
- name: '_amountB',
1516
- type: 'uint256',
1782
+ name: '_extraData',
1783
+ type: 'bytes32',
1517
1784
  },
1518
1785
  {
1519
- name: '_tickLower',
1520
- type: 'int24',
1786
+ name: '_recipient',
1787
+ type: 'address',
1521
1788
  },
1522
1789
  {
1523
- name: '_tickUpper',
1524
- type: 'int24',
1790
+ name: '_miniAddys',
1791
+ type: 'tuple',
1792
+ components: [
1793
+ {
1794
+ name: 'ledger',
1795
+ type: 'address',
1796
+ },
1797
+ {
1798
+ name: 'missionControl',
1799
+ type: 'address',
1800
+ },
1801
+ {
1802
+ name: 'legoBook',
1803
+ type: 'address',
1804
+ },
1805
+ {
1806
+ name: 'appraiser',
1807
+ type: 'address',
1808
+ },
1809
+ ],
1525
1810
  },
1526
1811
  ],
1527
- name: 'addLiquidity',
1528
1812
  outputs: [
1529
1813
  {
1530
1814
  name: '',
@@ -1536,85 +1820,92 @@ export const abi = [
1536
1820
  },
1537
1821
  {
1538
1822
  name: '',
1539
- type: 'uint256',
1540
- },
1541
- {
1542
- name: '',
1543
- type: 'uint256',
1823
+ type: 'bool',
1544
1824
  },
1545
1825
  {
1546
1826
  name: '',
1547
1827
  type: 'uint256',
1548
1828
  },
1549
1829
  ],
1550
- stateMutability: 'nonpayable',
1551
- type: 'function',
1552
1830
  },
1553
1831
  {
1832
+ stateMutability: 'nonpayable',
1833
+ type: 'function',
1834
+ name: 'confirmMintOrRedeemAsset',
1554
1835
  inputs: [
1555
1836
  {
1556
- name: '_userWallet',
1837
+ name: '_tokenIn',
1557
1838
  type: 'address',
1558
1839
  },
1559
1840
  {
1560
- name: '_legoId',
1561
- type: 'uint256',
1562
- },
1563
- {
1564
- name: '_nftAddr',
1841
+ name: '_tokenOut',
1565
1842
  type: 'address',
1566
1843
  },
1567
1844
  {
1568
- name: '_nftTokenId',
1569
- type: 'uint256',
1845
+ name: '_extraData',
1846
+ type: 'bytes32',
1570
1847
  },
1571
1848
  {
1572
- name: '_pool',
1849
+ name: '_recipient',
1573
1850
  type: 'address',
1574
1851
  },
1852
+ ],
1853
+ outputs: [
1575
1854
  {
1576
- name: '_tokenA',
1577
- type: 'address',
1578
- },
1579
- {
1580
- name: '_tokenB',
1581
- type: 'address',
1582
- },
1583
- {
1584
- name: '_amountA',
1855
+ name: '',
1585
1856
  type: 'uint256',
1586
1857
  },
1587
1858
  {
1588
- name: '_amountB',
1859
+ name: '',
1589
1860
  type: 'uint256',
1590
1861
  },
1862
+ ],
1863
+ },
1864
+ {
1865
+ stateMutability: 'nonpayable',
1866
+ type: 'function',
1867
+ name: 'confirmMintOrRedeemAsset',
1868
+ inputs: [
1591
1869
  {
1592
- name: '_tickLower',
1593
- type: 'int24',
1594
- },
1595
- {
1596
- name: '_tickUpper',
1597
- type: 'int24',
1870
+ name: '_tokenIn',
1871
+ type: 'address',
1598
1872
  },
1599
1873
  {
1600
- name: '_minAmountA',
1601
- type: 'uint256',
1874
+ name: '_tokenOut',
1875
+ type: 'address',
1602
1876
  },
1603
- ],
1604
- name: 'addLiquidity',
1605
- outputs: [
1606
1877
  {
1607
- name: '',
1608
- type: 'uint256',
1878
+ name: '_extraData',
1879
+ type: 'bytes32',
1609
1880
  },
1610
1881
  {
1611
- name: '',
1612
- type: 'uint256',
1882
+ name: '_recipient',
1883
+ type: 'address',
1613
1884
  },
1614
1885
  {
1615
- name: '',
1616
- type: 'uint256',
1886
+ name: '_miniAddys',
1887
+ type: 'tuple',
1888
+ components: [
1889
+ {
1890
+ name: 'ledger',
1891
+ type: 'address',
1892
+ },
1893
+ {
1894
+ name: 'missionControl',
1895
+ type: 'address',
1896
+ },
1897
+ {
1898
+ name: 'legoBook',
1899
+ type: 'address',
1900
+ },
1901
+ {
1902
+ name: 'appraiser',
1903
+ type: 'address',
1904
+ },
1905
+ ],
1617
1906
  },
1907
+ ],
1908
+ outputs: [
1618
1909
  {
1619
1910
  name: '',
1620
1911
  type: 'uint256',
@@ -1624,78 +1915,118 @@ export const abi = [
1624
1915
  type: 'uint256',
1625
1916
  },
1626
1917
  ],
1627
- stateMutability: 'nonpayable',
1628
- type: 'function',
1629
1918
  },
1630
1919
  {
1920
+ stateMutability: 'nonpayable',
1921
+ type: 'function',
1922
+ name: 'addCollateral',
1631
1923
  inputs: [
1632
1924
  {
1633
- name: '_userWallet',
1925
+ name: '_asset',
1634
1926
  type: 'address',
1635
1927
  },
1636
1928
  {
1637
- name: '_legoId',
1929
+ name: '_amount',
1638
1930
  type: 'uint256',
1639
1931
  },
1640
1932
  {
1641
- name: '_nftAddr',
1642
- type: 'address',
1933
+ name: '_extraData',
1934
+ type: 'bytes32',
1643
1935
  },
1644
1936
  {
1645
- name: '_nftTokenId',
1646
- type: 'uint256',
1937
+ name: '_recipient',
1938
+ type: 'address',
1647
1939
  },
1940
+ ],
1941
+ outputs: [
1648
1942
  {
1649
- name: '_pool',
1650
- type: 'address',
1943
+ name: '',
1944
+ type: 'uint256',
1651
1945
  },
1652
1946
  {
1653
- name: '_tokenA',
1654
- type: 'address',
1947
+ name: '',
1948
+ type: 'uint256',
1655
1949
  },
1950
+ ],
1951
+ },
1952
+ {
1953
+ stateMutability: 'nonpayable',
1954
+ type: 'function',
1955
+ name: 'addCollateral',
1956
+ inputs: [
1656
1957
  {
1657
- name: '_tokenB',
1958
+ name: '_asset',
1658
1959
  type: 'address',
1659
1960
  },
1660
1961
  {
1661
- name: '_amountA',
1962
+ name: '_amount',
1662
1963
  type: 'uint256',
1663
1964
  },
1664
1965
  {
1665
- name: '_amountB',
1666
- type: 'uint256',
1966
+ name: '_extraData',
1967
+ type: 'bytes32',
1667
1968
  },
1668
1969
  {
1669
- name: '_tickLower',
1670
- type: 'int24',
1970
+ name: '_recipient',
1971
+ type: 'address',
1671
1972
  },
1672
1973
  {
1673
- name: '_tickUpper',
1674
- type: 'int24',
1974
+ name: '_miniAddys',
1975
+ type: 'tuple',
1976
+ components: [
1977
+ {
1978
+ name: 'ledger',
1979
+ type: 'address',
1980
+ },
1981
+ {
1982
+ name: 'missionControl',
1983
+ type: 'address',
1984
+ },
1985
+ {
1986
+ name: 'legoBook',
1987
+ type: 'address',
1988
+ },
1989
+ {
1990
+ name: 'appraiser',
1991
+ type: 'address',
1992
+ },
1993
+ ],
1675
1994
  },
1995
+ ],
1996
+ outputs: [
1676
1997
  {
1677
- name: '_minAmountA',
1998
+ name: '',
1678
1999
  type: 'uint256',
1679
2000
  },
1680
2001
  {
1681
- name: '_minAmountB',
2002
+ name: '',
1682
2003
  type: 'uint256',
1683
2004
  },
1684
2005
  ],
1685
- name: 'addLiquidity',
1686
- outputs: [
2006
+ },
2007
+ {
2008
+ stateMutability: 'nonpayable',
2009
+ type: 'function',
2010
+ name: 'removeCollateral',
2011
+ inputs: [
1687
2012
  {
1688
- name: '',
1689
- type: 'uint256',
2013
+ name: '_asset',
2014
+ type: 'address',
1690
2015
  },
1691
2016
  {
1692
- name: '',
2017
+ name: '_amount',
1693
2018
  type: 'uint256',
1694
2019
  },
1695
2020
  {
1696
- name: '',
1697
- type: 'uint256',
2021
+ name: '_extraData',
2022
+ type: 'bytes32',
2023
+ },
2024
+ {
2025
+ name: '_recipient',
2026
+ type: 'address',
1698
2027
  },
2028
+ ],
2029
+ outputs: [
1699
2030
  {
1700
2031
  name: '',
1701
2032
  type: 'uint256',
@@ -1705,69 +2036,84 @@ export const abi = [
1705
2036
  type: 'uint256',
1706
2037
  },
1707
2038
  ],
1708
- stateMutability: 'nonpayable',
1709
- type: 'function',
1710
2039
  },
1711
2040
  {
2041
+ stateMutability: 'nonpayable',
2042
+ type: 'function',
2043
+ name: 'removeCollateral',
1712
2044
  inputs: [
1713
2045
  {
1714
- name: '_userWallet',
1715
- type: 'address',
1716
- },
1717
- {
1718
- name: '_legoId',
1719
- type: 'uint256',
1720
- },
1721
- {
1722
- name: '_nftAddr',
2046
+ name: '_asset',
1723
2047
  type: 'address',
1724
2048
  },
1725
2049
  {
1726
- name: '_nftTokenId',
2050
+ name: '_amount',
1727
2051
  type: 'uint256',
1728
2052
  },
1729
2053
  {
1730
- name: '_pool',
1731
- type: 'address',
2054
+ name: '_extraData',
2055
+ type: 'bytes32',
1732
2056
  },
1733
2057
  {
1734
- name: '_tokenA',
2058
+ name: '_recipient',
1735
2059
  type: 'address',
1736
2060
  },
1737
2061
  {
1738
- name: '_tokenB',
1739
- type: 'address',
2062
+ name: '_miniAddys',
2063
+ type: 'tuple',
2064
+ components: [
2065
+ {
2066
+ name: 'ledger',
2067
+ type: 'address',
2068
+ },
2069
+ {
2070
+ name: 'missionControl',
2071
+ type: 'address',
2072
+ },
2073
+ {
2074
+ name: 'legoBook',
2075
+ type: 'address',
2076
+ },
2077
+ {
2078
+ name: 'appraiser',
2079
+ type: 'address',
2080
+ },
2081
+ ],
1740
2082
  },
2083
+ ],
2084
+ outputs: [
1741
2085
  {
1742
- name: '_amountA',
2086
+ name: '',
1743
2087
  type: 'uint256',
1744
2088
  },
1745
2089
  {
1746
- name: '_amountB',
2090
+ name: '',
1747
2091
  type: 'uint256',
1748
2092
  },
2093
+ ],
2094
+ },
2095
+ {
2096
+ stateMutability: 'nonpayable',
2097
+ type: 'function',
2098
+ name: 'borrow',
2099
+ inputs: [
1749
2100
  {
1750
- name: '_tickLower',
1751
- type: 'int24',
1752
- },
1753
- {
1754
- name: '_tickUpper',
1755
- type: 'int24',
2101
+ name: '_borrowAsset',
2102
+ type: 'address',
1756
2103
  },
1757
2104
  {
1758
- name: '_minAmountA',
2105
+ name: '_amount',
1759
2106
  type: 'uint256',
1760
2107
  },
1761
2108
  {
1762
- name: '_minAmountB',
1763
- type: 'uint256',
2109
+ name: '_extraData',
2110
+ type: 'bytes32',
1764
2111
  },
1765
2112
  {
1766
- name: '_minLpAmount',
1767
- type: 'uint256',
2113
+ name: '_recipient',
2114
+ type: 'address',
1768
2115
  },
1769
2116
  ],
1770
- name: 'addLiquidity',
1771
2117
  outputs: [
1772
2118
  {
1773
2119
  name: '',
@@ -1777,10 +2123,53 @@ export const abi = [
1777
2123
  name: '',
1778
2124
  type: 'uint256',
1779
2125
  },
2126
+ ],
2127
+ },
2128
+ {
2129
+ stateMutability: 'nonpayable',
2130
+ type: 'function',
2131
+ name: 'borrow',
2132
+ inputs: [
2133
+ {
2134
+ name: '_borrowAsset',
2135
+ type: 'address',
2136
+ },
1780
2137
  {
1781
- name: '',
2138
+ name: '_amount',
1782
2139
  type: 'uint256',
1783
2140
  },
2141
+ {
2142
+ name: '_extraData',
2143
+ type: 'bytes32',
2144
+ },
2145
+ {
2146
+ name: '_recipient',
2147
+ type: 'address',
2148
+ },
2149
+ {
2150
+ name: '_miniAddys',
2151
+ type: 'tuple',
2152
+ components: [
2153
+ {
2154
+ name: 'ledger',
2155
+ type: 'address',
2156
+ },
2157
+ {
2158
+ name: 'missionControl',
2159
+ type: 'address',
2160
+ },
2161
+ {
2162
+ name: 'legoBook',
2163
+ type: 'address',
2164
+ },
2165
+ {
2166
+ name: 'appraiser',
2167
+ type: 'address',
2168
+ },
2169
+ ],
2170
+ },
2171
+ ],
2172
+ outputs: [
1784
2173
  {
1785
2174
  name: '',
1786
2175
  type: 'uint256',
@@ -1790,87 +2179,84 @@ export const abi = [
1790
2179
  type: 'uint256',
1791
2180
  },
1792
2181
  ],
1793
- stateMutability: 'nonpayable',
1794
- type: 'function',
1795
2182
  },
1796
2183
  {
2184
+ stateMutability: 'nonpayable',
2185
+ type: 'function',
2186
+ name: 'repayDebt',
1797
2187
  inputs: [
1798
2188
  {
1799
- name: '_userWallet',
2189
+ name: '_paymentAsset',
1800
2190
  type: 'address',
1801
2191
  },
1802
2192
  {
1803
- name: '_legoId',
2193
+ name: '_paymentAmount',
1804
2194
  type: 'uint256',
1805
2195
  },
1806
2196
  {
1807
- name: '_nftAddr',
1808
- type: 'address',
2197
+ name: '_extraData',
2198
+ type: 'bytes32',
1809
2199
  },
1810
2200
  {
1811
- name: '_nftTokenId',
1812
- type: 'uint256',
1813
- },
1814
- {
1815
- name: '_pool',
1816
- type: 'address',
1817
- },
1818
- {
1819
- name: '_tokenA',
1820
- type: 'address',
1821
- },
1822
- {
1823
- name: '_tokenB',
2201
+ name: '_recipient',
1824
2202
  type: 'address',
1825
2203
  },
2204
+ ],
2205
+ outputs: [
1826
2206
  {
1827
- name: '_amountA',
2207
+ name: '',
1828
2208
  type: 'uint256',
1829
2209
  },
1830
2210
  {
1831
- name: '_amountB',
2211
+ name: '',
1832
2212
  type: 'uint256',
1833
2213
  },
2214
+ ],
2215
+ },
2216
+ {
2217
+ stateMutability: 'nonpayable',
2218
+ type: 'function',
2219
+ name: 'repayDebt',
2220
+ inputs: [
1834
2221
  {
1835
- name: '_tickLower',
1836
- type: 'int24',
1837
- },
1838
- {
1839
- name: '_tickUpper',
1840
- type: 'int24',
2222
+ name: '_paymentAsset',
2223
+ type: 'address',
1841
2224
  },
1842
2225
  {
1843
- name: '_minAmountA',
2226
+ name: '_paymentAmount',
1844
2227
  type: 'uint256',
1845
2228
  },
1846
2229
  {
1847
- name: '_minAmountB',
1848
- type: 'uint256',
2230
+ name: '_extraData',
2231
+ type: 'bytes32',
1849
2232
  },
1850
2233
  {
1851
- name: '_minLpAmount',
1852
- type: 'uint256',
2234
+ name: '_recipient',
2235
+ type: 'address',
1853
2236
  },
1854
2237
  {
2238
+ name: '_miniAddys',
2239
+ type: 'tuple',
1855
2240
  components: [
1856
2241
  {
1857
- name: 'signature',
1858
- type: 'bytes',
2242
+ name: 'ledger',
2243
+ type: 'address',
2244
+ },
2245
+ {
2246
+ name: 'missionControl',
2247
+ type: 'address',
1859
2248
  },
1860
2249
  {
1861
- name: 'signer',
2250
+ name: 'legoBook',
1862
2251
  type: 'address',
1863
2252
  },
1864
2253
  {
1865
- name: 'expiration',
1866
- type: 'uint256',
2254
+ name: 'appraiser',
2255
+ type: 'address',
1867
2256
  },
1868
2257
  ],
1869
- name: '_sig',
1870
- type: 'tuple',
1871
2258
  },
1872
2259
  ],
1873
- name: 'addLiquidity',
1874
2260
  outputs: [
1875
2261
  {
1876
2262
  name: '',
@@ -1880,40 +2266,13 @@ export const abi = [
1880
2266
  name: '',
1881
2267
  type: 'uint256',
1882
2268
  },
1883
- {
1884
- name: '',
1885
- type: 'uint256',
1886
- },
1887
- {
1888
- name: '',
1889
- type: 'uint256',
1890
- },
1891
- {
1892
- name: '',
1893
- type: 'uint256',
1894
- },
1895
2269
  ],
1896
- stateMutability: 'nonpayable',
1897
- type: 'function',
1898
2270
  },
1899
2271
  {
2272
+ stateMutability: 'nonpayable',
2273
+ type: 'function',
2274
+ name: 'addLiquidity',
1900
2275
  inputs: [
1901
- {
1902
- name: '_userWallet',
1903
- type: 'address',
1904
- },
1905
- {
1906
- name: '_legoId',
1907
- type: 'uint256',
1908
- },
1909
- {
1910
- name: '_nftAddr',
1911
- type: 'address',
1912
- },
1913
- {
1914
- name: '_nftTokenId',
1915
- type: 'uint256',
1916
- },
1917
2276
  {
1918
2277
  name: '_pool',
1919
2278
  type: 'address',
@@ -1926,66 +2285,40 @@ export const abi = [
1926
2285
  name: '_tokenB',
1927
2286
  type: 'address',
1928
2287
  },
1929
- ],
1930
- name: 'removeLiquidity',
1931
- outputs: [
1932
2288
  {
1933
- name: '',
2289
+ name: '_amountA',
1934
2290
  type: 'uint256',
1935
2291
  },
1936
2292
  {
1937
- name: '',
2293
+ name: '_amountB',
1938
2294
  type: 'uint256',
1939
2295
  },
1940
2296
  {
1941
- name: '',
2297
+ name: '_minAmountA',
1942
2298
  type: 'uint256',
1943
2299
  },
1944
2300
  {
1945
- name: '',
1946
- type: 'bool',
1947
- },
1948
- ],
1949
- stateMutability: 'nonpayable',
1950
- type: 'function',
1951
- },
1952
- {
1953
- inputs: [
1954
- {
1955
- name: '_userWallet',
1956
- type: 'address',
1957
- },
1958
- {
1959
- name: '_legoId',
2301
+ name: '_minAmountB',
1960
2302
  type: 'uint256',
1961
2303
  },
1962
2304
  {
1963
- name: '_nftAddr',
1964
- type: 'address',
1965
- },
1966
- {
1967
- name: '_nftTokenId',
2305
+ name: '_minLpAmount',
1968
2306
  type: 'uint256',
1969
2307
  },
1970
2308
  {
1971
- name: '_pool',
1972
- type: 'address',
2309
+ name: '_extraData',
2310
+ type: 'bytes32',
1973
2311
  },
1974
2312
  {
1975
- name: '_tokenA',
2313
+ name: '_recipient',
1976
2314
  type: 'address',
1977
2315
  },
2316
+ ],
2317
+ outputs: [
1978
2318
  {
1979
- name: '_tokenB',
2319
+ name: '',
1980
2320
  type: 'address',
1981
2321
  },
1982
- {
1983
- name: '_liqToRemove',
1984
- type: 'uint256',
1985
- },
1986
- ],
1987
- name: 'removeLiquidity',
1988
- outputs: [
1989
2322
  {
1990
2323
  name: '',
1991
2324
  type: 'uint256',
@@ -2000,53 +2333,83 @@ export const abi = [
2000
2333
  },
2001
2334
  {
2002
2335
  name: '',
2003
- type: 'bool',
2336
+ type: 'uint256',
2004
2337
  },
2005
2338
  ],
2006
- stateMutability: 'nonpayable',
2007
- type: 'function',
2008
2339
  },
2009
2340
  {
2341
+ stateMutability: 'nonpayable',
2342
+ type: 'function',
2343
+ name: 'addLiquidity',
2010
2344
  inputs: [
2011
2345
  {
2012
- name: '_userWallet',
2346
+ name: '_pool',
2013
2347
  type: 'address',
2014
2348
  },
2015
2349
  {
2016
- name: '_legoId',
2017
- type: 'uint256',
2350
+ name: '_tokenA',
2351
+ type: 'address',
2018
2352
  },
2019
2353
  {
2020
- name: '_nftAddr',
2354
+ name: '_tokenB',
2021
2355
  type: 'address',
2022
2356
  },
2023
2357
  {
2024
- name: '_nftTokenId',
2358
+ name: '_amountA',
2025
2359
  type: 'uint256',
2026
2360
  },
2027
2361
  {
2028
- name: '_pool',
2029
- type: 'address',
2362
+ name: '_amountB',
2363
+ type: 'uint256',
2030
2364
  },
2031
2365
  {
2032
- name: '_tokenA',
2033
- type: 'address',
2366
+ name: '_minAmountA',
2367
+ type: 'uint256',
2034
2368
  },
2035
2369
  {
2036
- name: '_tokenB',
2037
- type: 'address',
2370
+ name: '_minAmountB',
2371
+ type: 'uint256',
2038
2372
  },
2039
2373
  {
2040
- name: '_liqToRemove',
2374
+ name: '_minLpAmount',
2041
2375
  type: 'uint256',
2042
2376
  },
2043
2377
  {
2044
- name: '_minAmountA',
2045
- type: 'uint256',
2378
+ name: '_extraData',
2379
+ type: 'bytes32',
2380
+ },
2381
+ {
2382
+ name: '_recipient',
2383
+ type: 'address',
2384
+ },
2385
+ {
2386
+ name: '_miniAddys',
2387
+ type: 'tuple',
2388
+ components: [
2389
+ {
2390
+ name: 'ledger',
2391
+ type: 'address',
2392
+ },
2393
+ {
2394
+ name: 'missionControl',
2395
+ type: 'address',
2396
+ },
2397
+ {
2398
+ name: 'legoBook',
2399
+ type: 'address',
2400
+ },
2401
+ {
2402
+ name: 'appraiser',
2403
+ type: 'address',
2404
+ },
2405
+ ],
2046
2406
  },
2047
2407
  ],
2048
- name: 'removeLiquidity',
2049
2408
  outputs: [
2409
+ {
2410
+ name: '',
2411
+ type: 'address',
2412
+ },
2050
2413
  {
2051
2414
  name: '',
2052
2415
  type: 'uint256',
@@ -2061,30 +2424,15 @@ export const abi = [
2061
2424
  },
2062
2425
  {
2063
2426
  name: '',
2064
- type: 'bool',
2427
+ type: 'uint256',
2065
2428
  },
2066
2429
  ],
2067
- stateMutability: 'nonpayable',
2068
- type: 'function',
2069
2430
  },
2070
2431
  {
2432
+ stateMutability: 'nonpayable',
2433
+ type: 'function',
2434
+ name: 'removeLiquidity',
2071
2435
  inputs: [
2072
- {
2073
- name: '_userWallet',
2074
- type: 'address',
2075
- },
2076
- {
2077
- name: '_legoId',
2078
- type: 'uint256',
2079
- },
2080
- {
2081
- name: '_nftAddr',
2082
- type: 'address',
2083
- },
2084
- {
2085
- name: '_nftTokenId',
2086
- type: 'uint256',
2087
- },
2088
2436
  {
2089
2437
  name: '_pool',
2090
2438
  type: 'address',
@@ -2098,7 +2446,11 @@ export const abi = [
2098
2446
  type: 'address',
2099
2447
  },
2100
2448
  {
2101
- name: '_liqToRemove',
2449
+ name: '_lpToken',
2450
+ type: 'address',
2451
+ },
2452
+ {
2453
+ name: '_lpAmount',
2102
2454
  type: 'uint256',
2103
2455
  },
2104
2456
  {
@@ -2109,8 +2461,15 @@ export const abi = [
2109
2461
  name: '_minAmountB',
2110
2462
  type: 'uint256',
2111
2463
  },
2464
+ {
2465
+ name: '_extraData',
2466
+ type: 'bytes32',
2467
+ },
2468
+ {
2469
+ name: '_recipient',
2470
+ type: 'address',
2471
+ },
2112
2472
  ],
2113
- name: 'removeLiquidity',
2114
2473
  outputs: [
2115
2474
  {
2116
2475
  name: '',
@@ -2126,30 +2485,15 @@ export const abi = [
2126
2485
  },
2127
2486
  {
2128
2487
  name: '',
2129
- type: 'bool',
2488
+ type: 'uint256',
2130
2489
  },
2131
2490
  ],
2132
- stateMutability: 'nonpayable',
2133
- type: 'function',
2134
2491
  },
2135
2492
  {
2493
+ stateMutability: 'nonpayable',
2494
+ type: 'function',
2495
+ name: 'removeLiquidity',
2136
2496
  inputs: [
2137
- {
2138
- name: '_userWallet',
2139
- type: 'address',
2140
- },
2141
- {
2142
- name: '_legoId',
2143
- type: 'uint256',
2144
- },
2145
- {
2146
- name: '_nftAddr',
2147
- type: 'address',
2148
- },
2149
- {
2150
- name: '_nftTokenId',
2151
- type: 'uint256',
2152
- },
2153
2497
  {
2154
2498
  name: '_pool',
2155
2499
  type: 'address',
@@ -2163,7 +2507,11 @@ export const abi = [
2163
2507
  type: 'address',
2164
2508
  },
2165
2509
  {
2166
- name: '_liqToRemove',
2510
+ name: '_lpToken',
2511
+ type: 'address',
2512
+ },
2513
+ {
2514
+ name: '_lpAmount',
2167
2515
  type: 'uint256',
2168
2516
  },
2169
2517
  {
@@ -2175,25 +2523,36 @@ export const abi = [
2175
2523
  type: 'uint256',
2176
2524
  },
2177
2525
  {
2526
+ name: '_extraData',
2527
+ type: 'bytes32',
2528
+ },
2529
+ {
2530
+ name: '_recipient',
2531
+ type: 'address',
2532
+ },
2533
+ {
2534
+ name: '_miniAddys',
2535
+ type: 'tuple',
2178
2536
  components: [
2179
2537
  {
2180
- name: 'signature',
2181
- type: 'bytes',
2538
+ name: 'ledger',
2539
+ type: 'address',
2182
2540
  },
2183
2541
  {
2184
- name: 'signer',
2542
+ name: 'missionControl',
2185
2543
  type: 'address',
2186
2544
  },
2187
2545
  {
2188
- name: 'expiration',
2189
- type: 'uint256',
2546
+ name: 'legoBook',
2547
+ type: 'address',
2548
+ },
2549
+ {
2550
+ name: 'appraiser',
2551
+ type: 'address',
2190
2552
  },
2191
2553
  ],
2192
- name: '_sig',
2193
- type: 'tuple',
2194
2554
  },
2195
2555
  ],
2196
- name: 'removeLiquidity',
2197
2556
  outputs: [
2198
2557
  {
2199
2558
  name: '',
@@ -2209,158 +2568,64 @@ export const abi = [
2209
2568
  },
2210
2569
  {
2211
2570
  name: '',
2212
- type: 'bool',
2571
+ type: 'uint256',
2213
2572
  },
2214
2573
  ],
2215
- stateMutability: 'nonpayable',
2216
- type: 'function',
2217
2574
  },
2218
2575
  {
2219
- inputs: [
2220
- {
2221
- name: '_userWallet',
2222
- type: 'address',
2223
- },
2224
- {
2225
- name: '_recipient',
2226
- type: 'address',
2227
- },
2228
- ],
2229
- name: 'transferFunds',
2230
- outputs: [
2231
- {
2232
- name: '',
2233
- type: 'uint256',
2234
- },
2235
- {
2236
- name: '',
2237
- type: 'uint256',
2238
- },
2239
- ],
2240
2576
  stateMutability: 'nonpayable',
2241
2577
  type: 'function',
2242
- },
2243
- {
2578
+ name: 'addLiquidityConcentrated',
2244
2579
  inputs: [
2245
2580
  {
2246
- name: '_userWallet',
2247
- type: 'address',
2248
- },
2249
- {
2250
- name: '_recipient',
2251
- type: 'address',
2252
- },
2253
- {
2254
- name: '_amount',
2255
- type: 'uint256',
2256
- },
2257
- ],
2258
- name: 'transferFunds',
2259
- outputs: [
2260
- {
2261
- name: '',
2581
+ name: '_nftTokenId',
2262
2582
  type: 'uint256',
2263
2583
  },
2264
2584
  {
2265
- name: '',
2266
- type: 'uint256',
2585
+ name: '_pool',
2586
+ type: 'address',
2267
2587
  },
2268
- ],
2269
- stateMutability: 'nonpayable',
2270
- type: 'function',
2271
- },
2272
- {
2273
- inputs: [
2274
2588
  {
2275
- name: '_userWallet',
2589
+ name: '_tokenA',
2276
2590
  type: 'address',
2277
2591
  },
2278
2592
  {
2279
- name: '_recipient',
2593
+ name: '_tokenB',
2280
2594
  type: 'address',
2281
2595
  },
2282
2596
  {
2283
- name: '_amount',
2284
- type: 'uint256',
2597
+ name: '_tickLower',
2598
+ type: 'int24',
2285
2599
  },
2286
2600
  {
2287
- name: '_asset',
2288
- type: 'address',
2601
+ name: '_tickUpper',
2602
+ type: 'int24',
2289
2603
  },
2290
- ],
2291
- name: 'transferFunds',
2292
- outputs: [
2293
2604
  {
2294
- name: '',
2605
+ name: '_amountA',
2295
2606
  type: 'uint256',
2296
2607
  },
2297
2608
  {
2298
- name: '',
2609
+ name: '_amountB',
2299
2610
  type: 'uint256',
2300
2611
  },
2301
- ],
2302
- stateMutability: 'nonpayable',
2303
- type: 'function',
2304
- },
2305
- {
2306
- inputs: [
2307
- {
2308
- name: '_userWallet',
2309
- type: 'address',
2310
- },
2311
- {
2312
- name: '_recipient',
2313
- type: 'address',
2314
- },
2315
2612
  {
2316
- name: '_amount',
2613
+ name: '_minAmountA',
2317
2614
  type: 'uint256',
2318
2615
  },
2319
2616
  {
2320
- name: '_asset',
2321
- type: 'address',
2322
- },
2323
- {
2324
- components: [
2325
- {
2326
- name: 'signature',
2327
- type: 'bytes',
2328
- },
2329
- {
2330
- name: 'signer',
2331
- type: 'address',
2332
- },
2333
- {
2334
- name: 'expiration',
2335
- type: 'uint256',
2336
- },
2337
- ],
2338
- name: '_sig',
2339
- type: 'tuple',
2340
- },
2341
- ],
2342
- name: 'transferFunds',
2343
- outputs: [
2344
- {
2345
- name: '',
2617
+ name: '_minAmountB',
2346
2618
  type: 'uint256',
2347
2619
  },
2348
2620
  {
2349
- name: '',
2350
- type: 'uint256',
2621
+ name: '_extraData',
2622
+ type: 'bytes32',
2351
2623
  },
2352
- ],
2353
- stateMutability: 'nonpayable',
2354
- type: 'function',
2355
- },
2356
- {
2357
- inputs: [
2358
2624
  {
2359
- name: '_userWallet',
2625
+ name: '_recipient',
2360
2626
  type: 'address',
2361
2627
  },
2362
2628
  ],
2363
- name: 'convertEthToWeth',
2364
2629
  outputs: [
2365
2630
  {
2366
2631
  name: '',
@@ -2368,905 +2633,295 @@ export const abi = [
2368
2633
  },
2369
2634
  {
2370
2635
  name: '',
2371
- type: 'address',
2372
- },
2373
- {
2374
- name: '',
2375
- type: 'uint256',
2376
- },
2377
- ],
2378
- stateMutability: 'nonpayable',
2379
- type: 'function',
2380
- },
2381
- {
2382
- inputs: [
2383
- {
2384
- name: '_userWallet',
2385
- type: 'address',
2386
- },
2387
- {
2388
- name: '_amount',
2389
2636
  type: 'uint256',
2390
2637
  },
2391
- ],
2392
- name: 'convertEthToWeth',
2393
- outputs: [
2394
2638
  {
2395
2639
  name: '',
2396
2640
  type: 'uint256',
2397
2641
  },
2398
2642
  {
2399
2643
  name: '',
2400
- type: 'address',
2644
+ type: 'uint256',
2401
2645
  },
2402
2646
  {
2403
2647
  name: '',
2404
2648
  type: 'uint256',
2405
2649
  },
2406
2650
  ],
2407
- stateMutability: 'nonpayable',
2408
- type: 'function',
2409
2651
  },
2410
2652
  {
2411
- inputs: [
2412
- {
2413
- name: '_userWallet',
2414
- type: 'address',
2415
- },
2416
- {
2417
- name: '_amount',
2418
- type: 'uint256',
2419
- },
2420
- {
2421
- name: '_depositLegoId',
2422
- type: 'uint256',
2423
- },
2424
- ],
2425
- name: 'convertEthToWeth',
2426
- outputs: [
2427
- {
2428
- name: '',
2429
- type: 'uint256',
2430
- },
2431
- {
2432
- name: '',
2433
- type: 'address',
2434
- },
2435
- {
2436
- name: '',
2437
- type: 'uint256',
2438
- },
2439
- ],
2440
2653
  stateMutability: 'nonpayable',
2441
2654
  type: 'function',
2442
- },
2443
- {
2655
+ name: 'addLiquidityConcentrated',
2444
2656
  inputs: [
2445
2657
  {
2446
- name: '_userWallet',
2447
- type: 'address',
2448
- },
2449
- {
2450
- name: '_amount',
2451
- type: 'uint256',
2452
- },
2453
- {
2454
- name: '_depositLegoId',
2658
+ name: '_nftTokenId',
2455
2659
  type: 'uint256',
2456
2660
  },
2457
2661
  {
2458
- name: '_depositVault',
2662
+ name: '_pool',
2459
2663
  type: 'address',
2460
2664
  },
2461
- ],
2462
- name: 'convertEthToWeth',
2463
- outputs: [
2464
2665
  {
2465
- name: '',
2466
- type: 'uint256',
2666
+ name: '_tokenA',
2667
+ type: 'address',
2467
2668
  },
2468
2669
  {
2469
- name: '',
2670
+ name: '_tokenB',
2470
2671
  type: 'address',
2471
2672
  },
2472
2673
  {
2473
- name: '',
2474
- type: 'uint256',
2674
+ name: '_tickLower',
2675
+ type: 'int24',
2475
2676
  },
2476
- ],
2477
- stateMutability: 'nonpayable',
2478
- type: 'function',
2479
- },
2480
- {
2481
- inputs: [
2482
2677
  {
2483
- name: '_userWallet',
2484
- type: 'address',
2678
+ name: '_tickUpper',
2679
+ type: 'int24',
2485
2680
  },
2486
2681
  {
2487
- name: '_amount',
2682
+ name: '_amountA',
2488
2683
  type: 'uint256',
2489
2684
  },
2490
2685
  {
2491
- name: '_depositLegoId',
2686
+ name: '_amountB',
2492
2687
  type: 'uint256',
2493
2688
  },
2494
2689
  {
2495
- name: '_depositVault',
2496
- type: 'address',
2497
- },
2498
- {
2499
- components: [
2500
- {
2501
- name: 'signature',
2502
- type: 'bytes',
2503
- },
2504
- {
2505
- name: 'signer',
2506
- type: 'address',
2507
- },
2508
- {
2509
- name: 'expiration',
2510
- type: 'uint256',
2511
- },
2512
- ],
2513
- name: '_sig',
2514
- type: 'tuple',
2515
- },
2516
- ],
2517
- name: 'convertEthToWeth',
2518
- outputs: [
2519
- {
2520
- name: '',
2690
+ name: '_minAmountA',
2521
2691
  type: 'uint256',
2522
2692
  },
2523
2693
  {
2524
- name: '',
2525
- type: 'address',
2526
- },
2527
- {
2528
- name: '',
2694
+ name: '_minAmountB',
2529
2695
  type: 'uint256',
2530
2696
  },
2531
- ],
2532
- stateMutability: 'nonpayable',
2533
- type: 'function',
2534
- },
2535
- {
2536
- inputs: [
2537
- {
2538
- name: '_userWallet',
2539
- type: 'address',
2540
- },
2541
- ],
2542
- name: 'convertWethToEth',
2543
- outputs: [
2544
2697
  {
2545
- name: '',
2546
- type: 'uint256',
2698
+ name: '_extraData',
2699
+ type: 'bytes32',
2547
2700
  },
2548
- ],
2549
- stateMutability: 'nonpayable',
2550
- type: 'function',
2551
- },
2552
- {
2553
- inputs: [
2554
2701
  {
2555
- name: '_userWallet',
2702
+ name: '_recipient',
2556
2703
  type: 'address',
2557
2704
  },
2558
2705
  {
2559
- name: '_amount',
2560
- type: 'uint256',
2561
- },
2562
- ],
2563
- name: 'convertWethToEth',
2564
- outputs: [
2565
- {
2566
- name: '',
2567
- type: 'uint256',
2568
- },
2569
- ],
2570
- stateMutability: 'nonpayable',
2571
- type: 'function',
2572
- },
2573
- {
2574
- inputs: [
2575
- {
2576
- name: '_userWallet',
2577
- type: 'address',
2578
- },
2579
- {
2580
- name: '_amount',
2581
- type: 'uint256',
2582
- },
2583
- {
2584
- name: '_recipient',
2585
- type: 'address',
2586
- },
2587
- ],
2588
- name: 'convertWethToEth',
2589
- outputs: [
2590
- {
2591
- name: '',
2592
- type: 'uint256',
2593
- },
2594
- ],
2595
- stateMutability: 'nonpayable',
2596
- type: 'function',
2597
- },
2598
- {
2599
- inputs: [
2600
- {
2601
- name: '_userWallet',
2602
- type: 'address',
2603
- },
2604
- {
2605
- name: '_amount',
2606
- type: 'uint256',
2607
- },
2608
- {
2609
- name: '_recipient',
2610
- type: 'address',
2611
- },
2612
- {
2613
- name: '_withdrawLegoId',
2614
- type: 'uint256',
2615
- },
2616
- ],
2617
- name: 'convertWethToEth',
2618
- outputs: [
2619
- {
2620
- name: '',
2621
- type: 'uint256',
2622
- },
2623
- ],
2624
- stateMutability: 'nonpayable',
2625
- type: 'function',
2626
- },
2627
- {
2628
- inputs: [
2629
- {
2630
- name: '_userWallet',
2631
- type: 'address',
2632
- },
2633
- {
2634
- name: '_amount',
2635
- type: 'uint256',
2636
- },
2637
- {
2638
- name: '_recipient',
2639
- type: 'address',
2640
- },
2641
- {
2642
- name: '_withdrawLegoId',
2643
- type: 'uint256',
2644
- },
2645
- {
2646
- name: '_withdrawVaultToken',
2647
- type: 'address',
2648
- },
2649
- ],
2650
- name: 'convertWethToEth',
2651
- outputs: [
2652
- {
2653
- name: '',
2654
- type: 'uint256',
2655
- },
2656
- ],
2657
- stateMutability: 'nonpayable',
2658
- type: 'function',
2659
- },
2660
- {
2661
- inputs: [
2662
- {
2663
- name: '_userWallet',
2664
- type: 'address',
2665
- },
2666
- {
2667
- name: '_amount',
2668
- type: 'uint256',
2669
- },
2670
- {
2671
- name: '_recipient',
2672
- type: 'address',
2673
- },
2674
- {
2675
- name: '_withdrawLegoId',
2676
- type: 'uint256',
2677
- },
2678
- {
2679
- name: '_withdrawVaultToken',
2680
- type: 'address',
2681
- },
2682
- {
2683
- components: [
2684
- {
2685
- name: 'signature',
2686
- type: 'bytes',
2687
- },
2688
- {
2689
- name: 'signer',
2690
- type: 'address',
2691
- },
2692
- {
2693
- name: 'expiration',
2694
- type: 'uint256',
2695
- },
2696
- ],
2697
- name: '_sig',
2706
+ name: '_miniAddys',
2698
2707
  type: 'tuple',
2699
- },
2700
- ],
2701
- name: 'convertWethToEth',
2702
- outputs: [
2703
- {
2704
- name: '',
2705
- type: 'uint256',
2706
- },
2707
- ],
2708
- stateMutability: 'nonpayable',
2709
- type: 'function',
2710
- },
2711
- {
2712
- inputs: [
2713
- {
2714
- name: '_userWallet',
2715
- type: 'address',
2716
- },
2717
- {
2718
- components: [
2719
- {
2720
- name: 'usePrevAmountOut',
2721
- type: 'bool',
2722
- },
2723
- {
2724
- name: 'action',
2725
- type: 'uint256',
2726
- },
2727
- {
2728
- name: 'legoId',
2729
- type: 'uint256',
2730
- },
2731
- {
2732
- name: 'asset',
2733
- type: 'address',
2734
- },
2735
- {
2736
- name: 'vault',
2737
- type: 'address',
2738
- },
2739
- {
2740
- name: 'amount',
2741
- type: 'uint256',
2742
- },
2743
- {
2744
- name: 'altLegoId',
2745
- type: 'uint256',
2746
- },
2747
- {
2748
- name: 'altAsset',
2749
- type: 'address',
2750
- },
2751
- {
2752
- name: 'altVault',
2753
- type: 'address',
2754
- },
2755
- {
2756
- name: 'altAmount',
2757
- type: 'uint256',
2758
- },
2759
- {
2760
- name: 'minAmountOut',
2761
- type: 'uint256',
2762
- },
2763
- {
2764
- name: 'pool',
2765
- type: 'address',
2766
- },
2767
- {
2768
- name: 'proof',
2769
- type: 'bytes32',
2770
- },
2771
- {
2772
- name: 'nftAddr',
2773
- type: 'address',
2774
- },
2775
- {
2776
- name: 'nftTokenId',
2777
- type: 'uint256',
2778
- },
2779
- {
2780
- name: 'tickLower',
2781
- type: 'int24',
2782
- },
2783
- {
2784
- name: 'tickUpper',
2785
- type: 'int24',
2786
- },
2787
- {
2788
- name: 'minAmountA',
2789
- type: 'uint256',
2790
- },
2791
- {
2792
- name: 'minAmountB',
2793
- type: 'uint256',
2794
- },
2795
- {
2796
- name: 'minLpAmount',
2797
- type: 'uint256',
2798
- },
2799
- {
2800
- name: 'liqToRemove',
2801
- type: 'uint256',
2802
- },
2803
- {
2804
- name: 'recipient',
2805
- type: 'address',
2806
- },
2807
- {
2808
- name: 'isWethToEthConversion',
2809
- type: 'bool',
2810
- },
2811
- ],
2812
- name: '_instructions',
2813
- type: 'tuple[]',
2814
- },
2815
- ],
2816
- name: 'performBatchActions',
2817
- outputs: [
2818
- {
2819
- name: '',
2820
- type: 'bool',
2821
- },
2822
- ],
2823
- stateMutability: 'nonpayable',
2824
- type: 'function',
2825
- },
2826
- {
2827
- inputs: [
2828
- {
2829
- name: '_userWallet',
2830
- type: 'address',
2831
- },
2832
- {
2833
- components: [
2834
- {
2835
- name: 'usePrevAmountOut',
2836
- type: 'bool',
2837
- },
2838
- {
2839
- name: 'action',
2840
- type: 'uint256',
2841
- },
2842
- {
2843
- name: 'legoId',
2844
- type: 'uint256',
2845
- },
2846
- {
2847
- name: 'asset',
2848
- type: 'address',
2849
- },
2850
- {
2851
- name: 'vault',
2852
- type: 'address',
2853
- },
2854
- {
2855
- name: 'amount',
2856
- type: 'uint256',
2857
- },
2858
- {
2859
- name: 'altLegoId',
2860
- type: 'uint256',
2861
- },
2862
- {
2863
- name: 'altAsset',
2864
- type: 'address',
2865
- },
2866
- {
2867
- name: 'altVault',
2868
- type: 'address',
2869
- },
2870
- {
2871
- name: 'altAmount',
2872
- type: 'uint256',
2873
- },
2874
- {
2875
- name: 'minAmountOut',
2876
- type: 'uint256',
2877
- },
2878
- {
2879
- name: 'pool',
2880
- type: 'address',
2881
- },
2882
- {
2883
- name: 'proof',
2884
- type: 'bytes32',
2885
- },
2886
- {
2887
- name: 'nftAddr',
2888
- type: 'address',
2889
- },
2890
- {
2891
- name: 'nftTokenId',
2892
- type: 'uint256',
2893
- },
2894
- {
2895
- name: 'tickLower',
2896
- type: 'int24',
2897
- },
2898
- {
2899
- name: 'tickUpper',
2900
- type: 'int24',
2901
- },
2902
- {
2903
- name: 'minAmountA',
2904
- type: 'uint256',
2905
- },
2906
- {
2907
- name: 'minAmountB',
2908
- type: 'uint256',
2909
- },
2910
- {
2911
- name: 'minLpAmount',
2912
- type: 'uint256',
2913
- },
2914
- {
2915
- name: 'liqToRemove',
2916
- type: 'uint256',
2917
- },
2918
- {
2919
- name: 'recipient',
2920
- type: 'address',
2921
- },
2922
- {
2923
- name: 'isWethToEthConversion',
2924
- type: 'bool',
2925
- },
2926
- ],
2927
- name: '_instructions',
2928
- type: 'tuple[]',
2929
- },
2930
- {
2931
- components: [
2932
- {
2933
- name: 'signature',
2934
- type: 'bytes',
2935
- },
2936
- {
2937
- name: 'signer',
2938
- type: 'address',
2939
- },
2940
- {
2941
- name: 'expiration',
2942
- type: 'uint256',
2943
- },
2944
- ],
2945
- name: '_sig',
2946
- type: 'tuple',
2947
- },
2948
- ],
2949
- name: 'performBatchActions',
2950
- outputs: [
2951
- {
2952
- name: '',
2953
- type: 'bool',
2954
- },
2955
- ],
2956
- stateMutability: 'nonpayable',
2957
- type: 'function',
2958
- },
2959
- {
2960
- inputs: [
2961
- {
2962
- name: '_userWallet',
2963
- type: 'address',
2964
- },
2965
- {
2966
2708
  components: [
2967
2709
  {
2968
- name: 'usePrevAmountOut',
2969
- type: 'bool',
2970
- },
2971
- {
2972
- name: 'action',
2973
- type: 'uint256',
2974
- },
2975
- {
2976
- name: 'legoId',
2977
- type: 'uint256',
2978
- },
2979
- {
2980
- name: 'asset',
2981
- type: 'address',
2982
- },
2983
- {
2984
- name: 'vault',
2985
- type: 'address',
2986
- },
2987
- {
2988
- name: 'amount',
2989
- type: 'uint256',
2990
- },
2991
- {
2992
- name: 'altLegoId',
2993
- type: 'uint256',
2994
- },
2995
- {
2996
- name: 'altAsset',
2710
+ name: 'ledger',
2997
2711
  type: 'address',
2998
2712
  },
2999
2713
  {
3000
- name: 'altVault',
3001
- type: 'address',
3002
- },
3003
- {
3004
- name: 'altAmount',
3005
- type: 'uint256',
3006
- },
3007
- {
3008
- name: 'minAmountOut',
3009
- type: 'uint256',
3010
- },
3011
- {
3012
- name: 'pool',
2714
+ name: 'missionControl',
3013
2715
  type: 'address',
3014
2716
  },
3015
2717
  {
3016
- name: 'proof',
3017
- type: 'bytes32',
3018
- },
3019
- {
3020
- name: 'nftAddr',
2718
+ name: 'legoBook',
3021
2719
  type: 'address',
3022
2720
  },
3023
2721
  {
3024
- name: 'nftTokenId',
3025
- type: 'uint256',
3026
- },
3027
- {
3028
- name: 'tickLower',
3029
- type: 'int24',
3030
- },
3031
- {
3032
- name: 'tickUpper',
3033
- type: 'int24',
3034
- },
3035
- {
3036
- name: 'minAmountA',
3037
- type: 'uint256',
3038
- },
3039
- {
3040
- name: 'minAmountB',
3041
- type: 'uint256',
3042
- },
3043
- {
3044
- name: 'minLpAmount',
3045
- type: 'uint256',
3046
- },
3047
- {
3048
- name: 'liqToRemove',
3049
- type: 'uint256',
3050
- },
3051
- {
3052
- name: 'recipient',
2722
+ name: 'appraiser',
3053
2723
  type: 'address',
3054
2724
  },
3055
- {
3056
- name: 'isWethToEthConversion',
3057
- type: 'bool',
3058
- },
3059
2725
  ],
3060
- name: '_instructions',
3061
- type: 'tuple[]',
3062
2726
  },
2727
+ ],
2728
+ outputs: [
3063
2729
  {
3064
- name: '_expiration',
2730
+ name: '',
3065
2731
  type: 'uint256',
3066
2732
  },
3067
- ],
3068
- name: 'getBatchActionHash',
3069
- outputs: [
3070
2733
  {
3071
2734
  name: '',
3072
- type: 'bytes32',
2735
+ type: 'uint256',
3073
2736
  },
3074
- ],
3075
- stateMutability: 'view',
3076
- type: 'function',
3077
- },
3078
- {
3079
- inputs: [],
3080
- name: 'DOMAIN_SEPARATOR',
3081
- outputs: [
3082
2737
  {
3083
2738
  name: '',
3084
- type: 'bytes32',
2739
+ type: 'uint256',
3085
2740
  },
3086
- ],
3087
- stateMutability: 'view',
3088
- type: 'function',
3089
- },
3090
- {
3091
- inputs: [
3092
2741
  {
3093
- name: '_newOwner',
3094
- type: 'address',
2742
+ name: '',
2743
+ type: 'uint256',
2744
+ },
2745
+ {
2746
+ name: '',
2747
+ type: 'uint256',
3095
2748
  },
3096
2749
  ],
3097
- name: 'changeOwnership',
3098
- outputs: [],
3099
- stateMutability: 'nonpayable',
3100
- type: 'function',
3101
- },
3102
- {
3103
- inputs: [],
3104
- name: 'confirmOwnershipChange',
3105
- outputs: [],
3106
- stateMutability: 'nonpayable',
3107
- type: 'function',
3108
2750
  },
3109
2751
  {
3110
- inputs: [],
3111
- name: 'cancelOwnershipChange',
3112
- outputs: [],
3113
2752
  stateMutability: 'nonpayable',
3114
2753
  type: 'function',
3115
- },
3116
- {
2754
+ name: 'removeLiquidityConcentrated',
3117
2755
  inputs: [
3118
2756
  {
3119
- name: '_numBlocks',
2757
+ name: '_nftTokenId',
3120
2758
  type: 'uint256',
3121
2759
  },
3122
- ],
3123
- name: 'setOwnershipChangeDelay',
3124
- outputs: [],
3125
- stateMutability: 'nonpayable',
3126
- type: 'function',
3127
- },
3128
- {
3129
- inputs: [
3130
2760
  {
3131
- name: '_asset',
2761
+ name: '_pool',
2762
+ type: 'address',
2763
+ },
2764
+ {
2765
+ name: '_tokenA',
2766
+ type: 'address',
2767
+ },
2768
+ {
2769
+ name: '_tokenB',
2770
+ type: 'address',
2771
+ },
2772
+ {
2773
+ name: '_liqToRemove',
2774
+ type: 'uint256',
2775
+ },
2776
+ {
2777
+ name: '_minAmountA',
2778
+ type: 'uint256',
2779
+ },
2780
+ {
2781
+ name: '_minAmountB',
2782
+ type: 'uint256',
2783
+ },
2784
+ {
2785
+ name: '_extraData',
2786
+ type: 'bytes32',
2787
+ },
2788
+ {
2789
+ name: '_recipient',
3132
2790
  type: 'address',
3133
2791
  },
3134
2792
  ],
3135
- name: 'recoverFunds',
3136
2793
  outputs: [
3137
2794
  {
3138
2795
  name: '',
3139
- type: 'bool',
2796
+ type: 'uint256',
3140
2797
  },
3141
- ],
3142
- stateMutability: 'nonpayable',
3143
- type: 'function',
3144
- },
3145
- {
3146
- inputs: [],
3147
- name: 'initialized',
3148
- outputs: [
3149
2798
  {
3150
2799
  name: '',
3151
- type: 'bool',
2800
+ type: 'uint256',
3152
2801
  },
3153
- ],
3154
- stateMutability: 'view',
3155
- type: 'function',
3156
- },
3157
- {
3158
- inputs: [
3159
2802
  {
3160
- name: 'arg0',
3161
- type: 'bytes',
2803
+ name: '',
2804
+ type: 'uint256',
3162
2805
  },
3163
- ],
3164
- name: 'usedSignatures',
3165
- outputs: [
3166
2806
  {
3167
2807
  name: '',
3168
2808
  type: 'bool',
3169
2809
  },
3170
- ],
3171
- stateMutability: 'view',
3172
- type: 'function',
3173
- },
3174
- {
3175
- inputs: [],
3176
- name: 'owner',
3177
- outputs: [
3178
2810
  {
3179
2811
  name: '',
3180
- type: 'address',
2812
+ type: 'uint256',
3181
2813
  },
3182
2814
  ],
3183
- stateMutability: 'view',
3184
- type: 'function',
3185
2815
  },
3186
2816
  {
3187
- inputs: [],
3188
- name: 'pendingOwner',
3189
- outputs: [
2817
+ stateMutability: 'nonpayable',
2818
+ type: 'function',
2819
+ name: 'removeLiquidityConcentrated',
2820
+ inputs: [
2821
+ {
2822
+ name: '_nftTokenId',
2823
+ type: 'uint256',
2824
+ },
2825
+ {
2826
+ name: '_pool',
2827
+ type: 'address',
2828
+ },
2829
+ {
2830
+ name: '_tokenA',
2831
+ type: 'address',
2832
+ },
2833
+ {
2834
+ name: '_tokenB',
2835
+ type: 'address',
2836
+ },
2837
+ {
2838
+ name: '_liqToRemove',
2839
+ type: 'uint256',
2840
+ },
2841
+ {
2842
+ name: '_minAmountA',
2843
+ type: 'uint256',
2844
+ },
2845
+ {
2846
+ name: '_minAmountB',
2847
+ type: 'uint256',
2848
+ },
2849
+ {
2850
+ name: '_extraData',
2851
+ type: 'bytes32',
2852
+ },
2853
+ {
2854
+ name: '_recipient',
2855
+ type: 'address',
2856
+ },
3190
2857
  {
2858
+ name: '_miniAddys',
2859
+ type: 'tuple',
3191
2860
  components: [
3192
2861
  {
3193
- name: 'newOwner',
2862
+ name: 'ledger',
3194
2863
  type: 'address',
3195
2864
  },
3196
2865
  {
3197
- name: 'initiatedBlock',
3198
- type: 'uint256',
2866
+ name: 'missionControl',
2867
+ type: 'address',
3199
2868
  },
3200
2869
  {
3201
- name: 'confirmBlock',
3202
- type: 'uint256',
2870
+ name: 'legoBook',
2871
+ type: 'address',
2872
+ },
2873
+ {
2874
+ name: 'appraiser',
2875
+ type: 'address',
3203
2876
  },
3204
2877
  ],
3205
- name: '',
3206
- type: 'tuple',
3207
2878
  },
3208
2879
  ],
3209
- stateMutability: 'view',
3210
- type: 'function',
3211
- },
3212
- {
3213
- inputs: [],
3214
- name: 'ownershipChangeDelay',
3215
2880
  outputs: [
3216
2881
  {
3217
2882
  name: '',
3218
2883
  type: 'uint256',
3219
2884
  },
3220
- ],
3221
- stateMutability: 'view',
3222
- type: 'function',
3223
- },
3224
- {
3225
- inputs: [],
3226
- name: 'MIN_OWNER_CHANGE_DELAY',
3227
- outputs: [
3228
2885
  {
3229
2886
  name: '',
3230
2887
  type: 'uint256',
3231
2888
  },
3232
- ],
3233
- stateMutability: 'view',
3234
- type: 'function',
3235
- },
3236
- {
3237
- inputs: [],
3238
- name: 'MAX_OWNER_CHANGE_DELAY',
3239
- outputs: [
2889
+ {
2890
+ name: '',
2891
+ type: 'uint256',
2892
+ },
2893
+ {
2894
+ name: '',
2895
+ type: 'bool',
2896
+ },
3240
2897
  {
3241
2898
  name: '',
3242
2899
  type: 'uint256',
3243
2900
  },
3244
2901
  ],
3245
- stateMutability: 'view',
3246
- type: 'function',
3247
2902
  },
3248
2903
  {
2904
+ stateMutability: 'nonpayable',
2905
+ type: 'constructor',
3249
2906
  inputs: [
3250
2907
  {
3251
- name: '_minOwnerChangeDelay',
3252
- type: 'uint256',
2908
+ name: '_undyHq',
2909
+ type: 'address',
3253
2910
  },
3254
2911
  {
3255
- name: '_maxOwnerChangeDelay',
3256
- type: 'uint256',
2912
+ name: '_ripeToken',
2913
+ type: 'address',
3257
2914
  },
3258
2915
  ],
3259
2916
  outputs: [],
3260
- stateMutability: 'nonpayable',
3261
- type: 'constructor',
3262
2917
  },
3263
2918
  ];
3264
- export const deployAddress = '0x70418b3AAa1044eC8bFF6a461B4E43460bb5699E';
2919
+ export const deployAddress = '0x2f04f1148D2F63272E303dDb4659139DA92DEccA';
3265
2920
  function getRequest(method, args, contractAddressOrOptions) {
3266
2921
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3267
2922
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3268
2923
  const call = {
3269
- contractName: 'Agent_v1',
2924
+ contractName: 'UnderscoreLego',
3270
2925
  method,
3271
2926
  args,
3272
2927
  address,
@@ -3290,21 +2945,51 @@ function getRequest(method, args, contractAddressOrOptions) {
3290
2945
  return call;
3291
2946
  }
3292
2947
  export const call = {
3293
- apiVersion: (...args) => getRequest('apiVersion', args),
3294
- getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
3295
- getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
3296
- DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
3297
- initialized: (...args) => getRequest('initialized', args),
3298
- usedSignatures: (...args) => getRequest('usedSignatures', args),
3299
- owner: (...args) => getRequest('owner', args),
3300
- pendingOwner: (...args) => getRequest('pendingOwner', args),
3301
- ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
3302
- MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
3303
- MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
2948
+ getAddys: (...args) => getRequest('getAddys', args),
2949
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
2950
+ isLegoAsset: (...args) => getRequest('isLegoAsset', args),
2951
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
2952
+ getAssets: (...args) => getRequest('getAssets', args),
2953
+ isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2954
+ getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2955
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
2956
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
2957
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
2958
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2959
+ assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2960
+ indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2961
+ numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2962
+ assets: (...args) => getRequest('assets', args),
2963
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2964
+ numAssets: (...args) => getRequest('numAssets', args),
2965
+ snapShotData: (...args) => getRequest('snapShotData', args),
2966
+ snapShots: (...args) => getRequest('snapShots', args),
2967
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
2968
+ isPaused: (...args) => getRequest('isPaused', args),
2969
+ hasCapability: (...args) => getRequest('hasCapability', args),
2970
+ getRegistries: (...args) => getRequest('getRegistries', args),
2971
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
2972
+ isDexLego: (...args) => getRequest('isDexLego', args),
2973
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
2974
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2975
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2976
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2977
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
2978
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2979
+ isRebasing: (...args) => getRequest('isRebasing', args),
2980
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2981
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2982
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2983
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2984
+ totalAssets: (...args) => getRequest('totalAssets', args),
2985
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
2986
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2987
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2988
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
3304
2989
  };
3305
2990
  function getMutation(functionName) {
3306
2991
  return {
3307
- contractName: 'Agent_v1',
2992
+ contractName: 'UnderscoreLego',
3308
2993
  functionName,
3309
2994
  deployAddress,
3310
2995
  argsType: undefined,
@@ -3312,61 +2997,95 @@ function getMutation(functionName) {
3312
2997
  };
3313
2998
  }
3314
2999
  export const mutation = {
3315
- initialize: getMutation('initialize'),
3316
- depositTokens: getMutation('depositTokens'),
3317
- withdrawTokens: getMutation('withdrawTokens'),
3318
- rebalance: getMutation('rebalance'),
3000
+ pause: getMutation('pause'),
3001
+ recoverFunds: getMutation('recoverFunds'),
3002
+ recoverFundsMany: getMutation('recoverFundsMany'),
3003
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3004
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3005
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3006
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3007
+ depositForYield: getMutation('depositForYield'),
3008
+ withdrawFromYield: getMutation('withdrawFromYield'),
3009
+ claimRewards: getMutation('claimRewards'),
3319
3010
  swapTokens: getMutation('swapTokens'),
3011
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3012
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3013
+ addCollateral: getMutation('addCollateral'),
3014
+ removeCollateral: getMutation('removeCollateral'),
3320
3015
  borrow: getMutation('borrow'),
3321
3016
  repayDebt: getMutation('repayDebt'),
3322
- claimRewards: getMutation('claimRewards'),
3323
3017
  addLiquidity: getMutation('addLiquidity'),
3324
3018
  removeLiquidity: getMutation('removeLiquidity'),
3325
- transferFunds: getMutation('transferFunds'),
3326
- convertEthToWeth: getMutation('convertEthToWeth'),
3327
- convertWethToEth: getMutation('convertWethToEth'),
3328
- performBatchActions: getMutation('performBatchActions'),
3329
- changeOwnership: getMutation('changeOwnership'),
3330
- confirmOwnershipChange: getMutation('confirmOwnershipChange'),
3331
- cancelOwnershipChange: getMutation('cancelOwnershipChange'),
3332
- setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
3333
- recoverFunds: getMutation('recoverFunds'),
3019
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3020
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3334
3021
  };
3335
- export function toSdk(deployAddress, publicClient, walletClient) {
3022
+ export function toSdk(publicClient, walletClient) {
3336
3023
  return {
3337
3024
  deployAddress,
3338
3025
  abi,
3339
3026
  // Queries
3340
- apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
3341
- getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(deployAddress)),
3342
- getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(deployAddress)),
3343
- DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress)),
3344
- initialized: (...args) => singleQuery(publicClient, call.initialized(...args).at(deployAddress)),
3345
- usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(deployAddress)),
3346
- owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress)),
3347
- pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress)),
3348
- ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(deployAddress)),
3349
- MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3350
- MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3027
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
3028
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
3029
+ isLegoAsset: (...args) => singleQuery(publicClient, call.isLegoAsset(...args)),
3030
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
3031
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
3032
+ isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
3033
+ getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
3034
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3035
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3036
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3037
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
3038
+ assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
3039
+ indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
3040
+ numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
3041
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
3042
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
3043
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3044
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3045
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3046
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3047
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3048
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
3049
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
3050
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
3051
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
3052
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3053
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
3054
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
3055
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
3056
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3057
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3058
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3059
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3060
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3061
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3062
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3063
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
3064
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
3065
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3066
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3067
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
3351
3068
  // Mutations
3352
- initialize: (...args) => mutate(walletClient, mutation.initialize, { address: deployAddress })(...args),
3353
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
3354
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
3355
- rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address: deployAddress })(...args),
3356
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
3357
- borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
3358
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
3359
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
3360
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
3361
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
3362
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
3363
- convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
3364
- convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
3365
- performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address: deployAddress })(...args),
3366
- changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress })(...args),
3367
- confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress })(...args),
3368
- cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress })(...args),
3369
- setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address: deployAddress })(...args),
3370
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address: deployAddress })(...args),
3069
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
3070
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
3071
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3072
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3073
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3074
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3075
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3076
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3077
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3078
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3079
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
3080
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
3081
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
3082
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
3083
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
3084
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
3085
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
3086
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
3087
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3088
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
3089
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
3371
3090
  };
3372
3091
  }