@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
@@ -2,1404 +2,1354 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
5
+ import { singleQuery } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
9
- inputs: [
8
+ stateMutability: 'view',
9
+ type: 'function',
10
+ name: 'getAddys',
11
+ inputs: [],
12
+ outputs: [
10
13
  {
11
- indexed: true,
12
- name: 'sender',
13
- type: 'address',
14
+ name: '',
15
+ type: 'tuple',
16
+ components: [
17
+ {
18
+ name: 'hq',
19
+ type: 'address',
20
+ },
21
+ {
22
+ name: 'undyToken',
23
+ type: 'address',
24
+ },
25
+ {
26
+ name: 'ledger',
27
+ type: 'address',
28
+ },
29
+ {
30
+ name: 'missionControl',
31
+ type: 'address',
32
+ },
33
+ {
34
+ name: 'legoBook',
35
+ type: 'address',
36
+ },
37
+ {
38
+ name: 'switchboard',
39
+ type: 'address',
40
+ },
41
+ {
42
+ name: 'hatchery',
43
+ type: 'address',
44
+ },
45
+ {
46
+ name: 'lootDistributor',
47
+ type: 'address',
48
+ },
49
+ {
50
+ name: 'appraiser',
51
+ type: 'address',
52
+ },
53
+ {
54
+ name: 'walletBackpack',
55
+ type: 'address',
56
+ },
57
+ {
58
+ name: 'billing',
59
+ type: 'address',
60
+ },
61
+ {
62
+ name: 'vaultRegistry',
63
+ type: 'address',
64
+ },
65
+ ],
14
66
  },
67
+ ],
68
+ },
69
+ {
70
+ stateMutability: 'view',
71
+ type: 'function',
72
+ name: 'getUndyHq',
73
+ inputs: [],
74
+ outputs: [
15
75
  {
16
- indexed: true,
17
- name: 'tokenIn',
76
+ name: '',
18
77
  type: 'address',
19
78
  },
79
+ ],
80
+ },
81
+ {
82
+ stateMutability: 'view',
83
+ type: 'function',
84
+ name: 'getSwappableUsdcAmount',
85
+ inputs: [
20
86
  {
21
- indexed: true,
22
- name: 'tokenOut',
87
+ name: '_wallet',
23
88
  type: 'address',
24
89
  },
25
90
  {
26
- indexed: false,
27
- name: 'amountIn',
91
+ name: '_amountIn',
28
92
  type: 'uint256',
29
93
  },
30
94
  {
31
- indexed: false,
32
- name: 'amountOut',
95
+ name: '_currentBalance',
33
96
  type: 'uint256',
34
97
  },
35
98
  {
36
- indexed: false,
37
- name: 'usdValue',
99
+ name: '_leverageVaultToken',
100
+ type: 'address',
101
+ },
102
+ {
103
+ name: '_leverageVaultTokenLegoId',
38
104
  type: 'uint256',
39
105
  },
40
106
  {
41
- indexed: false,
42
- name: 'numTokens',
107
+ name: '_leverageVaultTokenRipeVaultId',
43
108
  type: 'uint256',
44
109
  },
110
+ ],
111
+ outputs: [
45
112
  {
46
- indexed: false,
47
- name: 'recipient',
48
- type: 'address',
113
+ name: '',
114
+ type: 'uint256',
49
115
  },
50
116
  ],
51
- name: 'CurveSwap',
52
- type: 'event',
53
117
  },
54
118
  {
55
- anonymous: false,
119
+ stateMutability: 'view',
120
+ type: 'function',
121
+ name: 'getSwappableUsdcAmount',
56
122
  inputs: [
57
123
  {
58
- indexed: true,
59
- name: 'sender',
60
- type: 'address',
61
- },
62
- {
63
- indexed: true,
64
- name: 'tokenA',
124
+ name: '_wallet',
65
125
  type: 'address',
66
126
  },
67
127
  {
68
- indexed: true,
69
- name: 'tokenB',
70
- type: 'address',
128
+ name: '_amountIn',
129
+ type: 'uint256',
71
130
  },
72
131
  {
73
- indexed: false,
74
- name: 'amountA',
132
+ name: '_currentBalance',
75
133
  type: 'uint256',
76
134
  },
77
135
  {
78
- indexed: false,
79
- name: 'amountB',
80
- type: 'uint256',
136
+ name: '_leverageVaultToken',
137
+ type: 'address',
81
138
  },
82
139
  {
83
- indexed: false,
84
- name: 'lpAmountReceived',
140
+ name: '_leverageVaultTokenLegoId',
85
141
  type: 'uint256',
86
142
  },
87
143
  {
88
- indexed: false,
89
- name: 'usdValue',
144
+ name: '_leverageVaultTokenRipeVaultId',
90
145
  type: 'uint256',
91
146
  },
92
147
  {
93
- indexed: false,
94
- name: 'recipient',
148
+ name: '_usdc',
95
149
  type: 'address',
96
150
  },
97
151
  ],
98
- name: 'CurveLiquidityAdded',
99
- type: 'event',
152
+ outputs: [
153
+ {
154
+ name: '',
155
+ type: 'uint256',
156
+ },
157
+ ],
100
158
  },
101
159
  {
102
- anonymous: false,
160
+ stateMutability: 'view',
161
+ type: 'function',
162
+ name: 'getSwappableUsdcAmount',
103
163
  inputs: [
104
164
  {
105
- indexed: false,
106
- name: 'sender',
165
+ name: '_wallet',
107
166
  type: 'address',
108
167
  },
109
168
  {
110
- indexed: true,
111
- name: 'pool',
112
- type: 'address',
169
+ name: '_amountIn',
170
+ type: 'uint256',
113
171
  },
114
172
  {
115
- indexed: true,
116
- name: 'tokenA',
117
- type: 'address',
173
+ name: '_currentBalance',
174
+ type: 'uint256',
118
175
  },
119
176
  {
120
- indexed: true,
121
- name: 'tokenB',
177
+ name: '_leverageVaultToken',
122
178
  type: 'address',
123
179
  },
124
180
  {
125
- indexed: false,
126
- name: 'amountA',
181
+ name: '_leverageVaultTokenLegoId',
127
182
  type: 'uint256',
128
183
  },
129
184
  {
130
- indexed: false,
131
- name: 'amountB',
185
+ name: '_leverageVaultTokenRipeVaultId',
132
186
  type: 'uint256',
133
187
  },
134
188
  {
135
- indexed: false,
136
- name: 'lpToken',
189
+ name: '_usdc',
137
190
  type: 'address',
138
191
  },
139
192
  {
140
- indexed: false,
141
- name: 'lpAmountBurned',
142
- type: 'uint256',
193
+ name: '_green',
194
+ type: 'address',
143
195
  },
196
+ ],
197
+ outputs: [
144
198
  {
145
- indexed: false,
146
- name: 'usdValue',
199
+ name: '',
147
200
  type: 'uint256',
148
201
  },
149
- {
150
- indexed: false,
151
- name: 'recipient',
152
- type: 'address',
153
- },
154
202
  ],
155
- name: 'CurveLiquidityRemoved',
156
- type: 'event',
157
203
  },
158
204
  {
159
- anonymous: false,
205
+ stateMutability: 'view',
206
+ type: 'function',
207
+ name: 'getSwappableUsdcAmount',
160
208
  inputs: [
161
209
  {
162
- indexed: true,
163
- name: 'asset',
210
+ name: '_wallet',
164
211
  type: 'address',
165
212
  },
166
213
  {
167
- indexed: true,
168
- name: 'recipient',
214
+ name: '_amountIn',
215
+ type: 'uint256',
216
+ },
217
+ {
218
+ name: '_currentBalance',
219
+ type: 'uint256',
220
+ },
221
+ {
222
+ name: '_leverageVaultToken',
169
223
  type: 'address',
170
224
  },
171
225
  {
172
- indexed: false,
173
- name: 'amount',
226
+ name: '_leverageVaultTokenLegoId',
174
227
  type: 'uint256',
175
228
  },
176
- ],
177
- name: 'CurveFundsRecovered',
178
- type: 'event',
179
- },
180
- {
181
- anonymous: false,
182
- inputs: [
183
229
  {
184
- indexed: false,
185
- name: 'legoId',
230
+ name: '_leverageVaultTokenRipeVaultId',
186
231
  type: 'uint256',
187
232
  },
188
- ],
189
- name: 'CurveLegoIdSet',
190
- type: 'event',
191
- },
192
- {
193
- anonymous: false,
194
- inputs: [
195
233
  {
196
- indexed: false,
197
- name: 'isActivated',
198
- type: 'bool',
234
+ name: '_usdc',
235
+ type: 'address',
199
236
  },
200
- ],
201
- name: 'CurveActivated',
202
- type: 'event',
203
- },
204
- {
205
- anonymous: false,
206
- inputs: [
207
237
  {
208
- indexed: true,
209
- name: 'prevGov',
238
+ name: '_green',
210
239
  type: 'address',
211
240
  },
212
241
  {
213
- indexed: true,
214
- name: 'newGov',
242
+ name: '_savingsGreen',
215
243
  type: 'address',
216
244
  },
245
+ ],
246
+ outputs: [
217
247
  {
218
- indexed: false,
219
- name: 'confirmBlock',
248
+ name: '',
220
249
  type: 'uint256',
221
250
  },
222
251
  ],
223
- name: 'GovChangeInitiated',
224
- type: 'event',
225
252
  },
226
253
  {
227
- anonymous: false,
254
+ stateMutability: 'view',
255
+ type: 'function',
256
+ name: 'getSwappableUsdcAmount',
228
257
  inputs: [
229
258
  {
230
- indexed: true,
231
- name: 'prevGov',
232
- type: 'address',
233
- },
234
- {
235
- indexed: true,
236
- name: 'newGov',
259
+ name: '_wallet',
237
260
  type: 'address',
238
261
  },
239
262
  {
240
- indexed: false,
241
- name: 'initiatedBlock',
263
+ name: '_amountIn',
242
264
  type: 'uint256',
243
265
  },
244
266
  {
245
- indexed: false,
246
- name: 'confirmBlock',
267
+ name: '_currentBalance',
247
268
  type: 'uint256',
248
269
  },
249
- ],
250
- name: 'GovChangeConfirmed',
251
- type: 'event',
252
- },
253
- {
254
- anonymous: false,
255
- inputs: [
256
270
  {
257
- indexed: true,
258
- name: 'cancelledGov',
271
+ name: '_leverageVaultToken',
259
272
  type: 'address',
260
273
  },
261
274
  {
262
- indexed: false,
263
- name: 'initiatedBlock',
275
+ name: '_leverageVaultTokenLegoId',
264
276
  type: 'uint256',
265
277
  },
266
278
  {
267
- indexed: false,
268
- name: 'confirmBlock',
279
+ name: '_leverageVaultTokenRipeVaultId',
269
280
  type: 'uint256',
270
281
  },
271
- ],
272
- name: 'GovChangeCancelled',
273
- type: 'event',
274
- },
275
- {
276
- anonymous: false,
277
- inputs: [
278
282
  {
279
- indexed: false,
280
- name: 'delayBlocks',
281
- type: 'uint256',
283
+ name: '_usdc',
284
+ type: 'address',
282
285
  },
283
- ],
284
- name: 'GovChangeDelaySet',
285
- type: 'event',
286
- },
287
- {
288
- inputs: [
289
286
  {
290
- name: '_address',
287
+ name: '_green',
291
288
  type: 'address',
292
289
  },
293
- ],
294
- name: 'canGovern',
295
- outputs: [
296
290
  {
297
- name: '',
298
- type: 'bool',
291
+ name: '_savingsGreen',
292
+ type: 'address',
293
+ },
294
+ {
295
+ name: '_legoBook',
296
+ type: 'address',
299
297
  },
300
298
  ],
301
- stateMutability: 'view',
302
- type: 'function',
303
- },
304
- {
305
- inputs: [],
306
- name: 'hasPendingGovChange',
307
299
  outputs: [
308
300
  {
309
301
  name: '',
310
- type: 'bool',
302
+ type: 'uint256',
311
303
  },
312
304
  ],
313
- stateMutability: 'view',
314
- type: 'function',
315
305
  },
316
306
  {
307
+ stateMutability: 'view',
308
+ type: 'function',
309
+ name: 'getMaxBorrowAmount',
317
310
  inputs: [
318
311
  {
319
- name: '_newGov',
312
+ name: '_wallet',
320
313
  type: 'address',
321
314
  },
322
- ],
323
- name: 'changeGovernance',
324
- outputs: [],
325
- stateMutability: 'nonpayable',
326
- type: 'function',
327
- },
328
- {
329
- inputs: [],
330
- name: 'confirmGovernanceChange',
331
- outputs: [],
332
- stateMutability: 'nonpayable',
333
- type: 'function',
334
- },
335
- {
336
- inputs: [],
337
- name: 'cancelGovernanceChange',
338
- outputs: [],
339
- stateMutability: 'nonpayable',
340
- type: 'function',
341
- },
342
- {
343
- inputs: [
344
315
  {
345
- name: '_numBlocks',
346
- type: 'uint256',
316
+ name: '_underlyingAsset',
317
+ type: 'address',
347
318
  },
348
- ],
349
- name: 'setGovernanceChangeDelay',
350
- outputs: [],
351
- stateMutability: 'nonpayable',
352
- type: 'function',
353
- },
354
- {
355
- inputs: [],
356
- name: 'governance',
357
- outputs: [
358
319
  {
359
- name: '',
320
+ name: '_collateralVaultToken',
360
321
  type: 'address',
361
322
  },
362
- ],
363
- stateMutability: 'view',
364
- type: 'function',
365
- },
366
- {
367
- inputs: [],
368
- name: 'pendingGov',
369
- outputs: [
370
323
  {
371
- components: [
372
- {
373
- name: 'newGov',
374
- type: 'address',
375
- },
376
- {
377
- name: 'initiatedBlock',
378
- type: 'uint256',
379
- },
380
- {
381
- name: 'confirmBlock',
382
- type: 'uint256',
383
- },
384
- ],
385
- name: '',
386
- type: 'tuple',
324
+ name: '_collateralVaultTokenLegoId',
325
+ type: 'uint256',
387
326
  },
388
- ],
389
- stateMutability: 'view',
390
- type: 'function',
391
- },
392
- {
393
- inputs: [],
394
- name: 'govChangeDelay',
395
- outputs: [
396
327
  {
397
- name: '',
328
+ name: '_collateralVaultTokenRipeVaultId',
398
329
  type: 'uint256',
399
330
  },
400
- ],
401
- stateMutability: 'view',
402
- type: 'function',
403
- },
404
- {
405
- inputs: [],
406
- name: 'MIN_GOV_CHANGE_DELAY',
407
- outputs: [
408
331
  {
409
- name: '',
332
+ name: '_netUserCapital',
410
333
  type: 'uint256',
411
334
  },
412
- ],
413
- stateMutability: 'view',
414
- type: 'function',
415
- },
416
- {
417
- inputs: [],
418
- name: 'MAX_GOV_CHANGE_DELAY',
419
- outputs: [
420
335
  {
421
- name: '',
336
+ name: '_maxDebtRatio',
422
337
  type: 'uint256',
423
338
  },
339
+ {
340
+ name: '_isUsdcVault',
341
+ type: 'bool',
342
+ },
424
343
  ],
425
- stateMutability: 'view',
426
- type: 'function',
427
- },
428
- {
429
- inputs: [],
430
- name: 'getRegistries',
431
344
  outputs: [
432
345
  {
433
346
  name: '',
434
- type: 'address[]',
347
+ type: 'uint256',
435
348
  },
436
349
  ],
437
- stateMutability: 'view',
438
- type: 'function',
439
350
  },
440
351
  {
352
+ stateMutability: 'view',
353
+ type: 'function',
354
+ name: 'getMaxBorrowAmount',
441
355
  inputs: [
442
356
  {
443
- name: '_user',
357
+ name: '_wallet',
444
358
  type: 'address',
445
359
  },
446
- ],
447
- name: 'getAccessForLego',
448
- outputs: [
449
360
  {
450
- name: '',
361
+ name: '_underlyingAsset',
451
362
  type: 'address',
452
363
  },
453
364
  {
454
- name: '',
455
- type: 'string',
365
+ name: '_collateralVaultToken',
366
+ type: 'address',
456
367
  },
457
368
  {
458
- name: '',
369
+ name: '_collateralVaultTokenLegoId',
459
370
  type: 'uint256',
460
371
  },
461
- ],
462
- stateMutability: 'view',
463
- type: 'function',
464
- },
465
- {
466
- inputs: [
467
372
  {
468
- name: '_amountIn',
373
+ name: '_collateralVaultTokenRipeVaultId',
469
374
  type: 'uint256',
470
375
  },
471
376
  {
472
- name: '_minAmountOut',
377
+ name: '_netUserCapital',
473
378
  type: 'uint256',
474
379
  },
475
380
  {
476
- name: '_tokenPath',
477
- type: 'address[]',
381
+ name: '_maxDebtRatio',
382
+ type: 'uint256',
478
383
  },
479
384
  {
480
- name: '_poolPath',
481
- type: 'address[]',
385
+ name: '_isUsdcVault',
386
+ type: 'bool',
482
387
  },
483
388
  {
484
- name: '_recipient',
389
+ name: '_legoBook',
485
390
  type: 'address',
486
391
  },
487
392
  ],
488
- name: 'swapTokens',
489
393
  outputs: [
490
394
  {
491
- name: '',
395
+ name: '',
396
+ type: 'uint256',
397
+ },
398
+ ],
399
+ },
400
+ {
401
+ stateMutability: 'view',
402
+ type: 'function',
403
+ name: 'performPostSwapValidation',
404
+ inputs: [
405
+ {
406
+ name: '_tokenIn',
407
+ type: 'address',
408
+ },
409
+ {
410
+ name: '_tokenInAmount',
411
+ type: 'uint256',
412
+ },
413
+ {
414
+ name: '_tokenOut',
415
+ type: 'address',
416
+ },
417
+ {
418
+ name: '_tokenOutAmount',
492
419
  type: 'uint256',
493
420
  },
494
421
  {
495
- name: '',
422
+ name: '_usdcSlippageAllowed',
496
423
  type: 'uint256',
497
424
  },
498
425
  {
499
- name: '',
426
+ name: '_greenSlippageAllowed',
500
427
  type: 'uint256',
501
428
  },
429
+ ],
430
+ outputs: [
502
431
  {
503
432
  name: '',
504
- type: 'uint256',
433
+ type: 'bool',
505
434
  },
506
435
  ],
507
- stateMutability: 'nonpayable',
508
- type: 'function',
509
436
  },
510
437
  {
438
+ stateMutability: 'view',
439
+ type: 'function',
440
+ name: 'performPostSwapValidation',
511
441
  inputs: [
512
442
  {
513
- name: '_amountIn',
514
- type: 'uint256',
443
+ name: '_tokenIn',
444
+ type: 'address',
515
445
  },
516
446
  {
517
- name: '_minAmountOut',
447
+ name: '_tokenInAmount',
518
448
  type: 'uint256',
519
449
  },
520
450
  {
521
- name: '_tokenPath',
522
- type: 'address[]',
523
- },
524
- {
525
- name: '_poolPath',
526
- type: 'address[]',
527
- },
528
- {
529
- name: '_recipient',
451
+ name: '_tokenOut',
530
452
  type: 'address',
531
453
  },
532
454
  {
533
- name: '_oracleRegistry',
534
- type: 'address',
455
+ name: '_tokenOutAmount',
456
+ type: 'uint256',
535
457
  },
536
- ],
537
- name: 'swapTokens',
538
- outputs: [
539
458
  {
540
- name: '',
459
+ name: '_usdcSlippageAllowed',
541
460
  type: 'uint256',
542
461
  },
543
462
  {
544
- name: '',
463
+ name: '_greenSlippageAllowed',
545
464
  type: 'uint256',
546
465
  },
547
466
  {
548
- name: '',
549
- type: 'uint256',
467
+ name: '_usdc',
468
+ type: 'address',
550
469
  },
470
+ ],
471
+ outputs: [
551
472
  {
552
473
  name: '',
553
- type: 'uint256',
474
+ type: 'bool',
554
475
  },
555
476
  ],
556
- stateMutability: 'nonpayable',
557
- type: 'function',
558
477
  },
559
478
  {
479
+ stateMutability: 'view',
480
+ type: 'function',
481
+ name: 'performPostSwapValidation',
560
482
  inputs: [
561
483
  {
562
- name: '_nftTokenId',
563
- type: 'uint256',
564
- },
565
- {
566
- name: '_pool',
484
+ name: '_tokenIn',
567
485
  type: 'address',
568
486
  },
569
487
  {
570
- name: '_tokenA',
571
- type: 'address',
488
+ name: '_tokenInAmount',
489
+ type: 'uint256',
572
490
  },
573
491
  {
574
- name: '_tokenB',
492
+ name: '_tokenOut',
575
493
  type: 'address',
576
494
  },
577
495
  {
578
- name: '_tickLower',
579
- type: 'int24',
580
- },
581
- {
582
- name: '_tickUpper',
583
- type: 'int24',
584
- },
585
- {
586
- name: '_amountA',
496
+ name: '_tokenOutAmount',
587
497
  type: 'uint256',
588
498
  },
589
499
  {
590
- name: '_amountB',
500
+ name: '_usdcSlippageAllowed',
591
501
  type: 'uint256',
592
502
  },
593
503
  {
594
- name: '_minAmountA',
504
+ name: '_greenSlippageAllowed',
595
505
  type: 'uint256',
596
506
  },
597
507
  {
598
- name: '_minAmountB',
599
- type: 'uint256',
600
- },
601
- {
602
- name: '_minLpAmount',
603
- type: 'uint256',
508
+ name: '_usdc',
509
+ type: 'address',
604
510
  },
605
511
  {
606
- name: '_recipient',
512
+ name: '_green',
607
513
  type: 'address',
608
514
  },
609
515
  ],
610
- name: 'addLiquidity',
611
516
  outputs: [
612
517
  {
613
518
  name: '',
614
- type: 'uint256',
519
+ type: 'bool',
615
520
  },
521
+ ],
522
+ },
523
+ {
524
+ stateMutability: 'view',
525
+ type: 'function',
526
+ name: 'getTotalAssetsForUsdcVault',
527
+ inputs: [
616
528
  {
617
- name: '',
618
- type: 'uint256',
529
+ name: '_wallet',
530
+ type: 'address',
619
531
  },
620
532
  {
621
- name: '',
533
+ name: '_collateralVaultToken',
534
+ type: 'address',
535
+ },
536
+ {
537
+ name: '_collateralVaultTokenLegoId',
622
538
  type: 'uint256',
623
539
  },
624
540
  {
625
- name: '',
541
+ name: '_collateralVaultTokenRipeVaultId',
626
542
  type: 'uint256',
627
543
  },
628
544
  {
629
- name: '',
545
+ name: '_leverageVaultToken',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: '_leverageVaultTokenLegoId',
630
550
  type: 'uint256',
631
551
  },
632
552
  {
633
- name: '',
553
+ name: '_leverageVaultTokenRipeVaultId',
634
554
  type: 'uint256',
635
555
  },
556
+ ],
557
+ outputs: [
636
558
  {
637
559
  name: '',
638
560
  type: 'uint256',
639
561
  },
640
562
  ],
641
- stateMutability: 'nonpayable',
642
- type: 'function',
643
563
  },
644
564
  {
565
+ stateMutability: 'view',
566
+ type: 'function',
567
+ name: 'getTotalAssetsForUsdcVault',
645
568
  inputs: [
646
569
  {
647
- name: '_nftTokenId',
648
- type: 'uint256',
649
- },
650
- {
651
- name: '_pool',
652
- type: 'address',
653
- },
654
- {
655
- name: '_tokenA',
570
+ name: '_wallet',
656
571
  type: 'address',
657
572
  },
658
573
  {
659
- name: '_tokenB',
574
+ name: '_collateralVaultToken',
660
575
  type: 'address',
661
576
  },
662
577
  {
663
- name: '_tickLower',
664
- type: 'int24',
578
+ name: '_collateralVaultTokenLegoId',
579
+ type: 'uint256',
665
580
  },
666
581
  {
667
- name: '_tickUpper',
668
- type: 'int24',
582
+ name: '_collateralVaultTokenRipeVaultId',
583
+ type: 'uint256',
669
584
  },
670
585
  {
671
- name: '_amountA',
672
- type: 'uint256',
586
+ name: '_leverageVaultToken',
587
+ type: 'address',
673
588
  },
674
589
  {
675
- name: '_amountB',
590
+ name: '_leverageVaultTokenLegoId',
676
591
  type: 'uint256',
677
592
  },
678
593
  {
679
- name: '_minAmountA',
594
+ name: '_leverageVaultTokenRipeVaultId',
680
595
  type: 'uint256',
681
596
  },
682
597
  {
683
- name: '_minAmountB',
684
- type: 'uint256',
598
+ name: '_shouldGetMax',
599
+ type: 'bool',
685
600
  },
601
+ ],
602
+ outputs: [
686
603
  {
687
- name: '_minLpAmount',
604
+ name: '',
688
605
  type: 'uint256',
689
606
  },
607
+ ],
608
+ },
609
+ {
610
+ stateMutability: 'view',
611
+ type: 'function',
612
+ name: 'getTotalAssetsForUsdcVault',
613
+ inputs: [
690
614
  {
691
- name: '_recipient',
615
+ name: '_wallet',
692
616
  type: 'address',
693
617
  },
694
618
  {
695
- name: '_oracleRegistry',
619
+ name: '_collateralVaultToken',
696
620
  type: 'address',
697
621
  },
698
- ],
699
- name: 'addLiquidity',
700
- outputs: [
701
622
  {
702
- name: '',
623
+ name: '_collateralVaultTokenLegoId',
703
624
  type: 'uint256',
704
625
  },
705
626
  {
706
- name: '',
627
+ name: '_collateralVaultTokenRipeVaultId',
707
628
  type: 'uint256',
708
629
  },
709
630
  {
710
- name: '',
711
- type: 'uint256',
631
+ name: '_leverageVaultToken',
632
+ type: 'address',
712
633
  },
713
634
  {
714
- name: '',
635
+ name: '_leverageVaultTokenLegoId',
715
636
  type: 'uint256',
716
637
  },
717
638
  {
718
- name: '',
639
+ name: '_leverageVaultTokenRipeVaultId',
719
640
  type: 'uint256',
720
641
  },
721
642
  {
722
- name: '',
723
- type: 'uint256',
643
+ name: '_shouldGetMax',
644
+ type: 'bool',
645
+ },
646
+ {
647
+ name: '_usdc',
648
+ type: 'address',
724
649
  },
650
+ ],
651
+ outputs: [
725
652
  {
726
653
  name: '',
727
654
  type: 'uint256',
728
655
  },
729
656
  ],
730
- stateMutability: 'nonpayable',
731
- type: 'function',
732
657
  },
733
658
  {
659
+ stateMutability: 'view',
660
+ type: 'function',
661
+ name: 'getTotalAssetsForUsdcVault',
734
662
  inputs: [
735
663
  {
736
- name: '_nftTokenId',
737
- type: 'uint256',
664
+ name: '_wallet',
665
+ type: 'address',
738
666
  },
739
667
  {
740
- name: '_pool',
668
+ name: '_collateralVaultToken',
741
669
  type: 'address',
742
670
  },
743
671
  {
744
- name: '_tokenA',
745
- type: 'address',
672
+ name: '_collateralVaultTokenLegoId',
673
+ type: 'uint256',
746
674
  },
747
675
  {
748
- name: '_tokenB',
749
- type: 'address',
676
+ name: '_collateralVaultTokenRipeVaultId',
677
+ type: 'uint256',
750
678
  },
751
679
  {
752
- name: '_lpToken',
680
+ name: '_leverageVaultToken',
753
681
  type: 'address',
754
682
  },
755
683
  {
756
- name: '_liqToRemove',
684
+ name: '_leverageVaultTokenLegoId',
757
685
  type: 'uint256',
758
686
  },
759
687
  {
760
- name: '_minAmountA',
688
+ name: '_leverageVaultTokenRipeVaultId',
761
689
  type: 'uint256',
762
690
  },
763
691
  {
764
- name: '_minAmountB',
765
- type: 'uint256',
692
+ name: '_shouldGetMax',
693
+ type: 'bool',
694
+ },
695
+ {
696
+ name: '_usdc',
697
+ type: 'address',
766
698
  },
767
699
  {
768
- name: '_recipient',
700
+ name: '_green',
769
701
  type: 'address',
770
702
  },
771
703
  ],
772
- name: 'removeLiquidity',
773
704
  outputs: [
774
705
  {
775
706
  name: '',
776
707
  type: 'uint256',
777
708
  },
709
+ ],
710
+ },
711
+ {
712
+ stateMutability: 'view',
713
+ type: 'function',
714
+ name: 'getTotalAssetsForUsdcVault',
715
+ inputs: [
716
+ {
717
+ name: '_wallet',
718
+ type: 'address',
719
+ },
778
720
  {
779
- name: '',
721
+ name: '_collateralVaultToken',
722
+ type: 'address',
723
+ },
724
+ {
725
+ name: '_collateralVaultTokenLegoId',
780
726
  type: 'uint256',
781
727
  },
782
728
  {
783
- name: '',
729
+ name: '_collateralVaultTokenRipeVaultId',
784
730
  type: 'uint256',
785
731
  },
786
732
  {
787
- name: '',
733
+ name: '_leverageVaultToken',
734
+ type: 'address',
735
+ },
736
+ {
737
+ name: '_leverageVaultTokenLegoId',
788
738
  type: 'uint256',
789
739
  },
790
740
  {
791
- name: '',
741
+ name: '_leverageVaultTokenRipeVaultId',
792
742
  type: 'uint256',
793
743
  },
794
744
  {
795
- name: '',
745
+ name: '_shouldGetMax',
796
746
  type: 'bool',
797
747
  },
798
- ],
799
- stateMutability: 'nonpayable',
800
- type: 'function',
801
- },
802
- {
803
- inputs: [
804
748
  {
805
- name: '_nftTokenId',
806
- type: 'uint256',
749
+ name: '_usdc',
750
+ type: 'address',
807
751
  },
808
752
  {
809
- name: '_pool',
753
+ name: '_green',
810
754
  type: 'address',
811
755
  },
812
756
  {
813
- name: '_tokenA',
757
+ name: '_savingsGreen',
814
758
  type: 'address',
815
759
  },
760
+ ],
761
+ outputs: [
816
762
  {
817
- name: '_tokenB',
818
- type: 'address',
763
+ name: '',
764
+ type: 'uint256',
819
765
  },
766
+ ],
767
+ },
768
+ {
769
+ stateMutability: 'view',
770
+ type: 'function',
771
+ name: 'getTotalAssetsForUsdcVault',
772
+ inputs: [
820
773
  {
821
- name: '_lpToken',
774
+ name: '_wallet',
822
775
  type: 'address',
823
776
  },
824
777
  {
825
- name: '_liqToRemove',
826
- type: 'uint256',
778
+ name: '_collateralVaultToken',
779
+ type: 'address',
827
780
  },
828
781
  {
829
- name: '_minAmountA',
782
+ name: '_collateralVaultTokenLegoId',
830
783
  type: 'uint256',
831
784
  },
832
785
  {
833
- name: '_minAmountB',
786
+ name: '_collateralVaultTokenRipeVaultId',
834
787
  type: 'uint256',
835
788
  },
836
789
  {
837
- name: '_recipient',
790
+ name: '_leverageVaultToken',
838
791
  type: 'address',
839
792
  },
840
793
  {
841
- name: '_oracleRegistry',
842
- type: 'address',
794
+ name: '_leverageVaultTokenLegoId',
795
+ type: 'uint256',
843
796
  },
844
- ],
845
- name: 'removeLiquidity',
846
- outputs: [
847
797
  {
848
- name: '',
798
+ name: '_leverageVaultTokenRipeVaultId',
849
799
  type: 'uint256',
850
800
  },
851
801
  {
852
- name: '',
853
- type: 'uint256',
802
+ name: '_shouldGetMax',
803
+ type: 'bool',
854
804
  },
855
805
  {
856
- name: '',
857
- type: 'uint256',
806
+ name: '_usdc',
807
+ type: 'address',
858
808
  },
859
809
  {
860
- name: '',
861
- type: 'uint256',
810
+ name: '_green',
811
+ type: 'address',
862
812
  },
863
813
  {
864
- name: '',
865
- type: 'uint256',
814
+ name: '_savingsGreen',
815
+ type: 'address',
816
+ },
817
+ {
818
+ name: '_legoBook',
819
+ type: 'address',
866
820
  },
821
+ ],
822
+ outputs: [
867
823
  {
868
824
  name: '',
869
- type: 'bool',
825
+ type: 'uint256',
870
826
  },
871
827
  ],
872
- stateMutability: 'nonpayable',
873
- type: 'function',
874
828
  },
875
829
  {
830
+ stateMutability: 'view',
831
+ type: 'function',
832
+ name: 'getTotalAssetsForNonUsdcVault',
876
833
  inputs: [
877
834
  {
878
- name: '_user',
835
+ name: '_wallet',
879
836
  type: 'address',
880
837
  },
881
838
  {
882
- name: '_market',
839
+ name: '_underlyingAsset',
883
840
  type: 'address',
884
841
  },
885
842
  {
886
- name: '_rewardToken',
843
+ name: '_collateralVaultToken',
887
844
  type: 'address',
888
845
  },
889
846
  {
890
- name: '_rewardAmount',
847
+ name: '_collateralVaultTokenLegoId',
891
848
  type: 'uint256',
892
849
  },
893
850
  {
894
- name: '_proof',
895
- type: 'bytes32',
851
+ name: '_collateralVaultTokenRipeVaultId',
852
+ type: 'uint256',
896
853
  },
897
- ],
898
- name: 'claimRewards',
899
- outputs: [],
900
- stateMutability: 'nonpayable',
901
- type: 'function',
902
- },
903
- {
904
- inputs: [
905
854
  {
906
- name: '_user',
855
+ name: '_leverageVaultToken',
907
856
  type: 'address',
908
857
  },
858
+ {
859
+ name: '_leverageVaultTokenLegoId',
860
+ type: 'uint256',
861
+ },
862
+ {
863
+ name: '_leverageVaultTokenRipeVaultId',
864
+ type: 'uint256',
865
+ },
909
866
  ],
910
- name: 'hasClaimableRewards',
911
867
  outputs: [
912
868
  {
913
869
  name: '',
914
- type: 'bool',
870
+ type: 'uint256',
915
871
  },
916
872
  ],
917
- stateMutability: 'view',
918
- type: 'function',
919
873
  },
920
874
  {
875
+ stateMutability: 'view',
876
+ type: 'function',
877
+ name: 'getTotalAssetsForNonUsdcVault',
921
878
  inputs: [
922
879
  {
923
- name: '_pool',
880
+ name: '_wallet',
924
881
  type: 'address',
925
882
  },
926
- ],
927
- name: 'getLpToken',
928
- outputs: [
929
883
  {
930
- name: '',
884
+ name: '_underlyingAsset',
931
885
  type: 'address',
932
886
  },
933
- ],
934
- stateMutability: 'view',
935
- type: 'function',
936
- },
937
- {
938
- inputs: [
939
887
  {
940
- name: '_lpToken',
888
+ name: '_collateralVaultToken',
941
889
  type: 'address',
942
890
  },
943
- ],
944
- name: 'getPoolForLpToken',
945
- outputs: [
946
891
  {
947
- name: '',
892
+ name: '_collateralVaultTokenLegoId',
893
+ type: 'uint256',
894
+ },
895
+ {
896
+ name: '_collateralVaultTokenRipeVaultId',
897
+ type: 'uint256',
898
+ },
899
+ {
900
+ name: '_leverageVaultToken',
948
901
  type: 'address',
949
902
  },
903
+ {
904
+ name: '_leverageVaultTokenLegoId',
905
+ type: 'uint256',
906
+ },
907
+ {
908
+ name: '_leverageVaultTokenRipeVaultId',
909
+ type: 'uint256',
910
+ },
911
+ {
912
+ name: '_shouldGetMax',
913
+ type: 'bool',
914
+ },
950
915
  ],
951
- stateMutability: 'view',
952
- type: 'function',
953
- },
954
- {
955
- inputs: [],
956
- name: 'getCoreRouterPool',
957
916
  outputs: [
958
917
  {
959
918
  name: '',
960
- type: 'address',
919
+ type: 'uint256',
961
920
  },
962
921
  ],
963
- stateMutability: 'view',
964
- type: 'function',
965
922
  },
966
923
  {
924
+ stateMutability: 'view',
925
+ type: 'function',
926
+ name: 'getTotalAssetsForNonUsdcVault',
967
927
  inputs: [
968
928
  {
969
- name: '_tokenA',
929
+ name: '_wallet',
970
930
  type: 'address',
971
931
  },
972
932
  {
973
- name: '_tokenB',
933
+ name: '_underlyingAsset',
974
934
  type: 'address',
975
935
  },
976
- ],
977
- name: 'getDeepestLiqPool',
978
- outputs: [
979
936
  {
980
- components: [
981
- {
982
- name: 'pool',
983
- type: 'address',
984
- },
985
- {
986
- name: 'fee',
987
- type: 'uint256',
988
- },
989
- {
990
- name: 'liquidity',
991
- type: 'uint256',
992
- },
993
- {
994
- name: 'numCoins',
995
- type: 'uint256',
996
- },
997
- {
998
- name: 'legoId',
999
- type: 'uint256',
1000
- },
1001
- ],
1002
- name: '',
1003
- type: 'tuple',
937
+ name: '_collateralVaultToken',
938
+ type: 'address',
1004
939
  },
1005
- ],
1006
- stateMutability: 'view',
1007
- type: 'function',
1008
- },
1009
- {
1010
- inputs: [
1011
940
  {
1012
- name: '_tokenIn',
1013
- type: 'address',
941
+ name: '_collateralVaultTokenLegoId',
942
+ type: 'uint256',
1014
943
  },
1015
944
  {
1016
- name: '_tokenOut',
945
+ name: '_collateralVaultTokenRipeVaultId',
946
+ type: 'uint256',
947
+ },
948
+ {
949
+ name: '_leverageVaultToken',
1017
950
  type: 'address',
1018
951
  },
1019
952
  {
1020
- name: '_amountIn',
953
+ name: '_leverageVaultTokenLegoId',
1021
954
  type: 'uint256',
1022
955
  },
1023
- ],
1024
- name: 'getBestSwapAmountOut',
1025
- outputs: [
1026
956
  {
1027
- name: '',
957
+ name: '_leverageVaultTokenRipeVaultId',
958
+ type: 'uint256',
959
+ },
960
+ {
961
+ name: '_shouldGetMax',
962
+ type: 'bool',
963
+ },
964
+ {
965
+ name: '_usdc',
1028
966
  type: 'address',
1029
967
  },
968
+ ],
969
+ outputs: [
1030
970
  {
1031
971
  name: '',
1032
972
  type: 'uint256',
1033
973
  },
1034
974
  ],
1035
- stateMutability: 'view',
1036
- type: 'function',
1037
975
  },
1038
976
  {
977
+ stateMutability: 'view',
978
+ type: 'function',
979
+ name: 'getTotalAssetsForNonUsdcVault',
1039
980
  inputs: [
1040
981
  {
1041
- name: '_pool',
982
+ name: '_wallet',
1042
983
  type: 'address',
1043
984
  },
1044
985
  {
1045
- name: '_tokenIn',
986
+ name: '_underlyingAsset',
1046
987
  type: 'address',
1047
988
  },
1048
989
  {
1049
- name: '_tokenOut',
990
+ name: '_collateralVaultToken',
1050
991
  type: 'address',
1051
992
  },
1052
993
  {
1053
- name: '_amountIn',
994
+ name: '_collateralVaultTokenLegoId',
995
+ type: 'uint256',
996
+ },
997
+ {
998
+ name: '_collateralVaultTokenRipeVaultId',
999
+ type: 'uint256',
1000
+ },
1001
+ {
1002
+ name: '_leverageVaultToken',
1003
+ type: 'address',
1004
+ },
1005
+ {
1006
+ name: '_leverageVaultTokenLegoId',
1007
+ type: 'uint256',
1008
+ },
1009
+ {
1010
+ name: '_leverageVaultTokenRipeVaultId',
1054
1011
  type: 'uint256',
1055
1012
  },
1013
+ {
1014
+ name: '_shouldGetMax',
1015
+ type: 'bool',
1016
+ },
1017
+ {
1018
+ name: '_usdc',
1019
+ type: 'address',
1020
+ },
1021
+ {
1022
+ name: '_green',
1023
+ type: 'address',
1024
+ },
1056
1025
  ],
1057
- name: 'getSwapAmountOut',
1058
1026
  outputs: [
1059
1027
  {
1060
1028
  name: '',
1061
1029
  type: 'uint256',
1062
1030
  },
1063
1031
  ],
1064
- stateMutability: 'view',
1065
- type: 'function',
1066
1032
  },
1067
1033
  {
1034
+ stateMutability: 'view',
1035
+ type: 'function',
1036
+ name: 'getTotalAssetsForNonUsdcVault',
1068
1037
  inputs: [
1069
1038
  {
1070
- name: '_tokenIn',
1039
+ name: '_wallet',
1071
1040
  type: 'address',
1072
1041
  },
1073
1042
  {
1074
- name: '_tokenOut',
1043
+ name: '_underlyingAsset',
1044
+ type: 'address',
1045
+ },
1046
+ {
1047
+ name: '_collateralVaultToken',
1075
1048
  type: 'address',
1076
1049
  },
1077
1050
  {
1078
- name: '_amountOut',
1051
+ name: '_collateralVaultTokenLegoId',
1079
1052
  type: 'uint256',
1080
1053
  },
1081
- ],
1082
- name: 'getBestSwapAmountIn',
1083
- outputs: [
1084
1054
  {
1085
- name: '',
1055
+ name: '_collateralVaultTokenRipeVaultId',
1056
+ type: 'uint256',
1057
+ },
1058
+ {
1059
+ name: '_leverageVaultToken',
1086
1060
  type: 'address',
1087
1061
  },
1088
1062
  {
1089
- name: '',
1063
+ name: '_leverageVaultTokenLegoId',
1090
1064
  type: 'uint256',
1091
1065
  },
1092
- ],
1093
- stateMutability: 'view',
1094
- type: 'function',
1095
- },
1096
- {
1097
- inputs: [
1098
1066
  {
1099
- name: '_pool',
1100
- type: 'address',
1067
+ name: '_leverageVaultTokenRipeVaultId',
1068
+ type: 'uint256',
1101
1069
  },
1102
1070
  {
1103
- name: '_tokenIn',
1071
+ name: '_shouldGetMax',
1072
+ type: 'bool',
1073
+ },
1074
+ {
1075
+ name: '_usdc',
1104
1076
  type: 'address',
1105
1077
  },
1106
1078
  {
1107
- name: '_tokenOut',
1079
+ name: '_green',
1108
1080
  type: 'address',
1109
1081
  },
1110
1082
  {
1111
- name: '_amountOut',
1112
- type: 'uint256',
1083
+ name: '_savingsGreen',
1084
+ type: 'address',
1113
1085
  },
1114
1086
  ],
1115
- name: 'getSwapAmountIn',
1116
1087
  outputs: [
1117
1088
  {
1118
1089
  name: '',
1119
1090
  type: 'uint256',
1120
1091
  },
1121
1092
  ],
1122
- stateMutability: 'view',
1123
- type: 'function',
1124
1093
  },
1125
1094
  {
1095
+ stateMutability: 'view',
1096
+ type: 'function',
1097
+ name: 'getTotalAssetsForNonUsdcVault',
1126
1098
  inputs: [
1127
1099
  {
1128
- name: '_pool',
1100
+ name: '_wallet',
1129
1101
  type: 'address',
1130
1102
  },
1131
1103
  {
1132
- name: '_tokenA',
1104
+ name: '_underlyingAsset',
1133
1105
  type: 'address',
1134
1106
  },
1135
1107
  {
1136
- name: '_tokenB',
1108
+ name: '_collateralVaultToken',
1137
1109
  type: 'address',
1138
1110
  },
1139
1111
  {
1140
- name: '_availAmountA',
1112
+ name: '_collateralVaultTokenLegoId',
1141
1113
  type: 'uint256',
1142
1114
  },
1143
1115
  {
1144
- name: '_availAmountB',
1116
+ name: '_collateralVaultTokenRipeVaultId',
1145
1117
  type: 'uint256',
1146
1118
  },
1147
- ],
1148
- name: 'getAddLiqAmountsIn',
1149
- outputs: [
1150
1119
  {
1151
- name: '',
1152
- type: 'uint256',
1120
+ name: '_leverageVaultToken',
1121
+ type: 'address',
1153
1122
  },
1154
1123
  {
1155
- name: '',
1124
+ name: '_leverageVaultTokenLegoId',
1156
1125
  type: 'uint256',
1157
1126
  },
1158
1127
  {
1159
- name: '',
1128
+ name: '_leverageVaultTokenRipeVaultId',
1160
1129
  type: 'uint256',
1161
1130
  },
1162
- ],
1163
- stateMutability: 'view',
1164
- type: 'function',
1165
- },
1166
- {
1167
- inputs: [
1168
1131
  {
1169
- name: '_pool',
1132
+ name: '_shouldGetMax',
1133
+ type: 'bool',
1134
+ },
1135
+ {
1136
+ name: '_usdc',
1170
1137
  type: 'address',
1171
1138
  },
1172
1139
  {
1173
- name: '_tokenA',
1140
+ name: '_green',
1174
1141
  type: 'address',
1175
1142
  },
1176
1143
  {
1177
- name: '_tokenB',
1144
+ name: '_savingsGreen',
1178
1145
  type: 'address',
1179
1146
  },
1180
1147
  {
1181
- name: '_lpAmount',
1182
- type: 'uint256',
1148
+ name: '_legoBook',
1149
+ type: 'address',
1183
1150
  },
1184
1151
  ],
1185
- name: 'getRemoveLiqAmountsOut',
1186
1152
  outputs: [
1187
1153
  {
1188
1154
  name: '',
1189
1155
  type: 'uint256',
1190
1156
  },
1191
- {
1192
- name: '',
1193
- type: 'uint256',
1194
- },
1195
1157
  ],
1196
- stateMutability: 'view',
1197
- type: 'function',
1198
1158
  },
1199
1159
  {
1160
+ stateMutability: 'view',
1161
+ type: 'function',
1162
+ name: 'getCollateralBalance',
1200
1163
  inputs: [
1201
1164
  {
1202
- name: '_pool',
1165
+ name: '_user',
1203
1166
  type: 'address',
1204
1167
  },
1205
1168
  {
1206
- name: '_targetToken',
1169
+ name: '_asset',
1207
1170
  type: 'address',
1208
1171
  },
1172
+ {
1173
+ name: '_ripeVaultId',
1174
+ type: 'uint256',
1175
+ },
1209
1176
  ],
1210
- name: 'getPriceUnsafe',
1211
1177
  outputs: [
1212
1178
  {
1213
1179
  name: '',
1214
1180
  type: 'uint256',
1215
1181
  },
1216
1182
  ],
1217
- stateMutability: 'view',
1218
- type: 'function',
1219
1183
  },
1220
1184
  {
1185
+ stateMutability: 'view',
1186
+ type: 'function',
1187
+ name: 'getCollateralBalance',
1221
1188
  inputs: [
1222
1189
  {
1223
- name: '_pool',
1190
+ name: '_user',
1224
1191
  type: 'address',
1225
1192
  },
1226
1193
  {
1227
- name: '_targetToken',
1194
+ name: '_asset',
1228
1195
  type: 'address',
1229
1196
  },
1230
1197
  {
1231
- name: '_oracleRegistry',
1198
+ name: '_ripeVaultId',
1199
+ type: 'uint256',
1200
+ },
1201
+ {
1202
+ name: '_vaultBook',
1232
1203
  type: 'address',
1233
1204
  },
1234
1205
  ],
1235
- name: 'getPriceUnsafe',
1236
1206
  outputs: [
1237
1207
  {
1238
1208
  name: '',
1239
1209
  type: 'uint256',
1240
1210
  },
1241
1211
  ],
1242
- stateMutability: 'view',
1243
- type: 'function',
1244
1212
  },
1245
1213
  {
1214
+ stateMutability: 'view',
1215
+ type: 'function',
1216
+ name: 'isSupportedAssetInVault',
1246
1217
  inputs: [
1247
1218
  {
1248
- name: '_asset',
1249
- type: 'address',
1219
+ name: '_vaultId',
1220
+ type: 'uint256',
1250
1221
  },
1251
1222
  {
1252
- name: '_recipient',
1223
+ name: '_asset',
1253
1224
  type: 'address',
1254
1225
  },
1255
1226
  ],
1256
- name: 'recoverFunds',
1257
1227
  outputs: [
1258
1228
  {
1259
1229
  name: '',
1260
1230
  type: 'bool',
1261
1231
  },
1262
1232
  ],
1263
- stateMutability: 'nonpayable',
1264
- type: 'function',
1265
1233
  },
1266
1234
  {
1267
- inputs: [
1235
+ stateMutability: 'view',
1236
+ type: 'function',
1237
+ name: 'getVaultBookAndDeleverage',
1238
+ inputs: [],
1239
+ outputs: [
1268
1240
  {
1269
- name: '_legoId',
1270
- type: 'uint256',
1241
+ name: '',
1242
+ type: 'address',
1271
1243
  },
1272
- ],
1273
- name: 'setLegoId',
1274
- outputs: [
1275
1244
  {
1276
1245
  name: '',
1277
- type: 'bool',
1246
+ type: 'address',
1278
1247
  },
1279
1248
  ],
1280
- stateMutability: 'nonpayable',
1281
- type: 'function',
1282
1249
  },
1283
1250
  {
1251
+ stateMutability: 'view',
1252
+ type: 'function',
1253
+ name: 'isValidVaultToken',
1284
1254
  inputs: [
1285
1255
  {
1286
- name: '_shouldActivate',
1287
- type: 'bool',
1256
+ name: '_underlyingAsset',
1257
+ type: 'address',
1258
+ },
1259
+ {
1260
+ name: '_vaultToken',
1261
+ type: 'address',
1262
+ },
1263
+ {
1264
+ name: '_ripeVaultId',
1265
+ type: 'uint256',
1266
+ },
1267
+ {
1268
+ name: '_legoId',
1269
+ type: 'uint256',
1288
1270
  },
1289
1271
  ],
1290
- name: 'activate',
1291
- outputs: [],
1292
- stateMutability: 'nonpayable',
1293
- type: 'function',
1294
- },
1295
- {
1296
- inputs: [],
1297
- name: 'CURVE_META_REGISTRY',
1298
1272
  outputs: [
1299
1273
  {
1300
1274
  name: '',
1301
- type: 'address',
1275
+ type: 'bool',
1302
1276
  },
1303
1277
  ],
1304
- stateMutability: 'view',
1305
- type: 'function',
1306
1278
  },
1307
1279
  {
1280
+ stateMutability: 'view',
1281
+ type: 'function',
1282
+ name: 'RIPE_REGISTRY',
1308
1283
  inputs: [],
1309
- name: 'CURVE_REGISTRIES',
1310
1284
  outputs: [
1311
1285
  {
1312
- components: [
1313
- {
1314
- name: 'StableSwapNg',
1315
- type: 'address',
1316
- },
1317
- {
1318
- name: 'TwoCryptoNg',
1319
- type: 'address',
1320
- },
1321
- {
1322
- name: 'TricryptoNg',
1323
- type: 'address',
1324
- },
1325
- {
1326
- name: 'TwoCrypto',
1327
- type: 'address',
1328
- },
1329
- {
1330
- name: 'MetaPool',
1331
- type: 'address',
1332
- },
1333
- {
1334
- name: 'RateProvider',
1335
- type: 'address',
1336
- },
1337
- ],
1338
1286
  name: '',
1339
- type: 'tuple',
1287
+ type: 'address',
1340
1288
  },
1341
1289
  ],
1342
- stateMutability: 'view',
1343
- type: 'function',
1344
1290
  },
1345
1291
  {
1292
+ stateMutability: 'view',
1293
+ type: 'function',
1294
+ name: 'GREEN_TOKEN',
1346
1295
  inputs: [],
1347
- name: 'legoId',
1348
1296
  outputs: [
1349
1297
  {
1350
1298
  name: '',
1351
- type: 'uint256',
1299
+ type: 'address',
1352
1300
  },
1353
1301
  ],
1354
- stateMutability: 'view',
1355
- type: 'function',
1356
1302
  },
1357
1303
  {
1304
+ stateMutability: 'view',
1305
+ type: 'function',
1306
+ name: 'SAVINGS_GREEN',
1358
1307
  inputs: [],
1359
- name: 'isActivated',
1360
1308
  outputs: [
1361
1309
  {
1362
1310
  name: '',
1363
- type: 'bool',
1311
+ type: 'address',
1364
1312
  },
1365
1313
  ],
1366
- stateMutability: 'view',
1367
- type: 'function',
1368
1314
  },
1369
1315
  {
1316
+ stateMutability: 'view',
1317
+ type: 'function',
1318
+ name: 'USDC',
1370
1319
  inputs: [],
1371
- name: 'ADDY_REGISTRY',
1372
1320
  outputs: [
1373
1321
  {
1374
1322
  name: '',
1375
1323
  type: 'address',
1376
1324
  },
1377
1325
  ],
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
1326
  },
1381
1327
  {
1328
+ stateMutability: 'nonpayable',
1329
+ type: 'constructor',
1382
1330
  inputs: [
1383
1331
  {
1384
- name: '_curveAddressProvider',
1332
+ name: '_undyHq',
1333
+ type: 'address',
1334
+ },
1335
+ {
1336
+ name: '_ripeRegistry',
1385
1337
  type: 'address',
1386
1338
  },
1387
1339
  {
1388
- name: '_addyRegistry',
1340
+ name: '_usdc',
1389
1341
  type: 'address',
1390
1342
  },
1391
1343
  ],
1392
1344
  outputs: [],
1393
- stateMutability: 'nonpayable',
1394
- type: 'constructor',
1395
1345
  },
1396
1346
  ];
1397
- export const deployAddress = '0x6118D44763a556Cf8d113ebBce853E14a0C67997';
1347
+ export const deployAddress = '0xCCE531215D9841E3D69b1Db4e31e1005331DAe4c';
1398
1348
  function getRequest(method, args, contractAddressOrOptions) {
1399
1349
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1400
1350
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1401
1351
  const call = {
1402
- contractName: 'LegoCurve',
1352
+ contractName: 'LevgVaultHelper',
1403
1353
  method,
1404
1354
  args,
1405
1355
  address,
@@ -1423,97 +1373,42 @@ function getRequest(method, args, contractAddressOrOptions) {
1423
1373
  return call;
1424
1374
  }
1425
1375
  export const call = {
1426
- canGovern: (...args) => getRequest('canGovern', args),
1427
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1428
- governance: (...args) => getRequest('governance', args),
1429
- pendingGov: (...args) => getRequest('pendingGov', args),
1430
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1431
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1432
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1433
- getRegistries: (...args) => getRequest('getRegistries', args),
1434
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1435
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1436
- getLpToken: (...args) => getRequest('getLpToken', args),
1437
- getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
1438
- getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
1439
- getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
1440
- getBestSwapAmountOut: (...args) => getRequest('getBestSwapAmountOut', args),
1441
- getSwapAmountOut: (...args) => getRequest('getSwapAmountOut', args),
1442
- getBestSwapAmountIn: (...args) => getRequest('getBestSwapAmountIn', args),
1443
- getSwapAmountIn: (...args) => getRequest('getSwapAmountIn', args),
1444
- getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
1445
- getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
1446
- getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
1447
- CURVE_META_REGISTRY: (...args) => getRequest('CURVE_META_REGISTRY', args),
1448
- CURVE_REGISTRIES: (...args) => getRequest('CURVE_REGISTRIES', args),
1449
- legoId: (...args) => getRequest('legoId', args),
1450
- isActivated: (...args) => getRequest('isActivated', args),
1451
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1452
- };
1453
- function getMutation(functionName) {
1454
- return {
1455
- contractName: 'LegoCurve',
1456
- functionName,
1457
- deployAddress,
1458
- argsType: undefined,
1459
- getAbi: () => abi,
1460
- };
1461
- }
1462
- export const mutation = {
1463
- changeGovernance: getMutation('changeGovernance'),
1464
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1465
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1466
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1467
- swapTokens: getMutation('swapTokens'),
1468
- addLiquidity: getMutation('addLiquidity'),
1469
- removeLiquidity: getMutation('removeLiquidity'),
1470
- claimRewards: getMutation('claimRewards'),
1471
- recoverFunds: getMutation('recoverFunds'),
1472
- setLegoId: getMutation('setLegoId'),
1473
- activate: getMutation('activate'),
1376
+ getAddys: (...args) => getRequest('getAddys', args),
1377
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
1378
+ getSwappableUsdcAmount: (...args) => getRequest('getSwappableUsdcAmount', args),
1379
+ getMaxBorrowAmount: (...args) => getRequest('getMaxBorrowAmount', args),
1380
+ performPostSwapValidation: (...args) => getRequest('performPostSwapValidation', args),
1381
+ getTotalAssetsForUsdcVault: (...args) => getRequest('getTotalAssetsForUsdcVault', args),
1382
+ getTotalAssetsForNonUsdcVault: (...args) => getRequest('getTotalAssetsForNonUsdcVault', args),
1383
+ getCollateralBalance: (...args) => getRequest('getCollateralBalance', args),
1384
+ isSupportedAssetInVault: (...args) => getRequest('isSupportedAssetInVault', args),
1385
+ getVaultBookAndDeleverage: (...args) => getRequest('getVaultBookAndDeleverage', args),
1386
+ isValidVaultToken: (...args) => getRequest('isValidVaultToken', args),
1387
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
1388
+ GREEN_TOKEN: (...args) => getRequest('GREEN_TOKEN', args),
1389
+ SAVINGS_GREEN: (...args) => getRequest('SAVINGS_GREEN', args),
1390
+ USDC: (...args) => getRequest('USDC', args),
1474
1391
  };
1475
1392
  export function toSdk(publicClient, walletClient) {
1476
1393
  return {
1477
1394
  deployAddress,
1478
1395
  abi,
1479
1396
  // Queries
1480
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1481
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1482
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1483
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1484
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1485
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1486
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1487
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1488
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1489
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1490
- getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args)),
1491
- getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args)),
1492
- getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args)),
1493
- getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args)),
1494
- getBestSwapAmountOut: (...args) => singleQuery(publicClient, call.getBestSwapAmountOut(...args)),
1495
- getSwapAmountOut: (...args) => singleQuery(publicClient, call.getSwapAmountOut(...args)),
1496
- getBestSwapAmountIn: (...args) => singleQuery(publicClient, call.getBestSwapAmountIn(...args)),
1497
- getSwapAmountIn: (...args) => singleQuery(publicClient, call.getSwapAmountIn(...args)),
1498
- getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args)),
1499
- getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args)),
1500
- getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args)),
1501
- CURVE_META_REGISTRY: (...args) => singleQuery(publicClient, call.CURVE_META_REGISTRY(...args)),
1502
- CURVE_REGISTRIES: (...args) => singleQuery(publicClient, call.CURVE_REGISTRIES(...args)),
1503
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1504
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1505
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1397
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1398
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
1399
+ getSwappableUsdcAmount: (...args) => singleQuery(publicClient, call.getSwappableUsdcAmount(...args)),
1400
+ getMaxBorrowAmount: (...args) => singleQuery(publicClient, call.getMaxBorrowAmount(...args)),
1401
+ performPostSwapValidation: (...args) => singleQuery(publicClient, call.performPostSwapValidation(...args)),
1402
+ getTotalAssetsForUsdcVault: (...args) => singleQuery(publicClient, call.getTotalAssetsForUsdcVault(...args)),
1403
+ getTotalAssetsForNonUsdcVault: (...args) => singleQuery(publicClient, call.getTotalAssetsForNonUsdcVault(...args)),
1404
+ getCollateralBalance: (...args) => singleQuery(publicClient, call.getCollateralBalance(...args)),
1405
+ isSupportedAssetInVault: (...args) => singleQuery(publicClient, call.isSupportedAssetInVault(...args)),
1406
+ getVaultBookAndDeleverage: (...args) => singleQuery(publicClient, call.getVaultBookAndDeleverage(...args)),
1407
+ isValidVaultToken: (...args) => singleQuery(publicClient, call.isValidVaultToken(...args)),
1408
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
1409
+ GREEN_TOKEN: (...args) => singleQuery(publicClient, call.GREEN_TOKEN(...args)),
1410
+ SAVINGS_GREEN: (...args) => singleQuery(publicClient, call.SAVINGS_GREEN(...args)),
1411
+ USDC: (...args) => singleQuery(publicClient, call.USDC(...args)),
1506
1412
  // Mutations
1507
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1508
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1509
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1510
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1511
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1512
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1513
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1514
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1515
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1516
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1517
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1518
1413
  };
1519
1414
  }