@underscore-finance/sdk 1.0.12 → 1.2.1

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