@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: 'FortyAcresDeposit',
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: 'FortyAcresWithdrawal',
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,141 +1365,180 @@ 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: 'view',
1475
+ type: 'function',
1476
+ name: 'getAccessForLego',
1147
1477
  inputs: [
1148
1478
  {
1149
- name: '_userWallet',
1479
+ name: '_user',
1150
1480
  type: 'address',
1151
1481
  },
1152
1482
  {
1153
- name: '_legoId',
1483
+ name: '_action',
1154
1484
  type: 'uint256',
1155
1485
  },
1486
+ ],
1487
+ outputs: [
1156
1488
  {
1157
- name: '_market',
1489
+ name: '',
1158
1490
  type: 'address',
1159
1491
  },
1160
1492
  {
1161
- name: '_rewardToken',
1162
- type: 'address',
1493
+ name: '',
1494
+ type: 'string',
1163
1495
  },
1164
1496
  {
1165
- name: '_rewardAmount',
1497
+ name: '',
1166
1498
  type: 'uint256',
1167
1499
  },
1168
- {
1169
- name: '_proof',
1170
- type: 'bytes32',
1171
- },
1172
1500
  ],
1173
- name: 'claimRewards',
1174
- outputs: [],
1175
- stateMutability: 'nonpayable',
1176
- type: 'function',
1177
1501
  },
1178
1502
  {
1503
+ stateMutability: 'nonpayable',
1504
+ type: 'function',
1505
+ name: 'claimRewards',
1179
1506
  inputs: [
1180
1507
  {
1181
- name: '_userWallet',
1508
+ name: '_user',
1509
+ type: 'address',
1510
+ },
1511
+ {
1512
+ name: '_rewardToken',
1182
1513
  type: 'address',
1183
1514
  },
1184
1515
  {
1185
- name: '_legoId',
1516
+ name: '_rewardAmount',
1517
+ type: 'uint256',
1518
+ },
1519
+ {
1520
+ name: '_extraData',
1521
+ type: 'bytes32',
1522
+ },
1523
+ ],
1524
+ outputs: [
1525
+ {
1526
+ name: '',
1527
+ type: 'uint256',
1528
+ },
1529
+ {
1530
+ name: '',
1186
1531
  type: 'uint256',
1187
1532
  },
1533
+ ],
1534
+ },
1535
+ {
1536
+ stateMutability: 'nonpayable',
1537
+ type: 'function',
1538
+ name: 'claimRewards',
1539
+ inputs: [
1188
1540
  {
1189
- name: '_market',
1541
+ name: '_user',
1190
1542
  type: 'address',
1191
1543
  },
1192
1544
  {
@@ -1198,65 +1550,86 @@ export const abi = [
1198
1550
  type: 'uint256',
1199
1551
  },
1200
1552
  {
1201
- name: '_proof',
1553
+ name: '_extraData',
1202
1554
  type: 'bytes32',
1203
1555
  },
1204
1556
  {
1557
+ name: '_miniAddys',
1558
+ type: 'tuple',
1205
1559
  components: [
1206
1560
  {
1207
- name: 'signature',
1208
- type: 'bytes',
1561
+ name: 'ledger',
1562
+ type: 'address',
1563
+ },
1564
+ {
1565
+ name: 'missionControl',
1566
+ type: 'address',
1209
1567
  },
1210
1568
  {
1211
- name: 'signer',
1569
+ name: 'legoBook',
1212
1570
  type: 'address',
1213
1571
  },
1214
1572
  {
1215
- name: 'expiration',
1216
- type: 'uint256',
1573
+ name: 'appraiser',
1574
+ type: 'address',
1217
1575
  },
1218
1576
  ],
1219
- name: '_sig',
1220
- type: 'tuple',
1221
1577
  },
1222
1578
  ],
1223
- name: 'claimRewards',
1224
- outputs: [],
1225
- stateMutability: 'nonpayable',
1226
- type: 'function',
1579
+ outputs: [
1580
+ {
1581
+ name: '',
1582
+ type: 'uint256',
1583
+ },
1584
+ {
1585
+ name: '',
1586
+ type: 'uint256',
1587
+ },
1588
+ ],
1227
1589
  },
1228
1590
  {
1591
+ stateMutability: 'view',
1592
+ type: 'function',
1593
+ name: 'hasClaimableRewards',
1229
1594
  inputs: [
1230
1595
  {
1231
- name: '_userWallet',
1596
+ name: '_user',
1232
1597
  type: 'address',
1233
1598
  },
1599
+ ],
1600
+ outputs: [
1234
1601
  {
1235
- name: '_legoId',
1236
- type: 'uint256',
1602
+ name: '',
1603
+ type: 'bool',
1237
1604
  },
1605
+ ],
1606
+ },
1607
+ {
1608
+ stateMutability: 'nonpayable',
1609
+ type: 'function',
1610
+ name: 'swapTokens',
1611
+ inputs: [
1238
1612
  {
1239
- name: '_nftAddr',
1240
- type: 'address',
1613
+ name: '_amountIn',
1614
+ type: 'uint256',
1241
1615
  },
1242
1616
  {
1243
- name: '_nftTokenId',
1617
+ name: '_minAmountOut',
1244
1618
  type: 'uint256',
1245
1619
  },
1246
1620
  {
1247
- name: '_pool',
1248
- type: 'address',
1621
+ name: '_tokenPath',
1622
+ type: 'address[]',
1249
1623
  },
1250
1624
  {
1251
- name: '_tokenA',
1252
- type: 'address',
1625
+ name: '_poolPath',
1626
+ type: 'address[]',
1253
1627
  },
1254
1628
  {
1255
- name: '_tokenB',
1629
+ name: '_recipient',
1256
1630
  type: 'address',
1257
1631
  },
1258
1632
  ],
1259
- name: 'addLiquidity',
1260
1633
  outputs: [
1261
1634
  {
1262
1635
  name: '',
@@ -1270,54 +1643,56 @@ export const abi = [
1270
1643
  name: '',
1271
1644
  type: 'uint256',
1272
1645
  },
1273
- {
1274
- name: '',
1275
- type: 'uint256',
1276
- },
1277
- {
1278
- name: '',
1279
- type: 'uint256',
1280
- },
1281
1646
  ],
1282
- stateMutability: 'nonpayable',
1283
- type: 'function',
1284
1647
  },
1285
1648
  {
1649
+ stateMutability: 'nonpayable',
1650
+ type: 'function',
1651
+ name: 'swapTokens',
1286
1652
  inputs: [
1287
1653
  {
1288
- name: '_userWallet',
1289
- type: 'address',
1290
- },
1291
- {
1292
- name: '_legoId',
1654
+ name: '_amountIn',
1293
1655
  type: 'uint256',
1294
1656
  },
1295
1657
  {
1296
- name: '_nftAddr',
1297
- type: 'address',
1298
- },
1299
- {
1300
- name: '_nftTokenId',
1658
+ name: '_minAmountOut',
1301
1659
  type: 'uint256',
1302
1660
  },
1303
1661
  {
1304
- name: '_pool',
1305
- type: 'address',
1662
+ name: '_tokenPath',
1663
+ type: 'address[]',
1306
1664
  },
1307
1665
  {
1308
- name: '_tokenA',
1309
- type: 'address',
1666
+ name: '_poolPath',
1667
+ type: 'address[]',
1310
1668
  },
1311
1669
  {
1312
- name: '_tokenB',
1670
+ name: '_recipient',
1313
1671
  type: 'address',
1314
1672
  },
1315
1673
  {
1316
- name: '_amountA',
1317
- 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
+ ],
1318
1694
  },
1319
1695
  ],
1320
- name: 'addLiquidity',
1321
1696
  outputs: [
1322
1697
  {
1323
1698
  name: '',
@@ -1331,58 +1706,38 @@ export const abi = [
1331
1706
  name: '',
1332
1707
  type: 'uint256',
1333
1708
  },
1334
- {
1335
- name: '',
1336
- type: 'uint256',
1337
- },
1338
- {
1339
- name: '',
1340
- type: 'uint256',
1341
- },
1342
1709
  ],
1343
- stateMutability: 'nonpayable',
1344
- type: 'function',
1345
1710
  },
1346
1711
  {
1712
+ stateMutability: 'nonpayable',
1713
+ type: 'function',
1714
+ name: 'mintOrRedeemAsset',
1347
1715
  inputs: [
1348
1716
  {
1349
- name: '_userWallet',
1717
+ name: '_tokenIn',
1350
1718
  type: 'address',
1351
1719
  },
1352
1720
  {
1353
- name: '_legoId',
1354
- type: 'uint256',
1355
- },
1356
- {
1357
- name: '_nftAddr',
1721
+ name: '_tokenOut',
1358
1722
  type: 'address',
1359
1723
  },
1360
1724
  {
1361
- name: '_nftTokenId',
1725
+ name: '_tokenInAmount',
1362
1726
  type: 'uint256',
1363
1727
  },
1364
1728
  {
1365
- name: '_pool',
1366
- type: 'address',
1729
+ name: '_minAmountOut',
1730
+ type: 'uint256',
1367
1731
  },
1368
1732
  {
1369
- name: '_tokenA',
1370
- type: 'address',
1733
+ name: '_extraData',
1734
+ type: 'bytes32',
1371
1735
  },
1372
1736
  {
1373
- name: '_tokenB',
1737
+ name: '_recipient',
1374
1738
  type: 'address',
1375
1739
  },
1376
- {
1377
- name: '_amountA',
1378
- type: 'uint256',
1379
- },
1380
- {
1381
- name: '_amountB',
1382
- type: 'uint256',
1383
- },
1384
1740
  ],
1385
- name: 'addLiquidity',
1386
1741
  outputs: [
1387
1742
  {
1388
1743
  name: '',
@@ -1394,64 +1749,66 @@ export const abi = [
1394
1749
  },
1395
1750
  {
1396
1751
  name: '',
1397
- type: 'uint256',
1398
- },
1399
- {
1400
- name: '',
1401
- type: 'uint256',
1752
+ type: 'bool',
1402
1753
  },
1403
1754
  {
1404
1755
  name: '',
1405
1756
  type: 'uint256',
1406
1757
  },
1407
1758
  ],
1408
- stateMutability: 'nonpayable',
1409
- type: 'function',
1410
1759
  },
1411
1760
  {
1761
+ stateMutability: 'nonpayable',
1762
+ type: 'function',
1763
+ name: 'mintOrRedeemAsset',
1412
1764
  inputs: [
1413
1765
  {
1414
- name: '_userWallet',
1766
+ name: '_tokenIn',
1415
1767
  type: 'address',
1416
1768
  },
1417
1769
  {
1418
- name: '_legoId',
1419
- type: 'uint256',
1420
- },
1421
- {
1422
- name: '_nftAddr',
1770
+ name: '_tokenOut',
1423
1771
  type: 'address',
1424
1772
  },
1425
1773
  {
1426
- name: '_nftTokenId',
1774
+ name: '_tokenInAmount',
1427
1775
  type: 'uint256',
1428
1776
  },
1429
1777
  {
1430
- name: '_pool',
1431
- type: 'address',
1778
+ name: '_minAmountOut',
1779
+ type: 'uint256',
1432
1780
  },
1433
1781
  {
1434
- name: '_tokenA',
1435
- type: 'address',
1782
+ name: '_extraData',
1783
+ type: 'bytes32',
1436
1784
  },
1437
1785
  {
1438
- name: '_tokenB',
1786
+ name: '_recipient',
1439
1787
  type: 'address',
1440
1788
  },
1441
1789
  {
1442
- name: '_amountA',
1443
- type: 'uint256',
1444
- },
1445
- {
1446
- name: '_amountB',
1447
- type: 'uint256',
1448
- },
1449
- {
1450
- name: '_tickLower',
1451
- 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
+ ],
1452
1810
  },
1453
1811
  ],
1454
- name: 'addLiquidity',
1455
1812
  outputs: [
1456
1813
  {
1457
1814
  name: '',
@@ -1463,81 +1820,92 @@ export const abi = [
1463
1820
  },
1464
1821
  {
1465
1822
  name: '',
1466
- type: 'uint256',
1467
- },
1468
- {
1469
- name: '',
1470
- type: 'uint256',
1823
+ type: 'bool',
1471
1824
  },
1472
1825
  {
1473
1826
  name: '',
1474
1827
  type: 'uint256',
1475
1828
  },
1476
1829
  ],
1477
- stateMutability: 'nonpayable',
1478
- type: 'function',
1479
1830
  },
1480
1831
  {
1832
+ stateMutability: 'nonpayable',
1833
+ type: 'function',
1834
+ name: 'confirmMintOrRedeemAsset',
1481
1835
  inputs: [
1482
1836
  {
1483
- name: '_userWallet',
1484
- type: 'address',
1485
- },
1486
- {
1487
- name: '_legoId',
1488
- type: 'uint256',
1489
- },
1490
- {
1491
- name: '_nftAddr',
1837
+ name: '_tokenIn',
1492
1838
  type: 'address',
1493
1839
  },
1494
1840
  {
1495
- name: '_nftTokenId',
1496
- type: 'uint256',
1497
- },
1498
- {
1499
- name: '_pool',
1841
+ name: '_tokenOut',
1500
1842
  type: 'address',
1501
1843
  },
1502
1844
  {
1503
- name: '_tokenA',
1504
- type: 'address',
1845
+ name: '_extraData',
1846
+ type: 'bytes32',
1505
1847
  },
1506
1848
  {
1507
- name: '_tokenB',
1849
+ name: '_recipient',
1508
1850
  type: 'address',
1509
1851
  },
1852
+ ],
1853
+ outputs: [
1510
1854
  {
1511
- name: '_amountA',
1855
+ name: '',
1512
1856
  type: 'uint256',
1513
1857
  },
1514
1858
  {
1515
- name: '_amountB',
1859
+ name: '',
1516
1860
  type: 'uint256',
1517
1861
  },
1862
+ ],
1863
+ },
1864
+ {
1865
+ stateMutability: 'nonpayable',
1866
+ type: 'function',
1867
+ name: 'confirmMintOrRedeemAsset',
1868
+ inputs: [
1518
1869
  {
1519
- name: '_tickLower',
1520
- type: 'int24',
1870
+ name: '_tokenIn',
1871
+ type: 'address',
1521
1872
  },
1522
1873
  {
1523
- name: '_tickUpper',
1524
- type: 'int24',
1874
+ name: '_tokenOut',
1875
+ type: 'address',
1525
1876
  },
1526
- ],
1527
- name: 'addLiquidity',
1528
- outputs: [
1529
1877
  {
1530
- name: '',
1531
- type: 'uint256',
1878
+ name: '_extraData',
1879
+ type: 'bytes32',
1532
1880
  },
1533
1881
  {
1534
- name: '',
1535
- type: 'uint256',
1882
+ name: '_recipient',
1883
+ type: 'address',
1536
1884
  },
1537
1885
  {
1538
- name: '',
1539
- 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
+ ],
1540
1906
  },
1907
+ ],
1908
+ outputs: [
1541
1909
  {
1542
1910
  name: '',
1543
1911
  type: 'uint256',
@@ -1547,74 +1915,85 @@ export const abi = [
1547
1915
  type: 'uint256',
1548
1916
  },
1549
1917
  ],
1550
- stateMutability: 'nonpayable',
1551
- type: 'function',
1552
1918
  },
1553
1919
  {
1920
+ stateMutability: 'nonpayable',
1921
+ type: 'function',
1922
+ name: 'addCollateral',
1554
1923
  inputs: [
1555
1924
  {
1556
- name: '_userWallet',
1557
- type: 'address',
1558
- },
1559
- {
1560
- name: '_legoId',
1561
- type: 'uint256',
1562
- },
1563
- {
1564
- name: '_nftAddr',
1925
+ name: '_asset',
1565
1926
  type: 'address',
1566
1927
  },
1567
1928
  {
1568
- name: '_nftTokenId',
1929
+ name: '_amount',
1569
1930
  type: 'uint256',
1570
1931
  },
1571
1932
  {
1572
- name: '_pool',
1573
- type: 'address',
1574
- },
1575
- {
1576
- name: '_tokenA',
1577
- type: 'address',
1933
+ name: '_extraData',
1934
+ type: 'bytes32',
1578
1935
  },
1579
1936
  {
1580
- name: '_tokenB',
1937
+ name: '_recipient',
1581
1938
  type: 'address',
1582
1939
  },
1940
+ ],
1941
+ outputs: [
1583
1942
  {
1584
- name: '_amountA',
1943
+ name: '',
1585
1944
  type: 'uint256',
1586
1945
  },
1587
1946
  {
1588
- name: '_amountB',
1947
+ name: '',
1589
1948
  type: 'uint256',
1590
1949
  },
1950
+ ],
1951
+ },
1952
+ {
1953
+ stateMutability: 'nonpayable',
1954
+ type: 'function',
1955
+ name: 'addCollateral',
1956
+ inputs: [
1591
1957
  {
1592
- name: '_tickLower',
1593
- type: 'int24',
1594
- },
1595
- {
1596
- name: '_tickUpper',
1597
- type: 'int24',
1958
+ name: '_asset',
1959
+ type: 'address',
1598
1960
  },
1599
1961
  {
1600
- name: '_minAmountA',
1962
+ name: '_amount',
1601
1963
  type: 'uint256',
1602
1964
  },
1603
- ],
1604
- name: 'addLiquidity',
1605
- outputs: [
1606
1965
  {
1607
- name: '',
1608
- type: 'uint256',
1966
+ name: '_extraData',
1967
+ type: 'bytes32',
1609
1968
  },
1610
1969
  {
1611
- name: '',
1612
- type: 'uint256',
1970
+ name: '_recipient',
1971
+ type: 'address',
1613
1972
  },
1614
1973
  {
1615
- name: '',
1616
- type: 'uint256',
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
+ ],
1617
1994
  },
1995
+ ],
1996
+ outputs: [
1618
1997
  {
1619
1998
  name: '',
1620
1999
  type: 'uint256',
@@ -1624,78 +2003,118 @@ export const abi = [
1624
2003
  type: 'uint256',
1625
2004
  },
1626
2005
  ],
1627
- stateMutability: 'nonpayable',
1628
- type: 'function',
1629
2006
  },
1630
2007
  {
2008
+ stateMutability: 'nonpayable',
2009
+ type: 'function',
2010
+ name: 'removeCollateral',
1631
2011
  inputs: [
1632
2012
  {
1633
- name: '_userWallet',
2013
+ name: '_asset',
1634
2014
  type: 'address',
1635
2015
  },
1636
2016
  {
1637
- name: '_legoId',
2017
+ name: '_amount',
1638
2018
  type: 'uint256',
1639
2019
  },
1640
2020
  {
1641
- name: '_nftAddr',
1642
- type: 'address',
2021
+ name: '_extraData',
2022
+ type: 'bytes32',
1643
2023
  },
1644
2024
  {
1645
- name: '_nftTokenId',
1646
- type: 'uint256',
2025
+ name: '_recipient',
2026
+ type: 'address',
1647
2027
  },
2028
+ ],
2029
+ outputs: [
1648
2030
  {
1649
- name: '_pool',
1650
- type: 'address',
2031
+ name: '',
2032
+ type: 'uint256',
1651
2033
  },
1652
2034
  {
1653
- name: '_tokenA',
1654
- type: 'address',
2035
+ name: '',
2036
+ type: 'uint256',
1655
2037
  },
2038
+ ],
2039
+ },
2040
+ {
2041
+ stateMutability: 'nonpayable',
2042
+ type: 'function',
2043
+ name: 'removeCollateral',
2044
+ inputs: [
1656
2045
  {
1657
- name: '_tokenB',
2046
+ name: '_asset',
1658
2047
  type: 'address',
1659
2048
  },
1660
2049
  {
1661
- name: '_amountA',
2050
+ name: '_amount',
1662
2051
  type: 'uint256',
1663
2052
  },
1664
2053
  {
1665
- name: '_amountB',
1666
- type: 'uint256',
2054
+ name: '_extraData',
2055
+ type: 'bytes32',
1667
2056
  },
1668
2057
  {
1669
- name: '_tickLower',
1670
- type: 'int24',
2058
+ name: '_recipient',
2059
+ type: 'address',
1671
2060
  },
1672
2061
  {
1673
- name: '_tickUpper',
1674
- type: 'int24',
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
+ ],
1675
2082
  },
2083
+ ],
2084
+ outputs: [
1676
2085
  {
1677
- name: '_minAmountA',
2086
+ name: '',
1678
2087
  type: 'uint256',
1679
2088
  },
1680
2089
  {
1681
- name: '_minAmountB',
2090
+ name: '',
1682
2091
  type: 'uint256',
1683
2092
  },
1684
2093
  ],
1685
- name: 'addLiquidity',
1686
- outputs: [
2094
+ },
2095
+ {
2096
+ stateMutability: 'nonpayable',
2097
+ type: 'function',
2098
+ name: 'borrow',
2099
+ inputs: [
1687
2100
  {
1688
- name: '',
1689
- type: 'uint256',
2101
+ name: '_borrowAsset',
2102
+ type: 'address',
1690
2103
  },
1691
2104
  {
1692
- name: '',
2105
+ name: '_amount',
1693
2106
  type: 'uint256',
1694
2107
  },
1695
2108
  {
1696
- name: '',
1697
- type: 'uint256',
2109
+ name: '_extraData',
2110
+ type: 'bytes32',
2111
+ },
2112
+ {
2113
+ name: '_recipient',
2114
+ type: 'address',
1698
2115
  },
2116
+ ],
2117
+ outputs: [
1699
2118
  {
1700
2119
  name: '',
1701
2120
  type: 'uint256',
@@ -1705,69 +2124,84 @@ export const abi = [
1705
2124
  type: 'uint256',
1706
2125
  },
1707
2126
  ],
1708
- stateMutability: 'nonpayable',
1709
- type: 'function',
1710
2127
  },
1711
2128
  {
2129
+ stateMutability: 'nonpayable',
2130
+ type: 'function',
2131
+ name: 'borrow',
1712
2132
  inputs: [
1713
2133
  {
1714
- name: '_userWallet',
1715
- type: 'address',
1716
- },
1717
- {
1718
- name: '_legoId',
1719
- type: 'uint256',
1720
- },
1721
- {
1722
- name: '_nftAddr',
2134
+ name: '_borrowAsset',
1723
2135
  type: 'address',
1724
2136
  },
1725
2137
  {
1726
- name: '_nftTokenId',
2138
+ name: '_amount',
1727
2139
  type: 'uint256',
1728
2140
  },
1729
2141
  {
1730
- name: '_pool',
1731
- type: 'address',
2142
+ name: '_extraData',
2143
+ type: 'bytes32',
1732
2144
  },
1733
2145
  {
1734
- name: '_tokenA',
2146
+ name: '_recipient',
1735
2147
  type: 'address',
1736
2148
  },
1737
2149
  {
1738
- name: '_tokenB',
1739
- type: 'address',
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
+ ],
1740
2170
  },
2171
+ ],
2172
+ outputs: [
1741
2173
  {
1742
- name: '_amountA',
2174
+ name: '',
1743
2175
  type: 'uint256',
1744
2176
  },
1745
2177
  {
1746
- name: '_amountB',
2178
+ name: '',
1747
2179
  type: 'uint256',
1748
2180
  },
2181
+ ],
2182
+ },
2183
+ {
2184
+ stateMutability: 'nonpayable',
2185
+ type: 'function',
2186
+ name: 'repayDebt',
2187
+ inputs: [
1749
2188
  {
1750
- name: '_tickLower',
1751
- type: 'int24',
1752
- },
1753
- {
1754
- name: '_tickUpper',
1755
- type: 'int24',
2189
+ name: '_paymentAsset',
2190
+ type: 'address',
1756
2191
  },
1757
2192
  {
1758
- name: '_minAmountA',
2193
+ name: '_paymentAmount',
1759
2194
  type: 'uint256',
1760
2195
  },
1761
2196
  {
1762
- name: '_minAmountB',
1763
- type: 'uint256',
2197
+ name: '_extraData',
2198
+ type: 'bytes32',
1764
2199
  },
1765
2200
  {
1766
- name: '_minLpAmount',
1767
- type: 'uint256',
2201
+ name: '_recipient',
2202
+ type: 'address',
1768
2203
  },
1769
2204
  ],
1770
- name: 'addLiquidity',
1771
2205
  outputs: [
1772
2206
  {
1773
2207
  name: '',
@@ -1777,40 +2211,68 @@ export const abi = [
1777
2211
  name: '',
1778
2212
  type: 'uint256',
1779
2213
  },
2214
+ ],
2215
+ },
2216
+ {
2217
+ stateMutability: 'nonpayable',
2218
+ type: 'function',
2219
+ name: 'repayDebt',
2220
+ inputs: [
1780
2221
  {
1781
- name: '',
1782
- type: 'uint256',
2222
+ name: '_paymentAsset',
2223
+ type: 'address',
1783
2224
  },
1784
2225
  {
1785
- name: '',
2226
+ name: '_paymentAmount',
1786
2227
  type: 'uint256',
1787
2228
  },
1788
2229
  {
1789
- name: '',
1790
- type: 'uint256',
2230
+ name: '_extraData',
2231
+ type: 'bytes32',
1791
2232
  },
1792
- ],
1793
- stateMutability: 'nonpayable',
1794
- type: 'function',
1795
- },
1796
- {
1797
- inputs: [
1798
2233
  {
1799
- name: '_userWallet',
2234
+ name: '_recipient',
1800
2235
  type: 'address',
1801
2236
  },
1802
2237
  {
1803
- name: '_legoId',
1804
- type: 'uint256',
2238
+ name: '_miniAddys',
2239
+ type: 'tuple',
2240
+ components: [
2241
+ {
2242
+ name: 'ledger',
2243
+ type: 'address',
2244
+ },
2245
+ {
2246
+ name: 'missionControl',
2247
+ type: 'address',
2248
+ },
2249
+ {
2250
+ name: 'legoBook',
2251
+ type: 'address',
2252
+ },
2253
+ {
2254
+ name: 'appraiser',
2255
+ type: 'address',
2256
+ },
2257
+ ],
1805
2258
  },
2259
+ ],
2260
+ outputs: [
1806
2261
  {
1807
- name: '_nftAddr',
1808
- type: 'address',
2262
+ name: '',
2263
+ type: 'uint256',
1809
2264
  },
1810
2265
  {
1811
- name: '_nftTokenId',
2266
+ name: '',
1812
2267
  type: 'uint256',
1813
2268
  },
2269
+ ],
2270
+ },
2271
+ {
2272
+ stateMutability: 'nonpayable',
2273
+ type: 'function',
2274
+ name: 'addLiquidity',
2275
+ inputs: [
1814
2276
  {
1815
2277
  name: '_pool',
1816
2278
  type: 'address',
@@ -1831,14 +2293,6 @@ export const abi = [
1831
2293
  name: '_amountB',
1832
2294
  type: 'uint256',
1833
2295
  },
1834
- {
1835
- name: '_tickLower',
1836
- type: 'int24',
1837
- },
1838
- {
1839
- name: '_tickUpper',
1840
- type: 'int24',
1841
- },
1842
2296
  {
1843
2297
  name: '_minAmountA',
1844
2298
  type: 'uint256',
@@ -1852,29 +2306,18 @@ export const abi = [
1852
2306
  type: 'uint256',
1853
2307
  },
1854
2308
  {
1855
- components: [
1856
- {
1857
- name: 'signature',
1858
- type: 'bytes',
1859
- },
1860
- {
1861
- name: 'signer',
1862
- type: 'address',
1863
- },
1864
- {
1865
- name: 'expiration',
1866
- type: 'uint256',
1867
- },
1868
- ],
1869
- name: '_sig',
1870
- type: 'tuple',
2309
+ name: '_extraData',
2310
+ type: 'bytes32',
2311
+ },
2312
+ {
2313
+ name: '_recipient',
2314
+ type: 'address',
1871
2315
  },
1872
2316
  ],
1873
- name: 'addLiquidity',
1874
2317
  outputs: [
1875
2318
  {
1876
2319
  name: '',
1877
- type: 'uint256',
2320
+ type: 'address',
1878
2321
  },
1879
2322
  {
1880
2323
  name: '',
@@ -1893,42 +2336,80 @@ export const abi = [
1893
2336
  type: 'uint256',
1894
2337
  },
1895
2338
  ],
1896
- stateMutability: 'nonpayable',
1897
- type: 'function',
1898
2339
  },
1899
2340
  {
2341
+ stateMutability: 'nonpayable',
2342
+ type: 'function',
2343
+ name: 'addLiquidity',
1900
2344
  inputs: [
1901
2345
  {
1902
- name: '_userWallet',
2346
+ name: '_pool',
1903
2347
  type: 'address',
1904
2348
  },
1905
2349
  {
1906
- name: '_legoId',
1907
- type: 'uint256',
2350
+ name: '_tokenA',
2351
+ type: 'address',
1908
2352
  },
1909
2353
  {
1910
- name: '_nftAddr',
2354
+ name: '_tokenB',
1911
2355
  type: 'address',
1912
2356
  },
1913
2357
  {
1914
- name: '_nftTokenId',
2358
+ name: '_amountA',
1915
2359
  type: 'uint256',
1916
2360
  },
1917
2361
  {
1918
- name: '_pool',
1919
- type: 'address',
2362
+ name: '_amountB',
2363
+ type: 'uint256',
1920
2364
  },
1921
2365
  {
1922
- name: '_tokenA',
1923
- type: 'address',
2366
+ name: '_minAmountA',
2367
+ type: 'uint256',
1924
2368
  },
1925
2369
  {
1926
- name: '_tokenB',
2370
+ name: '_minAmountB',
2371
+ type: 'uint256',
2372
+ },
2373
+ {
2374
+ name: '_minLpAmount',
2375
+ type: 'uint256',
2376
+ },
2377
+ {
2378
+ name: '_extraData',
2379
+ type: 'bytes32',
2380
+ },
2381
+ {
2382
+ name: '_recipient',
1927
2383
  type: 'address',
1928
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
+ ],
2406
+ },
1929
2407
  ],
1930
- name: 'removeLiquidity',
1931
2408
  outputs: [
2409
+ {
2410
+ name: '',
2411
+ type: 'address',
2412
+ },
1932
2413
  {
1933
2414
  name: '',
1934
2415
  type: 'uint256',
@@ -1943,48 +2424,52 @@ export const abi = [
1943
2424
  },
1944
2425
  {
1945
2426
  name: '',
1946
- type: 'bool',
2427
+ type: 'uint256',
1947
2428
  },
1948
2429
  ],
1949
- stateMutability: 'nonpayable',
1950
- type: 'function',
1951
2430
  },
1952
2431
  {
2432
+ stateMutability: 'nonpayable',
2433
+ type: 'function',
2434
+ name: 'removeLiquidity',
1953
2435
  inputs: [
1954
2436
  {
1955
- name: '_userWallet',
2437
+ name: '_pool',
1956
2438
  type: 'address',
1957
2439
  },
1958
2440
  {
1959
- name: '_legoId',
1960
- type: 'uint256',
2441
+ name: '_tokenA',
2442
+ type: 'address',
1961
2443
  },
1962
2444
  {
1963
- name: '_nftAddr',
2445
+ name: '_tokenB',
1964
2446
  type: 'address',
1965
2447
  },
1966
2448
  {
1967
- name: '_nftTokenId',
2449
+ name: '_lpToken',
2450
+ type: 'address',
2451
+ },
2452
+ {
2453
+ name: '_lpAmount',
1968
2454
  type: 'uint256',
1969
2455
  },
1970
2456
  {
1971
- name: '_pool',
1972
- type: 'address',
2457
+ name: '_minAmountA',
2458
+ type: 'uint256',
1973
2459
  },
1974
2460
  {
1975
- name: '_tokenA',
1976
- type: 'address',
2461
+ name: '_minAmountB',
2462
+ type: 'uint256',
1977
2463
  },
1978
2464
  {
1979
- name: '_tokenB',
1980
- type: 'address',
2465
+ name: '_extraData',
2466
+ type: 'bytes32',
1981
2467
  },
1982
2468
  {
1983
- name: '_liqToRemove',
1984
- type: 'uint256',
2469
+ name: '_recipient',
2470
+ type: 'address',
1985
2471
  },
1986
2472
  ],
1987
- name: 'removeLiquidity',
1988
2473
  outputs: [
1989
2474
  {
1990
2475
  name: '',
@@ -2000,52 +2485,74 @@ export const abi = [
2000
2485
  },
2001
2486
  {
2002
2487
  name: '',
2003
- type: 'bool',
2488
+ type: 'uint256',
2004
2489
  },
2005
2490
  ],
2006
- stateMutability: 'nonpayable',
2007
- type: 'function',
2008
2491
  },
2009
2492
  {
2493
+ stateMutability: 'nonpayable',
2494
+ type: 'function',
2495
+ name: 'removeLiquidity',
2010
2496
  inputs: [
2011
2497
  {
2012
- name: '_userWallet',
2498
+ name: '_pool',
2013
2499
  type: 'address',
2014
2500
  },
2015
2501
  {
2016
- name: '_legoId',
2017
- type: 'uint256',
2502
+ name: '_tokenA',
2503
+ type: 'address',
2018
2504
  },
2019
2505
  {
2020
- name: '_nftAddr',
2506
+ name: '_tokenB',
2021
2507
  type: 'address',
2022
2508
  },
2023
2509
  {
2024
- name: '_nftTokenId',
2510
+ name: '_lpToken',
2511
+ type: 'address',
2512
+ },
2513
+ {
2514
+ name: '_lpAmount',
2025
2515
  type: 'uint256',
2026
2516
  },
2027
2517
  {
2028
- name: '_pool',
2029
- type: 'address',
2518
+ name: '_minAmountA',
2519
+ type: 'uint256',
2030
2520
  },
2031
2521
  {
2032
- name: '_tokenA',
2033
- type: 'address',
2522
+ name: '_minAmountB',
2523
+ type: 'uint256',
2034
2524
  },
2035
2525
  {
2036
- name: '_tokenB',
2037
- type: 'address',
2526
+ name: '_extraData',
2527
+ type: 'bytes32',
2038
2528
  },
2039
2529
  {
2040
- name: '_liqToRemove',
2041
- type: 'uint256',
2530
+ name: '_recipient',
2531
+ type: 'address',
2042
2532
  },
2043
2533
  {
2044
- name: '_minAmountA',
2045
- type: 'uint256',
2534
+ name: '_miniAddys',
2535
+ type: 'tuple',
2536
+ components: [
2537
+ {
2538
+ name: 'ledger',
2539
+ type: 'address',
2540
+ },
2541
+ {
2542
+ name: 'missionControl',
2543
+ type: 'address',
2544
+ },
2545
+ {
2546
+ name: 'legoBook',
2547
+ type: 'address',
2548
+ },
2549
+ {
2550
+ name: 'appraiser',
2551
+ type: 'address',
2552
+ },
2553
+ ],
2046
2554
  },
2047
2555
  ],
2048
- name: 'removeLiquidity',
2049
2556
  outputs: [
2050
2557
  {
2051
2558
  name: '',
@@ -2061,26 +2568,15 @@ export const abi = [
2061
2568
  },
2062
2569
  {
2063
2570
  name: '',
2064
- type: 'bool',
2571
+ type: 'uint256',
2065
2572
  },
2066
2573
  ],
2067
- stateMutability: 'nonpayable',
2068
- type: 'function',
2069
2574
  },
2070
2575
  {
2576
+ stateMutability: 'nonpayable',
2577
+ type: 'function',
2578
+ name: 'addLiquidityConcentrated',
2071
2579
  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
2580
  {
2085
2581
  name: '_nftTokenId',
2086
2582
  type: 'uint256',
@@ -2098,7 +2594,19 @@ export const abi = [
2098
2594
  type: 'address',
2099
2595
  },
2100
2596
  {
2101
- name: '_liqToRemove',
2597
+ name: '_tickLower',
2598
+ type: 'int24',
2599
+ },
2600
+ {
2601
+ name: '_tickUpper',
2602
+ type: 'int24',
2603
+ },
2604
+ {
2605
+ name: '_amountA',
2606
+ type: 'uint256',
2607
+ },
2608
+ {
2609
+ name: '_amountB',
2102
2610
  type: 'uint256',
2103
2611
  },
2104
2612
  {
@@ -2109,8 +2617,15 @@ export const abi = [
2109
2617
  name: '_minAmountB',
2110
2618
  type: 'uint256',
2111
2619
  },
2620
+ {
2621
+ name: '_extraData',
2622
+ type: 'bytes32',
2623
+ },
2624
+ {
2625
+ name: '_recipient',
2626
+ type: 'address',
2627
+ },
2112
2628
  ],
2113
- name: 'removeLiquidity',
2114
2629
  outputs: [
2115
2630
  {
2116
2631
  name: '',
@@ -2126,26 +2641,19 @@ export const abi = [
2126
2641
  },
2127
2642
  {
2128
2643
  name: '',
2129
- type: 'bool',
2644
+ type: 'uint256',
2645
+ },
2646
+ {
2647
+ name: '',
2648
+ type: 'uint256',
2130
2649
  },
2131
2650
  ],
2132
- stateMutability: 'nonpayable',
2133
- type: 'function',
2134
2651
  },
2135
2652
  {
2653
+ stateMutability: 'nonpayable',
2654
+ type: 'function',
2655
+ name: 'addLiquidityConcentrated',
2136
2656
  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
2657
  {
2150
2658
  name: '_nftTokenId',
2151
2659
  type: 'uint256',
@@ -2163,1110 +2671,269 @@ export const abi = [
2163
2671
  type: 'address',
2164
2672
  },
2165
2673
  {
2166
- name: '_liqToRemove',
2167
- type: 'uint256',
2168
- },
2169
- {
2170
- name: '_minAmountA',
2171
- type: 'uint256',
2172
- },
2173
- {
2174
- name: '_minAmountB',
2175
- type: 'uint256',
2176
- },
2177
- {
2178
- components: [
2179
- {
2180
- name: 'signature',
2181
- type: 'bytes',
2182
- },
2183
- {
2184
- name: 'signer',
2185
- type: 'address',
2186
- },
2187
- {
2188
- name: 'expiration',
2189
- type: 'uint256',
2190
- },
2191
- ],
2192
- name: '_sig',
2193
- type: 'tuple',
2194
- },
2195
- ],
2196
- name: 'removeLiquidity',
2197
- outputs: [
2198
- {
2199
- name: '',
2200
- type: 'uint256',
2201
- },
2202
- {
2203
- name: '',
2204
- type: 'uint256',
2205
- },
2206
- {
2207
- name: '',
2208
- type: 'uint256',
2209
- },
2210
- {
2211
- name: '',
2212
- type: 'bool',
2213
- },
2214
- ],
2215
- stateMutability: 'nonpayable',
2216
- type: 'function',
2217
- },
2218
- {
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
- stateMutability: 'nonpayable',
2241
- type: 'function',
2242
- },
2243
- {
2244
- inputs: [
2245
- {
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: '',
2262
- type: 'uint256',
2263
- },
2264
- {
2265
- name: '',
2266
- type: 'uint256',
2267
- },
2268
- ],
2269
- stateMutability: 'nonpayable',
2270
- type: 'function',
2271
- },
2272
- {
2273
- inputs: [
2274
- {
2275
- name: '_userWallet',
2276
- type: 'address',
2277
- },
2278
- {
2279
- name: '_recipient',
2280
- type: 'address',
2281
- },
2282
- {
2283
- name: '_amount',
2284
- type: 'uint256',
2285
- },
2286
- {
2287
- name: '_asset',
2288
- type: 'address',
2289
- },
2290
- ],
2291
- name: 'transferFunds',
2292
- outputs: [
2293
- {
2294
- name: '',
2295
- type: 'uint256',
2296
- },
2297
- {
2298
- name: '',
2299
- type: 'uint256',
2300
- },
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
- {
2316
- name: '_amount',
2317
- type: 'uint256',
2318
- },
2319
- {
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: '',
2346
- type: 'uint256',
2347
- },
2348
- {
2349
- name: '',
2350
- type: 'uint256',
2351
- },
2352
- ],
2353
- stateMutability: 'nonpayable',
2354
- type: 'function',
2355
- },
2356
- {
2357
- inputs: [
2358
- {
2359
- name: '_userWallet',
2360
- type: 'address',
2361
- },
2362
- ],
2363
- name: 'convertEthToWeth',
2364
- outputs: [
2365
- {
2366
- name: '',
2367
- type: 'uint256',
2368
- },
2369
- {
2370
- 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
- type: 'uint256',
2390
- },
2391
- ],
2392
- name: 'convertEthToWeth',
2393
- outputs: [
2394
- {
2395
- name: '',
2396
- type: 'uint256',
2397
- },
2398
- {
2399
- name: '',
2400
- type: 'address',
2401
- },
2402
- {
2403
- name: '',
2404
- type: 'uint256',
2405
- },
2406
- ],
2407
- stateMutability: 'nonpayable',
2408
- type: 'function',
2409
- },
2410
- {
2411
- inputs: [
2412
- {
2413
- name: '_userWallet',
2414
- type: 'address',
2415
- },
2416
- {
2417
- name: '_amount',
2418
- type: 'uint256',
2674
+ name: '_tickLower',
2675
+ type: 'int24',
2419
2676
  },
2420
2677
  {
2421
- name: '_depositLegoId',
2422
- type: 'uint256',
2678
+ name: '_tickUpper',
2679
+ type: 'int24',
2423
2680
  },
2424
- ],
2425
- name: 'convertEthToWeth',
2426
- outputs: [
2427
2681
  {
2428
- name: '',
2682
+ name: '_amountA',
2429
2683
  type: 'uint256',
2430
2684
  },
2431
2685
  {
2432
- name: '',
2433
- type: 'address',
2434
- },
2435
- {
2436
- name: '',
2686
+ name: '_amountB',
2437
2687
  type: 'uint256',
2438
- },
2439
- ],
2440
- stateMutability: 'nonpayable',
2441
- type: 'function',
2442
- },
2443
- {
2444
- inputs: [
2445
- {
2446
- name: '_userWallet',
2447
- type: 'address',
2448
- },
2449
- {
2450
- name: '_amount',
2451
- type: 'uint256',
2452
- },
2453
- {
2454
- name: '_depositLegoId',
2455
- type: 'uint256',
2456
- },
2457
- {
2458
- name: '_depositVault',
2459
- type: 'address',
2460
- },
2461
- ],
2462
- name: 'convertEthToWeth',
2463
- outputs: [
2464
- {
2465
- name: '',
2466
- type: 'uint256',
2467
- },
2468
- {
2469
- name: '',
2470
- type: 'address',
2471
- },
2472
- {
2473
- name: '',
2474
- type: 'uint256',
2475
- },
2476
- ],
2477
- stateMutability: 'nonpayable',
2478
- type: 'function',
2479
- },
2480
- {
2481
- inputs: [
2482
- {
2483
- name: '_userWallet',
2484
- type: 'address',
2485
- },
2486
- {
2487
- name: '_amount',
2488
- type: 'uint256',
2489
- },
2490
- {
2491
- name: '_depositLegoId',
2492
- type: 'uint256',
2493
- },
2494
- {
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: '',
2521
- type: 'uint256',
2522
- },
2523
- {
2524
- name: '',
2525
- type: 'address',
2526
- },
2527
- {
2528
- name: '',
2529
- type: 'uint256',
2530
- },
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
- {
2545
- name: '',
2546
- type: 'uint256',
2547
- },
2548
- ],
2549
- stateMutability: 'nonpayable',
2550
- type: 'function',
2551
- },
2552
- {
2553
- inputs: [
2554
- {
2555
- name: '_userWallet',
2556
- type: 'address',
2557
- },
2558
- {
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',
2698
- 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
- components: [
2967
- {
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',
2997
- type: 'address',
2998
- },
2688
+ },
2689
+ {
2690
+ name: '_minAmountA',
2691
+ type: 'uint256',
2692
+ },
2693
+ {
2694
+ name: '_minAmountB',
2695
+ type: 'uint256',
2696
+ },
2697
+ {
2698
+ name: '_extraData',
2699
+ type: 'bytes32',
2700
+ },
2701
+ {
2702
+ name: '_recipient',
2703
+ type: 'address',
2704
+ },
2705
+ {
2706
+ name: '_miniAddys',
2707
+ type: 'tuple',
2708
+ components: [
2999
2709
  {
3000
- name: 'altVault',
2710
+ name: 'ledger',
3001
2711
  type: 'address',
3002
2712
  },
3003
2713
  {
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
2750
  },
3102
2751
  {
3103
- inputs: [],
3104
- name: 'confirmOwnershipChange',
3105
- outputs: [],
3106
- stateMutability: 'nonpayable',
3107
- type: 'function',
3108
- },
3109
- {
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: [
2885
+ {
2886
+ name: '',
2887
+ type: 'uint256',
2888
+ },
2889
+ {
2890
+ name: '',
2891
+ type: 'uint256',
2892
+ },
2893
+ {
2894
+ name: '',
2895
+ type: 'bool',
2896
+ },
3228
2897
  {
3229
2898
  name: '',
3230
2899
  type: 'uint256',
3231
2900
  },
3232
2901
  ],
3233
- stateMutability: 'view',
3234
- type: 'function',
3235
2902
  },
3236
2903
  {
2904
+ stateMutability: 'view',
2905
+ type: 'function',
2906
+ name: 'FORTY_ACRES_USDC_VAULT',
3237
2907
  inputs: [],
3238
- name: 'MAX_OWNER_CHANGE_DELAY',
3239
2908
  outputs: [
3240
2909
  {
3241
2910
  name: '',
3242
- type: 'uint256',
2911
+ type: 'address',
3243
2912
  },
3244
2913
  ],
3245
- stateMutability: 'view',
3246
- type: 'function',
3247
2914
  },
3248
2915
  {
2916
+ stateMutability: 'nonpayable',
2917
+ type: 'constructor',
3249
2918
  inputs: [
3250
2919
  {
3251
- name: '_minOwnerChangeDelay',
3252
- type: 'uint256',
2920
+ name: '_undyHq',
2921
+ type: 'address',
3253
2922
  },
3254
2923
  {
3255
- name: '_maxOwnerChangeDelay',
3256
- type: 'uint256',
2924
+ name: '_fortyAcresVault',
2925
+ type: 'address',
3257
2926
  },
3258
2927
  ],
3259
2928
  outputs: [],
3260
- stateMutability: 'nonpayable',
3261
- type: 'constructor',
3262
2929
  },
3263
2930
  ];
3264
- export const deployAddress = '0x70418b3AAa1044eC8bFF6a461B4E43460bb5699E';
2931
+ export const deployAddress = '0x55d744b66400C897f7D265Df73EA5521Cc62cfCc';
3265
2932
  function getRequest(method, args, contractAddressOrOptions) {
3266
2933
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3267
2934
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3268
2935
  const call = {
3269
- contractName: 'AgentTemplate',
2936
+ contractName: 'FortyAcres',
3270
2937
  method,
3271
2938
  args,
3272
2939
  address,
@@ -3290,21 +2957,52 @@ function getRequest(method, args, contractAddressOrOptions) {
3290
2957
  return call;
3291
2958
  }
3292
2959
  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),
2960
+ getAddys: (...args) => getRequest('getAddys', args),
2961
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
2962
+ isLegoAsset: (...args) => getRequest('isLegoAsset', args),
2963
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
2964
+ getAssets: (...args) => getRequest('getAssets', args),
2965
+ isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2966
+ getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2967
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
2968
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
2969
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
2970
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2971
+ assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2972
+ indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2973
+ numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2974
+ assets: (...args) => getRequest('assets', args),
2975
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2976
+ numAssets: (...args) => getRequest('numAssets', args),
2977
+ snapShotData: (...args) => getRequest('snapShotData', args),
2978
+ snapShots: (...args) => getRequest('snapShots', args),
2979
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
2980
+ isPaused: (...args) => getRequest('isPaused', args),
2981
+ hasCapability: (...args) => getRequest('hasCapability', args),
2982
+ getRegistries: (...args) => getRequest('getRegistries', args),
2983
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
2984
+ isDexLego: (...args) => getRequest('isDexLego', args),
2985
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
2986
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2987
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2988
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2989
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
2990
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2991
+ isRebasing: (...args) => getRequest('isRebasing', args),
2992
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2993
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2994
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2995
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2996
+ totalAssets: (...args) => getRequest('totalAssets', args),
2997
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
2998
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2999
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
3000
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3001
+ FORTY_ACRES_USDC_VAULT: (...args) => getRequest('FORTY_ACRES_USDC_VAULT', args),
3304
3002
  };
3305
3003
  function getMutation(functionName) {
3306
3004
  return {
3307
- contractName: 'AgentTemplate',
3005
+ contractName: 'FortyAcres',
3308
3006
  functionName,
3309
3007
  deployAddress,
3310
3008
  argsType: undefined,
@@ -3312,59 +3010,96 @@ function getMutation(functionName) {
3312
3010
  };
3313
3011
  }
3314
3012
  export const mutation = {
3315
- initialize: getMutation('initialize'),
3316
- depositTokens: getMutation('depositTokens'),
3317
- withdrawTokens: getMutation('withdrawTokens'),
3318
- rebalance: getMutation('rebalance'),
3013
+ pause: getMutation('pause'),
3014
+ recoverFunds: getMutation('recoverFunds'),
3015
+ recoverFundsMany: getMutation('recoverFundsMany'),
3016
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3017
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3018
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3019
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3020
+ depositForYield: getMutation('depositForYield'),
3021
+ withdrawFromYield: getMutation('withdrawFromYield'),
3022
+ claimRewards: getMutation('claimRewards'),
3319
3023
  swapTokens: getMutation('swapTokens'),
3024
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3025
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3026
+ addCollateral: getMutation('addCollateral'),
3027
+ removeCollateral: getMutation('removeCollateral'),
3320
3028
  borrow: getMutation('borrow'),
3321
3029
  repayDebt: getMutation('repayDebt'),
3322
- claimRewards: getMutation('claimRewards'),
3323
3030
  addLiquidity: getMutation('addLiquidity'),
3324
3031
  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'),
3032
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3033
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3334
3034
  };
3335
- export function toSdk(address, publicClient, walletClient) {
3035
+ export function toSdk(publicClient, walletClient) {
3336
3036
  return {
3037
+ deployAddress,
3038
+ abi,
3337
3039
  // Queries
3338
- apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(address)),
3339
- getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(address)),
3340
- getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(address)),
3341
- DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(address)),
3342
- initialized: (...args) => singleQuery(publicClient, call.initialized(...args).at(address)),
3343
- usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(address)),
3344
- owner: (...args) => singleQuery(publicClient, call.owner(...args).at(address)),
3345
- pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(address)),
3346
- ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(address)),
3347
- MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(address)),
3348
- MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(address)),
3040
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
3041
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
3042
+ isLegoAsset: (...args) => singleQuery(publicClient, call.isLegoAsset(...args)),
3043
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
3044
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
3045
+ isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
3046
+ getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
3047
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3048
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3049
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3050
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
3051
+ assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
3052
+ indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
3053
+ numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
3054
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
3055
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
3056
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3057
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3058
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3059
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3060
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3061
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
3062
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
3063
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
3064
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
3065
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3066
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
3067
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
3068
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
3069
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3070
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3071
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3072
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3073
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3074
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3075
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3076
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
3077
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
3078
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3079
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
3080
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3081
+ FORTY_ACRES_USDC_VAULT: (...args) => singleQuery(publicClient, call.FORTY_ACRES_USDC_VAULT(...args)),
3349
3082
  // Mutations
3350
- initialize: (...args) => mutate(walletClient, mutation.initialize, { address })(...args),
3351
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address })(...args),
3352
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address })(...args),
3353
- rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address })(...args),
3354
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address })(...args),
3355
- borrow: (...args) => mutate(walletClient, mutation.borrow, { address })(...args),
3356
- repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address })(...args),
3357
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address })(...args),
3358
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address })(...args),
3359
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address })(...args),
3360
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address })(...args),
3361
- convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address })(...args),
3362
- convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address })(...args),
3363
- performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address })(...args),
3364
- changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address })(...args),
3365
- confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address })(...args),
3366
- cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address })(...args),
3367
- setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address })(...args),
3368
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address })(...args),
3083
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
3084
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
3085
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3086
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3087
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3088
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3089
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3090
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3091
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3092
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3093
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
3094
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
3095
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
3096
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
3097
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
3098
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
3099
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
3100
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
3101
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3102
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
3103
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
3369
3104
  };
3370
3105
  }