@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
@@ -16,7 +16,7 @@ export declare const abi: readonly [{
16
16
  readonly type: "uint256";
17
17
  readonly indexed: false;
18
18
  }, {
19
- readonly name: "vaultId";
19
+ readonly name: "vaultIdOrLock";
20
20
  readonly type: "uint256";
21
21
  readonly indexed: false;
22
22
  }, {
@@ -200,6 +200,43 @@ export declare const abi: readonly [{
200
200
  }];
201
201
  readonly anonymous: false;
202
202
  readonly type: "event";
203
+ }, {
204
+ readonly name: "RipeEndaomentPsmSwap";
205
+ readonly inputs: readonly [{
206
+ readonly name: "sender";
207
+ readonly type: "address";
208
+ readonly indexed: true;
209
+ }, {
210
+ readonly name: "tokenIn";
211
+ readonly type: "address";
212
+ readonly indexed: true;
213
+ }, {
214
+ readonly name: "tokenOut";
215
+ readonly type: "address";
216
+ readonly indexed: true;
217
+ }, {
218
+ readonly name: "amountIn";
219
+ readonly type: "uint256";
220
+ readonly indexed: false;
221
+ }, {
222
+ readonly name: "amountOut";
223
+ readonly type: "uint256";
224
+ readonly indexed: false;
225
+ }, {
226
+ readonly name: "usdValue";
227
+ readonly type: "uint256";
228
+ readonly indexed: false;
229
+ }, {
230
+ readonly name: "numTokens";
231
+ readonly type: "uint256";
232
+ readonly indexed: false;
233
+ }, {
234
+ readonly name: "recipient";
235
+ readonly type: "address";
236
+ readonly indexed: false;
237
+ }];
238
+ readonly anonymous: false;
239
+ readonly type: "event";
203
240
  }, {
204
241
  readonly name: "LegoPauseModified";
205
242
  readonly inputs: readonly [{
@@ -226,6 +263,27 @@ export declare const abi: readonly [{
226
263
  }];
227
264
  readonly anonymous: false;
228
265
  readonly type: "event";
266
+ }, {
267
+ readonly name: "SnapShotPriceConfigSet";
268
+ readonly inputs: readonly [{
269
+ readonly name: "minSnapshotDelay";
270
+ readonly type: "uint256";
271
+ readonly indexed: false;
272
+ }, {
273
+ readonly name: "maxNumSnapshots";
274
+ readonly type: "uint256";
275
+ readonly indexed: false;
276
+ }, {
277
+ readonly name: "maxUpsideDeviation";
278
+ readonly type: "uint256";
279
+ readonly indexed: false;
280
+ }, {
281
+ readonly name: "staleTime";
282
+ readonly type: "uint256";
283
+ readonly indexed: false;
284
+ }];
285
+ readonly anonymous: false;
286
+ readonly type: "event";
229
287
  }, {
230
288
  readonly name: "AssetOpportunityAdded";
231
289
  readonly inputs: readonly [{
@@ -239,6 +297,40 @@ export declare const abi: readonly [{
239
297
  }];
240
298
  readonly anonymous: false;
241
299
  readonly type: "event";
300
+ }, {
301
+ readonly name: "AssetOpportunityRemoved";
302
+ readonly inputs: readonly [{
303
+ readonly name: "asset";
304
+ readonly type: "address";
305
+ readonly indexed: true;
306
+ }, {
307
+ readonly name: "vaultAddr";
308
+ readonly type: "address";
309
+ readonly indexed: true;
310
+ }];
311
+ readonly anonymous: false;
312
+ readonly type: "event";
313
+ }, {
314
+ readonly name: "PricePerShareSnapShotAdded";
315
+ readonly inputs: readonly [{
316
+ readonly name: "vaultToken";
317
+ readonly type: "address";
318
+ readonly indexed: true;
319
+ }, {
320
+ readonly name: "totalSupply";
321
+ readonly type: "uint256";
322
+ readonly indexed: false;
323
+ }, {
324
+ readonly name: "pricePerShare";
325
+ readonly type: "uint256";
326
+ readonly indexed: false;
327
+ }, {
328
+ readonly name: "lastAveragePricePerShare";
329
+ readonly type: "uint256";
330
+ readonly indexed: false;
331
+ }];
332
+ readonly anonymous: false;
333
+ readonly type: "event";
242
334
  }, {
243
335
  readonly stateMutability: "view";
244
336
  readonly type: "function";
@@ -280,6 +372,9 @@ export declare const abi: readonly [{
280
372
  }, {
281
373
  readonly name: "billing";
282
374
  readonly type: "address";
375
+ }, {
376
+ readonly name: "vaultRegistry";
377
+ readonly type: "address";
283
378
  }];
284
379
  }];
285
380
  }, {
@@ -384,49 +479,134 @@ export declare const abi: readonly [{
384
479
  }, {
385
480
  readonly stateMutability: "view";
386
481
  readonly type: "function";
387
- readonly name: "isPaused";
388
- readonly inputs: readonly [];
482
+ readonly name: "getWeightedPricePerShare";
483
+ readonly inputs: readonly [{
484
+ readonly name: "_vaultToken";
485
+ readonly type: "address";
486
+ }];
389
487
  readonly outputs: readonly [{
390
488
  readonly name: "";
391
- readonly type: "bool";
489
+ readonly type: "uint256";
392
490
  }];
393
491
  }, {
394
492
  readonly stateMutability: "view";
395
493
  readonly type: "function";
396
- readonly name: "assetOpportunities";
494
+ readonly name: "getLatestSnapshot";
397
495
  readonly inputs: readonly [{
398
- readonly name: "arg0";
496
+ readonly name: "_vaultToken";
399
497
  readonly type: "address";
400
498
  }, {
401
- readonly name: "arg1";
499
+ readonly name: "_pricePerShare";
402
500
  readonly type: "uint256";
403
501
  }];
404
502
  readonly outputs: readonly [{
405
503
  readonly name: "";
504
+ readonly type: "tuple";
505
+ readonly components: readonly [{
506
+ readonly name: "totalSupply";
507
+ readonly type: "uint256";
508
+ }, {
509
+ readonly name: "pricePerShare";
510
+ readonly type: "uint256";
511
+ }, {
512
+ readonly name: "lastUpdate";
513
+ readonly type: "uint256";
514
+ }];
515
+ }];
516
+ }, {
517
+ readonly stateMutability: "nonpayable";
518
+ readonly type: "function";
519
+ readonly name: "setSnapShotPriceConfig";
520
+ readonly inputs: readonly [{
521
+ readonly name: "_config";
522
+ readonly type: "tuple";
523
+ readonly components: readonly [{
524
+ readonly name: "minSnapshotDelay";
525
+ readonly type: "uint256";
526
+ }, {
527
+ readonly name: "maxNumSnapshots";
528
+ readonly type: "uint256";
529
+ }, {
530
+ readonly name: "maxUpsideDeviation";
531
+ readonly type: "uint256";
532
+ }, {
533
+ readonly name: "staleTime";
534
+ readonly type: "uint256";
535
+ }];
536
+ }];
537
+ readonly outputs: readonly [];
538
+ }, {
539
+ readonly stateMutability: "view";
540
+ readonly type: "function";
541
+ readonly name: "isValidPriceConfig";
542
+ readonly inputs: readonly [{
543
+ readonly name: "_config";
544
+ readonly type: "tuple";
545
+ readonly components: readonly [{
546
+ readonly name: "minSnapshotDelay";
547
+ readonly type: "uint256";
548
+ }, {
549
+ readonly name: "maxNumSnapshots";
550
+ readonly type: "uint256";
551
+ }, {
552
+ readonly name: "maxUpsideDeviation";
553
+ readonly type: "uint256";
554
+ }, {
555
+ readonly name: "staleTime";
556
+ readonly type: "uint256";
557
+ }];
558
+ }];
559
+ readonly outputs: readonly [{
560
+ readonly name: "";
561
+ readonly type: "bool";
562
+ }];
563
+ }, {
564
+ readonly stateMutability: "view";
565
+ readonly type: "function";
566
+ readonly name: "vaultToAsset";
567
+ readonly inputs: readonly [{
568
+ readonly name: "arg0";
406
569
  readonly type: "address";
407
570
  }];
571
+ readonly outputs: readonly [{
572
+ readonly name: "";
573
+ readonly type: "tuple";
574
+ readonly components: readonly [{
575
+ readonly name: "underlyingAsset";
576
+ readonly type: "address";
577
+ }, {
578
+ readonly name: "decimals";
579
+ readonly type: "uint256";
580
+ }, {
581
+ readonly name: "lastAveragePricePerShare";
582
+ readonly type: "uint256";
583
+ }];
584
+ }];
408
585
  }, {
409
586
  readonly stateMutability: "view";
410
587
  readonly type: "function";
411
- readonly name: "indexOfAssetOpportunity";
588
+ readonly name: "assetOpportunities";
412
589
  readonly inputs: readonly [{
413
590
  readonly name: "arg0";
414
591
  readonly type: "address";
415
592
  }, {
416
593
  readonly name: "arg1";
417
- readonly type: "address";
594
+ readonly type: "uint256";
418
595
  }];
419
596
  readonly outputs: readonly [{
420
597
  readonly name: "";
421
- readonly type: "uint256";
598
+ readonly type: "address";
422
599
  }];
423
600
  }, {
424
601
  readonly stateMutability: "view";
425
602
  readonly type: "function";
426
- readonly name: "numAssetOpportunities";
603
+ readonly name: "indexOfAssetOpportunity";
427
604
  readonly inputs: readonly [{
428
605
  readonly name: "arg0";
429
606
  readonly type: "address";
607
+ }, {
608
+ readonly name: "arg1";
609
+ readonly type: "address";
430
610
  }];
431
611
  readonly outputs: readonly [{
432
612
  readonly name: "";
@@ -435,14 +615,14 @@ export declare const abi: readonly [{
435
615
  }, {
436
616
  readonly stateMutability: "view";
437
617
  readonly type: "function";
438
- readonly name: "vaultToAsset";
618
+ readonly name: "numAssetOpportunities";
439
619
  readonly inputs: readonly [{
440
620
  readonly name: "arg0";
441
621
  readonly type: "address";
442
622
  }];
443
623
  readonly outputs: readonly [{
444
624
  readonly name: "";
445
- readonly type: "address";
625
+ readonly type: "uint256";
446
626
  }];
447
627
  }, {
448
628
  readonly stateMutability: "view";
@@ -480,44 +660,108 @@ export declare const abi: readonly [{
480
660
  }, {
481
661
  readonly stateMutability: "view";
482
662
  readonly type: "function";
483
- readonly name: "hasCapability";
663
+ readonly name: "snapShotData";
484
664
  readonly inputs: readonly [{
485
- readonly name: "_action";
665
+ readonly name: "arg0";
666
+ readonly type: "address";
667
+ }];
668
+ readonly outputs: readonly [{
669
+ readonly name: "";
670
+ readonly type: "tuple";
671
+ readonly components: readonly [{
672
+ readonly name: "lastSnapShot";
673
+ readonly type: "tuple";
674
+ readonly components: readonly [{
675
+ readonly name: "totalSupply";
676
+ readonly type: "uint256";
677
+ }, {
678
+ readonly name: "pricePerShare";
679
+ readonly type: "uint256";
680
+ }, {
681
+ readonly name: "lastUpdate";
682
+ readonly type: "uint256";
683
+ }];
684
+ }, {
685
+ readonly name: "nextIndex";
686
+ readonly type: "uint256";
687
+ }];
688
+ }];
689
+ }, {
690
+ readonly stateMutability: "view";
691
+ readonly type: "function";
692
+ readonly name: "snapShots";
693
+ readonly inputs: readonly [{
694
+ readonly name: "arg0";
695
+ readonly type: "address";
696
+ }, {
697
+ readonly name: "arg1";
486
698
  readonly type: "uint256";
487
699
  }];
488
700
  readonly outputs: readonly [{
489
701
  readonly name: "";
490
- readonly type: "bool";
702
+ readonly type: "tuple";
703
+ readonly components: readonly [{
704
+ readonly name: "totalSupply";
705
+ readonly type: "uint256";
706
+ }, {
707
+ readonly name: "pricePerShare";
708
+ readonly type: "uint256";
709
+ }, {
710
+ readonly name: "lastUpdate";
711
+ readonly type: "uint256";
712
+ }];
491
713
  }];
492
714
  }, {
493
715
  readonly stateMutability: "view";
494
716
  readonly type: "function";
495
- readonly name: "getRegistries";
717
+ readonly name: "snapShotPriceConfig";
496
718
  readonly inputs: readonly [];
497
719
  readonly outputs: readonly [{
498
720
  readonly name: "";
499
- readonly type: "address[]";
721
+ readonly type: "tuple";
722
+ readonly components: readonly [{
723
+ readonly name: "minSnapshotDelay";
724
+ readonly type: "uint256";
725
+ }, {
726
+ readonly name: "maxNumSnapshots";
727
+ readonly type: "uint256";
728
+ }, {
729
+ readonly name: "maxUpsideDeviation";
730
+ readonly type: "uint256";
731
+ }, {
732
+ readonly name: "staleTime";
733
+ readonly type: "uint256";
734
+ }];
500
735
  }];
501
736
  }, {
502
737
  readonly stateMutability: "view";
503
738
  readonly type: "function";
504
- readonly name: "getAccessForLego";
739
+ readonly name: "isPaused";
740
+ readonly inputs: readonly [];
741
+ readonly outputs: readonly [{
742
+ readonly name: "";
743
+ readonly type: "bool";
744
+ }];
745
+ }, {
746
+ readonly stateMutability: "view";
747
+ readonly type: "function";
748
+ readonly name: "hasCapability";
505
749
  readonly inputs: readonly [{
506
- readonly name: "_user";
507
- readonly type: "address";
508
- }, {
509
750
  readonly name: "_action";
510
751
  readonly type: "uint256";
511
752
  }];
512
753
  readonly outputs: readonly [{
513
754
  readonly name: "";
514
- readonly type: "address";
515
- }, {
516
- readonly name: "";
517
- readonly type: "string";
518
- }, {
755
+ readonly type: "bool";
756
+ }];
757
+ }, {
758
+ readonly stateMutability: "view";
759
+ readonly type: "function";
760
+ readonly name: "getRegistries";
761
+ readonly inputs: readonly [];
762
+ readonly outputs: readonly [{
519
763
  readonly name: "";
520
- readonly type: "uint256";
764
+ readonly type: "address[]";
521
765
  }];
522
766
  }, {
523
767
  readonly stateMutability: "view";
@@ -538,21 +782,27 @@ export declare const abi: readonly [{
538
782
  readonly type: "bool";
539
783
  }];
540
784
  }, {
541
- readonly stateMutability: "nonpayable";
785
+ readonly stateMutability: "view";
542
786
  readonly type: "function";
543
- readonly name: "addCollateral";
787
+ readonly name: "getUnderlyingAsset";
544
788
  readonly inputs: readonly [{
545
- readonly name: "_asset";
789
+ readonly name: "_vaultToken";
790
+ readonly type: "address";
791
+ }];
792
+ readonly outputs: readonly [{
793
+ readonly name: "";
794
+ readonly type: "address";
795
+ }];
796
+ }, {
797
+ readonly stateMutability: "view";
798
+ readonly type: "function";
799
+ readonly name: "getUnderlyingBalances";
800
+ readonly inputs: readonly [{
801
+ readonly name: "_vaultToken";
546
802
  readonly type: "address";
547
803
  }, {
548
- readonly name: "_amount";
804
+ readonly name: "_vaultTokenBalance";
549
805
  readonly type: "uint256";
550
- }, {
551
- readonly name: "_extraData";
552
- readonly type: "bytes32";
553
- }, {
554
- readonly name: "_recipient";
555
- readonly type: "address";
556
806
  }];
557
807
  readonly outputs: readonly [{
558
808
  readonly name: "";
@@ -562,55 +812,319 @@ export declare const abi: readonly [{
562
812
  readonly type: "uint256";
563
813
  }];
564
814
  }, {
565
- readonly stateMutability: "nonpayable";
815
+ readonly stateMutability: "view";
566
816
  readonly type: "function";
567
- readonly name: "addCollateral";
817
+ readonly name: "getUnderlyingAmount";
568
818
  readonly inputs: readonly [{
569
- readonly name: "_asset";
819
+ readonly name: "_vaultToken";
570
820
  readonly type: "address";
571
821
  }, {
572
- readonly name: "_amount";
822
+ readonly name: "_vaultTokenAmount";
573
823
  readonly type: "uint256";
574
- }, {
575
- readonly name: "_extraData";
576
- readonly type: "bytes32";
577
- }, {
578
- readonly name: "_recipient";
579
- readonly type: "address";
580
- }, {
581
- readonly name: "_miniAddys";
824
+ }];
825
+ readonly outputs: readonly [{
826
+ readonly name: "";
827
+ readonly type: "uint256";
828
+ }];
829
+ }, {
830
+ readonly stateMutability: "view";
831
+ readonly type: "function";
832
+ readonly name: "getUnderlyingAmountSafe";
833
+ readonly inputs: readonly [{
834
+ readonly name: "_vaultToken";
835
+ readonly type: "address";
836
+ }, {
837
+ readonly name: "_vaultTokenBalance";
838
+ readonly type: "uint256";
839
+ }];
840
+ readonly outputs: readonly [{
841
+ readonly name: "";
842
+ readonly type: "uint256";
843
+ }];
844
+ }, {
845
+ readonly stateMutability: "view";
846
+ readonly type: "function";
847
+ readonly name: "getUnderlyingData";
848
+ readonly inputs: readonly [{
849
+ readonly name: "_vaultToken";
850
+ readonly type: "address";
851
+ }, {
852
+ readonly name: "_vaultTokenAmount";
853
+ readonly type: "uint256";
854
+ }];
855
+ readonly outputs: readonly [{
856
+ readonly name: "";
857
+ readonly type: "address";
858
+ }, {
859
+ readonly name: "";
860
+ readonly type: "uint256";
861
+ }, {
862
+ readonly name: "";
863
+ readonly type: "uint256";
864
+ }];
865
+ }, {
866
+ readonly stateMutability: "view";
867
+ readonly type: "function";
868
+ readonly name: "getUnderlyingData";
869
+ readonly inputs: readonly [{
870
+ readonly name: "_vaultToken";
871
+ readonly type: "address";
872
+ }, {
873
+ readonly name: "_vaultTokenAmount";
874
+ readonly type: "uint256";
875
+ }, {
876
+ readonly name: "_appraiser";
877
+ readonly type: "address";
878
+ }];
879
+ readonly outputs: readonly [{
880
+ readonly name: "";
881
+ readonly type: "address";
882
+ }, {
883
+ readonly name: "";
884
+ readonly type: "uint256";
885
+ }, {
886
+ readonly name: "";
887
+ readonly type: "uint256";
888
+ }];
889
+ }, {
890
+ readonly stateMutability: "view";
891
+ readonly type: "function";
892
+ readonly name: "getUsdValueOfVaultToken";
893
+ readonly inputs: readonly [{
894
+ readonly name: "_vaultToken";
895
+ readonly type: "address";
896
+ }, {
897
+ readonly name: "_vaultTokenAmount";
898
+ readonly type: "uint256";
899
+ }];
900
+ readonly outputs: readonly [{
901
+ readonly name: "";
902
+ readonly type: "uint256";
903
+ }];
904
+ }, {
905
+ readonly stateMutability: "view";
906
+ readonly type: "function";
907
+ readonly name: "getUsdValueOfVaultToken";
908
+ readonly inputs: readonly [{
909
+ readonly name: "_vaultToken";
910
+ readonly type: "address";
911
+ }, {
912
+ readonly name: "_vaultTokenAmount";
913
+ readonly type: "uint256";
914
+ }, {
915
+ readonly name: "_appraiser";
916
+ readonly type: "address";
917
+ }];
918
+ readonly outputs: readonly [{
919
+ readonly name: "";
920
+ readonly type: "uint256";
921
+ }];
922
+ }, {
923
+ readonly stateMutability: "view";
924
+ readonly type: "function";
925
+ readonly name: "isRebasing";
926
+ readonly inputs: readonly [];
927
+ readonly outputs: readonly [{
928
+ readonly name: "";
929
+ readonly type: "bool";
930
+ }];
931
+ }, {
932
+ readonly stateMutability: "view";
933
+ readonly type: "function";
934
+ readonly name: "getPricePerShare";
935
+ readonly inputs: readonly [{
936
+ readonly name: "_vaultToken";
937
+ readonly type: "address";
938
+ }];
939
+ readonly outputs: readonly [{
940
+ readonly name: "";
941
+ readonly type: "uint256";
942
+ }];
943
+ }, {
944
+ readonly stateMutability: "view";
945
+ readonly type: "function";
946
+ readonly name: "getPricePerShare";
947
+ readonly inputs: readonly [{
948
+ readonly name: "_vaultToken";
949
+ readonly type: "address";
950
+ }, {
951
+ readonly name: "_decimals";
952
+ readonly type: "uint256";
953
+ }];
954
+ readonly outputs: readonly [{
955
+ readonly name: "";
956
+ readonly type: "uint256";
957
+ }];
958
+ }, {
959
+ readonly stateMutability: "view";
960
+ readonly type: "function";
961
+ readonly name: "getVaultTokenAmount";
962
+ readonly inputs: readonly [{
963
+ readonly name: "_asset";
964
+ readonly type: "address";
965
+ }, {
966
+ readonly name: "_assetAmount";
967
+ readonly type: "uint256";
968
+ }, {
969
+ readonly name: "_vaultToken";
970
+ readonly type: "address";
971
+ }];
972
+ readonly outputs: readonly [{
973
+ readonly name: "";
974
+ readonly type: "uint256";
975
+ }];
976
+ }, {
977
+ readonly stateMutability: "view";
978
+ readonly type: "function";
979
+ readonly name: "totalAssets";
980
+ readonly inputs: readonly [{
981
+ readonly name: "_vaultToken";
982
+ readonly type: "address";
983
+ }];
984
+ readonly outputs: readonly [{
985
+ readonly name: "";
986
+ readonly type: "uint256";
987
+ }];
988
+ }, {
989
+ readonly stateMutability: "view";
990
+ readonly type: "function";
991
+ readonly name: "totalBorrows";
992
+ readonly inputs: readonly [{
993
+ readonly name: "_vaultToken";
994
+ readonly type: "address";
995
+ }];
996
+ readonly outputs: readonly [{
997
+ readonly name: "";
998
+ readonly type: "uint256";
999
+ }];
1000
+ }, {
1001
+ readonly stateMutability: "view";
1002
+ readonly type: "function";
1003
+ readonly name: "getAvailLiquidity";
1004
+ readonly inputs: readonly [{
1005
+ readonly name: "_vaultToken";
1006
+ readonly type: "address";
1007
+ }];
1008
+ readonly outputs: readonly [{
1009
+ readonly name: "";
1010
+ readonly type: "uint256";
1011
+ }];
1012
+ }, {
1013
+ readonly stateMutability: "view";
1014
+ readonly type: "function";
1015
+ readonly name: "getUtilizationRatio";
1016
+ readonly inputs: readonly [{
1017
+ readonly name: "_vaultToken";
1018
+ readonly type: "address";
1019
+ }];
1020
+ readonly outputs: readonly [{
1021
+ readonly name: "";
1022
+ readonly type: "uint256";
1023
+ }];
1024
+ }, {
1025
+ readonly stateMutability: "view";
1026
+ readonly type: "function";
1027
+ readonly name: "isEligibleForYieldBonus";
1028
+ readonly inputs: readonly [{
1029
+ readonly name: "_asset";
1030
+ readonly type: "address";
1031
+ }];
1032
+ readonly outputs: readonly [{
1033
+ readonly name: "";
1034
+ readonly type: "bool";
1035
+ }];
1036
+ }, {
1037
+ readonly stateMutability: "view";
1038
+ readonly type: "function";
1039
+ readonly name: "getWithdrawalFees";
1040
+ readonly inputs: readonly [{
1041
+ readonly name: "_vaultToken";
1042
+ readonly type: "address";
1043
+ }, {
1044
+ readonly name: "_vaultTokenAmount";
1045
+ readonly type: "uint256";
1046
+ }];
1047
+ readonly outputs: readonly [{
1048
+ readonly name: "";
1049
+ readonly type: "uint256";
1050
+ }];
1051
+ }, {
1052
+ readonly stateMutability: "view";
1053
+ readonly type: "function";
1054
+ readonly name: "canRegisterVaultToken";
1055
+ readonly inputs: readonly [{
1056
+ readonly name: "_asset";
1057
+ readonly type: "address";
1058
+ }, {
1059
+ readonly name: "_vaultToken";
1060
+ readonly type: "address";
1061
+ }];
1062
+ readonly outputs: readonly [{
1063
+ readonly name: "";
1064
+ readonly type: "bool";
1065
+ }];
1066
+ }, {
1067
+ readonly stateMutability: "nonpayable";
1068
+ readonly type: "function";
1069
+ readonly name: "registerVaultTokenLocally";
1070
+ readonly inputs: readonly [{
1071
+ readonly name: "_asset";
1072
+ readonly type: "address";
1073
+ }, {
1074
+ readonly name: "_vaultAddr";
1075
+ readonly type: "address";
1076
+ }];
1077
+ readonly outputs: readonly [{
1078
+ readonly name: "";
582
1079
  readonly type: "tuple";
583
1080
  readonly components: readonly [{
584
- readonly name: "ledger";
1081
+ readonly name: "underlyingAsset";
585
1082
  readonly type: "address";
586
1083
  }, {
587
- readonly name: "missionControl";
588
- readonly type: "address";
1084
+ readonly name: "decimals";
1085
+ readonly type: "uint256";
589
1086
  }, {
590
- readonly name: "legoBook";
591
- readonly type: "address";
592
- }, {
593
- readonly name: "appraiser";
594
- readonly type: "address";
1087
+ readonly name: "lastAveragePricePerShare";
1088
+ readonly type: "uint256";
595
1089
  }];
596
1090
  }];
597
- readonly outputs: readonly [{
598
- readonly name: "";
599
- readonly type: "uint256";
1091
+ }, {
1092
+ readonly stateMutability: "nonpayable";
1093
+ readonly type: "function";
1094
+ readonly name: "deregisterVaultTokenLocally";
1095
+ readonly inputs: readonly [{
1096
+ readonly name: "_asset";
1097
+ readonly type: "address";
600
1098
  }, {
1099
+ readonly name: "_vaultAddr";
1100
+ readonly type: "address";
1101
+ }];
1102
+ readonly outputs: readonly [];
1103
+ }, {
1104
+ readonly stateMutability: "nonpayable";
1105
+ readonly type: "function";
1106
+ readonly name: "addPriceSnapshot";
1107
+ readonly inputs: readonly [{
1108
+ readonly name: "_vaultToken";
1109
+ readonly type: "address";
1110
+ }];
1111
+ readonly outputs: readonly [{
601
1112
  readonly name: "";
602
- readonly type: "uint256";
1113
+ readonly type: "bool";
603
1114
  }];
604
1115
  }, {
605
1116
  readonly stateMutability: "nonpayable";
606
1117
  readonly type: "function";
607
- readonly name: "removeCollateral";
1118
+ readonly name: "depositForYield";
608
1119
  readonly inputs: readonly [{
609
1120
  readonly name: "_asset";
610
1121
  readonly type: "address";
611
1122
  }, {
612
1123
  readonly name: "_amount";
613
1124
  readonly type: "uint256";
1125
+ }, {
1126
+ readonly name: "_vaultAddr";
1127
+ readonly type: "address";
614
1128
  }, {
615
1129
  readonly name: "_extraData";
616
1130
  readonly type: "bytes32";
@@ -621,6 +1135,12 @@ export declare const abi: readonly [{
621
1135
  readonly outputs: readonly [{
622
1136
  readonly name: "";
623
1137
  readonly type: "uint256";
1138
+ }, {
1139
+ readonly name: "";
1140
+ readonly type: "address";
1141
+ }, {
1142
+ readonly name: "";
1143
+ readonly type: "uint256";
624
1144
  }, {
625
1145
  readonly name: "";
626
1146
  readonly type: "uint256";
@@ -628,13 +1148,16 @@ export declare const abi: readonly [{
628
1148
  }, {
629
1149
  readonly stateMutability: "nonpayable";
630
1150
  readonly type: "function";
631
- readonly name: "removeCollateral";
1151
+ readonly name: "depositForYield";
632
1152
  readonly inputs: readonly [{
633
1153
  readonly name: "_asset";
634
1154
  readonly type: "address";
635
1155
  }, {
636
1156
  readonly name: "_amount";
637
1157
  readonly type: "uint256";
1158
+ }, {
1159
+ readonly name: "_vaultAddr";
1160
+ readonly type: "address";
638
1161
  }, {
639
1162
  readonly name: "_extraData";
640
1163
  readonly type: "bytes32";
@@ -661,6 +1184,12 @@ export declare const abi: readonly [{
661
1184
  readonly outputs: readonly [{
662
1185
  readonly name: "";
663
1186
  readonly type: "uint256";
1187
+ }, {
1188
+ readonly name: "";
1189
+ readonly type: "address";
1190
+ }, {
1191
+ readonly name: "";
1192
+ readonly type: "uint256";
664
1193
  }, {
665
1194
  readonly name: "";
666
1195
  readonly type: "uint256";
@@ -668,9 +1197,9 @@ export declare const abi: readonly [{
668
1197
  }, {
669
1198
  readonly stateMutability: "nonpayable";
670
1199
  readonly type: "function";
671
- readonly name: "borrow";
1200
+ readonly name: "withdrawFromYield";
672
1201
  readonly inputs: readonly [{
673
- readonly name: "_borrowAsset";
1202
+ readonly name: "_vaultToken";
674
1203
  readonly type: "address";
675
1204
  }, {
676
1205
  readonly name: "_amount";
@@ -685,6 +1214,12 @@ export declare const abi: readonly [{
685
1214
  readonly outputs: readonly [{
686
1215
  readonly name: "";
687
1216
  readonly type: "uint256";
1217
+ }, {
1218
+ readonly name: "";
1219
+ readonly type: "address";
1220
+ }, {
1221
+ readonly name: "";
1222
+ readonly type: "uint256";
688
1223
  }, {
689
1224
  readonly name: "";
690
1225
  readonly type: "uint256";
@@ -692,9 +1227,9 @@ export declare const abi: readonly [{
692
1227
  }, {
693
1228
  readonly stateMutability: "nonpayable";
694
1229
  readonly type: "function";
695
- readonly name: "borrow";
1230
+ readonly name: "withdrawFromYield";
696
1231
  readonly inputs: readonly [{
697
- readonly name: "_borrowAsset";
1232
+ readonly name: "_vaultToken";
698
1233
  readonly type: "address";
699
1234
  }, {
700
1235
  readonly name: "_amount";
@@ -725,6 +1260,12 @@ export declare const abi: readonly [{
725
1260
  readonly outputs: readonly [{
726
1261
  readonly name: "";
727
1262
  readonly type: "uint256";
1263
+ }, {
1264
+ readonly name: "";
1265
+ readonly type: "address";
1266
+ }, {
1267
+ readonly name: "";
1268
+ readonly type: "uint256";
728
1269
  }, {
729
1270
  readonly name: "";
730
1271
  readonly type: "uint256";
@@ -732,16 +1273,19 @@ export declare const abi: readonly [{
732
1273
  }, {
733
1274
  readonly stateMutability: "nonpayable";
734
1275
  readonly type: "function";
735
- readonly name: "repayDebt";
1276
+ readonly name: "swapTokens";
736
1277
  readonly inputs: readonly [{
737
- readonly name: "_paymentAsset";
738
- readonly type: "address";
1278
+ readonly name: "_amountIn";
1279
+ readonly type: "uint256";
739
1280
  }, {
740
- readonly name: "_paymentAmount";
1281
+ readonly name: "_minAmountOut";
741
1282
  readonly type: "uint256";
742
1283
  }, {
743
- readonly name: "_extraData";
744
- readonly type: "bytes32";
1284
+ readonly name: "_tokenPath";
1285
+ readonly type: "address[]";
1286
+ }, {
1287
+ readonly name: "_poolPath";
1288
+ readonly type: "address[]";
745
1289
  }, {
746
1290
  readonly name: "_recipient";
747
1291
  readonly type: "address";
@@ -752,20 +1296,26 @@ export declare const abi: readonly [{
752
1296
  }, {
753
1297
  readonly name: "";
754
1298
  readonly type: "uint256";
1299
+ }, {
1300
+ readonly name: "";
1301
+ readonly type: "uint256";
755
1302
  }];
756
1303
  }, {
757
1304
  readonly stateMutability: "nonpayable";
758
1305
  readonly type: "function";
759
- readonly name: "repayDebt";
1306
+ readonly name: "swapTokens";
760
1307
  readonly inputs: readonly [{
761
- readonly name: "_paymentAsset";
762
- readonly type: "address";
1308
+ readonly name: "_amountIn";
1309
+ readonly type: "uint256";
763
1310
  }, {
764
- readonly name: "_paymentAmount";
1311
+ readonly name: "_minAmountOut";
765
1312
  readonly type: "uint256";
766
1313
  }, {
767
- readonly name: "_extraData";
768
- readonly type: "bytes32";
1314
+ readonly name: "_tokenPath";
1315
+ readonly type: "address[]";
1316
+ }, {
1317
+ readonly name: "_poolPath";
1318
+ readonly type: "address[]";
769
1319
  }, {
770
1320
  readonly name: "_recipient";
771
1321
  readonly type: "address";
@@ -792,23 +1342,26 @@ export declare const abi: readonly [{
792
1342
  }, {
793
1343
  readonly name: "";
794
1344
  readonly type: "uint256";
1345
+ }, {
1346
+ readonly name: "";
1347
+ readonly type: "uint256";
795
1348
  }];
796
1349
  }, {
797
1350
  readonly stateMutability: "nonpayable";
798
1351
  readonly type: "function";
799
- readonly name: "claimRewards";
1352
+ readonly name: "addCollateral";
800
1353
  readonly inputs: readonly [{
801
- readonly name: "_user";
802
- readonly type: "address";
803
- }, {
804
- readonly name: "_rewardToken";
1354
+ readonly name: "_asset";
805
1355
  readonly type: "address";
806
1356
  }, {
807
- readonly name: "_rewardAmount";
1357
+ readonly name: "_amount";
808
1358
  readonly type: "uint256";
809
1359
  }, {
810
1360
  readonly name: "_extraData";
811
1361
  readonly type: "bytes32";
1362
+ }, {
1363
+ readonly name: "_recipient";
1364
+ readonly type: "address";
812
1365
  }];
813
1366
  readonly outputs: readonly [{
814
1367
  readonly name: "";
@@ -820,19 +1373,19 @@ export declare const abi: readonly [{
820
1373
  }, {
821
1374
  readonly stateMutability: "nonpayable";
822
1375
  readonly type: "function";
823
- readonly name: "claimRewards";
1376
+ readonly name: "addCollateral";
824
1377
  readonly inputs: readonly [{
825
- readonly name: "_user";
826
- readonly type: "address";
827
- }, {
828
- readonly name: "_rewardToken";
1378
+ readonly name: "_asset";
829
1379
  readonly type: "address";
830
1380
  }, {
831
- readonly name: "_rewardAmount";
1381
+ readonly name: "_amount";
832
1382
  readonly type: "uint256";
833
1383
  }, {
834
1384
  readonly name: "_extraData";
835
1385
  readonly type: "bytes32";
1386
+ }, {
1387
+ readonly name: "_recipient";
1388
+ readonly type: "address";
836
1389
  }, {
837
1390
  readonly name: "_miniAddys";
838
1391
  readonly type: "tuple";
@@ -860,16 +1413,13 @@ export declare const abi: readonly [{
860
1413
  }, {
861
1414
  readonly stateMutability: "nonpayable";
862
1415
  readonly type: "function";
863
- readonly name: "depositForYield";
1416
+ readonly name: "removeCollateral";
864
1417
  readonly inputs: readonly [{
865
1418
  readonly name: "_asset";
866
1419
  readonly type: "address";
867
1420
  }, {
868
1421
  readonly name: "_amount";
869
1422
  readonly type: "uint256";
870
- }, {
871
- readonly name: "_vaultAddr";
872
- readonly type: "address";
873
1423
  }, {
874
1424
  readonly name: "_extraData";
875
1425
  readonly type: "bytes32";
@@ -880,12 +1430,6 @@ export declare const abi: readonly [{
880
1430
  readonly outputs: readonly [{
881
1431
  readonly name: "";
882
1432
  readonly type: "uint256";
883
- }, {
884
- readonly name: "";
885
- readonly type: "address";
886
- }, {
887
- readonly name: "";
888
- readonly type: "uint256";
889
1433
  }, {
890
1434
  readonly name: "";
891
1435
  readonly type: "uint256";
@@ -893,16 +1437,13 @@ export declare const abi: readonly [{
893
1437
  }, {
894
1438
  readonly stateMutability: "nonpayable";
895
1439
  readonly type: "function";
896
- readonly name: "depositForYield";
1440
+ readonly name: "removeCollateral";
897
1441
  readonly inputs: readonly [{
898
1442
  readonly name: "_asset";
899
1443
  readonly type: "address";
900
1444
  }, {
901
1445
  readonly name: "_amount";
902
1446
  readonly type: "uint256";
903
- }, {
904
- readonly name: "_vaultAddr";
905
- readonly type: "address";
906
1447
  }, {
907
1448
  readonly name: "_extraData";
908
1449
  readonly type: "bytes32";
@@ -929,12 +1470,6 @@ export declare const abi: readonly [{
929
1470
  readonly outputs: readonly [{
930
1471
  readonly name: "";
931
1472
  readonly type: "uint256";
932
- }, {
933
- readonly name: "";
934
- readonly type: "address";
935
- }, {
936
- readonly name: "";
937
- readonly type: "uint256";
938
1473
  }, {
939
1474
  readonly name: "";
940
1475
  readonly type: "uint256";
@@ -942,9 +1477,9 @@ export declare const abi: readonly [{
942
1477
  }, {
943
1478
  readonly stateMutability: "nonpayable";
944
1479
  readonly type: "function";
945
- readonly name: "withdrawFromYield";
1480
+ readonly name: "borrow";
946
1481
  readonly inputs: readonly [{
947
- readonly name: "_vaultToken";
1482
+ readonly name: "_borrowAsset";
948
1483
  readonly type: "address";
949
1484
  }, {
950
1485
  readonly name: "_amount";
@@ -959,12 +1494,6 @@ export declare const abi: readonly [{
959
1494
  readonly outputs: readonly [{
960
1495
  readonly name: "";
961
1496
  readonly type: "uint256";
962
- }, {
963
- readonly name: "";
964
- readonly type: "address";
965
- }, {
966
- readonly name: "";
967
- readonly type: "uint256";
968
1497
  }, {
969
1498
  readonly name: "";
970
1499
  readonly type: "uint256";
@@ -972,9 +1501,9 @@ export declare const abi: readonly [{
972
1501
  }, {
973
1502
  readonly stateMutability: "nonpayable";
974
1503
  readonly type: "function";
975
- readonly name: "withdrawFromYield";
1504
+ readonly name: "borrow";
976
1505
  readonly inputs: readonly [{
977
- readonly name: "_vaultToken";
1506
+ readonly name: "_borrowAsset";
978
1507
  readonly type: "address";
979
1508
  }, {
980
1509
  readonly name: "_amount";
@@ -1005,181 +1534,68 @@ export declare const abi: readonly [{
1005
1534
  readonly outputs: readonly [{
1006
1535
  readonly name: "";
1007
1536
  readonly type: "uint256";
1008
- }, {
1009
- readonly name: "";
1010
- readonly type: "address";
1011
- }, {
1012
- readonly name: "";
1013
- readonly type: "uint256";
1014
1537
  }, {
1015
1538
  readonly name: "";
1016
1539
  readonly type: "uint256";
1017
1540
  }];
1018
1541
  }, {
1019
- readonly stateMutability: "view";
1020
- readonly type: "function";
1021
- readonly name: "isRebasing";
1022
- readonly inputs: readonly [];
1023
- readonly outputs: readonly [{
1024
- readonly name: "";
1025
- readonly type: "bool";
1026
- }];
1027
- }, {
1028
- readonly stateMutability: "view";
1029
- readonly type: "function";
1030
- readonly name: "isEligibleVaultForTrialFunds";
1031
- readonly inputs: readonly [{
1032
- readonly name: "_vaultToken";
1033
- readonly type: "address";
1034
- }, {
1035
- readonly name: "_underlyingAsset";
1036
- readonly type: "address";
1037
- }];
1038
- readonly outputs: readonly [{
1039
- readonly name: "";
1040
- readonly type: "bool";
1041
- }];
1042
- }, {
1043
- readonly stateMutability: "view";
1044
- readonly type: "function";
1045
- readonly name: "isEligibleForYieldBonus";
1046
- readonly inputs: readonly [{
1047
- readonly name: "_asset";
1048
- readonly type: "address";
1049
- }];
1050
- readonly outputs: readonly [{
1051
- readonly name: "";
1052
- readonly type: "bool";
1053
- }];
1054
- }, {
1055
- readonly stateMutability: "view";
1056
- readonly type: "function";
1057
- readonly name: "isVaultToken";
1058
- readonly inputs: readonly [{
1059
- readonly name: "_vaultToken";
1060
- readonly type: "address";
1061
- }];
1062
- readonly outputs: readonly [{
1063
- readonly name: "";
1064
- readonly type: "bool";
1065
- }];
1066
- }, {
1067
- readonly stateMutability: "view";
1068
- readonly type: "function";
1069
- readonly name: "getUnderlyingAsset";
1070
- readonly inputs: readonly [{
1071
- readonly name: "_vaultToken";
1072
- readonly type: "address";
1073
- }];
1074
- readonly outputs: readonly [{
1075
- readonly name: "";
1076
- readonly type: "address";
1077
- }];
1078
- }, {
1079
- readonly stateMutability: "view";
1542
+ readonly stateMutability: "nonpayable";
1080
1543
  readonly type: "function";
1081
- readonly name: "getUnderlyingAmount";
1544
+ readonly name: "repayDebt";
1082
1545
  readonly inputs: readonly [{
1083
- readonly name: "_vaultToken";
1546
+ readonly name: "_paymentAsset";
1084
1547
  readonly type: "address";
1085
1548
  }, {
1086
- readonly name: "_vaultTokenAmount";
1087
- readonly type: "uint256";
1088
- }];
1089
- readonly outputs: readonly [{
1090
- readonly name: "";
1549
+ readonly name: "_paymentAmount";
1091
1550
  readonly type: "uint256";
1092
- }];
1093
- }, {
1094
- readonly stateMutability: "view";
1095
- readonly type: "function";
1096
- readonly name: "getVaultTokenAmount";
1097
- readonly inputs: readonly [{
1098
- readonly name: "_asset";
1099
- readonly type: "address";
1100
1551
  }, {
1101
- readonly name: "_assetAmount";
1102
- readonly type: "uint256";
1552
+ readonly name: "_extraData";
1553
+ readonly type: "bytes32";
1103
1554
  }, {
1104
- readonly name: "_vaultToken";
1105
- readonly type: "address";
1106
- }];
1107
- readonly outputs: readonly [{
1108
- readonly name: "";
1109
- readonly type: "uint256";
1110
- }];
1111
- }, {
1112
- readonly stateMutability: "view";
1113
- readonly type: "function";
1114
- readonly name: "getUsdValueOfVaultToken";
1115
- readonly inputs: readonly [{
1116
- readonly name: "_vaultToken";
1555
+ readonly name: "_recipient";
1117
1556
  readonly type: "address";
1118
- }, {
1119
- readonly name: "_vaultTokenAmount";
1120
- readonly type: "uint256";
1121
1557
  }];
1122
1558
  readonly outputs: readonly [{
1123
1559
  readonly name: "";
1124
1560
  readonly type: "uint256";
1125
- }];
1126
- }, {
1127
- readonly stateMutability: "view";
1128
- readonly type: "function";
1129
- readonly name: "getUsdValueOfVaultToken";
1130
- readonly inputs: readonly [{
1131
- readonly name: "_vaultToken";
1132
- readonly type: "address";
1133
- }, {
1134
- readonly name: "_vaultTokenAmount";
1135
- readonly type: "uint256";
1136
1561
  }, {
1137
- readonly name: "_appraiser";
1138
- readonly type: "address";
1139
- }];
1140
- readonly outputs: readonly [{
1141
1562
  readonly name: "";
1142
1563
  readonly type: "uint256";
1143
1564
  }];
1144
1565
  }, {
1145
- readonly stateMutability: "view";
1566
+ readonly stateMutability: "nonpayable";
1146
1567
  readonly type: "function";
1147
- readonly name: "getUnderlyingData";
1568
+ readonly name: "repayDebt";
1148
1569
  readonly inputs: readonly [{
1149
- readonly name: "_vaultToken";
1150
- readonly type: "address";
1151
- }, {
1152
- readonly name: "_vaultTokenAmount";
1153
- readonly type: "uint256";
1154
- }];
1155
- readonly outputs: readonly [{
1156
- readonly name: "";
1570
+ readonly name: "_paymentAsset";
1157
1571
  readonly type: "address";
1158
1572
  }, {
1159
- readonly name: "";
1160
- readonly type: "uint256";
1161
- }, {
1162
- readonly name: "";
1573
+ readonly name: "_paymentAmount";
1163
1574
  readonly type: "uint256";
1164
- }];
1165
- }, {
1166
- readonly stateMutability: "view";
1167
- readonly type: "function";
1168
- readonly name: "getUnderlyingData";
1169
- readonly inputs: readonly [{
1170
- readonly name: "_vaultToken";
1171
- readonly type: "address";
1172
1575
  }, {
1173
- readonly name: "_vaultTokenAmount";
1174
- readonly type: "uint256";
1576
+ readonly name: "_extraData";
1577
+ readonly type: "bytes32";
1175
1578
  }, {
1176
- readonly name: "_appraiser";
1579
+ readonly name: "_recipient";
1177
1580
  readonly type: "address";
1581
+ }, {
1582
+ readonly name: "_miniAddys";
1583
+ readonly type: "tuple";
1584
+ readonly components: readonly [{
1585
+ readonly name: "ledger";
1586
+ readonly type: "address";
1587
+ }, {
1588
+ readonly name: "missionControl";
1589
+ readonly type: "address";
1590
+ }, {
1591
+ readonly name: "legoBook";
1592
+ readonly type: "address";
1593
+ }, {
1594
+ readonly name: "appraiser";
1595
+ readonly type: "address";
1596
+ }];
1178
1597
  }];
1179
1598
  readonly outputs: readonly [{
1180
- readonly name: "";
1181
- readonly type: "address";
1182
- }, {
1183
1599
  readonly name: "";
1184
1600
  readonly type: "uint256";
1185
1601
  }, {
@@ -1187,11 +1603,24 @@ export declare const abi: readonly [{
1187
1603
  readonly type: "uint256";
1188
1604
  }];
1189
1605
  }, {
1190
- readonly stateMutability: "view";
1606
+ readonly stateMutability: "nonpayable";
1191
1607
  readonly type: "function";
1192
- readonly name: "totalAssets";
1608
+ readonly name: "deleverageWithSpecificAssets";
1193
1609
  readonly inputs: readonly [{
1194
- readonly name: "_vaultToken";
1610
+ readonly name: "_assets";
1611
+ readonly type: "tuple[]";
1612
+ readonly components: readonly [{
1613
+ readonly name: "vaultId";
1614
+ readonly type: "uint256";
1615
+ }, {
1616
+ readonly name: "asset";
1617
+ readonly type: "address";
1618
+ }, {
1619
+ readonly name: "targetRepayAmount";
1620
+ readonly type: "uint256";
1621
+ }];
1622
+ }, {
1623
+ readonly name: "_user";
1195
1624
  readonly type: "address";
1196
1625
  }];
1197
1626
  readonly outputs: readonly [{
@@ -1199,75 +1628,85 @@ export declare const abi: readonly [{
1199
1628
  readonly type: "uint256";
1200
1629
  }];
1201
1630
  }, {
1202
- readonly stateMutability: "view";
1631
+ readonly stateMutability: "nonpayable";
1203
1632
  readonly type: "function";
1204
- readonly name: "totalBorrows";
1633
+ readonly name: "claimIncentives";
1205
1634
  readonly inputs: readonly [{
1206
- readonly name: "_vaultToken";
1635
+ readonly name: "_user";
1636
+ readonly type: "address";
1637
+ }, {
1638
+ readonly name: "_rewardToken";
1207
1639
  readonly type: "address";
1640
+ }, {
1641
+ readonly name: "_rewardAmount";
1642
+ readonly type: "uint256";
1643
+ }, {
1644
+ readonly name: "_proofs";
1645
+ readonly type: "bytes32[]";
1208
1646
  }];
1209
1647
  readonly outputs: readonly [{
1210
1648
  readonly name: "";
1211
1649
  readonly type: "uint256";
1650
+ }, {
1651
+ readonly name: "";
1652
+ readonly type: "uint256";
1212
1653
  }];
1213
1654
  }, {
1214
- readonly stateMutability: "view";
1655
+ readonly stateMutability: "nonpayable";
1215
1656
  readonly type: "function";
1216
- readonly name: "getPricePerShare";
1657
+ readonly name: "claimIncentives";
1217
1658
  readonly inputs: readonly [{
1218
- readonly name: "_asset";
1659
+ readonly name: "_user";
1219
1660
  readonly type: "address";
1220
1661
  }, {
1221
- readonly name: "_decimals";
1662
+ readonly name: "_rewardToken";
1663
+ readonly type: "address";
1664
+ }, {
1665
+ readonly name: "_rewardAmount";
1222
1666
  readonly type: "uint256";
1667
+ }, {
1668
+ readonly name: "_proofs";
1669
+ readonly type: "bytes32[]";
1670
+ }, {
1671
+ readonly name: "_miniAddys";
1672
+ readonly type: "tuple";
1673
+ readonly components: readonly [{
1674
+ readonly name: "ledger";
1675
+ readonly type: "address";
1676
+ }, {
1677
+ readonly name: "missionControl";
1678
+ readonly type: "address";
1679
+ }, {
1680
+ readonly name: "legoBook";
1681
+ readonly type: "address";
1682
+ }, {
1683
+ readonly name: "appraiser";
1684
+ readonly type: "address";
1685
+ }];
1223
1686
  }];
1224
1687
  readonly outputs: readonly [{
1225
1688
  readonly name: "";
1226
1689
  readonly type: "uint256";
1227
- }];
1228
- }, {
1229
- readonly stateMutability: "nonpayable";
1230
- readonly type: "function";
1231
- readonly name: "addAssetOpportunity";
1232
- readonly inputs: readonly [{
1233
- readonly name: "_asset";
1234
- readonly type: "address";
1235
1690
  }, {
1236
- readonly name: "_vaultAddr";
1237
- readonly type: "address";
1691
+ readonly name: "";
1692
+ readonly type: "uint256";
1238
1693
  }];
1239
- readonly outputs: readonly [];
1240
1694
  }, {
1241
1695
  readonly stateMutability: "nonpayable";
1242
1696
  readonly type: "function";
1243
- readonly name: "removeAssetOpportunity";
1697
+ readonly name: "claimRewards";
1244
1698
  readonly inputs: readonly [{
1245
- readonly name: "_asset";
1699
+ readonly name: "_user";
1246
1700
  readonly type: "address";
1247
1701
  }, {
1248
- readonly name: "_vaultAddr";
1702
+ readonly name: "_rewardToken";
1249
1703
  readonly type: "address";
1250
- }];
1251
- readonly outputs: readonly [];
1252
- }, {
1253
- readonly stateMutability: "nonpayable";
1254
- readonly type: "function";
1255
- readonly name: "swapTokens";
1256
- readonly inputs: readonly [{
1257
- readonly name: "_amountIn";
1258
- readonly type: "uint256";
1259
1704
  }, {
1260
- readonly name: "_minAmountOut";
1705
+ readonly name: "_rewardAmount";
1261
1706
  readonly type: "uint256";
1262
1707
  }, {
1263
- readonly name: "_tokenPath";
1264
- readonly type: "address[]";
1265
- }, {
1266
- readonly name: "_poolPath";
1267
- readonly type: "address[]";
1268
- }, {
1269
- readonly name: "_recipient";
1270
- readonly type: "address";
1708
+ readonly name: "_extraData";
1709
+ readonly type: "bytes32";
1271
1710
  }];
1272
1711
  readonly outputs: readonly [{
1273
1712
  readonly name: "";
@@ -1275,29 +1714,23 @@ export declare const abi: readonly [{
1275
1714
  }, {
1276
1715
  readonly name: "";
1277
1716
  readonly type: "uint256";
1278
- }, {
1279
- readonly name: "";
1280
- readonly type: "uint256";
1281
1717
  }];
1282
1718
  }, {
1283
1719
  readonly stateMutability: "nonpayable";
1284
1720
  readonly type: "function";
1285
- readonly name: "swapTokens";
1721
+ readonly name: "claimRewards";
1286
1722
  readonly inputs: readonly [{
1287
- readonly name: "_amountIn";
1288
- readonly type: "uint256";
1289
- }, {
1290
- readonly name: "_minAmountOut";
1291
- readonly type: "uint256";
1723
+ readonly name: "_user";
1724
+ readonly type: "address";
1292
1725
  }, {
1293
- readonly name: "_tokenPath";
1294
- readonly type: "address[]";
1726
+ readonly name: "_rewardToken";
1727
+ readonly type: "address";
1295
1728
  }, {
1296
- readonly name: "_poolPath";
1297
- readonly type: "address[]";
1729
+ readonly name: "_rewardAmount";
1730
+ readonly type: "uint256";
1298
1731
  }, {
1299
- readonly name: "_recipient";
1300
- readonly type: "address";
1732
+ readonly name: "_extraData";
1733
+ readonly type: "bytes32";
1301
1734
  }, {
1302
1735
  readonly name: "_miniAddys";
1303
1736
  readonly type: "tuple";
@@ -1321,6 +1754,36 @@ export declare const abi: readonly [{
1321
1754
  }, {
1322
1755
  readonly name: "";
1323
1756
  readonly type: "uint256";
1757
+ }];
1758
+ }, {
1759
+ readonly stateMutability: "view";
1760
+ readonly type: "function";
1761
+ readonly name: "hasClaimableRewards";
1762
+ readonly inputs: readonly [{
1763
+ readonly name: "_user";
1764
+ readonly type: "address";
1765
+ }];
1766
+ readonly outputs: readonly [{
1767
+ readonly name: "";
1768
+ readonly type: "bool";
1769
+ }];
1770
+ }, {
1771
+ readonly stateMutability: "view";
1772
+ readonly type: "function";
1773
+ readonly name: "getAccessForLego";
1774
+ readonly inputs: readonly [{
1775
+ readonly name: "_user";
1776
+ readonly type: "address";
1777
+ }, {
1778
+ readonly name: "_action";
1779
+ readonly type: "uint256";
1780
+ }];
1781
+ readonly outputs: readonly [{
1782
+ readonly name: "";
1783
+ readonly type: "address";
1784
+ }, {
1785
+ readonly name: "";
1786
+ readonly type: "string";
1324
1787
  }, {
1325
1788
  readonly name: "";
1326
1789
  readonly type: "uint256";
@@ -1946,22 +2409,16 @@ export declare const abi: readonly [{
1946
2409
  }, {
1947
2410
  readonly stateMutability: "view";
1948
2411
  readonly type: "function";
1949
- readonly name: "getPrice";
1950
- readonly inputs: readonly [{
1951
- readonly name: "_asset";
1952
- readonly type: "address";
1953
- }, {
1954
- readonly name: "_decimals";
1955
- readonly type: "uint256";
1956
- }];
2412
+ readonly name: "RIPE_REGISTRY";
2413
+ readonly inputs: readonly [];
1957
2414
  readonly outputs: readonly [{
1958
2415
  readonly name: "";
1959
- readonly type: "uint256";
2416
+ readonly type: "address";
1960
2417
  }];
1961
2418
  }, {
1962
2419
  readonly stateMutability: "view";
1963
2420
  readonly type: "function";
1964
- readonly name: "RIPE_REGISTRY";
2421
+ readonly name: "RIPE_GREEN_TOKEN";
1965
2422
  readonly inputs: readonly [];
1966
2423
  readonly outputs: readonly [{
1967
2424
  readonly name: "";
@@ -1970,7 +2427,7 @@ export declare const abi: readonly [{
1970
2427
  }, {
1971
2428
  readonly stateMutability: "view";
1972
2429
  readonly type: "function";
1973
- readonly name: "RIPE_GREEN_TOKEN";
2430
+ readonly name: "RIPE_SAVINGS_GREEN";
1974
2431
  readonly inputs: readonly [];
1975
2432
  readonly outputs: readonly [{
1976
2433
  readonly name: "";
@@ -1979,7 +2436,7 @@ export declare const abi: readonly [{
1979
2436
  }, {
1980
2437
  readonly stateMutability: "view";
1981
2438
  readonly type: "function";
1982
- readonly name: "RIPE_SAVINGS_GREEN";
2439
+ readonly name: "RIPE_TOKEN";
1983
2440
  readonly inputs: readonly [];
1984
2441
  readonly outputs: readonly [{
1985
2442
  readonly name: "";
@@ -1988,7 +2445,7 @@ export declare const abi: readonly [{
1988
2445
  }, {
1989
2446
  readonly stateMutability: "view";
1990
2447
  readonly type: "function";
1991
- readonly name: "RIPE_TOKEN";
2448
+ readonly name: "USDC";
1992
2449
  readonly inputs: readonly [];
1993
2450
  readonly outputs: readonly [{
1994
2451
  readonly name: "";
@@ -2003,6 +2460,9 @@ export declare const abi: readonly [{
2003
2460
  }, {
2004
2461
  readonly name: "_ripeRegistry";
2005
2462
  readonly type: "address";
2463
+ }, {
2464
+ readonly name: "_usdc";
2465
+ readonly type: "address";
2006
2466
  }];
2007
2467
  readonly outputs: readonly [];
2008
2468
  }];
@@ -2021,6 +2481,7 @@ export type Contract = {
2021
2481
  appraiser: `0x${string}`;
2022
2482
  walletBackpack: `0x${string}`;
2023
2483
  billing: `0x${string}`;
2484
+ vaultRegistry: `0x${string}`;
2024
2485
  }>;
2025
2486
  getUndyHq: () => Promise<`0x${string}`>;
2026
2487
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -2028,91 +2489,153 @@ export type Contract = {
2028
2489
  getAssets: () => Promise<`0x${string}`[]>;
2029
2490
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
2030
2491
  getNumLegoAssets: () => Promise<bigint>;
2031
- isPaused: () => Promise<boolean>;
2492
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2493
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2494
+ totalSupply: bigint;
2495
+ pricePerShare: bigint;
2496
+ lastUpdate: bigint;
2497
+ }>;
2498
+ isValidPriceConfig: (config: {
2499
+ minSnapshotDelay: bigint;
2500
+ maxNumSnapshots: bigint;
2501
+ maxUpsideDeviation: bigint;
2502
+ staleTime: bigint;
2503
+ }) => Promise<boolean>;
2504
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2505
+ underlyingAsset: `0x${string}`;
2506
+ decimals: bigint;
2507
+ lastAveragePricePerShare: bigint;
2508
+ }>;
2032
2509
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
2033
2510
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
2034
2511
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
2035
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
2036
2512
  assets: (arg0: bigint) => Promise<`0x${string}`>;
2037
2513
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
2038
2514
  numAssets: () => Promise<bigint>;
2515
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2516
+ lastSnapShot: {
2517
+ totalSupply: bigint;
2518
+ pricePerShare: bigint;
2519
+ lastUpdate: bigint;
2520
+ };
2521
+ nextIndex: bigint;
2522
+ }>;
2523
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2524
+ totalSupply: bigint;
2525
+ pricePerShare: bigint;
2526
+ lastUpdate: bigint;
2527
+ }>;
2528
+ snapShotPriceConfig: () => Promise<{
2529
+ minSnapshotDelay: bigint;
2530
+ maxNumSnapshots: bigint;
2531
+ maxUpsideDeviation: bigint;
2532
+ staleTime: bigint;
2533
+ }>;
2534
+ isPaused: () => Promise<boolean>;
2039
2535
  hasCapability: (action: bigint) => Promise<boolean>;
2040
2536
  getRegistries: () => Promise<`0x${string}`[]>;
2041
- getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
2042
2537
  isYieldLego: () => Promise<boolean>;
2043
2538
  isDexLego: () => Promise<boolean>;
2044
- isRebasing: () => Promise<boolean>;
2045
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2046
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2047
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
2048
2539
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2540
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
2049
2541
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2050
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2051
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2542
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
2052
2543
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2544
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2545
+ isRebasing: () => Promise<boolean>;
2546
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2547
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2053
2548
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
2054
2549
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
2055
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2056
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2550
+ getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
2551
+ getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
2552
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2553
+ getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2554
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
2555
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
2556
+ getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
2057
2557
  RIPE_REGISTRY: () => Promise<`0x${string}`>;
2058
2558
  RIPE_GREEN_TOKEN: () => Promise<`0x${string}`>;
2059
2559
  RIPE_SAVINGS_GREEN: () => Promise<`0x${string}`>;
2060
2560
  RIPE_TOKEN: () => Promise<`0x${string}`>;
2561
+ USDC: () => Promise<`0x${string}`>;
2061
2562
  };
2062
2563
  mutations: {
2063
2564
  pause: (shouldPause: boolean) => Promise<void>;
2064
2565
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
2065
2566
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2066
- addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2567
+ setSnapShotPriceConfig: (config: {
2568
+ minSnapshotDelay: bigint;
2569
+ maxNumSnapshots: bigint;
2570
+ maxUpsideDeviation: bigint;
2571
+ staleTime: bigint;
2572
+ }) => Promise<void>;
2573
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2574
+ underlyingAsset: `0x${string}`;
2575
+ decimals: bigint;
2576
+ lastAveragePricePerShare: bigint;
2577
+ }>;
2578
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2579
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
2580
+ depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2067
2581
  ledger: `0x${string}`;
2068
2582
  missionControl: `0x${string}`;
2069
2583
  legoBook: `0x${string}`;
2070
2584
  appraiser: `0x${string}`;
2071
- }) => Promise<[bigint, bigint]>;
2072
- removeCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2585
+ }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2586
+ withdrawFromYield: (vaultToken: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2073
2587
  ledger: `0x${string}`;
2074
2588
  missionControl: `0x${string}`;
2075
2589
  legoBook: `0x${string}`;
2076
2590
  appraiser: `0x${string}`;
2077
- }) => Promise<[bigint, bigint]>;
2078
- borrow: (borrowAsset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2591
+ }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2592
+ swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
2593
+ ledger: `0x${string}`;
2594
+ missionControl: `0x${string}`;
2595
+ legoBook: `0x${string}`;
2596
+ appraiser: `0x${string}`;
2597
+ }) => Promise<[bigint, bigint, bigint]>;
2598
+ addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2079
2599
  ledger: `0x${string}`;
2080
2600
  missionControl: `0x${string}`;
2081
2601
  legoBook: `0x${string}`;
2082
2602
  appraiser: `0x${string}`;
2083
2603
  }) => Promise<[bigint, bigint]>;
2084
- repayDebt: (paymentAsset: `0x${string}`, paymentAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2604
+ removeCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2085
2605
  ledger: `0x${string}`;
2086
2606
  missionControl: `0x${string}`;
2087
2607
  legoBook: `0x${string}`;
2088
2608
  appraiser: `0x${string}`;
2089
2609
  }) => Promise<[bigint, bigint]>;
2090
- claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2610
+ borrow: (borrowAsset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2091
2611
  ledger: `0x${string}`;
2092
2612
  missionControl: `0x${string}`;
2093
2613
  legoBook: `0x${string}`;
2094
2614
  appraiser: `0x${string}`;
2095
2615
  }) => Promise<[bigint, bigint]>;
2096
- depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2616
+ repayDebt: (paymentAsset: `0x${string}`, paymentAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2097
2617
  ledger: `0x${string}`;
2098
2618
  missionControl: `0x${string}`;
2099
2619
  legoBook: `0x${string}`;
2100
2620
  appraiser: `0x${string}`;
2101
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2102
- withdrawFromYield: (vaultToken: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2621
+ }) => Promise<[bigint, bigint]>;
2622
+ deleverageWithSpecificAssets: (assets: {
2623
+ vaultId: bigint;
2624
+ asset: `0x${string}`;
2625
+ targetRepayAmount: bigint;
2626
+ }[], user: `0x${string}`) => Promise<bigint>;
2627
+ claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
2103
2628
  ledger: `0x${string}`;
2104
2629
  missionControl: `0x${string}`;
2105
2630
  legoBook: `0x${string}`;
2106
2631
  appraiser: `0x${string}`;
2107
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2108
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2109
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2110
- swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
2632
+ }) => Promise<[bigint, bigint]>;
2633
+ claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2111
2634
  ledger: `0x${string}`;
2112
2635
  missionControl: `0x${string}`;
2113
2636
  legoBook: `0x${string}`;
2114
2637
  appraiser: `0x${string}`;
2115
- }) => Promise<[bigint, bigint, bigint]>;
2638
+ }) => Promise<[bigint, bigint]>;
2116
2639
  mintOrRedeemAsset: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, tokenInAmount: bigint, minAmountOut: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2117
2640
  ledger: `0x${string}`;
2118
2641
  missionControl: `0x${string}`;
@@ -2151,16 +2674,20 @@ export type Contract = {
2151
2674
  }) => Promise<[bigint, bigint, bigint, boolean, bigint]>;
2152
2675
  };
2153
2676
  events: {
2154
- RipeCollateralDeposit: (sender: `0x${string}`, asset: `0x${string}`, assetAmountDeposited: bigint, vaultId: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2677
+ RipeCollateralDeposit: (sender: `0x${string}`, asset: `0x${string}`, assetAmountDeposited: bigint, vaultIdOrLock: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2155
2678
  RipeCollateralWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, assetAmountReceived: bigint, vaultId: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2156
2679
  RipeBorrow: (sender: `0x${string}`, asset: `0x${string}`, assetAmountBorrowed: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2157
2680
  RipeRepay: (sender: `0x${string}`, asset: `0x${string}`, assetAmountRepaid: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2158
2681
  RipeClaimRewards: (sender: `0x${string}`, asset: `0x${string}`, ripeClaimed: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2159
2682
  RipeSavingsGreenDeposit: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountDeposited: bigint, usdValue: bigint, vaultTokenAmountReceived: bigint, recipient: `0x${string}`) => Promise<void>;
2160
2683
  RipeSavingsGreenWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
2684
+ RipeEndaomentPsmSwap: (sender: `0x${string}`, tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn: bigint, amountOut: bigint, usdValue: bigint, numTokens: bigint, recipient: `0x${string}`) => Promise<void>;
2161
2685
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2162
2686
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2687
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2163
2688
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2689
+ AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2690
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint, lastAveragePricePerShare: bigint) => Promise<void>;
2164
2691
  };
2165
2692
  };
2166
2693
  export type Calls = keyof Contract['calls'];
@@ -2208,49 +2735,64 @@ export type SDK = {
2208
2735
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2209
2736
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2210
2737
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2211
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2738
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2739
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2740
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2741
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2212
2742
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2213
2743
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2214
2744
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2215
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2216
2745
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2217
2746
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2218
2747
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2748
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2749
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2750
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2751
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2219
2752
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2220
2753
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2221
- getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2222
2754
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2223
2755
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2224
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2225
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2226
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2227
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2228
2756
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2757
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2229
2758
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2230
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2231
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2759
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2232
2760
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2761
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2762
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2763
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2764
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2233
2765
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2234
2766
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2235
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2236
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2767
+ getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
2768
+ getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
2769
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2770
+ getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
2771
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2772
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2773
+ getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2237
2774
  RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
2238
2775
  RIPE_GREEN_TOKEN: (...args: ExtractArgs<Contract['calls']['RIPE_GREEN_TOKEN']>) => Promise<CallReturn<'RIPE_GREEN_TOKEN'>>;
2239
2776
  RIPE_SAVINGS_GREEN: (...args: ExtractArgs<Contract['calls']['RIPE_SAVINGS_GREEN']>) => Promise<CallReturn<'RIPE_SAVINGS_GREEN'>>;
2240
2777
  RIPE_TOKEN: (...args: ExtractArgs<Contract['calls']['RIPE_TOKEN']>) => Promise<CallReturn<'RIPE_TOKEN'>>;
2778
+ USDC: (...args: ExtractArgs<Contract['calls']['USDC']>) => Promise<CallReturn<'USDC'>>;
2241
2779
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2242
2780
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2243
2781
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2782
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2783
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2784
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2785
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2786
+ depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2787
+ withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2788
+ swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2244
2789
  addCollateral: (...args: ExtractArgs<Contract['mutations']['addCollateral']>) => Promise<Address>;
2245
2790
  removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
2246
2791
  borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2247
2792
  repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2793
+ deleverageWithSpecificAssets: (...args: ExtractArgs<Contract['mutations']['deleverageWithSpecificAssets']>) => Promise<Address>;
2794
+ claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
2248
2795
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2249
- depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2250
- withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2251
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2252
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2253
- swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2254
2796
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2255
2797
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
2256
2798
  addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;