@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
@@ -134,6 +134,33 @@ export const abi = [
134
134
  anonymous: false,
135
135
  type: 'event',
136
136
  },
137
+ {
138
+ name: 'SnapShotPriceConfigSet',
139
+ inputs: [
140
+ {
141
+ name: 'minSnapshotDelay',
142
+ type: 'uint256',
143
+ indexed: false,
144
+ },
145
+ {
146
+ name: 'maxNumSnapshots',
147
+ type: 'uint256',
148
+ indexed: false,
149
+ },
150
+ {
151
+ name: 'maxUpsideDeviation',
152
+ type: 'uint256',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'staleTime',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ ],
161
+ anonymous: false,
162
+ type: 'event',
163
+ },
137
164
  {
138
165
  name: 'AssetOpportunityAdded',
139
166
  inputs: [
@@ -168,6 +195,33 @@ export const abi = [
168
195
  anonymous: false,
169
196
  type: 'event',
170
197
  },
198
+ {
199
+ name: 'PricePerShareSnapShotAdded',
200
+ inputs: [
201
+ {
202
+ name: 'vaultToken',
203
+ type: 'address',
204
+ indexed: true,
205
+ },
206
+ {
207
+ name: 'totalSupply',
208
+ type: 'uint256',
209
+ indexed: false,
210
+ },
211
+ {
212
+ name: 'pricePerShare',
213
+ type: 'uint256',
214
+ indexed: false,
215
+ },
216
+ {
217
+ name: 'lastAveragePricePerShare',
218
+ type: 'uint256',
219
+ indexed: false,
220
+ },
221
+ ],
222
+ anonymous: false,
223
+ type: 'event',
224
+ },
171
225
  {
172
226
  stateMutability: 'view',
173
227
  type: 'function',
@@ -222,6 +276,10 @@ export const abi = [
222
276
  name: 'billing',
223
277
  type: 'address',
224
278
  },
279
+ {
280
+ name: 'vaultRegistry',
281
+ type: 'address',
282
+ },
225
283
  ],
226
284
  },
227
285
  ],
@@ -364,40 +422,155 @@ export const abi = [
364
422
  {
365
423
  stateMutability: 'view',
366
424
  type: 'function',
367
- name: 'isPaused',
368
- inputs: [],
425
+ name: 'getWeightedPricePerShare',
426
+ inputs: [
427
+ {
428
+ name: '_vaultToken',
429
+ type: 'address',
430
+ },
431
+ ],
369
432
  outputs: [
370
433
  {
371
434
  name: '',
372
- type: 'bool',
435
+ type: 'uint256',
373
436
  },
374
437
  ],
375
438
  },
376
439
  {
377
440
  stateMutability: 'view',
378
441
  type: 'function',
379
- name: 'assetOpportunities',
442
+ name: 'getLatestSnapshot',
380
443
  inputs: [
381
444
  {
382
- name: 'arg0',
445
+ name: '_vaultToken',
383
446
  type: 'address',
384
447
  },
385
448
  {
386
- name: 'arg1',
449
+ name: '_pricePerShare',
387
450
  type: 'uint256',
388
451
  },
389
452
  ],
390
453
  outputs: [
391
454
  {
392
455
  name: '',
456
+ type: 'tuple',
457
+ components: [
458
+ {
459
+ name: 'totalSupply',
460
+ type: 'uint256',
461
+ },
462
+ {
463
+ name: 'pricePerShare',
464
+ type: 'uint256',
465
+ },
466
+ {
467
+ name: 'lastUpdate',
468
+ type: 'uint256',
469
+ },
470
+ ],
471
+ },
472
+ ],
473
+ },
474
+ {
475
+ stateMutability: 'nonpayable',
476
+ type: 'function',
477
+ name: 'setSnapShotPriceConfig',
478
+ inputs: [
479
+ {
480
+ name: '_config',
481
+ type: 'tuple',
482
+ components: [
483
+ {
484
+ name: 'minSnapshotDelay',
485
+ type: 'uint256',
486
+ },
487
+ {
488
+ name: 'maxNumSnapshots',
489
+ type: 'uint256',
490
+ },
491
+ {
492
+ name: 'maxUpsideDeviation',
493
+ type: 'uint256',
494
+ },
495
+ {
496
+ name: 'staleTime',
497
+ type: 'uint256',
498
+ },
499
+ ],
500
+ },
501
+ ],
502
+ outputs: [],
503
+ },
504
+ {
505
+ stateMutability: 'view',
506
+ type: 'function',
507
+ name: 'isValidPriceConfig',
508
+ inputs: [
509
+ {
510
+ name: '_config',
511
+ type: 'tuple',
512
+ components: [
513
+ {
514
+ name: 'minSnapshotDelay',
515
+ type: 'uint256',
516
+ },
517
+ {
518
+ name: 'maxNumSnapshots',
519
+ type: 'uint256',
520
+ },
521
+ {
522
+ name: 'maxUpsideDeviation',
523
+ type: 'uint256',
524
+ },
525
+ {
526
+ name: 'staleTime',
527
+ type: 'uint256',
528
+ },
529
+ ],
530
+ },
531
+ ],
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'bool',
536
+ },
537
+ ],
538
+ },
539
+ {
540
+ stateMutability: 'view',
541
+ type: 'function',
542
+ name: 'vaultToAsset',
543
+ inputs: [
544
+ {
545
+ name: 'arg0',
393
546
  type: 'address',
394
547
  },
395
548
  ],
549
+ outputs: [
550
+ {
551
+ name: '',
552
+ type: 'tuple',
553
+ components: [
554
+ {
555
+ name: 'underlyingAsset',
556
+ type: 'address',
557
+ },
558
+ {
559
+ name: 'decimals',
560
+ type: 'uint256',
561
+ },
562
+ {
563
+ name: 'lastAveragePricePerShare',
564
+ type: 'uint256',
565
+ },
566
+ ],
567
+ },
568
+ ],
396
569
  },
397
570
  {
398
571
  stateMutability: 'view',
399
572
  type: 'function',
400
- name: 'indexOfAssetOpportunity',
573
+ name: 'assetOpportunities',
401
574
  inputs: [
402
575
  {
403
576
  name: 'arg0',
@@ -405,25 +578,29 @@ export const abi = [
405
578
  },
406
579
  {
407
580
  name: 'arg1',
408
- type: 'address',
581
+ type: 'uint256',
409
582
  },
410
583
  ],
411
584
  outputs: [
412
585
  {
413
586
  name: '',
414
- type: 'uint256',
587
+ type: 'address',
415
588
  },
416
589
  ],
417
590
  },
418
591
  {
419
592
  stateMutability: 'view',
420
593
  type: 'function',
421
- name: 'numAssetOpportunities',
594
+ name: 'indexOfAssetOpportunity',
422
595
  inputs: [
423
596
  {
424
597
  name: 'arg0',
425
598
  type: 'address',
426
599
  },
600
+ {
601
+ name: 'arg1',
602
+ type: 'address',
603
+ },
427
604
  ],
428
605
  outputs: [
429
606
  {
@@ -435,7 +612,7 @@ export const abi = [
435
612
  {
436
613
  stateMutability: 'view',
437
614
  type: 'function',
438
- name: 'vaultToAsset',
615
+ name: 'numAssetOpportunities',
439
616
  inputs: [
440
617
  {
441
618
  name: 'arg0',
@@ -445,7 +622,7 @@ export const abi = [
445
622
  outputs: [
446
623
  {
447
624
  name: '',
448
- type: 'address',
625
+ type: 'uint256',
449
626
  },
450
627
  ],
451
628
  },
@@ -498,48 +675,113 @@ export const abi = [
498
675
  {
499
676
  stateMutability: 'view',
500
677
  type: 'function',
501
- name: 'hasCapability',
678
+ name: 'snapShotData',
502
679
  inputs: [
503
680
  {
504
- name: '_action',
505
- type: 'uint256',
681
+ name: 'arg0',
682
+ type: 'address',
506
683
  },
507
684
  ],
508
685
  outputs: [
509
686
  {
510
687
  name: '',
511
- type: 'bool',
688
+ type: 'tuple',
689
+ components: [
690
+ {
691
+ name: 'lastSnapShot',
692
+ type: 'tuple',
693
+ components: [
694
+ {
695
+ name: 'totalSupply',
696
+ type: 'uint256',
697
+ },
698
+ {
699
+ name: 'pricePerShare',
700
+ type: 'uint256',
701
+ },
702
+ {
703
+ name: 'lastUpdate',
704
+ type: 'uint256',
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ name: 'nextIndex',
710
+ type: 'uint256',
711
+ },
712
+ ],
512
713
  },
513
714
  ],
514
715
  },
515
716
  {
516
717
  stateMutability: 'view',
517
718
  type: 'function',
518
- name: 'getRegistries',
519
- inputs: [],
719
+ name: 'snapShots',
720
+ inputs: [
721
+ {
722
+ name: 'arg0',
723
+ type: 'address',
724
+ },
725
+ {
726
+ name: 'arg1',
727
+ type: 'uint256',
728
+ },
729
+ ],
520
730
  outputs: [
521
731
  {
522
732
  name: '',
523
- type: 'address[]',
733
+ type: 'tuple',
734
+ components: [
735
+ {
736
+ name: 'totalSupply',
737
+ type: 'uint256',
738
+ },
739
+ {
740
+ name: 'pricePerShare',
741
+ type: 'uint256',
742
+ },
743
+ {
744
+ name: 'lastUpdate',
745
+ type: 'uint256',
746
+ },
747
+ ],
524
748
  },
525
749
  ],
526
750
  },
527
751
  {
528
752
  stateMutability: 'view',
529
753
  type: 'function',
530
- name: 'isYieldLego',
754
+ name: 'snapShotPriceConfig',
531
755
  inputs: [],
532
756
  outputs: [
533
757
  {
534
758
  name: '',
535
- type: 'bool',
759
+ type: 'tuple',
760
+ components: [
761
+ {
762
+ name: 'minSnapshotDelay',
763
+ type: 'uint256',
764
+ },
765
+ {
766
+ name: 'maxNumSnapshots',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: 'maxUpsideDeviation',
771
+ type: 'uint256',
772
+ },
773
+ {
774
+ name: 'staleTime',
775
+ type: 'uint256',
776
+ },
777
+ ],
536
778
  },
537
779
  ],
538
780
  },
539
781
  {
540
782
  stateMutability: 'view',
541
783
  type: 'function',
542
- name: 'isDexLego',
784
+ name: 'isPaused',
543
785
  inputs: [],
544
786
  outputs: [
545
787
  {
@@ -551,8 +793,13 @@ export const abi = [
551
793
  {
552
794
  stateMutability: 'view',
553
795
  type: 'function',
554
- name: 'isRebasing',
555
- inputs: [],
796
+ name: 'hasCapability',
797
+ inputs: [
798
+ {
799
+ name: '_action',
800
+ type: 'uint256',
801
+ },
802
+ ],
556
803
  outputs: [
557
804
  {
558
805
  name: '',
@@ -563,17 +810,32 @@ export const abi = [
563
810
  {
564
811
  stateMutability: 'view',
565
812
  type: 'function',
566
- name: 'isEligibleVaultForTrialFunds',
567
- inputs: [
813
+ name: 'getRegistries',
814
+ inputs: [],
815
+ outputs: [
568
816
  {
569
- name: '_vaultToken',
570
- type: 'address',
817
+ name: '',
818
+ type: 'address[]',
571
819
  },
820
+ ],
821
+ },
822
+ {
823
+ stateMutability: 'view',
824
+ type: 'function',
825
+ name: 'isYieldLego',
826
+ inputs: [],
827
+ outputs: [
572
828
  {
573
- name: '_underlyingAsset',
574
- type: 'address',
829
+ name: '',
830
+ type: 'bool',
575
831
  },
576
832
  ],
833
+ },
834
+ {
835
+ stateMutability: 'view',
836
+ type: 'function',
837
+ name: 'isDexLego',
838
+ inputs: [],
577
839
  outputs: [
578
840
  {
579
841
  name: '',
@@ -584,51 +846,102 @@ export const abi = [
584
846
  {
585
847
  stateMutability: 'view',
586
848
  type: 'function',
587
- name: 'isEligibleForYieldBonus',
849
+ name: 'getUnderlyingAsset',
588
850
  inputs: [
589
851
  {
590
- name: '_asset',
852
+ name: '_vaultToken',
591
853
  type: 'address',
592
854
  },
593
855
  ],
594
856
  outputs: [
595
857
  {
596
858
  name: '',
597
- type: 'bool',
859
+ type: 'address',
598
860
  },
599
861
  ],
600
862
  },
601
863
  {
602
- stateMutability: 'nonpayable',
864
+ stateMutability: 'view',
603
865
  type: 'function',
604
- name: 'depositForYield',
866
+ name: 'getUnderlyingBalances',
605
867
  inputs: [
606
868
  {
607
- name: '_asset',
869
+ name: '_vaultToken',
608
870
  type: 'address',
609
871
  },
610
872
  {
611
- name: '_amount',
873
+ name: '_vaultTokenBalance',
612
874
  type: 'uint256',
613
875
  },
876
+ ],
877
+ outputs: [
614
878
  {
615
- name: '_vaultAddr',
616
- type: 'address',
617
- },
879
+ name: '',
880
+ type: 'uint256',
881
+ },
618
882
  {
619
- name: '_extraData',
620
- type: 'bytes32',
883
+ name: '',
884
+ type: 'uint256',
621
885
  },
886
+ ],
887
+ },
888
+ {
889
+ stateMutability: 'view',
890
+ type: 'function',
891
+ name: 'getUnderlyingAmount',
892
+ inputs: [
622
893
  {
623
- name: '_recipient',
894
+ name: '_vaultToken',
624
895
  type: 'address',
625
896
  },
897
+ {
898
+ name: '_vaultTokenAmount',
899
+ type: 'uint256',
900
+ },
626
901
  ],
627
902
  outputs: [
628
903
  {
629
904
  name: '',
630
905
  type: 'uint256',
631
906
  },
907
+ ],
908
+ },
909
+ {
910
+ stateMutability: 'view',
911
+ type: 'function',
912
+ name: 'getUnderlyingAmountSafe',
913
+ inputs: [
914
+ {
915
+ name: '_vaultToken',
916
+ type: 'address',
917
+ },
918
+ {
919
+ name: '_vaultTokenBalance',
920
+ type: 'uint256',
921
+ },
922
+ ],
923
+ outputs: [
924
+ {
925
+ name: '',
926
+ type: 'uint256',
927
+ },
928
+ ],
929
+ },
930
+ {
931
+ stateMutability: 'view',
932
+ type: 'function',
933
+ name: 'getUnderlyingData',
934
+ inputs: [
935
+ {
936
+ name: '_vaultToken',
937
+ type: 'address',
938
+ },
939
+ {
940
+ name: '_vaultTokenAmount',
941
+ type: 'uint256',
942
+ },
943
+ ],
944
+ outputs: [
632
945
  {
633
946
  name: '',
634
947
  type: 'address',
@@ -644,51 +957,50 @@ export const abi = [
644
957
  ],
645
958
  },
646
959
  {
647
- stateMutability: 'nonpayable',
960
+ stateMutability: 'view',
648
961
  type: 'function',
649
- name: 'depositForYield',
962
+ name: 'getUnderlyingData',
650
963
  inputs: [
651
964
  {
652
- name: '_asset',
965
+ name: '_vaultToken',
653
966
  type: 'address',
654
967
  },
655
968
  {
656
- name: '_amount',
969
+ name: '_vaultTokenAmount',
657
970
  type: 'uint256',
658
971
  },
659
972
  {
660
- name: '_vaultAddr',
973
+ name: '_appraiser',
661
974
  type: 'address',
662
975
  },
976
+ ],
977
+ outputs: [
663
978
  {
664
- name: '_extraData',
665
- type: 'bytes32',
979
+ name: '',
980
+ type: 'address',
666
981
  },
667
982
  {
668
- name: '_recipient',
983
+ name: '',
984
+ type: 'uint256',
985
+ },
986
+ {
987
+ name: '',
988
+ type: 'uint256',
989
+ },
990
+ ],
991
+ },
992
+ {
993
+ stateMutability: 'view',
994
+ type: 'function',
995
+ name: 'getUsdValueOfVaultToken',
996
+ inputs: [
997
+ {
998
+ name: '_vaultToken',
669
999
  type: 'address',
670
1000
  },
671
1001
  {
672
- name: '_miniAddys',
673
- type: 'tuple',
674
- components: [
675
- {
676
- name: 'ledger',
677
- type: 'address',
678
- },
679
- {
680
- name: 'missionControl',
681
- type: 'address',
682
- },
683
- {
684
- name: 'legoBook',
685
- type: 'address',
686
- },
687
- {
688
- name: 'appraiser',
689
- type: 'address',
690
- },
691
- ],
1002
+ name: '_vaultTokenAmount',
1003
+ type: 'uint256',
692
1004
  },
693
1005
  ],
694
1006
  outputs: [
@@ -696,14 +1008,56 @@ export const abi = [
696
1008
  name: '',
697
1009
  type: 'uint256',
698
1010
  },
1011
+ ],
1012
+ },
1013
+ {
1014
+ stateMutability: 'view',
1015
+ type: 'function',
1016
+ name: 'getUsdValueOfVaultToken',
1017
+ inputs: [
699
1018
  {
700
- name: '',
1019
+ name: '_vaultToken',
701
1020
  type: 'address',
702
1021
  },
1022
+ {
1023
+ name: '_vaultTokenAmount',
1024
+ type: 'uint256',
1025
+ },
1026
+ {
1027
+ name: '_appraiser',
1028
+ type: 'address',
1029
+ },
1030
+ ],
1031
+ outputs: [
703
1032
  {
704
1033
  name: '',
705
1034
  type: 'uint256',
706
1035
  },
1036
+ ],
1037
+ },
1038
+ {
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ name: 'isRebasing',
1042
+ inputs: [],
1043
+ outputs: [
1044
+ {
1045
+ name: '',
1046
+ type: 'bool',
1047
+ },
1048
+ ],
1049
+ },
1050
+ {
1051
+ stateMutability: 'view',
1052
+ type: 'function',
1053
+ name: 'getPricePerShare',
1054
+ inputs: [
1055
+ {
1056
+ name: '_vaultToken',
1057
+ type: 'address',
1058
+ },
1059
+ ],
1060
+ outputs: [
707
1061
  {
708
1062
  name: '',
709
1063
  type: 'uint256',
@@ -711,24 +1065,41 @@ export const abi = [
711
1065
  ],
712
1066
  },
713
1067
  {
714
- stateMutability: 'nonpayable',
1068
+ stateMutability: 'view',
715
1069
  type: 'function',
716
- name: 'withdrawFromYield',
1070
+ name: 'getPricePerShare',
717
1071
  inputs: [
718
1072
  {
719
1073
  name: '_vaultToken',
720
1074
  type: 'address',
721
1075
  },
722
1076
  {
723
- name: '_amount',
1077
+ name: '_decimals',
724
1078
  type: 'uint256',
725
1079
  },
1080
+ ],
1081
+ outputs: [
726
1082
  {
727
- name: '_extraData',
728
- type: 'bytes32',
1083
+ name: '',
1084
+ type: 'uint256',
729
1085
  },
1086
+ ],
1087
+ },
1088
+ {
1089
+ stateMutability: 'view',
1090
+ type: 'function',
1091
+ name: 'getVaultTokenAmount',
1092
+ inputs: [
730
1093
  {
731
- name: '_recipient',
1094
+ name: '_asset',
1095
+ type: 'address',
1096
+ },
1097
+ {
1098
+ name: '_assetAmount',
1099
+ type: 'uint256',
1100
+ },
1101
+ {
1102
+ name: '_vaultToken',
732
1103
  type: 'address',
733
1104
  },
734
1105
  ],
@@ -737,14 +1108,53 @@ export const abi = [
737
1108
  name: '',
738
1109
  type: 'uint256',
739
1110
  },
1111
+ ],
1112
+ },
1113
+ {
1114
+ stateMutability: 'view',
1115
+ type: 'function',
1116
+ name: 'totalAssets',
1117
+ inputs: [
1118
+ {
1119
+ name: '_vaultToken',
1120
+ type: 'address',
1121
+ },
1122
+ ],
1123
+ outputs: [
740
1124
  {
741
1125
  name: '',
1126
+ type: 'uint256',
1127
+ },
1128
+ ],
1129
+ },
1130
+ {
1131
+ stateMutability: 'view',
1132
+ type: 'function',
1133
+ name: 'totalBorrows',
1134
+ inputs: [
1135
+ {
1136
+ name: '_vaultToken',
742
1137
  type: 'address',
743
1138
  },
1139
+ ],
1140
+ outputs: [
744
1141
  {
745
1142
  name: '',
746
1143
  type: 'uint256',
747
1144
  },
1145
+ ],
1146
+ },
1147
+ {
1148
+ stateMutability: 'view',
1149
+ type: 'function',
1150
+ name: 'getAvailLiquidity',
1151
+ inputs: [
1152
+ {
1153
+ name: '_vaultToken',
1154
+ type: 'address',
1155
+ },
1156
+ ],
1157
+ outputs: [
748
1158
  {
749
1159
  name: '',
750
1160
  type: 'uint256',
@@ -752,91 +1162,184 @@ export const abi = [
752
1162
  ],
753
1163
  },
754
1164
  {
755
- stateMutability: 'nonpayable',
1165
+ stateMutability: 'view',
756
1166
  type: 'function',
757
- name: 'withdrawFromYield',
1167
+ name: 'getUtilizationRatio',
758
1168
  inputs: [
759
1169
  {
760
1170
  name: '_vaultToken',
761
1171
  type: 'address',
762
1172
  },
1173
+ ],
1174
+ outputs: [
763
1175
  {
764
- name: '_amount',
1176
+ name: '',
765
1177
  type: 'uint256',
766
1178
  },
1179
+ ],
1180
+ },
1181
+ {
1182
+ stateMutability: 'view',
1183
+ type: 'function',
1184
+ name: 'isEligibleForYieldBonus',
1185
+ inputs: [
767
1186
  {
768
- name: '_extraData',
769
- type: 'bytes32',
1187
+ name: '_asset',
1188
+ type: 'address',
770
1189
  },
1190
+ ],
1191
+ outputs: [
771
1192
  {
772
- name: '_recipient',
1193
+ name: '',
1194
+ type: 'bool',
1195
+ },
1196
+ ],
1197
+ },
1198
+ {
1199
+ stateMutability: 'view',
1200
+ type: 'function',
1201
+ name: 'getWithdrawalFees',
1202
+ inputs: [
1203
+ {
1204
+ name: '_vaultToken',
773
1205
  type: 'address',
774
1206
  },
775
1207
  {
776
- name: '_miniAddys',
1208
+ name: '_vaultTokenAmount',
1209
+ type: 'uint256',
1210
+ },
1211
+ ],
1212
+ outputs: [
1213
+ {
1214
+ name: '',
1215
+ type: 'uint256',
1216
+ },
1217
+ ],
1218
+ },
1219
+ {
1220
+ stateMutability: 'view',
1221
+ type: 'function',
1222
+ name: 'canRegisterVaultToken',
1223
+ inputs: [
1224
+ {
1225
+ name: '_asset',
1226
+ type: 'address',
1227
+ },
1228
+ {
1229
+ name: '_vaultToken',
1230
+ type: 'address',
1231
+ },
1232
+ ],
1233
+ outputs: [
1234
+ {
1235
+ name: '',
1236
+ type: 'bool',
1237
+ },
1238
+ ],
1239
+ },
1240
+ {
1241
+ stateMutability: 'nonpayable',
1242
+ type: 'function',
1243
+ name: 'registerVaultTokenLocally',
1244
+ inputs: [
1245
+ {
1246
+ name: '_asset',
1247
+ type: 'address',
1248
+ },
1249
+ {
1250
+ name: '_vaultAddr',
1251
+ type: 'address',
1252
+ },
1253
+ ],
1254
+ outputs: [
1255
+ {
1256
+ name: '',
777
1257
  type: 'tuple',
778
1258
  components: [
779
1259
  {
780
- name: 'ledger',
781
- type: 'address',
782
- },
783
- {
784
- name: 'missionControl',
1260
+ name: 'underlyingAsset',
785
1261
  type: 'address',
786
1262
  },
787
1263
  {
788
- name: 'legoBook',
789
- type: 'address',
1264
+ name: 'decimals',
1265
+ type: 'uint256',
790
1266
  },
791
1267
  {
792
- name: 'appraiser',
793
- type: 'address',
1268
+ name: 'lastAveragePricePerShare',
1269
+ type: 'uint256',
794
1270
  },
795
1271
  ],
796
1272
  },
797
1273
  ],
798
- outputs: [
1274
+ },
1275
+ {
1276
+ stateMutability: 'nonpayable',
1277
+ type: 'function',
1278
+ name: 'deregisterVaultTokenLocally',
1279
+ inputs: [
799
1280
  {
800
- name: '',
801
- type: 'uint256',
1281
+ name: '_asset',
1282
+ type: 'address',
802
1283
  },
803
1284
  {
804
- name: '',
1285
+ name: '_vaultAddr',
805
1286
  type: 'address',
806
1287
  },
1288
+ ],
1289
+ outputs: [],
1290
+ },
1291
+ {
1292
+ stateMutability: 'nonpayable',
1293
+ type: 'function',
1294
+ name: 'addPriceSnapshot',
1295
+ inputs: [
807
1296
  {
808
- name: '',
809
- type: 'uint256',
1297
+ name: '_vaultToken',
1298
+ type: 'address',
810
1299
  },
1300
+ ],
1301
+ outputs: [
811
1302
  {
812
1303
  name: '',
813
- type: 'uint256',
1304
+ type: 'bool',
814
1305
  },
815
1306
  ],
816
1307
  },
817
1308
  {
818
1309
  stateMutability: 'nonpayable',
819
1310
  type: 'function',
820
- name: 'claimRewards',
1311
+ name: 'depositForYield',
821
1312
  inputs: [
822
1313
  {
823
- name: '_user',
1314
+ name: '_asset',
824
1315
  type: 'address',
825
1316
  },
826
1317
  {
827
- name: '_rewardToken',
828
- type: 'address',
1318
+ name: '_amount',
1319
+ type: 'uint256',
829
1320
  },
830
1321
  {
831
- name: '_rewardAmount',
832
- type: 'uint256',
1322
+ name: '_vaultAddr',
1323
+ type: 'address',
833
1324
  },
834
1325
  {
835
1326
  name: '_extraData',
836
1327
  type: 'bytes32',
837
1328
  },
1329
+ {
1330
+ name: '_recipient',
1331
+ type: 'address',
1332
+ },
838
1333
  ],
839
1334
  outputs: [
1335
+ {
1336
+ name: '',
1337
+ type: 'uint256',
1338
+ },
1339
+ {
1340
+ name: '',
1341
+ type: 'address',
1342
+ },
840
1343
  {
841
1344
  name: '',
842
1345
  type: 'uint256',
@@ -850,24 +1353,28 @@ export const abi = [
850
1353
  {
851
1354
  stateMutability: 'nonpayable',
852
1355
  type: 'function',
853
- name: 'claimRewards',
1356
+ name: 'depositForYield',
854
1357
  inputs: [
855
1358
  {
856
- name: '_user',
1359
+ name: '_asset',
857
1360
  type: 'address',
858
1361
  },
859
1362
  {
860
- name: '_rewardToken',
861
- type: 'address',
1363
+ name: '_amount',
1364
+ type: 'uint256',
862
1365
  },
863
1366
  {
864
- name: '_rewardAmount',
865
- type: 'uint256',
1367
+ name: '_vaultAddr',
1368
+ type: 'address',
866
1369
  },
867
1370
  {
868
1371
  name: '_extraData',
869
1372
  type: 'bytes32',
870
1373
  },
1374
+ {
1375
+ name: '_recipient',
1376
+ type: 'address',
1377
+ },
871
1378
  {
872
1379
  name: '_miniAddys',
873
1380
  type: 'tuple',
@@ -898,118 +1405,116 @@ export const abi = [
898
1405
  },
899
1406
  {
900
1407
  name: '',
901
- type: 'uint256',
1408
+ type: 'address',
902
1409
  },
903
- ],
904
- },
905
- {
906
- stateMutability: 'view',
907
- type: 'function',
908
- name: 'hasClaimableRewards',
909
- inputs: [
910
1410
  {
911
- name: '_user',
912
- type: 'address',
1411
+ name: '',
1412
+ type: 'uint256',
913
1413
  },
914
- ],
915
- outputs: [
916
1414
  {
917
1415
  name: '',
918
- type: 'bool',
1416
+ type: 'uint256',
919
1417
  },
920
1418
  ],
921
1419
  },
922
1420
  {
923
1421
  stateMutability: 'nonpayable',
924
1422
  type: 'function',
925
- name: 'setMorphoRewardsAddr',
1423
+ name: 'withdrawFromYield',
926
1424
  inputs: [
927
1425
  {
928
- name: '_addr',
1426
+ name: '_vaultToken',
929
1427
  type: 'address',
930
1428
  },
931
- ],
932
- outputs: [
933
1429
  {
934
- name: '',
935
- type: 'bool',
1430
+ name: '_amount',
1431
+ type: 'uint256',
936
1432
  },
937
- ],
938
- },
939
- {
940
- stateMutability: 'view',
941
- type: 'function',
942
- name: 'isVaultToken',
943
- inputs: [
944
1433
  {
945
- name: '_vaultToken',
1434
+ name: '_extraData',
1435
+ type: 'bytes32',
1436
+ },
1437
+ {
1438
+ name: '_recipient',
946
1439
  type: 'address',
947
1440
  },
948
1441
  ],
949
1442
  outputs: [
950
1443
  {
951
1444
  name: '',
952
- type: 'bool',
1445
+ type: 'uint256',
953
1446
  },
954
- ],
955
- },
956
- {
957
- stateMutability: 'view',
958
- type: 'function',
959
- name: 'getUnderlyingAsset',
960
- inputs: [
961
1447
  {
962
- name: '_vaultToken',
1448
+ name: '',
963
1449
  type: 'address',
964
1450
  },
965
- ],
966
- outputs: [
967
1451
  {
968
1452
  name: '',
969
- type: 'address',
1453
+ type: 'uint256',
1454
+ },
1455
+ {
1456
+ name: '',
1457
+ type: 'uint256',
970
1458
  },
971
1459
  ],
972
1460
  },
973
1461
  {
974
- stateMutability: 'view',
1462
+ stateMutability: 'nonpayable',
975
1463
  type: 'function',
976
- name: 'getUnderlyingAmount',
1464
+ name: 'withdrawFromYield',
977
1465
  inputs: [
978
1466
  {
979
1467
  name: '_vaultToken',
980
1468
  type: 'address',
981
1469
  },
982
1470
  {
983
- name: '_vaultTokenAmount',
1471
+ name: '_amount',
984
1472
  type: 'uint256',
985
1473
  },
986
- ],
987
- outputs: [
988
1474
  {
989
- name: '',
990
- type: 'uint256',
1475
+ name: '_extraData',
1476
+ type: 'bytes32',
991
1477
  },
992
- ],
993
- },
994
- {
995
- stateMutability: 'view',
996
- type: 'function',
997
- name: 'getVaultTokenAmount',
998
- inputs: [
999
1478
  {
1000
- name: '_asset',
1479
+ name: '_recipient',
1001
1480
  type: 'address',
1002
1481
  },
1003
1482
  {
1004
- name: '_assetAmount',
1483
+ name: '_miniAddys',
1484
+ type: 'tuple',
1485
+ components: [
1486
+ {
1487
+ name: 'ledger',
1488
+ type: 'address',
1489
+ },
1490
+ {
1491
+ name: 'missionControl',
1492
+ type: 'address',
1493
+ },
1494
+ {
1495
+ name: 'legoBook',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: 'appraiser',
1500
+ type: 'address',
1501
+ },
1502
+ ],
1503
+ },
1504
+ ],
1505
+ outputs: [
1506
+ {
1507
+ name: '',
1005
1508
  type: 'uint256',
1006
1509
  },
1007
1510
  {
1008
- name: '_vaultToken',
1009
- type: 'address',
1511
+ name: '',
1512
+ type: 'address',
1513
+ },
1514
+ {
1515
+ name: '',
1516
+ type: 'uint256',
1010
1517
  },
1011
- ],
1012
- outputs: [
1013
1518
  {
1014
1519
  name: '',
1015
1520
  type: 'uint256',
@@ -1017,42 +1522,80 @@ export const abi = [
1017
1522
  ],
1018
1523
  },
1019
1524
  {
1020
- stateMutability: 'view',
1525
+ stateMutability: 'nonpayable',
1021
1526
  type: 'function',
1022
- name: 'getUsdValueOfVaultToken',
1527
+ name: 'claimIncentives',
1023
1528
  inputs: [
1024
1529
  {
1025
- name: '_vaultToken',
1530
+ name: '_user',
1026
1531
  type: 'address',
1027
1532
  },
1028
1533
  {
1029
- name: '_vaultTokenAmount',
1534
+ name: '_rewardToken',
1535
+ type: 'address',
1536
+ },
1537
+ {
1538
+ name: '_rewardAmount',
1030
1539
  type: 'uint256',
1031
1540
  },
1541
+ {
1542
+ name: '_proofs',
1543
+ type: 'bytes32[]',
1544
+ },
1032
1545
  ],
1033
1546
  outputs: [
1034
1547
  {
1035
1548
  name: '',
1036
1549
  type: 'uint256',
1037
1550
  },
1551
+ {
1552
+ name: '',
1553
+ type: 'uint256',
1554
+ },
1038
1555
  ],
1039
1556
  },
1040
1557
  {
1041
- stateMutability: 'view',
1558
+ stateMutability: 'nonpayable',
1042
1559
  type: 'function',
1043
- name: 'getUsdValueOfVaultToken',
1560
+ name: 'claimIncentives',
1044
1561
  inputs: [
1045
1562
  {
1046
- name: '_vaultToken',
1563
+ name: '_user',
1047
1564
  type: 'address',
1048
1565
  },
1049
1566
  {
1050
- name: '_vaultTokenAmount',
1567
+ name: '_rewardToken',
1568
+ type: 'address',
1569
+ },
1570
+ {
1571
+ name: '_rewardAmount',
1051
1572
  type: 'uint256',
1052
1573
  },
1053
1574
  {
1054
- name: '_appraiser',
1055
- type: 'address',
1575
+ name: '_proofs',
1576
+ type: 'bytes32[]',
1577
+ },
1578
+ {
1579
+ name: '_miniAddys',
1580
+ type: 'tuple',
1581
+ components: [
1582
+ {
1583
+ name: 'ledger',
1584
+ type: 'address',
1585
+ },
1586
+ {
1587
+ name: 'missionControl',
1588
+ type: 'address',
1589
+ },
1590
+ {
1591
+ name: 'legoBook',
1592
+ type: 'address',
1593
+ },
1594
+ {
1595
+ name: 'appraiser',
1596
+ type: 'address',
1597
+ },
1598
+ ],
1056
1599
  },
1057
1600
  ],
1058
1601
  outputs: [
@@ -1060,27 +1603,35 @@ export const abi = [
1060
1603
  name: '',
1061
1604
  type: 'uint256',
1062
1605
  },
1606
+ {
1607
+ name: '',
1608
+ type: 'uint256',
1609
+ },
1063
1610
  ],
1064
1611
  },
1065
1612
  {
1066
- stateMutability: 'view',
1613
+ stateMutability: 'nonpayable',
1067
1614
  type: 'function',
1068
- name: 'getUnderlyingData',
1615
+ name: 'claimRewards',
1069
1616
  inputs: [
1070
1617
  {
1071
- name: '_vaultToken',
1618
+ name: '_user',
1072
1619
  type: 'address',
1073
1620
  },
1074
1621
  {
1075
- name: '_vaultTokenAmount',
1622
+ name: '_rewardToken',
1623
+ type: 'address',
1624
+ },
1625
+ {
1626
+ name: '_rewardAmount',
1076
1627
  type: 'uint256',
1077
1628
  },
1078
- ],
1079
- outputs: [
1080
1629
  {
1081
- name: '',
1082
- type: 'address',
1630
+ name: '_extraData',
1631
+ type: 'bytes32',
1083
1632
  },
1633
+ ],
1634
+ outputs: [
1084
1635
  {
1085
1636
  name: '',
1086
1637
  type: 'uint256',
@@ -1092,28 +1643,50 @@ export const abi = [
1092
1643
  ],
1093
1644
  },
1094
1645
  {
1095
- stateMutability: 'view',
1646
+ stateMutability: 'nonpayable',
1096
1647
  type: 'function',
1097
- name: 'getUnderlyingData',
1648
+ name: 'claimRewards',
1098
1649
  inputs: [
1099
1650
  {
1100
- name: '_vaultToken',
1651
+ name: '_user',
1101
1652
  type: 'address',
1102
1653
  },
1103
1654
  {
1104
- name: '_vaultTokenAmount',
1655
+ name: '_rewardToken',
1656
+ type: 'address',
1657
+ },
1658
+ {
1659
+ name: '_rewardAmount',
1105
1660
  type: 'uint256',
1106
1661
  },
1107
1662
  {
1108
- name: '_appraiser',
1109
- type: 'address',
1663
+ name: '_extraData',
1664
+ type: 'bytes32',
1110
1665
  },
1111
- ],
1112
- outputs: [
1113
1666
  {
1114
- name: '',
1115
- type: 'address',
1667
+ name: '_miniAddys',
1668
+ type: 'tuple',
1669
+ components: [
1670
+ {
1671
+ name: 'ledger',
1672
+ type: 'address',
1673
+ },
1674
+ {
1675
+ name: 'missionControl',
1676
+ type: 'address',
1677
+ },
1678
+ {
1679
+ name: 'legoBook',
1680
+ type: 'address',
1681
+ },
1682
+ {
1683
+ name: 'appraiser',
1684
+ type: 'address',
1685
+ },
1686
+ ],
1116
1687
  },
1688
+ ],
1689
+ outputs: [
1117
1690
  {
1118
1691
  name: '',
1119
1692
  type: 'uint256',
@@ -1127,89 +1700,65 @@ export const abi = [
1127
1700
  {
1128
1701
  stateMutability: 'view',
1129
1702
  type: 'function',
1130
- name: 'totalAssets',
1703
+ name: 'hasClaimableRewards',
1131
1704
  inputs: [
1132
1705
  {
1133
- name: '_vaultToken',
1706
+ name: '_user',
1134
1707
  type: 'address',
1135
1708
  },
1136
1709
  ],
1137
1710
  outputs: [
1138
1711
  {
1139
1712
  name: '',
1140
- type: 'uint256',
1713
+ type: 'bool',
1141
1714
  },
1142
1715
  ],
1143
1716
  },
1144
1717
  {
1145
- stateMutability: 'view',
1718
+ stateMutability: 'nonpayable',
1146
1719
  type: 'function',
1147
- name: 'totalBorrows',
1720
+ name: 'setMorphoRewardsAddr',
1148
1721
  inputs: [
1149
1722
  {
1150
- name: '_vaultToken',
1723
+ name: '_addr',
1151
1724
  type: 'address',
1152
1725
  },
1153
1726
  ],
1154
1727
  outputs: [
1155
1728
  {
1156
1729
  name: '',
1157
- type: 'uint256',
1730
+ type: 'bool',
1158
1731
  },
1159
1732
  ],
1160
1733
  },
1161
1734
  {
1162
1735
  stateMutability: 'view',
1163
1736
  type: 'function',
1164
- name: 'getPricePerShare',
1737
+ name: 'getAccessForLego',
1165
1738
  inputs: [
1166
1739
  {
1167
- name: '_asset',
1740
+ name: '_user',
1168
1741
  type: 'address',
1169
1742
  },
1170
1743
  {
1171
- name: '_decimals',
1744
+ name: '_action',
1172
1745
  type: 'uint256',
1173
1746
  },
1174
1747
  ],
1175
1748
  outputs: [
1176
1749
  {
1177
1750
  name: '',
1178
- type: 'uint256',
1179
- },
1180
- ],
1181
- },
1182
- {
1183
- stateMutability: 'nonpayable',
1184
- type: 'function',
1185
- name: 'addAssetOpportunity',
1186
- inputs: [
1187
- {
1188
- name: '_asset',
1189
- type: 'address',
1190
- },
1191
- {
1192
- name: '_vaultAddr',
1193
1751
  type: 'address',
1194
1752
  },
1195
- ],
1196
- outputs: [],
1197
- },
1198
- {
1199
- stateMutability: 'nonpayable',
1200
- type: 'function',
1201
- name: 'removeAssetOpportunity',
1202
- inputs: [
1203
1753
  {
1204
- name: '_asset',
1205
- type: 'address',
1754
+ name: '',
1755
+ type: 'string',
1206
1756
  },
1207
1757
  {
1208
- name: '_vaultAddr',
1209
- type: 'address',
1758
+ name: '',
1759
+ type: 'uint256',
1210
1760
  },
1211
1761
  ],
1212
- outputs: [],
1213
1762
  },
1214
1763
  {
1215
1764
  stateMutability: 'nonpayable',
@@ -2510,57 +3059,19 @@ export const abi = [
2510
3059
  {
2511
3060
  stateMutability: 'view',
2512
3061
  type: 'function',
2513
- name: 'getAccessForLego',
2514
- inputs: [
2515
- {
2516
- name: '_user',
2517
- type: 'address',
2518
- },
2519
- {
2520
- name: '_action',
2521
- type: 'uint256',
2522
- },
2523
- ],
3062
+ name: 'morphoRewards',
3063
+ inputs: [],
2524
3064
  outputs: [
2525
3065
  {
2526
3066
  name: '',
2527
3067
  type: 'address',
2528
3068
  },
2529
- {
2530
- name: '',
2531
- type: 'string',
2532
- },
2533
- {
2534
- name: '',
2535
- type: 'uint256',
2536
- },
2537
- ],
2538
- },
2539
- {
2540
- stateMutability: 'view',
2541
- type: 'function',
2542
- name: 'getPrice',
2543
- inputs: [
2544
- {
2545
- name: '_asset',
2546
- type: 'address',
2547
- },
2548
- {
2549
- name: '_decimals',
2550
- type: 'uint256',
2551
- },
2552
- ],
2553
- outputs: [
2554
- {
2555
- name: '',
2556
- type: 'uint256',
2557
- },
2558
3069
  ],
2559
3070
  },
2560
3071
  {
2561
3072
  stateMutability: 'view',
2562
3073
  type: 'function',
2563
- name: 'morphoRewards',
3074
+ name: 'MORPHO_FACTORY',
2564
3075
  inputs: [],
2565
3076
  outputs: [
2566
3077
  {
@@ -2572,7 +3083,7 @@ export const abi = [
2572
3083
  {
2573
3084
  stateMutability: 'view',
2574
3085
  type: 'function',
2575
- name: 'MORPHO_FACTORY',
3086
+ name: 'MORPHO_FACTORY_LEGACY',
2576
3087
  inputs: [],
2577
3088
  outputs: [
2578
3089
  {
@@ -2584,7 +3095,7 @@ export const abi = [
2584
3095
  {
2585
3096
  stateMutability: 'view',
2586
3097
  type: 'function',
2587
- name: 'MORPHO_FACTORY_LEGACY',
3098
+ name: 'RIPE_REGISTRY',
2588
3099
  inputs: [],
2589
3100
  outputs: [
2590
3101
  {
@@ -2613,11 +3124,15 @@ export const abi = [
2613
3124
  name: '_morphoRewardsAddr',
2614
3125
  type: 'address',
2615
3126
  },
3127
+ {
3128
+ name: '_ripeRegistry',
3129
+ type: 'address',
3130
+ },
2616
3131
  ],
2617
3132
  outputs: [],
2618
3133
  },
2619
3134
  ];
2620
- export const deployAddress = '0xd7a412C42c7430802e2A60F8145c36A4c6d0bA84';
3135
+ export const deployAddress = '0x14852dcEEA98d5E781335bA8ea8d4B3a14508868';
2621
3136
  function getRequest(method, args, contractAddressOrOptions) {
2622
3137
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2623
3138
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2653,36 +3168,46 @@ export const call = {
2653
3168
  getAssets: (...args) => getRequest('getAssets', args),
2654
3169
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2655
3170
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2656
- isPaused: (...args) => getRequest('isPaused', args),
3171
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3172
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3173
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3174
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2657
3175
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2658
3176
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2659
3177
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2660
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2661
3178
  assets: (...args) => getRequest('assets', args),
2662
3179
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2663
3180
  numAssets: (...args) => getRequest('numAssets', args),
3181
+ snapShotData: (...args) => getRequest('snapShotData', args),
3182
+ snapShots: (...args) => getRequest('snapShots', args),
3183
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3184
+ isPaused: (...args) => getRequest('isPaused', args),
2664
3185
  hasCapability: (...args) => getRequest('hasCapability', args),
2665
3186
  getRegistries: (...args) => getRequest('getRegistries', args),
2666
3187
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2667
3188
  isDexLego: (...args) => getRequest('isDexLego', args),
2668
- isRebasing: (...args) => getRequest('isRebasing', args),
2669
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2670
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2671
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2672
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2673
3189
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3190
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2674
3191
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2675
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2676
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3192
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2677
3193
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3194
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3195
+ isRebasing: (...args) => getRequest('isRebasing', args),
3196
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3197
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2678
3198
  totalAssets: (...args) => getRequest('totalAssets', args),
2679
3199
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2680
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3200
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3201
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3202
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3203
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3204
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3205
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2681
3206
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2682
- getPrice: (...args) => getRequest('getPrice', args),
2683
3207
  morphoRewards: (...args) => getRequest('morphoRewards', args),
2684
3208
  MORPHO_FACTORY: (...args) => getRequest('MORPHO_FACTORY', args),
2685
3209
  MORPHO_FACTORY_LEGACY: (...args) => getRequest('MORPHO_FACTORY_LEGACY', args),
3210
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2686
3211
  };
2687
3212
  function getMutation(functionName) {
2688
3213
  return {
@@ -2697,12 +3222,15 @@ export const mutation = {
2697
3222
  pause: getMutation('pause'),
2698
3223
  recoverFunds: getMutation('recoverFunds'),
2699
3224
  recoverFundsMany: getMutation('recoverFundsMany'),
3225
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3226
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3227
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3228
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2700
3229
  depositForYield: getMutation('depositForYield'),
2701
3230
  withdrawFromYield: getMutation('withdrawFromYield'),
3231
+ claimIncentives: getMutation('claimIncentives'),
2702
3232
  claimRewards: getMutation('claimRewards'),
2703
3233
  setMorphoRewardsAddr: getMutation('setMorphoRewardsAddr'),
2704
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2705
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2706
3234
  swapTokens: getMutation('swapTokens'),
2707
3235
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2708
3236
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2727,46 +3255,59 @@ export function toSdk(publicClient, walletClient) {
2727
3255
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2728
3256
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2729
3257
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2730
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3258
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3259
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3260
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3261
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2731
3262
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2732
3263
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2733
3264
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2734
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2735
3265
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2736
3266
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2737
3267
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3268
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3269
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3270
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3271
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2738
3272
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2739
3273
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2740
3274
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2741
3275
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2742
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2743
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2744
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2745
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2746
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2747
3276
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3277
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2748
3278
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2749
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2750
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3279
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2751
3280
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3281
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3282
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3283
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3284
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2752
3285
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2753
3286
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2754
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3287
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3288
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3289
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3290
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3291
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3292
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2755
3293
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2756
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2757
3294
  morphoRewards: (...args) => singleQuery(publicClient, call.morphoRewards(...args)),
2758
3295
  MORPHO_FACTORY: (...args) => singleQuery(publicClient, call.MORPHO_FACTORY(...args)),
2759
3296
  MORPHO_FACTORY_LEGACY: (...args) => singleQuery(publicClient, call.MORPHO_FACTORY_LEGACY(...args)),
3297
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2760
3298
  // Mutations
2761
3299
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2762
3300
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2763
3301
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3302
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3303
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3304
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3305
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2764
3306
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2765
3307
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3308
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2766
3309
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2767
3310
  setMorphoRewardsAddr: (...args) => mutate(walletClient, mutation.setMorphoRewardsAddr)(...args),
2768
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2769
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2770
3311
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2771
3312
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2772
3313
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),