@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
@@ -122,6 +122,33 @@ export const abi = [
122
122
  anonymous: false,
123
123
  type: 'event',
124
124
  },
125
+ {
126
+ name: 'SnapShotPriceConfigSet',
127
+ inputs: [
128
+ {
129
+ name: 'minSnapshotDelay',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ {
134
+ name: 'maxNumSnapshots',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ {
139
+ name: 'maxUpsideDeviation',
140
+ type: 'uint256',
141
+ indexed: false,
142
+ },
143
+ {
144
+ name: 'staleTime',
145
+ type: 'uint256',
146
+ indexed: false,
147
+ },
148
+ ],
149
+ anonymous: false,
150
+ type: 'event',
151
+ },
125
152
  {
126
153
  name: 'AssetOpportunityAdded',
127
154
  inputs: [
@@ -156,6 +183,33 @@ export const abi = [
156
183
  anonymous: false,
157
184
  type: 'event',
158
185
  },
186
+ {
187
+ name: 'PricePerShareSnapShotAdded',
188
+ inputs: [
189
+ {
190
+ name: 'vaultToken',
191
+ type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'totalSupply',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'pricePerShare',
201
+ type: 'uint256',
202
+ indexed: false,
203
+ },
204
+ {
205
+ name: 'lastAveragePricePerShare',
206
+ type: 'uint256',
207
+ indexed: false,
208
+ },
209
+ ],
210
+ anonymous: false,
211
+ type: 'event',
212
+ },
159
213
  {
160
214
  stateMutability: 'view',
161
215
  type: 'function',
@@ -210,6 +264,10 @@ export const abi = [
210
264
  name: 'billing',
211
265
  type: 'address',
212
266
  },
267
+ {
268
+ name: 'vaultRegistry',
269
+ type: 'address',
270
+ },
213
271
  ],
214
272
  },
215
273
  ],
@@ -352,8 +410,113 @@ export const abi = [
352
410
  {
353
411
  stateMutability: 'view',
354
412
  type: 'function',
355
- name: 'isPaused',
356
- inputs: [],
413
+ name: 'getWeightedPricePerShare',
414
+ inputs: [
415
+ {
416
+ name: '_vaultToken',
417
+ type: 'address',
418
+ },
419
+ ],
420
+ outputs: [
421
+ {
422
+ name: '',
423
+ type: 'uint256',
424
+ },
425
+ ],
426
+ },
427
+ {
428
+ stateMutability: 'view',
429
+ type: 'function',
430
+ name: 'getLatestSnapshot',
431
+ inputs: [
432
+ {
433
+ name: '_vaultToken',
434
+ type: 'address',
435
+ },
436
+ {
437
+ name: '_pricePerShare',
438
+ type: 'uint256',
439
+ },
440
+ ],
441
+ outputs: [
442
+ {
443
+ name: '',
444
+ type: 'tuple',
445
+ components: [
446
+ {
447
+ name: 'totalSupply',
448
+ type: 'uint256',
449
+ },
450
+ {
451
+ name: 'pricePerShare',
452
+ type: 'uint256',
453
+ },
454
+ {
455
+ name: 'lastUpdate',
456
+ type: 'uint256',
457
+ },
458
+ ],
459
+ },
460
+ ],
461
+ },
462
+ {
463
+ stateMutability: 'nonpayable',
464
+ type: 'function',
465
+ name: 'setSnapShotPriceConfig',
466
+ inputs: [
467
+ {
468
+ name: '_config',
469
+ type: 'tuple',
470
+ components: [
471
+ {
472
+ name: 'minSnapshotDelay',
473
+ type: 'uint256',
474
+ },
475
+ {
476
+ name: 'maxNumSnapshots',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ name: 'maxUpsideDeviation',
481
+ type: 'uint256',
482
+ },
483
+ {
484
+ name: 'staleTime',
485
+ type: 'uint256',
486
+ },
487
+ ],
488
+ },
489
+ ],
490
+ outputs: [],
491
+ },
492
+ {
493
+ stateMutability: 'view',
494
+ type: 'function',
495
+ name: 'isValidPriceConfig',
496
+ inputs: [
497
+ {
498
+ name: '_config',
499
+ type: 'tuple',
500
+ components: [
501
+ {
502
+ name: 'minSnapshotDelay',
503
+ type: 'uint256',
504
+ },
505
+ {
506
+ name: 'maxNumSnapshots',
507
+ type: 'uint256',
508
+ },
509
+ {
510
+ name: 'maxUpsideDeviation',
511
+ type: 'uint256',
512
+ },
513
+ {
514
+ name: 'staleTime',
515
+ type: 'uint256',
516
+ },
517
+ ],
518
+ },
519
+ ],
357
520
  outputs: [
358
521
  {
359
522
  name: '',
@@ -361,6 +524,37 @@ export const abi = [
361
524
  },
362
525
  ],
363
526
  },
527
+ {
528
+ stateMutability: 'view',
529
+ type: 'function',
530
+ name: 'vaultToAsset',
531
+ inputs: [
532
+ {
533
+ name: 'arg0',
534
+ type: 'address',
535
+ },
536
+ ],
537
+ outputs: [
538
+ {
539
+ name: '',
540
+ type: 'tuple',
541
+ components: [
542
+ {
543
+ name: 'underlyingAsset',
544
+ type: 'address',
545
+ },
546
+ {
547
+ name: 'decimals',
548
+ type: 'uint256',
549
+ },
550
+ {
551
+ name: 'lastAveragePricePerShare',
552
+ type: 'uint256',
553
+ },
554
+ ],
555
+ },
556
+ ],
557
+ },
364
558
  {
365
559
  stateMutability: 'view',
366
560
  type: 'function',
@@ -423,11 +617,11 @@ export const abi = [
423
617
  {
424
618
  stateMutability: 'view',
425
619
  type: 'function',
426
- name: 'vaultToAsset',
620
+ name: 'assets',
427
621
  inputs: [
428
622
  {
429
623
  name: 'arg0',
430
- type: 'address',
624
+ type: 'uint256',
431
625
  },
432
626
  ],
433
627
  outputs: [
@@ -440,24 +634,36 @@ export const abi = [
440
634
  {
441
635
  stateMutability: 'view',
442
636
  type: 'function',
443
- name: 'assets',
637
+ name: 'indexOfAsset',
444
638
  inputs: [
445
639
  {
446
640
  name: 'arg0',
641
+ type: 'address',
642
+ },
643
+ ],
644
+ outputs: [
645
+ {
646
+ name: '',
447
647
  type: 'uint256',
448
648
  },
449
649
  ],
650
+ },
651
+ {
652
+ stateMutability: 'view',
653
+ type: 'function',
654
+ name: 'numAssets',
655
+ inputs: [],
450
656
  outputs: [
451
657
  {
452
658
  name: '',
453
- type: 'address',
659
+ type: 'uint256',
454
660
  },
455
661
  ],
456
662
  },
457
663
  {
458
664
  stateMutability: 'view',
459
665
  type: 'function',
460
- name: 'indexOfAsset',
666
+ name: 'snapShotData',
461
667
  inputs: [
462
668
  {
463
669
  name: 'arg0',
@@ -467,19 +673,108 @@ export const abi = [
467
673
  outputs: [
468
674
  {
469
675
  name: '',
676
+ type: 'tuple',
677
+ components: [
678
+ {
679
+ name: 'lastSnapShot',
680
+ type: 'tuple',
681
+ components: [
682
+ {
683
+ name: 'totalSupply',
684
+ type: 'uint256',
685
+ },
686
+ {
687
+ name: 'pricePerShare',
688
+ type: 'uint256',
689
+ },
690
+ {
691
+ name: 'lastUpdate',
692
+ type: 'uint256',
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ name: 'nextIndex',
698
+ type: 'uint256',
699
+ },
700
+ ],
701
+ },
702
+ ],
703
+ },
704
+ {
705
+ stateMutability: 'view',
706
+ type: 'function',
707
+ name: 'snapShots',
708
+ inputs: [
709
+ {
710
+ name: 'arg0',
711
+ type: 'address',
712
+ },
713
+ {
714
+ name: 'arg1',
470
715
  type: 'uint256',
471
716
  },
472
717
  ],
718
+ outputs: [
719
+ {
720
+ name: '',
721
+ type: 'tuple',
722
+ components: [
723
+ {
724
+ name: 'totalSupply',
725
+ type: 'uint256',
726
+ },
727
+ {
728
+ name: 'pricePerShare',
729
+ type: 'uint256',
730
+ },
731
+ {
732
+ name: 'lastUpdate',
733
+ type: 'uint256',
734
+ },
735
+ ],
736
+ },
737
+ ],
473
738
  },
474
739
  {
475
740
  stateMutability: 'view',
476
741
  type: 'function',
477
- name: 'numAssets',
742
+ name: 'snapShotPriceConfig',
478
743
  inputs: [],
479
744
  outputs: [
480
745
  {
481
746
  name: '',
482
- type: 'uint256',
747
+ type: 'tuple',
748
+ components: [
749
+ {
750
+ name: 'minSnapshotDelay',
751
+ type: 'uint256',
752
+ },
753
+ {
754
+ name: 'maxNumSnapshots',
755
+ type: 'uint256',
756
+ },
757
+ {
758
+ name: 'maxUpsideDeviation',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: 'staleTime',
763
+ type: 'uint256',
764
+ },
765
+ ],
766
+ },
767
+ ],
768
+ },
769
+ {
770
+ stateMutability: 'view',
771
+ type: 'function',
772
+ name: 'isPaused',
773
+ inputs: [],
774
+ outputs: [
775
+ {
776
+ name: '',
777
+ type: 'bool',
483
778
  },
484
779
  ],
485
780
  },
@@ -543,84 +838,135 @@ export const abi = [
543
838
  {
544
839
  stateMutability: 'view',
545
840
  type: 'function',
546
- name: 'isEligibleVaultForTrialFunds',
841
+ name: 'getUnderlyingAsset',
547
842
  inputs: [
548
843
  {
549
844
  name: '_vaultToken',
550
845
  type: 'address',
551
846
  },
552
- {
553
- name: '_underlyingAsset',
554
- type: 'address',
555
- },
556
847
  ],
557
848
  outputs: [
558
849
  {
559
850
  name: '',
560
- type: 'bool',
851
+ type: 'address',
561
852
  },
562
853
  ],
563
854
  },
564
855
  {
565
856
  stateMutability: 'view',
566
857
  type: 'function',
567
- name: 'isEligibleForYieldBonus',
858
+ name: 'getUnderlyingBalances',
568
859
  inputs: [
569
860
  {
570
- name: '_asset',
861
+ name: '_vaultToken',
571
862
  type: 'address',
572
863
  },
864
+ {
865
+ name: '_vaultTokenBalance',
866
+ type: 'uint256',
867
+ },
573
868
  ],
574
869
  outputs: [
575
870
  {
576
871
  name: '',
577
- type: 'bool',
872
+ type: 'uint256',
578
873
  },
579
- ],
580
- },
581
- {
582
- stateMutability: 'view',
583
- type: 'function',
584
- name: 'isRebasing',
585
- inputs: [],
586
- outputs: [
587
874
  {
588
875
  name: '',
589
- type: 'bool',
876
+ type: 'uint256',
590
877
  },
591
878
  ],
592
879
  },
593
880
  {
594
- stateMutability: 'nonpayable',
881
+ stateMutability: 'view',
595
882
  type: 'function',
596
- name: 'depositForYield',
883
+ name: 'getUnderlyingAmount',
597
884
  inputs: [
598
885
  {
599
- name: '_asset',
886
+ name: '_vaultToken',
600
887
  type: 'address',
601
888
  },
602
889
  {
603
- name: '_amount',
890
+ name: '_vaultTokenAmount',
604
891
  type: 'uint256',
605
892
  },
893
+ ],
894
+ outputs: [
606
895
  {
607
- name: '_vaultAddr',
896
+ name: '',
897
+ type: 'uint256',
898
+ },
899
+ ],
900
+ },
901
+ {
902
+ stateMutability: 'view',
903
+ type: 'function',
904
+ name: 'getUnderlyingAmountSafe',
905
+ inputs: [
906
+ {
907
+ name: '_vaultToken',
608
908
  type: 'address',
609
909
  },
610
910
  {
611
- name: '_extraData',
612
- type: 'bytes32',
911
+ name: '_vaultTokenBalance',
912
+ type: 'uint256',
613
913
  },
914
+ ],
915
+ outputs: [
614
916
  {
615
- name: '_recipient',
917
+ name: '',
918
+ type: 'uint256',
919
+ },
920
+ ],
921
+ },
922
+ {
923
+ stateMutability: 'view',
924
+ type: 'function',
925
+ name: 'getUnderlyingData',
926
+ inputs: [
927
+ {
928
+ name: '_vaultToken',
616
929
  type: 'address',
617
930
  },
931
+ {
932
+ name: '_vaultTokenAmount',
933
+ type: 'uint256',
934
+ },
618
935
  ],
619
936
  outputs: [
937
+ {
938
+ name: '',
939
+ type: 'address',
940
+ },
620
941
  {
621
942
  name: '',
622
943
  type: 'uint256',
623
944
  },
945
+ {
946
+ name: '',
947
+ type: 'uint256',
948
+ },
949
+ ],
950
+ },
951
+ {
952
+ stateMutability: 'view',
953
+ type: 'function',
954
+ name: 'getUnderlyingData',
955
+ inputs: [
956
+ {
957
+ name: '_vaultToken',
958
+ type: 'address',
959
+ },
960
+ {
961
+ name: '_vaultTokenAmount',
962
+ type: 'uint256',
963
+ },
964
+ {
965
+ name: '_appraiser',
966
+ type: 'address',
967
+ },
968
+ ],
969
+ outputs: [
624
970
  {
625
971
  name: '',
626
972
  type: 'address',
@@ -636,66 +982,120 @@ export const abi = [
636
982
  ],
637
983
  },
638
984
  {
639
- stateMutability: 'nonpayable',
985
+ stateMutability: 'view',
640
986
  type: 'function',
641
- name: 'depositForYield',
987
+ name: 'getUsdValueOfVaultToken',
642
988
  inputs: [
643
989
  {
644
- name: '_asset',
990
+ name: '_vaultToken',
645
991
  type: 'address',
646
992
  },
647
993
  {
648
- name: '_amount',
994
+ name: '_vaultTokenAmount',
649
995
  type: 'uint256',
650
996
  },
997
+ ],
998
+ outputs: [
651
999
  {
652
- name: '_vaultAddr',
1000
+ name: '',
1001
+ type: 'uint256',
1002
+ },
1003
+ ],
1004
+ },
1005
+ {
1006
+ stateMutability: 'view',
1007
+ type: 'function',
1008
+ name: 'getUsdValueOfVaultToken',
1009
+ inputs: [
1010
+ {
1011
+ name: '_vaultToken',
653
1012
  type: 'address',
654
1013
  },
655
1014
  {
656
- name: '_extraData',
657
- type: 'bytes32',
1015
+ name: '_vaultTokenAmount',
1016
+ type: 'uint256',
658
1017
  },
659
1018
  {
660
- name: '_recipient',
1019
+ name: '_appraiser',
661
1020
  type: 'address',
662
1021
  },
1022
+ ],
1023
+ outputs: [
663
1024
  {
664
- name: '_miniAddys',
665
- type: 'tuple',
666
- components: [
667
- {
668
- name: 'ledger',
669
- type: 'address',
670
- },
671
- {
672
- name: 'missionControl',
673
- type: 'address',
674
- },
675
- {
676
- name: 'legoBook',
677
- type: 'address',
678
- },
679
- {
680
- name: 'appraiser',
681
- type: 'address',
682
- },
683
- ],
1025
+ name: '',
1026
+ type: 'uint256',
684
1027
  },
685
1028
  ],
1029
+ },
1030
+ {
1031
+ stateMutability: 'view',
1032
+ type: 'function',
1033
+ name: 'isRebasing',
1034
+ inputs: [],
686
1035
  outputs: [
687
1036
  {
688
1037
  name: '',
689
- type: 'uint256',
1038
+ type: 'bool',
690
1039
  },
1040
+ ],
1041
+ },
1042
+ {
1043
+ stateMutability: 'view',
1044
+ type: 'function',
1045
+ name: 'getPricePerShare',
1046
+ inputs: [
1047
+ {
1048
+ name: '_vaultToken',
1049
+ type: 'address',
1050
+ },
1051
+ ],
1052
+ outputs: [
691
1053
  {
692
1054
  name: '',
1055
+ type: 'uint256',
1056
+ },
1057
+ ],
1058
+ },
1059
+ {
1060
+ stateMutability: 'view',
1061
+ type: 'function',
1062
+ name: 'getPricePerShare',
1063
+ inputs: [
1064
+ {
1065
+ name: '_vaultToken',
693
1066
  type: 'address',
694
1067
  },
1068
+ {
1069
+ name: '_decimals',
1070
+ type: 'uint256',
1071
+ },
1072
+ ],
1073
+ outputs: [
695
1074
  {
696
1075
  name: '',
697
1076
  type: 'uint256',
698
1077
  },
1078
+ ],
1079
+ },
1080
+ {
1081
+ stateMutability: 'view',
1082
+ type: 'function',
1083
+ name: 'getVaultTokenAmount',
1084
+ inputs: [
1085
+ {
1086
+ name: '_asset',
1087
+ type: 'address',
1088
+ },
1089
+ {
1090
+ name: '_assetAmount',
1091
+ type: 'uint256',
1092
+ },
1093
+ {
1094
+ name: '_vaultToken',
1095
+ type: 'address',
1096
+ },
1097
+ ],
1098
+ outputs: [
699
1099
  {
700
1100
  name: '',
701
1101
  type: 'uint256',
@@ -703,24 +1103,46 @@ export const abi = [
703
1103
  ],
704
1104
  },
705
1105
  {
706
- stateMutability: 'nonpayable',
1106
+ stateMutability: 'view',
707
1107
  type: 'function',
708
- name: 'withdrawFromYield',
1108
+ name: 'totalAssets',
709
1109
  inputs: [
710
1110
  {
711
1111
  name: '_vaultToken',
712
1112
  type: 'address',
713
1113
  },
1114
+ ],
1115
+ outputs: [
714
1116
  {
715
- name: '_amount',
1117
+ name: '',
716
1118
  type: 'uint256',
717
1119
  },
1120
+ ],
1121
+ },
1122
+ {
1123
+ stateMutability: 'view',
1124
+ type: 'function',
1125
+ name: 'totalBorrows',
1126
+ inputs: [
1127
+ {
1128
+ name: '_vaultToken',
1129
+ type: 'address',
1130
+ },
1131
+ ],
1132
+ outputs: [
718
1133
  {
719
- name: '_extraData',
720
- type: 'bytes32',
1134
+ name: '',
1135
+ type: 'uint256',
721
1136
  },
1137
+ ],
1138
+ },
1139
+ {
1140
+ stateMutability: 'view',
1141
+ type: 'function',
1142
+ name: 'getAvailLiquidity',
1143
+ inputs: [
722
1144
  {
723
- name: '_recipient',
1145
+ name: '_vaultToken',
724
1146
  type: 'address',
725
1147
  },
726
1148
  ],
@@ -729,14 +1151,57 @@ export const abi = [
729
1151
  name: '',
730
1152
  type: 'uint256',
731
1153
  },
1154
+ ],
1155
+ },
1156
+ {
1157
+ stateMutability: 'view',
1158
+ type: 'function',
1159
+ name: 'getUtilizationRatio',
1160
+ inputs: [
1161
+ {
1162
+ name: '_vaultToken',
1163
+ type: 'address',
1164
+ },
1165
+ ],
1166
+ outputs: [
732
1167
  {
733
1168
  name: '',
1169
+ type: 'uint256',
1170
+ },
1171
+ ],
1172
+ },
1173
+ {
1174
+ stateMutability: 'view',
1175
+ type: 'function',
1176
+ name: 'isEligibleForYieldBonus',
1177
+ inputs: [
1178
+ {
1179
+ name: '_asset',
734
1180
  type: 'address',
735
1181
  },
1182
+ ],
1183
+ outputs: [
736
1184
  {
737
1185
  name: '',
1186
+ type: 'bool',
1187
+ },
1188
+ ],
1189
+ },
1190
+ {
1191
+ stateMutability: 'view',
1192
+ type: 'function',
1193
+ name: 'getWithdrawalFees',
1194
+ inputs: [
1195
+ {
1196
+ name: '_vaultToken',
1197
+ type: 'address',
1198
+ },
1199
+ {
1200
+ name: '_vaultTokenAmount',
738
1201
  type: 'uint256',
739
1202
  },
1203
+ ],
1204
+ outputs: [
740
1205
  {
741
1206
  name: '',
742
1207
  type: 'uint256',
@@ -744,91 +1209,129 @@ export const abi = [
744
1209
  ],
745
1210
  },
746
1211
  {
747
- stateMutability: 'nonpayable',
1212
+ stateMutability: 'view',
748
1213
  type: 'function',
749
- name: 'withdrawFromYield',
1214
+ name: 'canRegisterVaultToken',
750
1215
  inputs: [
1216
+ {
1217
+ name: '_asset',
1218
+ type: 'address',
1219
+ },
751
1220
  {
752
1221
  name: '_vaultToken',
753
1222
  type: 'address',
754
1223
  },
1224
+ ],
1225
+ outputs: [
755
1226
  {
756
- name: '_amount',
757
- type: 'uint256',
1227
+ name: '',
1228
+ type: 'bool',
758
1229
  },
1230
+ ],
1231
+ },
1232
+ {
1233
+ stateMutability: 'nonpayable',
1234
+ type: 'function',
1235
+ name: 'registerVaultTokenLocally',
1236
+ inputs: [
759
1237
  {
760
- name: '_extraData',
761
- type: 'bytes32',
1238
+ name: '_asset',
1239
+ type: 'address',
762
1240
  },
763
1241
  {
764
- name: '_recipient',
1242
+ name: '_vaultAddr',
765
1243
  type: 'address',
766
1244
  },
1245
+ ],
1246
+ outputs: [
767
1247
  {
768
- name: '_miniAddys',
1248
+ name: '',
769
1249
  type: 'tuple',
770
1250
  components: [
771
1251
  {
772
- name: 'ledger',
773
- type: 'address',
774
- },
775
- {
776
- name: 'missionControl',
1252
+ name: 'underlyingAsset',
777
1253
  type: 'address',
778
1254
  },
779
1255
  {
780
- name: 'legoBook',
781
- type: 'address',
1256
+ name: 'decimals',
1257
+ type: 'uint256',
782
1258
  },
783
1259
  {
784
- name: 'appraiser',
785
- type: 'address',
1260
+ name: 'lastAveragePricePerShare',
1261
+ type: 'uint256',
786
1262
  },
787
1263
  ],
788
1264
  },
789
1265
  ],
790
- outputs: [
1266
+ },
1267
+ {
1268
+ stateMutability: 'nonpayable',
1269
+ type: 'function',
1270
+ name: 'deregisterVaultTokenLocally',
1271
+ inputs: [
791
1272
  {
792
- name: '',
793
- type: 'uint256',
1273
+ name: '_asset',
1274
+ type: 'address',
794
1275
  },
795
1276
  {
796
- name: '',
1277
+ name: '_vaultAddr',
797
1278
  type: 'address',
798
1279
  },
1280
+ ],
1281
+ outputs: [],
1282
+ },
1283
+ {
1284
+ stateMutability: 'nonpayable',
1285
+ type: 'function',
1286
+ name: 'addPriceSnapshot',
1287
+ inputs: [
799
1288
  {
800
- name: '',
801
- type: 'uint256',
1289
+ name: '_vaultToken',
1290
+ type: 'address',
802
1291
  },
1292
+ ],
1293
+ outputs: [
803
1294
  {
804
1295
  name: '',
805
- type: 'uint256',
1296
+ type: 'bool',
806
1297
  },
807
1298
  ],
808
1299
  },
809
1300
  {
810
1301
  stateMutability: 'nonpayable',
811
1302
  type: 'function',
812
- name: 'claimRewards',
1303
+ name: 'depositForYield',
813
1304
  inputs: [
814
1305
  {
815
- name: '_user',
1306
+ name: '_asset',
816
1307
  type: 'address',
817
1308
  },
818
1309
  {
819
- name: '_rewardToken',
820
- type: 'address',
1310
+ name: '_amount',
1311
+ type: 'uint256',
821
1312
  },
822
1313
  {
823
- name: '_rewardAmount',
824
- type: 'uint256',
1314
+ name: '_vaultAddr',
1315
+ type: 'address',
825
1316
  },
826
1317
  {
827
1318
  name: '_extraData',
828
1319
  type: 'bytes32',
829
1320
  },
1321
+ {
1322
+ name: '_recipient',
1323
+ type: 'address',
1324
+ },
830
1325
  ],
831
1326
  outputs: [
1327
+ {
1328
+ name: '',
1329
+ type: 'uint256',
1330
+ },
1331
+ {
1332
+ name: '',
1333
+ type: 'address',
1334
+ },
832
1335
  {
833
1336
  name: '',
834
1337
  type: 'uint256',
@@ -842,24 +1345,28 @@ export const abi = [
842
1345
  {
843
1346
  stateMutability: 'nonpayable',
844
1347
  type: 'function',
845
- name: 'claimRewards',
1348
+ name: 'depositForYield',
846
1349
  inputs: [
847
1350
  {
848
- name: '_user',
1351
+ name: '_asset',
849
1352
  type: 'address',
850
1353
  },
851
1354
  {
852
- name: '_rewardToken',
853
- type: 'address',
1355
+ name: '_amount',
1356
+ type: 'uint256',
854
1357
  },
855
1358
  {
856
- name: '_rewardAmount',
857
- type: 'uint256',
1359
+ name: '_vaultAddr',
1360
+ type: 'address',
858
1361
  },
859
1362
  {
860
1363
  name: '_extraData',
861
1364
  type: 'bytes32',
862
1365
  },
1366
+ {
1367
+ name: '_recipient',
1368
+ type: 'address',
1369
+ },
863
1370
  {
864
1371
  name: '_miniAddys',
865
1372
  type: 'tuple',
@@ -890,76 +1397,53 @@ export const abi = [
890
1397
  },
891
1398
  {
892
1399
  name: '',
893
- type: 'uint256',
1400
+ type: 'address',
894
1401
  },
895
- ],
896
- },
897
- {
898
- stateMutability: 'view',
899
- type: 'function',
900
- name: 'hasClaimableRewards',
901
- inputs: [
902
1402
  {
903
- name: '_user',
904
- type: 'address',
1403
+ name: '',
1404
+ type: 'uint256',
905
1405
  },
906
- ],
907
- outputs: [
908
1406
  {
909
1407
  name: '',
910
- type: 'bool',
1408
+ type: 'uint256',
911
1409
  },
912
1410
  ],
913
1411
  },
914
1412
  {
915
- stateMutability: 'view',
1413
+ stateMutability: 'nonpayable',
916
1414
  type: 'function',
917
- name: 'isVaultToken',
1415
+ name: 'withdrawFromYield',
918
1416
  inputs: [
919
1417
  {
920
1418
  name: '_vaultToken',
921
1419
  type: 'address',
922
1420
  },
923
- ],
924
- outputs: [
925
1421
  {
926
- name: '',
927
- type: 'bool',
1422
+ name: '_amount',
1423
+ type: 'uint256',
928
1424
  },
929
- ],
930
- },
931
- {
932
- stateMutability: 'view',
933
- type: 'function',
934
- name: 'getUnderlyingAsset',
935
- inputs: [
936
1425
  {
937
- name: '_vaultToken',
1426
+ name: '_extraData',
1427
+ type: 'bytes32',
1428
+ },
1429
+ {
1430
+ name: '_recipient',
938
1431
  type: 'address',
939
1432
  },
940
1433
  ],
941
1434
  outputs: [
942
1435
  {
943
1436
  name: '',
944
- type: 'address',
1437
+ type: 'uint256',
945
1438
  },
946
- ],
947
- },
948
- {
949
- stateMutability: 'view',
950
- type: 'function',
951
- name: 'getUnderlyingAmount',
952
- inputs: [
953
1439
  {
954
- name: '_vaultToken',
1440
+ name: '',
955
1441
  type: 'address',
956
1442
  },
957
1443
  {
958
- name: '_vaultTokenAmount',
1444
+ name: '',
959
1445
  type: 'uint256',
960
1446
  },
961
- ],
962
- outputs: [
963
1447
  {
964
1448
  name: '',
965
1449
  type: 'uint256',
@@ -967,45 +1451,62 @@ export const abi = [
967
1451
  ],
968
1452
  },
969
1453
  {
970
- stateMutability: 'view',
1454
+ stateMutability: 'nonpayable',
971
1455
  type: 'function',
972
- name: 'getVaultTokenAmount',
1456
+ name: 'withdrawFromYield',
973
1457
  inputs: [
974
1458
  {
975
- name: '_asset',
1459
+ name: '_vaultToken',
976
1460
  type: 'address',
977
1461
  },
978
1462
  {
979
- name: '_assetAmount',
1463
+ name: '_amount',
980
1464
  type: 'uint256',
981
1465
  },
982
1466
  {
983
- name: '_vaultToken',
1467
+ name: '_extraData',
1468
+ type: 'bytes32',
1469
+ },
1470
+ {
1471
+ name: '_recipient',
984
1472
  type: 'address',
985
1473
  },
1474
+ {
1475
+ name: '_miniAddys',
1476
+ type: 'tuple',
1477
+ components: [
1478
+ {
1479
+ name: 'ledger',
1480
+ type: 'address',
1481
+ },
1482
+ {
1483
+ name: 'missionControl',
1484
+ type: 'address',
1485
+ },
1486
+ {
1487
+ name: 'legoBook',
1488
+ type: 'address',
1489
+ },
1490
+ {
1491
+ name: 'appraiser',
1492
+ type: 'address',
1493
+ },
1494
+ ],
1495
+ },
986
1496
  ],
987
1497
  outputs: [
988
1498
  {
989
1499
  name: '',
990
1500
  type: 'uint256',
991
1501
  },
992
- ],
993
- },
994
- {
995
- stateMutability: 'view',
996
- type: 'function',
997
- name: 'getUsdValueOfVaultToken',
998
- inputs: [
999
1502
  {
1000
- name: '_vaultToken',
1503
+ name: '',
1001
1504
  type: 'address',
1002
1505
  },
1003
1506
  {
1004
- name: '_vaultTokenAmount',
1507
+ name: '',
1005
1508
  type: 'uint256',
1006
1509
  },
1007
- ],
1008
- outputs: [
1009
1510
  {
1010
1511
  name: '',
1011
1512
  type: 'uint256',
@@ -1013,21 +1514,25 @@ export const abi = [
1013
1514
  ],
1014
1515
  },
1015
1516
  {
1016
- stateMutability: 'view',
1517
+ stateMutability: 'nonpayable',
1017
1518
  type: 'function',
1018
- name: 'getUsdValueOfVaultToken',
1519
+ name: 'claimIncentives',
1019
1520
  inputs: [
1020
1521
  {
1021
- name: '_vaultToken',
1522
+ name: '_user',
1022
1523
  type: 'address',
1023
1524
  },
1024
1525
  {
1025
- name: '_vaultTokenAmount',
1526
+ name: '_rewardToken',
1527
+ type: 'address',
1528
+ },
1529
+ {
1530
+ name: '_rewardAmount',
1026
1531
  type: 'uint256',
1027
1532
  },
1028
1533
  {
1029
- name: '_appraiser',
1030
- type: 'address',
1534
+ name: '_proofs',
1535
+ type: 'bytes32[]',
1031
1536
  },
1032
1537
  ],
1033
1538
  outputs: [
@@ -1035,27 +1540,57 @@ export const abi = [
1035
1540
  name: '',
1036
1541
  type: 'uint256',
1037
1542
  },
1543
+ {
1544
+ name: '',
1545
+ type: 'uint256',
1546
+ },
1038
1547
  ],
1039
1548
  },
1040
1549
  {
1041
- stateMutability: 'view',
1550
+ stateMutability: 'nonpayable',
1042
1551
  type: 'function',
1043
- name: 'getUnderlyingData',
1552
+ name: 'claimIncentives',
1044
1553
  inputs: [
1045
1554
  {
1046
- name: '_vaultToken',
1555
+ name: '_user',
1047
1556
  type: 'address',
1048
1557
  },
1049
1558
  {
1050
- name: '_vaultTokenAmount',
1559
+ name: '_rewardToken',
1560
+ type: 'address',
1561
+ },
1562
+ {
1563
+ name: '_rewardAmount',
1051
1564
  type: 'uint256',
1052
1565
  },
1053
- ],
1054
- outputs: [
1055
1566
  {
1056
- name: '',
1057
- type: 'address',
1567
+ name: '_proofs',
1568
+ type: 'bytes32[]',
1569
+ },
1570
+ {
1571
+ name: '_miniAddys',
1572
+ type: 'tuple',
1573
+ components: [
1574
+ {
1575
+ name: 'ledger',
1576
+ type: 'address',
1577
+ },
1578
+ {
1579
+ name: 'missionControl',
1580
+ type: 'address',
1581
+ },
1582
+ {
1583
+ name: 'legoBook',
1584
+ type: 'address',
1585
+ },
1586
+ {
1587
+ name: 'appraiser',
1588
+ type: 'address',
1589
+ },
1590
+ ],
1058
1591
  },
1592
+ ],
1593
+ outputs: [
1059
1594
  {
1060
1595
  name: '',
1061
1596
  type: 'uint256',
@@ -1067,28 +1602,28 @@ export const abi = [
1067
1602
  ],
1068
1603
  },
1069
1604
  {
1070
- stateMutability: 'view',
1605
+ stateMutability: 'nonpayable',
1071
1606
  type: 'function',
1072
- name: 'getUnderlyingData',
1607
+ name: 'claimRewards',
1073
1608
  inputs: [
1074
1609
  {
1075
- name: '_vaultToken',
1610
+ name: '_user',
1076
1611
  type: 'address',
1077
1612
  },
1078
1613
  {
1079
- name: '_vaultTokenAmount',
1614
+ name: '_rewardToken',
1615
+ type: 'address',
1616
+ },
1617
+ {
1618
+ name: '_rewardAmount',
1080
1619
  type: 'uint256',
1081
1620
  },
1082
1621
  {
1083
- name: '_appraiser',
1084
- type: 'address',
1622
+ name: '_extraData',
1623
+ type: 'bytes32',
1085
1624
  },
1086
1625
  ],
1087
1626
  outputs: [
1088
- {
1089
- name: '',
1090
- type: 'address',
1091
- },
1092
1627
  {
1093
1628
  name: '',
1094
1629
  type: 'uint256',
@@ -1100,91 +1635,105 @@ export const abi = [
1100
1635
  ],
1101
1636
  },
1102
1637
  {
1103
- stateMutability: 'view',
1638
+ stateMutability: 'nonpayable',
1104
1639
  type: 'function',
1105
- name: 'totalAssets',
1640
+ name: 'claimRewards',
1106
1641
  inputs: [
1107
1642
  {
1108
- name: '_vaultToken',
1643
+ name: '_user',
1644
+ type: 'address',
1645
+ },
1646
+ {
1647
+ name: '_rewardToken',
1109
1648
  type: 'address',
1110
1649
  },
1650
+ {
1651
+ name: '_rewardAmount',
1652
+ type: 'uint256',
1653
+ },
1654
+ {
1655
+ name: '_extraData',
1656
+ type: 'bytes32',
1657
+ },
1658
+ {
1659
+ name: '_miniAddys',
1660
+ type: 'tuple',
1661
+ components: [
1662
+ {
1663
+ name: 'ledger',
1664
+ type: 'address',
1665
+ },
1666
+ {
1667
+ name: 'missionControl',
1668
+ type: 'address',
1669
+ },
1670
+ {
1671
+ name: 'legoBook',
1672
+ type: 'address',
1673
+ },
1674
+ {
1675
+ name: 'appraiser',
1676
+ type: 'address',
1677
+ },
1678
+ ],
1679
+ },
1111
1680
  ],
1112
1681
  outputs: [
1113
1682
  {
1114
1683
  name: '',
1115
1684
  type: 'uint256',
1116
1685
  },
1686
+ {
1687
+ name: '',
1688
+ type: 'uint256',
1689
+ },
1117
1690
  ],
1118
1691
  },
1119
1692
  {
1120
1693
  stateMutability: 'view',
1121
1694
  type: 'function',
1122
- name: 'totalBorrows',
1695
+ name: 'hasClaimableRewards',
1123
1696
  inputs: [
1124
1697
  {
1125
- name: '_vaultToken',
1698
+ name: '_user',
1126
1699
  type: 'address',
1127
1700
  },
1128
1701
  ],
1129
1702
  outputs: [
1130
1703
  {
1131
1704
  name: '',
1132
- type: 'uint256',
1705
+ type: 'bool',
1133
1706
  },
1134
1707
  ],
1135
1708
  },
1136
1709
  {
1137
1710
  stateMutability: 'view',
1138
1711
  type: 'function',
1139
- name: 'getPricePerShare',
1712
+ name: 'getAccessForLego',
1140
1713
  inputs: [
1141
1714
  {
1142
- name: '_asset',
1715
+ name: '_user',
1143
1716
  type: 'address',
1144
1717
  },
1145
1718
  {
1146
- name: '_decimals',
1719
+ name: '_action',
1147
1720
  type: 'uint256',
1148
1721
  },
1149
1722
  ],
1150
1723
  outputs: [
1151
1724
  {
1152
1725
  name: '',
1153
- type: 'uint256',
1154
- },
1155
- ],
1156
- },
1157
- {
1158
- stateMutability: 'nonpayable',
1159
- type: 'function',
1160
- name: 'addAssetOpportunity',
1161
- inputs: [
1162
- {
1163
- name: '_asset',
1164
- type: 'address',
1165
- },
1166
- {
1167
- name: '_vaultAddr',
1168
1726
  type: 'address',
1169
1727
  },
1170
- ],
1171
- outputs: [],
1172
- },
1173
- {
1174
- stateMutability: 'nonpayable',
1175
- type: 'function',
1176
- name: 'removeAssetOpportunity',
1177
- inputs: [
1178
1728
  {
1179
- name: '_asset',
1180
- type: 'address',
1729
+ name: '',
1730
+ type: 'string',
1181
1731
  },
1182
1732
  {
1183
- name: '_vaultAddr',
1184
- type: 'address',
1733
+ name: '',
1734
+ type: 'uint256',
1185
1735
  },
1186
1736
  ],
1187
- outputs: [],
1188
1737
  },
1189
1738
  {
1190
1739
  stateMutability: 'nonpayable',
@@ -2485,57 +3034,19 @@ export const abi = [
2485
3034
  {
2486
3035
  stateMutability: 'view',
2487
3036
  type: 'function',
2488
- name: 'getAccessForLego',
2489
- inputs: [
2490
- {
2491
- name: '_user',
2492
- type: 'address',
2493
- },
2494
- {
2495
- name: '_action',
2496
- type: 'uint256',
2497
- },
2498
- ],
3037
+ name: 'MOONWELL_COMPTROLLER',
3038
+ inputs: [],
2499
3039
  outputs: [
2500
3040
  {
2501
3041
  name: '',
2502
3042
  type: 'address',
2503
3043
  },
2504
- {
2505
- name: '',
2506
- type: 'string',
2507
- },
2508
- {
2509
- name: '',
2510
- type: 'uint256',
2511
- },
2512
- ],
2513
- },
2514
- {
2515
- stateMutability: 'view',
2516
- type: 'function',
2517
- name: 'getPrice',
2518
- inputs: [
2519
- {
2520
- name: '_asset',
2521
- type: 'address',
2522
- },
2523
- {
2524
- name: '_decimals',
2525
- type: 'uint256',
2526
- },
2527
- ],
2528
- outputs: [
2529
- {
2530
- name: '',
2531
- type: 'uint256',
2532
- },
2533
3044
  ],
2534
3045
  },
2535
3046
  {
2536
3047
  stateMutability: 'view',
2537
3048
  type: 'function',
2538
- name: 'MOONWELL_COMPTROLLER',
3049
+ name: 'WETH',
2539
3050
  inputs: [],
2540
3051
  outputs: [
2541
3052
  {
@@ -2547,7 +3058,7 @@ export const abi = [
2547
3058
  {
2548
3059
  stateMutability: 'view',
2549
3060
  type: 'function',
2550
- name: 'WETH',
3061
+ name: 'RIPE_REGISTRY',
2551
3062
  inputs: [],
2552
3063
  outputs: [
2553
3064
  {
@@ -2572,11 +3083,15 @@ export const abi = [
2572
3083
  name: '_weth',
2573
3084
  type: 'address',
2574
3085
  },
3086
+ {
3087
+ name: '_ripeRegistry',
3088
+ type: 'address',
3089
+ },
2575
3090
  ],
2576
3091
  outputs: [],
2577
3092
  },
2578
3093
  ];
2579
- export const deployAddress = '0x9CdE6b17b88432734f64E760B5Dfbba372b4975F';
3094
+ export const deployAddress = '0x0657CF4683870b8420bB8Da57db83e5F9A1ad804';
2580
3095
  function getRequest(method, args, contractAddressOrOptions) {
2581
3096
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2582
3097
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2612,35 +3127,45 @@ export const call = {
2612
3127
  getAssets: (...args) => getRequest('getAssets', args),
2613
3128
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2614
3129
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2615
- isPaused: (...args) => getRequest('isPaused', args),
3130
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3131
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3132
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3133
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2616
3134
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2617
3135
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2618
3136
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2619
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2620
3137
  assets: (...args) => getRequest('assets', args),
2621
3138
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2622
3139
  numAssets: (...args) => getRequest('numAssets', args),
3140
+ snapShotData: (...args) => getRequest('snapShotData', args),
3141
+ snapShots: (...args) => getRequest('snapShots', args),
3142
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3143
+ isPaused: (...args) => getRequest('isPaused', args),
2623
3144
  hasCapability: (...args) => getRequest('hasCapability', args),
2624
3145
  getRegistries: (...args) => getRequest('getRegistries', args),
2625
3146
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2626
3147
  isDexLego: (...args) => getRequest('isDexLego', args),
2627
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2628
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2629
- isRebasing: (...args) => getRequest('isRebasing', args),
2630
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2631
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2632
3148
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3149
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2633
3150
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2634
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2635
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3151
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2636
3152
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3153
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3154
+ isRebasing: (...args) => getRequest('isRebasing', args),
3155
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3156
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2637
3157
  totalAssets: (...args) => getRequest('totalAssets', args),
2638
3158
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2639
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3159
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3160
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3161
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3162
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3163
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3164
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2640
3165
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2641
- getPrice: (...args) => getRequest('getPrice', args),
2642
3166
  MOONWELL_COMPTROLLER: (...args) => getRequest('MOONWELL_COMPTROLLER', args),
2643
3167
  WETH: (...args) => getRequest('WETH', args),
3168
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2644
3169
  };
2645
3170
  function getMutation(functionName) {
2646
3171
  return {
@@ -2655,11 +3180,14 @@ export const mutation = {
2655
3180
  pause: getMutation('pause'),
2656
3181
  recoverFunds: getMutation('recoverFunds'),
2657
3182
  recoverFundsMany: getMutation('recoverFundsMany'),
3183
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3184
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3185
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3186
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2658
3187
  depositForYield: getMutation('depositForYield'),
2659
3188
  withdrawFromYield: getMutation('withdrawFromYield'),
3189
+ claimIncentives: getMutation('claimIncentives'),
2660
3190
  claimRewards: getMutation('claimRewards'),
2661
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2662
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2663
3191
  swapTokens: getMutation('swapTokens'),
2664
3192
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2665
3193
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2684,44 +3212,57 @@ export function toSdk(publicClient, walletClient) {
2684
3212
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2685
3213
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2686
3214
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2687
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3215
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3216
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3217
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3218
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2688
3219
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2689
3220
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2690
3221
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2691
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2692
3222
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2693
3223
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2694
3224
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3225
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3226
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3227
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3228
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2695
3229
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2696
3230
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2697
3231
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2698
3232
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2699
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2700
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2701
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2702
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2703
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2704
3233
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3234
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2705
3235
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2706
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2707
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3236
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2708
3237
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3238
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3239
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3240
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3241
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2709
3242
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2710
3243
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2711
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3244
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3245
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3246
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3247
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3248
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3249
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2712
3250
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2713
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2714
3251
  MOONWELL_COMPTROLLER: (...args) => singleQuery(publicClient, call.MOONWELL_COMPTROLLER(...args)),
2715
3252
  WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
3253
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2716
3254
  // Mutations
2717
3255
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2718
3256
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2719
3257
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3258
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3259
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3260
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3261
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2720
3262
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2721
3263
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3264
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2722
3265
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2723
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2724
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2725
3266
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2726
3267
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2727
3268
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),