@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
@@ -102,6 +102,27 @@ export declare const abi: readonly [{
102
102
  }];
103
103
  readonly anonymous: false;
104
104
  readonly type: "event";
105
+ }, {
106
+ readonly name: "SnapShotPriceConfigSet";
107
+ readonly inputs: readonly [{
108
+ readonly name: "minSnapshotDelay";
109
+ readonly type: "uint256";
110
+ readonly indexed: false;
111
+ }, {
112
+ readonly name: "maxNumSnapshots";
113
+ readonly type: "uint256";
114
+ readonly indexed: false;
115
+ }, {
116
+ readonly name: "maxUpsideDeviation";
117
+ readonly type: "uint256";
118
+ readonly indexed: false;
119
+ }, {
120
+ readonly name: "staleTime";
121
+ readonly type: "uint256";
122
+ readonly indexed: false;
123
+ }];
124
+ readonly anonymous: false;
125
+ readonly type: "event";
105
126
  }, {
106
127
  readonly name: "AssetOpportunityAdded";
107
128
  readonly inputs: readonly [{
@@ -128,6 +149,27 @@ export declare const abi: readonly [{
128
149
  }];
129
150
  readonly anonymous: false;
130
151
  readonly type: "event";
152
+ }, {
153
+ readonly name: "PricePerShareSnapShotAdded";
154
+ readonly inputs: readonly [{
155
+ readonly name: "vaultToken";
156
+ readonly type: "address";
157
+ readonly indexed: true;
158
+ }, {
159
+ readonly name: "totalSupply";
160
+ readonly type: "uint256";
161
+ readonly indexed: false;
162
+ }, {
163
+ readonly name: "pricePerShare";
164
+ readonly type: "uint256";
165
+ readonly indexed: false;
166
+ }, {
167
+ readonly name: "lastAveragePricePerShare";
168
+ readonly type: "uint256";
169
+ readonly indexed: false;
170
+ }];
171
+ readonly anonymous: false;
172
+ readonly type: "event";
131
173
  }, {
132
174
  readonly stateMutability: "view";
133
175
  readonly type: "function";
@@ -169,6 +211,9 @@ export declare const abi: readonly [{
169
211
  }, {
170
212
  readonly name: "billing";
171
213
  readonly type: "address";
214
+ }, {
215
+ readonly name: "vaultRegistry";
216
+ readonly type: "address";
172
217
  }];
173
218
  }];
174
219
  }, {
@@ -273,12 +318,109 @@ export declare const abi: readonly [{
273
318
  }, {
274
319
  readonly stateMutability: "view";
275
320
  readonly type: "function";
276
- readonly name: "isPaused";
277
- readonly inputs: readonly [];
321
+ readonly name: "getWeightedPricePerShare";
322
+ readonly inputs: readonly [{
323
+ readonly name: "_vaultToken";
324
+ readonly type: "address";
325
+ }];
326
+ readonly outputs: readonly [{
327
+ readonly name: "";
328
+ readonly type: "uint256";
329
+ }];
330
+ }, {
331
+ readonly stateMutability: "view";
332
+ readonly type: "function";
333
+ readonly name: "getLatestSnapshot";
334
+ readonly inputs: readonly [{
335
+ readonly name: "_vaultToken";
336
+ readonly type: "address";
337
+ }, {
338
+ readonly name: "_pricePerShare";
339
+ readonly type: "uint256";
340
+ }];
341
+ readonly outputs: readonly [{
342
+ readonly name: "";
343
+ readonly type: "tuple";
344
+ readonly components: readonly [{
345
+ readonly name: "totalSupply";
346
+ readonly type: "uint256";
347
+ }, {
348
+ readonly name: "pricePerShare";
349
+ readonly type: "uint256";
350
+ }, {
351
+ readonly name: "lastUpdate";
352
+ readonly type: "uint256";
353
+ }];
354
+ }];
355
+ }, {
356
+ readonly stateMutability: "nonpayable";
357
+ readonly type: "function";
358
+ readonly name: "setSnapShotPriceConfig";
359
+ readonly inputs: readonly [{
360
+ readonly name: "_config";
361
+ readonly type: "tuple";
362
+ readonly components: readonly [{
363
+ readonly name: "minSnapshotDelay";
364
+ readonly type: "uint256";
365
+ }, {
366
+ readonly name: "maxNumSnapshots";
367
+ readonly type: "uint256";
368
+ }, {
369
+ readonly name: "maxUpsideDeviation";
370
+ readonly type: "uint256";
371
+ }, {
372
+ readonly name: "staleTime";
373
+ readonly type: "uint256";
374
+ }];
375
+ }];
376
+ readonly outputs: readonly [];
377
+ }, {
378
+ readonly stateMutability: "view";
379
+ readonly type: "function";
380
+ readonly name: "isValidPriceConfig";
381
+ readonly inputs: readonly [{
382
+ readonly name: "_config";
383
+ readonly type: "tuple";
384
+ readonly components: readonly [{
385
+ readonly name: "minSnapshotDelay";
386
+ readonly type: "uint256";
387
+ }, {
388
+ readonly name: "maxNumSnapshots";
389
+ readonly type: "uint256";
390
+ }, {
391
+ readonly name: "maxUpsideDeviation";
392
+ readonly type: "uint256";
393
+ }, {
394
+ readonly name: "staleTime";
395
+ readonly type: "uint256";
396
+ }];
397
+ }];
278
398
  readonly outputs: readonly [{
279
399
  readonly name: "";
280
400
  readonly type: "bool";
281
401
  }];
402
+ }, {
403
+ readonly stateMutability: "view";
404
+ readonly type: "function";
405
+ readonly name: "vaultToAsset";
406
+ readonly inputs: readonly [{
407
+ readonly name: "arg0";
408
+ readonly type: "address";
409
+ }];
410
+ readonly outputs: readonly [{
411
+ readonly name: "";
412
+ readonly type: "tuple";
413
+ readonly components: readonly [{
414
+ readonly name: "underlyingAsset";
415
+ readonly type: "address";
416
+ }, {
417
+ readonly name: "decimals";
418
+ readonly type: "uint256";
419
+ }, {
420
+ readonly name: "lastAveragePricePerShare";
421
+ readonly type: "uint256";
422
+ }];
423
+ }];
282
424
  }, {
283
425
  readonly stateMutability: "view";
284
426
  readonly type: "function";
@@ -324,10 +466,10 @@ export declare const abi: readonly [{
324
466
  }, {
325
467
  readonly stateMutability: "view";
326
468
  readonly type: "function";
327
- readonly name: "vaultToAsset";
469
+ readonly name: "assets";
328
470
  readonly inputs: readonly [{
329
471
  readonly name: "arg0";
330
- readonly type: "address";
472
+ readonly type: "uint256";
331
473
  }];
332
474
  readonly outputs: readonly [{
333
475
  readonly name: "";
@@ -336,35 +478,108 @@ export declare const abi: readonly [{
336
478
  }, {
337
479
  readonly stateMutability: "view";
338
480
  readonly type: "function";
339
- readonly name: "assets";
481
+ readonly name: "indexOfAsset";
340
482
  readonly inputs: readonly [{
341
483
  readonly name: "arg0";
484
+ readonly type: "address";
485
+ }];
486
+ readonly outputs: readonly [{
487
+ readonly name: "";
342
488
  readonly type: "uint256";
343
489
  }];
490
+ }, {
491
+ readonly stateMutability: "view";
492
+ readonly type: "function";
493
+ readonly name: "numAssets";
494
+ readonly inputs: readonly [];
344
495
  readonly outputs: readonly [{
345
496
  readonly name: "";
346
- readonly type: "address";
497
+ readonly type: "uint256";
347
498
  }];
348
499
  }, {
349
500
  readonly stateMutability: "view";
350
501
  readonly type: "function";
351
- readonly name: "indexOfAsset";
502
+ readonly name: "snapShotData";
352
503
  readonly inputs: readonly [{
353
504
  readonly name: "arg0";
354
505
  readonly type: "address";
355
506
  }];
356
507
  readonly outputs: readonly [{
357
508
  readonly name: "";
509
+ readonly type: "tuple";
510
+ readonly components: readonly [{
511
+ readonly name: "lastSnapShot";
512
+ readonly type: "tuple";
513
+ readonly components: readonly [{
514
+ readonly name: "totalSupply";
515
+ readonly type: "uint256";
516
+ }, {
517
+ readonly name: "pricePerShare";
518
+ readonly type: "uint256";
519
+ }, {
520
+ readonly name: "lastUpdate";
521
+ readonly type: "uint256";
522
+ }];
523
+ }, {
524
+ readonly name: "nextIndex";
525
+ readonly type: "uint256";
526
+ }];
527
+ }];
528
+ }, {
529
+ readonly stateMutability: "view";
530
+ readonly type: "function";
531
+ readonly name: "snapShots";
532
+ readonly inputs: readonly [{
533
+ readonly name: "arg0";
534
+ readonly type: "address";
535
+ }, {
536
+ readonly name: "arg1";
358
537
  readonly type: "uint256";
359
538
  }];
539
+ readonly outputs: readonly [{
540
+ readonly name: "";
541
+ readonly type: "tuple";
542
+ readonly components: readonly [{
543
+ readonly name: "totalSupply";
544
+ readonly type: "uint256";
545
+ }, {
546
+ readonly name: "pricePerShare";
547
+ readonly type: "uint256";
548
+ }, {
549
+ readonly name: "lastUpdate";
550
+ readonly type: "uint256";
551
+ }];
552
+ }];
360
553
  }, {
361
554
  readonly stateMutability: "view";
362
555
  readonly type: "function";
363
- readonly name: "numAssets";
556
+ readonly name: "snapShotPriceConfig";
364
557
  readonly inputs: readonly [];
365
558
  readonly outputs: readonly [{
366
559
  readonly name: "";
367
- readonly type: "uint256";
560
+ readonly type: "tuple";
561
+ readonly components: readonly [{
562
+ readonly name: "minSnapshotDelay";
563
+ readonly type: "uint256";
564
+ }, {
565
+ readonly name: "maxNumSnapshots";
566
+ readonly type: "uint256";
567
+ }, {
568
+ readonly name: "maxUpsideDeviation";
569
+ readonly type: "uint256";
570
+ }, {
571
+ readonly name: "staleTime";
572
+ readonly type: "uint256";
573
+ }];
574
+ }];
575
+ }, {
576
+ readonly stateMutability: "view";
577
+ readonly type: "function";
578
+ readonly name: "isPaused";
579
+ readonly inputs: readonly [];
580
+ readonly outputs: readonly [{
581
+ readonly name: "";
582
+ readonly type: "bool";
368
583
  }];
369
584
  }, {
370
585
  readonly stateMutability: "view";
@@ -408,63 +623,75 @@ export declare const abi: readonly [{
408
623
  }, {
409
624
  readonly stateMutability: "view";
410
625
  readonly type: "function";
411
- readonly name: "isRebasing";
412
- readonly inputs: readonly [];
626
+ readonly name: "getUnderlyingAsset";
627
+ readonly inputs: readonly [{
628
+ readonly name: "_vaultToken";
629
+ readonly type: "address";
630
+ }];
413
631
  readonly outputs: readonly [{
414
632
  readonly name: "";
415
- readonly type: "bool";
633
+ readonly type: "address";
416
634
  }];
417
635
  }, {
418
636
  readonly stateMutability: "view";
419
637
  readonly type: "function";
420
- readonly name: "isEligibleVaultForTrialFunds";
638
+ readonly name: "getUnderlyingBalances";
421
639
  readonly inputs: readonly [{
422
640
  readonly name: "_vaultToken";
423
641
  readonly type: "address";
424
642
  }, {
425
- readonly name: "_underlyingAsset";
426
- readonly type: "address";
643
+ readonly name: "_vaultTokenBalance";
644
+ readonly type: "uint256";
427
645
  }];
428
646
  readonly outputs: readonly [{
429
647
  readonly name: "";
430
- readonly type: "bool";
648
+ readonly type: "uint256";
649
+ }, {
650
+ readonly name: "";
651
+ readonly type: "uint256";
431
652
  }];
432
653
  }, {
433
654
  readonly stateMutability: "view";
434
655
  readonly type: "function";
435
- readonly name: "isEligibleForYieldBonus";
656
+ readonly name: "getUnderlyingAmount";
436
657
  readonly inputs: readonly [{
437
- readonly name: "_asset";
658
+ readonly name: "_vaultToken";
438
659
  readonly type: "address";
660
+ }, {
661
+ readonly name: "_vaultTokenAmount";
662
+ readonly type: "uint256";
439
663
  }];
440
664
  readonly outputs: readonly [{
441
665
  readonly name: "";
442
- readonly type: "bool";
666
+ readonly type: "uint256";
443
667
  }];
444
668
  }, {
445
- readonly stateMutability: "nonpayable";
669
+ readonly stateMutability: "view";
446
670
  readonly type: "function";
447
- readonly name: "depositForYield";
671
+ readonly name: "getUnderlyingAmountSafe";
448
672
  readonly inputs: readonly [{
449
- readonly name: "_asset";
673
+ readonly name: "_vaultToken";
450
674
  readonly type: "address";
451
675
  }, {
452
- readonly name: "_amount";
676
+ readonly name: "_vaultTokenBalance";
453
677
  readonly type: "uint256";
454
- }, {
455
- readonly name: "_vaultAddr";
456
- readonly type: "address";
457
- }, {
458
- readonly name: "_extraData";
459
- readonly type: "bytes32";
460
- }, {
461
- readonly name: "_recipient";
462
- readonly type: "address";
463
678
  }];
464
679
  readonly outputs: readonly [{
465
680
  readonly name: "";
466
681
  readonly type: "uint256";
682
+ }];
683
+ }, {
684
+ readonly stateMutability: "view";
685
+ readonly type: "function";
686
+ readonly name: "getUnderlyingData";
687
+ readonly inputs: readonly [{
688
+ readonly name: "_vaultToken";
689
+ readonly type: "address";
467
690
  }, {
691
+ readonly name: "_vaultTokenAmount";
692
+ readonly type: "uint256";
693
+ }];
694
+ readonly outputs: readonly [{
468
695
  readonly name: "";
469
696
  readonly type: "address";
470
697
  }, {
@@ -475,45 +702,20 @@ export declare const abi: readonly [{
475
702
  readonly type: "uint256";
476
703
  }];
477
704
  }, {
478
- readonly stateMutability: "nonpayable";
705
+ readonly stateMutability: "view";
479
706
  readonly type: "function";
480
- readonly name: "depositForYield";
707
+ readonly name: "getUnderlyingData";
481
708
  readonly inputs: readonly [{
482
- readonly name: "_asset";
709
+ readonly name: "_vaultToken";
483
710
  readonly type: "address";
484
711
  }, {
485
- readonly name: "_amount";
712
+ readonly name: "_vaultTokenAmount";
486
713
  readonly type: "uint256";
487
714
  }, {
488
- readonly name: "_vaultAddr";
489
- readonly type: "address";
490
- }, {
491
- readonly name: "_extraData";
492
- readonly type: "bytes32";
493
- }, {
494
- readonly name: "_recipient";
715
+ readonly name: "_appraiser";
495
716
  readonly type: "address";
496
- }, {
497
- readonly name: "_miniAddys";
498
- readonly type: "tuple";
499
- readonly components: readonly [{
500
- readonly name: "ledger";
501
- readonly type: "address";
502
- }, {
503
- readonly name: "missionControl";
504
- readonly type: "address";
505
- }, {
506
- readonly name: "legoBook";
507
- readonly type: "address";
508
- }, {
509
- readonly name: "appraiser";
510
- readonly type: "address";
511
- }];
512
717
  }];
513
718
  readonly outputs: readonly [{
514
- readonly name: "";
515
- readonly type: "uint256";
516
- }, {
517
719
  readonly name: "";
518
720
  readonly type: "address";
519
721
  }, {
@@ -524,151 +726,176 @@ export declare const abi: readonly [{
524
726
  readonly type: "uint256";
525
727
  }];
526
728
  }, {
527
- readonly stateMutability: "nonpayable";
729
+ readonly stateMutability: "view";
528
730
  readonly type: "function";
529
- readonly name: "withdrawFromYield";
731
+ readonly name: "getUsdValueOfVaultToken";
530
732
  readonly inputs: readonly [{
531
733
  readonly name: "_vaultToken";
532
734
  readonly type: "address";
533
735
  }, {
534
- readonly name: "_amount";
736
+ readonly name: "_vaultTokenAmount";
535
737
  readonly type: "uint256";
536
- }, {
537
- readonly name: "_extraData";
538
- readonly type: "bytes32";
539
- }, {
540
- readonly name: "_recipient";
541
- readonly type: "address";
542
738
  }];
543
739
  readonly outputs: readonly [{
544
740
  readonly name: "";
545
741
  readonly type: "uint256";
546
- }, {
547
- readonly name: "";
742
+ }];
743
+ }, {
744
+ readonly stateMutability: "view";
745
+ readonly type: "function";
746
+ readonly name: "getUsdValueOfVaultToken";
747
+ readonly inputs: readonly [{
748
+ readonly name: "_vaultToken";
548
749
  readonly type: "address";
549
750
  }, {
550
- readonly name: "";
751
+ readonly name: "_vaultTokenAmount";
551
752
  readonly type: "uint256";
552
753
  }, {
754
+ readonly name: "_appraiser";
755
+ readonly type: "address";
756
+ }];
757
+ readonly outputs: readonly [{
553
758
  readonly name: "";
554
759
  readonly type: "uint256";
555
760
  }];
556
761
  }, {
557
- readonly stateMutability: "nonpayable";
762
+ readonly stateMutability: "view";
558
763
  readonly type: "function";
559
- readonly name: "withdrawFromYield";
764
+ readonly name: "isRebasing";
765
+ readonly inputs: readonly [];
766
+ readonly outputs: readonly [{
767
+ readonly name: "";
768
+ readonly type: "bool";
769
+ }];
770
+ }, {
771
+ readonly stateMutability: "view";
772
+ readonly type: "function";
773
+ readonly name: "getPricePerShare";
560
774
  readonly inputs: readonly [{
561
775
  readonly name: "_vaultToken";
562
776
  readonly type: "address";
563
- }, {
564
- readonly name: "_amount";
777
+ }];
778
+ readonly outputs: readonly [{
779
+ readonly name: "";
565
780
  readonly type: "uint256";
566
- }, {
567
- readonly name: "_extraData";
568
- readonly type: "bytes32";
569
- }, {
570
- readonly name: "_recipient";
781
+ }];
782
+ }, {
783
+ readonly stateMutability: "view";
784
+ readonly type: "function";
785
+ readonly name: "getPricePerShare";
786
+ readonly inputs: readonly [{
787
+ readonly name: "_vaultToken";
571
788
  readonly type: "address";
572
789
  }, {
573
- readonly name: "_miniAddys";
574
- readonly type: "tuple";
575
- readonly components: readonly [{
576
- readonly name: "ledger";
577
- readonly type: "address";
578
- }, {
579
- readonly name: "missionControl";
580
- readonly type: "address";
581
- }, {
582
- readonly name: "legoBook";
583
- readonly type: "address";
584
- }, {
585
- readonly name: "appraiser";
586
- readonly type: "address";
587
- }];
790
+ readonly name: "_decimals";
791
+ readonly type: "uint256";
588
792
  }];
589
793
  readonly outputs: readonly [{
590
794
  readonly name: "";
591
795
  readonly type: "uint256";
592
- }, {
593
- readonly name: "";
796
+ }];
797
+ }, {
798
+ readonly stateMutability: "view";
799
+ readonly type: "function";
800
+ readonly name: "getVaultTokenAmount";
801
+ readonly inputs: readonly [{
802
+ readonly name: "_asset";
594
803
  readonly type: "address";
595
804
  }, {
596
- readonly name: "";
805
+ readonly name: "_assetAmount";
597
806
  readonly type: "uint256";
598
807
  }, {
808
+ readonly name: "_vaultToken";
809
+ readonly type: "address";
810
+ }];
811
+ readonly outputs: readonly [{
599
812
  readonly name: "";
600
813
  readonly type: "uint256";
601
814
  }];
602
815
  }, {
603
- readonly stateMutability: "nonpayable";
816
+ readonly stateMutability: "view";
604
817
  readonly type: "function";
605
- readonly name: "claimRewards";
818
+ readonly name: "totalAssets";
606
819
  readonly inputs: readonly [{
607
- readonly name: "_user";
820
+ readonly name: "_vaultToken";
608
821
  readonly type: "address";
609
- }, {
610
- readonly name: "_rewardToken";
822
+ }];
823
+ readonly outputs: readonly [{
824
+ readonly name: "";
825
+ readonly type: "uint256";
826
+ }];
827
+ }, {
828
+ readonly stateMutability: "view";
829
+ readonly type: "function";
830
+ readonly name: "totalBorrows";
831
+ readonly inputs: readonly [{
832
+ readonly name: "_vaultToken";
611
833
  readonly type: "address";
612
- }, {
613
- readonly name: "_rewardAmount";
834
+ }];
835
+ readonly outputs: readonly [{
836
+ readonly name: "";
614
837
  readonly type: "uint256";
615
- }, {
616
- readonly name: "_extraData";
617
- readonly type: "bytes32";
838
+ }];
839
+ }, {
840
+ readonly stateMutability: "view";
841
+ readonly type: "function";
842
+ readonly name: "getAvailLiquidity";
843
+ readonly inputs: readonly [{
844
+ readonly name: "_vaultToken";
845
+ readonly type: "address";
618
846
  }];
619
847
  readonly outputs: readonly [{
620
848
  readonly name: "";
621
849
  readonly type: "uint256";
622
- }, {
850
+ }];
851
+ }, {
852
+ readonly stateMutability: "view";
853
+ readonly type: "function";
854
+ readonly name: "getUtilizationRatio";
855
+ readonly inputs: readonly [{
856
+ readonly name: "_vaultToken";
857
+ readonly type: "address";
858
+ }];
859
+ readonly outputs: readonly [{
623
860
  readonly name: "";
624
861
  readonly type: "uint256";
625
862
  }];
626
863
  }, {
627
- readonly stateMutability: "nonpayable";
864
+ readonly stateMutability: "view";
628
865
  readonly type: "function";
629
- readonly name: "claimRewards";
866
+ readonly name: "isEligibleForYieldBonus";
630
867
  readonly inputs: readonly [{
631
- readonly name: "_user";
868
+ readonly name: "_asset";
632
869
  readonly type: "address";
633
- }, {
634
- readonly name: "_rewardToken";
870
+ }];
871
+ readonly outputs: readonly [{
872
+ readonly name: "";
873
+ readonly type: "bool";
874
+ }];
875
+ }, {
876
+ readonly stateMutability: "view";
877
+ readonly type: "function";
878
+ readonly name: "getWithdrawalFees";
879
+ readonly inputs: readonly [{
880
+ readonly name: "_vaultToken";
635
881
  readonly type: "address";
636
882
  }, {
637
- readonly name: "_rewardAmount";
883
+ readonly name: "_vaultTokenAmount";
638
884
  readonly type: "uint256";
639
- }, {
640
- readonly name: "_extraData";
641
- readonly type: "bytes32";
642
- }, {
643
- readonly name: "_miniAddys";
644
- readonly type: "tuple";
645
- readonly components: readonly [{
646
- readonly name: "ledger";
647
- readonly type: "address";
648
- }, {
649
- readonly name: "missionControl";
650
- readonly type: "address";
651
- }, {
652
- readonly name: "legoBook";
653
- readonly type: "address";
654
- }, {
655
- readonly name: "appraiser";
656
- readonly type: "address";
657
- }];
658
885
  }];
659
886
  readonly outputs: readonly [{
660
887
  readonly name: "";
661
888
  readonly type: "uint256";
662
- }, {
663
- readonly name: "";
664
- readonly type: "uint256";
665
889
  }];
666
890
  }, {
667
891
  readonly stateMutability: "view";
668
892
  readonly type: "function";
669
- readonly name: "hasClaimableRewards";
893
+ readonly name: "canRegisterVaultToken";
670
894
  readonly inputs: readonly [{
671
- readonly name: "_user";
895
+ readonly name: "_asset";
896
+ readonly type: "address";
897
+ }, {
898
+ readonly name: "_vaultToken";
672
899
  readonly type: "address";
673
900
  }];
674
901
  readonly outputs: readonly [{
@@ -678,19 +905,44 @@ export declare const abi: readonly [{
678
905
  }, {
679
906
  readonly stateMutability: "nonpayable";
680
907
  readonly type: "function";
681
- readonly name: "setMorphoRewardsAddr";
908
+ readonly name: "registerVaultTokenLocally";
682
909
  readonly inputs: readonly [{
683
- readonly name: "_addr";
910
+ readonly name: "_asset";
911
+ readonly type: "address";
912
+ }, {
913
+ readonly name: "_vaultAddr";
684
914
  readonly type: "address";
685
915
  }];
686
916
  readonly outputs: readonly [{
687
917
  readonly name: "";
688
- readonly type: "bool";
918
+ readonly type: "tuple";
919
+ readonly components: readonly [{
920
+ readonly name: "underlyingAsset";
921
+ readonly type: "address";
922
+ }, {
923
+ readonly name: "decimals";
924
+ readonly type: "uint256";
925
+ }, {
926
+ readonly name: "lastAveragePricePerShare";
927
+ readonly type: "uint256";
928
+ }];
689
929
  }];
690
930
  }, {
691
- readonly stateMutability: "view";
931
+ readonly stateMutability: "nonpayable";
932
+ readonly type: "function";
933
+ readonly name: "deregisterVaultTokenLocally";
934
+ readonly inputs: readonly [{
935
+ readonly name: "_asset";
936
+ readonly type: "address";
937
+ }, {
938
+ readonly name: "_vaultAddr";
939
+ readonly type: "address";
940
+ }];
941
+ readonly outputs: readonly [];
942
+ }, {
943
+ readonly stateMutability: "nonpayable";
692
944
  readonly type: "function";
693
- readonly name: "isVaultToken";
945
+ readonly name: "addPriceSnapshot";
694
946
  readonly inputs: readonly [{
695
947
  readonly name: "_vaultToken";
696
948
  readonly type: "address";
@@ -700,98 +952,245 @@ export declare const abi: readonly [{
700
952
  readonly type: "bool";
701
953
  }];
702
954
  }, {
703
- readonly stateMutability: "view";
955
+ readonly stateMutability: "nonpayable";
704
956
  readonly type: "function";
705
- readonly name: "getUnderlyingAsset";
957
+ readonly name: "depositForYield";
706
958
  readonly inputs: readonly [{
707
- readonly name: "_vaultToken";
959
+ readonly name: "_asset";
960
+ readonly type: "address";
961
+ }, {
962
+ readonly name: "_amount";
963
+ readonly type: "uint256";
964
+ }, {
965
+ readonly name: "_vaultAddr";
966
+ readonly type: "address";
967
+ }, {
968
+ readonly name: "_extraData";
969
+ readonly type: "bytes32";
970
+ }, {
971
+ readonly name: "_recipient";
708
972
  readonly type: "address";
709
973
  }];
710
974
  readonly outputs: readonly [{
975
+ readonly name: "";
976
+ readonly type: "uint256";
977
+ }, {
711
978
  readonly name: "";
712
979
  readonly type: "address";
980
+ }, {
981
+ readonly name: "";
982
+ readonly type: "uint256";
983
+ }, {
984
+ readonly name: "";
985
+ readonly type: "uint256";
713
986
  }];
714
987
  }, {
715
- readonly stateMutability: "view";
988
+ readonly stateMutability: "nonpayable";
716
989
  readonly type: "function";
717
- readonly name: "getUnderlyingAmount";
990
+ readonly name: "depositForYield";
991
+ readonly inputs: readonly [{
992
+ readonly name: "_asset";
993
+ readonly type: "address";
994
+ }, {
995
+ readonly name: "_amount";
996
+ readonly type: "uint256";
997
+ }, {
998
+ readonly name: "_vaultAddr";
999
+ readonly type: "address";
1000
+ }, {
1001
+ readonly name: "_extraData";
1002
+ readonly type: "bytes32";
1003
+ }, {
1004
+ readonly name: "_recipient";
1005
+ readonly type: "address";
1006
+ }, {
1007
+ readonly name: "_miniAddys";
1008
+ readonly type: "tuple";
1009
+ readonly components: readonly [{
1010
+ readonly name: "ledger";
1011
+ readonly type: "address";
1012
+ }, {
1013
+ readonly name: "missionControl";
1014
+ readonly type: "address";
1015
+ }, {
1016
+ readonly name: "legoBook";
1017
+ readonly type: "address";
1018
+ }, {
1019
+ readonly name: "appraiser";
1020
+ readonly type: "address";
1021
+ }];
1022
+ }];
1023
+ readonly outputs: readonly [{
1024
+ readonly name: "";
1025
+ readonly type: "uint256";
1026
+ }, {
1027
+ readonly name: "";
1028
+ readonly type: "address";
1029
+ }, {
1030
+ readonly name: "";
1031
+ readonly type: "uint256";
1032
+ }, {
1033
+ readonly name: "";
1034
+ readonly type: "uint256";
1035
+ }];
1036
+ }, {
1037
+ readonly stateMutability: "nonpayable";
1038
+ readonly type: "function";
1039
+ readonly name: "withdrawFromYield";
718
1040
  readonly inputs: readonly [{
719
1041
  readonly name: "_vaultToken";
720
1042
  readonly type: "address";
721
1043
  }, {
722
- readonly name: "_vaultTokenAmount";
1044
+ readonly name: "_amount";
723
1045
  readonly type: "uint256";
1046
+ }, {
1047
+ readonly name: "_extraData";
1048
+ readonly type: "bytes32";
1049
+ }, {
1050
+ readonly name: "_recipient";
1051
+ readonly type: "address";
724
1052
  }];
725
1053
  readonly outputs: readonly [{
726
1054
  readonly name: "";
727
1055
  readonly type: "uint256";
1056
+ }, {
1057
+ readonly name: "";
1058
+ readonly type: "address";
1059
+ }, {
1060
+ readonly name: "";
1061
+ readonly type: "uint256";
1062
+ }, {
1063
+ readonly name: "";
1064
+ readonly type: "uint256";
728
1065
  }];
729
1066
  }, {
730
- readonly stateMutability: "view";
1067
+ readonly stateMutability: "nonpayable";
731
1068
  readonly type: "function";
732
- readonly name: "getVaultTokenAmount";
1069
+ readonly name: "withdrawFromYield";
733
1070
  readonly inputs: readonly [{
734
- readonly name: "_asset";
1071
+ readonly name: "_vaultToken";
735
1072
  readonly type: "address";
736
1073
  }, {
737
- readonly name: "_assetAmount";
1074
+ readonly name: "_amount";
738
1075
  readonly type: "uint256";
739
1076
  }, {
740
- readonly name: "_vaultToken";
1077
+ readonly name: "_extraData";
1078
+ readonly type: "bytes32";
1079
+ }, {
1080
+ readonly name: "_recipient";
741
1081
  readonly type: "address";
1082
+ }, {
1083
+ readonly name: "_miniAddys";
1084
+ readonly type: "tuple";
1085
+ readonly components: readonly [{
1086
+ readonly name: "ledger";
1087
+ readonly type: "address";
1088
+ }, {
1089
+ readonly name: "missionControl";
1090
+ readonly type: "address";
1091
+ }, {
1092
+ readonly name: "legoBook";
1093
+ readonly type: "address";
1094
+ }, {
1095
+ readonly name: "appraiser";
1096
+ readonly type: "address";
1097
+ }];
742
1098
  }];
743
1099
  readonly outputs: readonly [{
744
1100
  readonly name: "";
745
1101
  readonly type: "uint256";
1102
+ }, {
1103
+ readonly name: "";
1104
+ readonly type: "address";
1105
+ }, {
1106
+ readonly name: "";
1107
+ readonly type: "uint256";
1108
+ }, {
1109
+ readonly name: "";
1110
+ readonly type: "uint256";
746
1111
  }];
747
1112
  }, {
748
- readonly stateMutability: "view";
1113
+ readonly stateMutability: "nonpayable";
749
1114
  readonly type: "function";
750
- readonly name: "getUsdValueOfVaultToken";
1115
+ readonly name: "claimIncentives";
751
1116
  readonly inputs: readonly [{
752
- readonly name: "_vaultToken";
1117
+ readonly name: "_user";
753
1118
  readonly type: "address";
754
1119
  }, {
755
- readonly name: "_vaultTokenAmount";
1120
+ readonly name: "_rewardToken";
1121
+ readonly type: "address";
1122
+ }, {
1123
+ readonly name: "_rewardAmount";
756
1124
  readonly type: "uint256";
1125
+ }, {
1126
+ readonly name: "_proofs";
1127
+ readonly type: "bytes32[]";
757
1128
  }];
758
1129
  readonly outputs: readonly [{
759
1130
  readonly name: "";
760
1131
  readonly type: "uint256";
1132
+ }, {
1133
+ readonly name: "";
1134
+ readonly type: "uint256";
761
1135
  }];
762
1136
  }, {
763
- readonly stateMutability: "view";
1137
+ readonly stateMutability: "nonpayable";
764
1138
  readonly type: "function";
765
- readonly name: "getUsdValueOfVaultToken";
1139
+ readonly name: "claimIncentives";
766
1140
  readonly inputs: readonly [{
767
- readonly name: "_vaultToken";
1141
+ readonly name: "_user";
768
1142
  readonly type: "address";
769
1143
  }, {
770
- readonly name: "_vaultTokenAmount";
1144
+ readonly name: "_rewardToken";
1145
+ readonly type: "address";
1146
+ }, {
1147
+ readonly name: "_rewardAmount";
771
1148
  readonly type: "uint256";
772
1149
  }, {
773
- readonly name: "_appraiser";
774
- readonly type: "address";
1150
+ readonly name: "_proofs";
1151
+ readonly type: "bytes32[]";
1152
+ }, {
1153
+ readonly name: "_miniAddys";
1154
+ readonly type: "tuple";
1155
+ readonly components: readonly [{
1156
+ readonly name: "ledger";
1157
+ readonly type: "address";
1158
+ }, {
1159
+ readonly name: "missionControl";
1160
+ readonly type: "address";
1161
+ }, {
1162
+ readonly name: "legoBook";
1163
+ readonly type: "address";
1164
+ }, {
1165
+ readonly name: "appraiser";
1166
+ readonly type: "address";
1167
+ }];
775
1168
  }];
776
1169
  readonly outputs: readonly [{
777
1170
  readonly name: "";
778
1171
  readonly type: "uint256";
1172
+ }, {
1173
+ readonly name: "";
1174
+ readonly type: "uint256";
779
1175
  }];
780
1176
  }, {
781
- readonly stateMutability: "view";
1177
+ readonly stateMutability: "nonpayable";
782
1178
  readonly type: "function";
783
- readonly name: "getUnderlyingData";
1179
+ readonly name: "claimRewards";
784
1180
  readonly inputs: readonly [{
785
- readonly name: "_vaultToken";
1181
+ readonly name: "_user";
786
1182
  readonly type: "address";
787
1183
  }, {
788
- readonly name: "_vaultTokenAmount";
1184
+ readonly name: "_rewardToken";
1185
+ readonly type: "address";
1186
+ }, {
1187
+ readonly name: "_rewardAmount";
789
1188
  readonly type: "uint256";
1189
+ }, {
1190
+ readonly name: "_extraData";
1191
+ readonly type: "bytes32";
790
1192
  }];
791
1193
  readonly outputs: readonly [{
792
- readonly name: "";
793
- readonly type: "address";
794
- }, {
795
1194
  readonly name: "";
796
1195
  readonly type: "uint256";
797
1196
  }, {
@@ -799,23 +1198,39 @@ export declare const abi: readonly [{
799
1198
  readonly type: "uint256";
800
1199
  }];
801
1200
  }, {
802
- readonly stateMutability: "view";
1201
+ readonly stateMutability: "nonpayable";
803
1202
  readonly type: "function";
804
- readonly name: "getUnderlyingData";
1203
+ readonly name: "claimRewards";
805
1204
  readonly inputs: readonly [{
806
- readonly name: "_vaultToken";
1205
+ readonly name: "_user";
807
1206
  readonly type: "address";
808
1207
  }, {
809
- readonly name: "_vaultTokenAmount";
1208
+ readonly name: "_rewardToken";
1209
+ readonly type: "address";
1210
+ }, {
1211
+ readonly name: "_rewardAmount";
810
1212
  readonly type: "uint256";
811
1213
  }, {
812
- readonly name: "_appraiser";
813
- readonly type: "address";
1214
+ readonly name: "_extraData";
1215
+ readonly type: "bytes32";
1216
+ }, {
1217
+ readonly name: "_miniAddys";
1218
+ readonly type: "tuple";
1219
+ readonly components: readonly [{
1220
+ readonly name: "ledger";
1221
+ readonly type: "address";
1222
+ }, {
1223
+ readonly name: "missionControl";
1224
+ readonly type: "address";
1225
+ }, {
1226
+ readonly name: "legoBook";
1227
+ readonly type: "address";
1228
+ }, {
1229
+ readonly name: "appraiser";
1230
+ readonly type: "address";
1231
+ }];
814
1232
  }];
815
1233
  readonly outputs: readonly [{
816
- readonly name: "";
817
- readonly type: "address";
818
- }, {
819
1234
  readonly name: "";
820
1235
  readonly type: "uint256";
821
1236
  }, {
@@ -825,66 +1240,48 @@ export declare const abi: readonly [{
825
1240
  }, {
826
1241
  readonly stateMutability: "view";
827
1242
  readonly type: "function";
828
- readonly name: "totalAssets";
1243
+ readonly name: "hasClaimableRewards";
829
1244
  readonly inputs: readonly [{
830
- readonly name: "_vaultToken";
1245
+ readonly name: "_user";
831
1246
  readonly type: "address";
832
1247
  }];
833
1248
  readonly outputs: readonly [{
834
1249
  readonly name: "";
835
- readonly type: "uint256";
1250
+ readonly type: "bool";
836
1251
  }];
837
1252
  }, {
838
- readonly stateMutability: "view";
1253
+ readonly stateMutability: "nonpayable";
839
1254
  readonly type: "function";
840
- readonly name: "totalBorrows";
1255
+ readonly name: "setMorphoRewardsAddr";
841
1256
  readonly inputs: readonly [{
842
- readonly name: "_vaultToken";
1257
+ readonly name: "_addr";
843
1258
  readonly type: "address";
844
1259
  }];
845
1260
  readonly outputs: readonly [{
846
1261
  readonly name: "";
847
- readonly type: "uint256";
1262
+ readonly type: "bool";
848
1263
  }];
849
1264
  }, {
850
1265
  readonly stateMutability: "view";
851
1266
  readonly type: "function";
852
- readonly name: "getPricePerShare";
1267
+ readonly name: "getAccessForLego";
853
1268
  readonly inputs: readonly [{
854
- readonly name: "_asset";
1269
+ readonly name: "_user";
855
1270
  readonly type: "address";
856
1271
  }, {
857
- readonly name: "_decimals";
1272
+ readonly name: "_action";
858
1273
  readonly type: "uint256";
859
1274
  }];
860
1275
  readonly outputs: readonly [{
861
1276
  readonly name: "";
862
- readonly type: "uint256";
863
- }];
864
- }, {
865
- readonly stateMutability: "nonpayable";
866
- readonly type: "function";
867
- readonly name: "addAssetOpportunity";
868
- readonly inputs: readonly [{
869
- readonly name: "_asset";
870
1277
  readonly type: "address";
871
1278
  }, {
872
- readonly name: "_vaultAddr";
873
- readonly type: "address";
874
- }];
875
- readonly outputs: readonly [];
876
- }, {
877
- readonly stateMutability: "nonpayable";
878
- readonly type: "function";
879
- readonly name: "removeAssetOpportunity";
880
- readonly inputs: readonly [{
881
- readonly name: "_asset";
882
- readonly type: "address";
1279
+ readonly name: "";
1280
+ readonly type: "string";
883
1281
  }, {
884
- readonly name: "_vaultAddr";
885
- readonly type: "address";
1282
+ readonly name: "";
1283
+ readonly type: "uint256";
886
1284
  }];
887
- readonly outputs: readonly [];
888
1285
  }, {
889
1286
  readonly stateMutability: "nonpayable";
890
1287
  readonly type: "function";
@@ -1838,43 +2235,16 @@ export declare const abi: readonly [{
1838
2235
  }, {
1839
2236
  readonly stateMutability: "view";
1840
2237
  readonly type: "function";
1841
- readonly name: "getAccessForLego";
1842
- readonly inputs: readonly [{
1843
- readonly name: "_user";
1844
- readonly type: "address";
1845
- }, {
1846
- readonly name: "_action";
1847
- readonly type: "uint256";
1848
- }];
2238
+ readonly name: "morphoRewards";
2239
+ readonly inputs: readonly [];
1849
2240
  readonly outputs: readonly [{
1850
2241
  readonly name: "";
1851
2242
  readonly type: "address";
1852
- }, {
1853
- readonly name: "";
1854
- readonly type: "string";
1855
- }, {
1856
- readonly name: "";
1857
- readonly type: "uint256";
1858
- }];
1859
- }, {
1860
- readonly stateMutability: "view";
1861
- readonly type: "function";
1862
- readonly name: "getPrice";
1863
- readonly inputs: readonly [{
1864
- readonly name: "_asset";
1865
- readonly type: "address";
1866
- }, {
1867
- readonly name: "_decimals";
1868
- readonly type: "uint256";
1869
- }];
1870
- readonly outputs: readonly [{
1871
- readonly name: "";
1872
- readonly type: "uint256";
1873
2243
  }];
1874
2244
  }, {
1875
2245
  readonly stateMutability: "view";
1876
2246
  readonly type: "function";
1877
- readonly name: "morphoRewards";
2247
+ readonly name: "MORPHO_FACTORY";
1878
2248
  readonly inputs: readonly [];
1879
2249
  readonly outputs: readonly [{
1880
2250
  readonly name: "";
@@ -1883,7 +2253,7 @@ export declare const abi: readonly [{
1883
2253
  }, {
1884
2254
  readonly stateMutability: "view";
1885
2255
  readonly type: "function";
1886
- readonly name: "MORPHO_FACTORY";
2256
+ readonly name: "MORPHO_FACTORY_LEGACY";
1887
2257
  readonly inputs: readonly [];
1888
2258
  readonly outputs: readonly [{
1889
2259
  readonly name: "";
@@ -1892,7 +2262,7 @@ export declare const abi: readonly [{
1892
2262
  }, {
1893
2263
  readonly stateMutability: "view";
1894
2264
  readonly type: "function";
1895
- readonly name: "MORPHO_FACTORY_LEGACY";
2265
+ readonly name: "RIPE_REGISTRY";
1896
2266
  readonly inputs: readonly [];
1897
2267
  readonly outputs: readonly [{
1898
2268
  readonly name: "";
@@ -1913,6 +2283,9 @@ export declare const abi: readonly [{
1913
2283
  }, {
1914
2284
  readonly name: "_morphoRewardsAddr";
1915
2285
  readonly type: "address";
2286
+ }, {
2287
+ readonly name: "_ripeRegistry";
2288
+ readonly type: "address";
1916
2289
  }];
1917
2290
  readonly outputs: readonly [];
1918
2291
  }];
@@ -1931,6 +2304,7 @@ export type Contract = {
1931
2304
  appraiser: `0x${string}`;
1932
2305
  walletBackpack: `0x${string}`;
1933
2306
  billing: `0x${string}`;
2307
+ vaultRegistry: `0x${string}`;
1934
2308
  }>;
1935
2309
  getUndyHq: () => Promise<`0x${string}`>;
1936
2310
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -1938,41 +2312,93 @@ export type Contract = {
1938
2312
  getAssets: () => Promise<`0x${string}`[]>;
1939
2313
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
1940
2314
  getNumLegoAssets: () => Promise<bigint>;
1941
- isPaused: () => Promise<boolean>;
2315
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2316
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2317
+ totalSupply: bigint;
2318
+ pricePerShare: bigint;
2319
+ lastUpdate: bigint;
2320
+ }>;
2321
+ isValidPriceConfig: (config: {
2322
+ minSnapshotDelay: bigint;
2323
+ maxNumSnapshots: bigint;
2324
+ maxUpsideDeviation: bigint;
2325
+ staleTime: bigint;
2326
+ }) => Promise<boolean>;
2327
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2328
+ underlyingAsset: `0x${string}`;
2329
+ decimals: bigint;
2330
+ lastAveragePricePerShare: bigint;
2331
+ }>;
1942
2332
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
1943
2333
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
1944
2334
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
1945
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
1946
2335
  assets: (arg0: bigint) => Promise<`0x${string}`>;
1947
2336
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
1948
2337
  numAssets: () => Promise<bigint>;
2338
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2339
+ lastSnapShot: {
2340
+ totalSupply: bigint;
2341
+ pricePerShare: bigint;
2342
+ lastUpdate: bigint;
2343
+ };
2344
+ nextIndex: bigint;
2345
+ }>;
2346
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2347
+ totalSupply: bigint;
2348
+ pricePerShare: bigint;
2349
+ lastUpdate: bigint;
2350
+ }>;
2351
+ snapShotPriceConfig: () => Promise<{
2352
+ minSnapshotDelay: bigint;
2353
+ maxNumSnapshots: bigint;
2354
+ maxUpsideDeviation: bigint;
2355
+ staleTime: bigint;
2356
+ }>;
2357
+ isPaused: () => Promise<boolean>;
1949
2358
  hasCapability: (action: bigint) => Promise<boolean>;
1950
2359
  getRegistries: () => Promise<`0x${string}`[]>;
1951
2360
  isYieldLego: () => Promise<boolean>;
1952
2361
  isDexLego: () => Promise<boolean>;
1953
- isRebasing: () => Promise<boolean>;
1954
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
1955
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1956
- hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1957
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
1958
2362
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2363
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
1959
2364
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
1960
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1961
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2365
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
1962
2366
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2367
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2368
+ isRebasing: () => Promise<boolean>;
2369
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2370
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1963
2371
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
1964
2372
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
1965
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2373
+ getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
2374
+ getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
2375
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2376
+ getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2377
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
2378
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1966
2379
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
1967
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
1968
2380
  morphoRewards: () => Promise<`0x${string}`>;
1969
2381
  MORPHO_FACTORY: () => Promise<`0x${string}`>;
1970
2382
  MORPHO_FACTORY_LEGACY: () => Promise<`0x${string}`>;
2383
+ RIPE_REGISTRY: () => Promise<`0x${string}`>;
1971
2384
  };
1972
2385
  mutations: {
1973
2386
  pause: (shouldPause: boolean) => Promise<void>;
1974
2387
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1975
2388
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2389
+ setSnapShotPriceConfig: (config: {
2390
+ minSnapshotDelay: bigint;
2391
+ maxNumSnapshots: bigint;
2392
+ maxUpsideDeviation: bigint;
2393
+ staleTime: bigint;
2394
+ }) => Promise<void>;
2395
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2396
+ underlyingAsset: `0x${string}`;
2397
+ decimals: bigint;
2398
+ lastAveragePricePerShare: bigint;
2399
+ }>;
2400
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2401
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
1976
2402
  depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1977
2403
  ledger: `0x${string}`;
1978
2404
  missionControl: `0x${string}`;
@@ -1985,6 +2411,12 @@ export type Contract = {
1985
2411
  legoBook: `0x${string}`;
1986
2412
  appraiser: `0x${string}`;
1987
2413
  }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2414
+ claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
2415
+ ledger: `0x${string}`;
2416
+ missionControl: `0x${string}`;
2417
+ legoBook: `0x${string}`;
2418
+ appraiser: `0x${string}`;
2419
+ }) => Promise<[bigint, bigint]>;
1988
2420
  claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
1989
2421
  ledger: `0x${string}`;
1990
2422
  missionControl: `0x${string}`;
@@ -1992,8 +2424,6 @@ export type Contract = {
1992
2424
  appraiser: `0x${string}`;
1993
2425
  }) => Promise<[bigint, bigint]>;
1994
2426
  setMorphoRewardsAddr: (addr: `0x${string}`) => Promise<boolean>;
1995
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1996
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1997
2427
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
1998
2428
  ledger: `0x${string}`;
1999
2429
  missionControl: `0x${string}`;
@@ -2067,8 +2497,10 @@ export type Contract = {
2067
2497
  MorphoRewardsAddrSet: (addr: `0x${string}`) => Promise<void>;
2068
2498
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2069
2499
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2500
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2070
2501
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2071
2502
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2503
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint, lastAveragePricePerShare: bigint) => Promise<void>;
2072
2504
  };
2073
2505
  };
2074
2506
  export type Calls = keyof Contract['calls'];
@@ -2116,45 +2548,58 @@ export type SDK = {
2116
2548
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2117
2549
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2118
2550
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2119
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2551
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2552
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2553
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2554
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2120
2555
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2121
2556
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2122
2557
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2123
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2124
2558
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2125
2559
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2126
2560
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2561
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2562
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2563
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2564
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2127
2565
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2128
2566
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2129
2567
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2130
2568
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2131
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2132
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2133
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2134
- hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2135
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2136
2569
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2570
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2137
2571
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2138
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2139
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2572
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2140
2573
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2574
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2575
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2576
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2577
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2141
2578
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2142
2579
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2143
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2580
+ getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
2581
+ getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
2582
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2583
+ getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
2584
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2585
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2144
2586
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2145
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2146
2587
  morphoRewards: (...args: ExtractArgs<Contract['calls']['morphoRewards']>) => Promise<CallReturn<'morphoRewards'>>;
2147
2588
  MORPHO_FACTORY: (...args: ExtractArgs<Contract['calls']['MORPHO_FACTORY']>) => Promise<CallReturn<'MORPHO_FACTORY'>>;
2148
2589
  MORPHO_FACTORY_LEGACY: (...args: ExtractArgs<Contract['calls']['MORPHO_FACTORY_LEGACY']>) => Promise<CallReturn<'MORPHO_FACTORY_LEGACY'>>;
2590
+ RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
2149
2591
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2150
2592
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2151
2593
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2594
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2595
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2596
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2597
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2152
2598
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2153
2599
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2600
+ claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
2154
2601
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2155
2602
  setMorphoRewardsAddr: (...args: ExtractArgs<Contract['mutations']['setMorphoRewardsAddr']>) => Promise<Address>;
2156
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2157
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2158
2603
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2159
2604
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2160
2605
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;