@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: [
@@ -210,6 +237,10 @@ export const abi = [
210
237
  name: 'billing',
211
238
  type: 'address',
212
239
  },
240
+ {
241
+ name: 'vaultRegistry',
242
+ type: 'address',
243
+ },
213
244
  ],
214
245
  },
215
246
  ],
@@ -352,40 +383,155 @@ export const abi = [
352
383
  {
353
384
  stateMutability: 'view',
354
385
  type: 'function',
355
- name: 'isPaused',
356
- inputs: [],
386
+ name: 'getWeightedPricePerShare',
387
+ inputs: [
388
+ {
389
+ name: '_vaultToken',
390
+ type: 'address',
391
+ },
392
+ ],
357
393
  outputs: [
358
394
  {
359
395
  name: '',
360
- type: 'bool',
396
+ type: 'uint256',
361
397
  },
362
398
  ],
363
399
  },
364
400
  {
365
401
  stateMutability: 'view',
366
402
  type: 'function',
367
- name: 'assetOpportunities',
403
+ name: 'getLatestSnapshot',
368
404
  inputs: [
369
405
  {
370
- name: 'arg0',
406
+ name: '_vaultToken',
371
407
  type: 'address',
372
408
  },
373
409
  {
374
- name: 'arg1',
410
+ name: '_pricePerShare',
375
411
  type: 'uint256',
376
412
  },
377
413
  ],
378
414
  outputs: [
379
415
  {
380
416
  name: '',
417
+ type: 'tuple',
418
+ components: [
419
+ {
420
+ name: 'totalSupply',
421
+ type: 'uint256',
422
+ },
423
+ {
424
+ name: 'pricePerShare',
425
+ type: 'uint256',
426
+ },
427
+ {
428
+ name: 'lastUpdate',
429
+ type: 'uint256',
430
+ },
431
+ ],
432
+ },
433
+ ],
434
+ },
435
+ {
436
+ stateMutability: 'nonpayable',
437
+ type: 'function',
438
+ name: 'setSnapShotPriceConfig',
439
+ inputs: [
440
+ {
441
+ name: '_config',
442
+ type: 'tuple',
443
+ components: [
444
+ {
445
+ name: 'minSnapshotDelay',
446
+ type: 'uint256',
447
+ },
448
+ {
449
+ name: 'maxNumSnapshots',
450
+ type: 'uint256',
451
+ },
452
+ {
453
+ name: 'maxUpsideDeviation',
454
+ type: 'uint256',
455
+ },
456
+ {
457
+ name: 'staleTime',
458
+ type: 'uint256',
459
+ },
460
+ ],
461
+ },
462
+ ],
463
+ outputs: [],
464
+ },
465
+ {
466
+ stateMutability: 'view',
467
+ type: 'function',
468
+ name: 'isValidPriceConfig',
469
+ inputs: [
470
+ {
471
+ name: '_config',
472
+ type: 'tuple',
473
+ components: [
474
+ {
475
+ name: 'minSnapshotDelay',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'maxNumSnapshots',
480
+ type: 'uint256',
481
+ },
482
+ {
483
+ name: 'maxUpsideDeviation',
484
+ type: 'uint256',
485
+ },
486
+ {
487
+ name: 'staleTime',
488
+ type: 'uint256',
489
+ },
490
+ ],
491
+ },
492
+ ],
493
+ outputs: [
494
+ {
495
+ name: '',
496
+ type: 'bool',
497
+ },
498
+ ],
499
+ },
500
+ {
501
+ stateMutability: 'view',
502
+ type: 'function',
503
+ name: 'vaultToAsset',
504
+ inputs: [
505
+ {
506
+ name: 'arg0',
381
507
  type: 'address',
382
508
  },
383
509
  ],
510
+ outputs: [
511
+ {
512
+ name: '',
513
+ type: 'tuple',
514
+ components: [
515
+ {
516
+ name: 'underlyingAsset',
517
+ type: 'address',
518
+ },
519
+ {
520
+ name: 'decimals',
521
+ type: 'uint256',
522
+ },
523
+ {
524
+ name: 'lastAveragePricePerShare',
525
+ type: 'uint256',
526
+ },
527
+ ],
528
+ },
529
+ ],
384
530
  },
385
531
  {
386
532
  stateMutability: 'view',
387
533
  type: 'function',
388
- name: 'indexOfAssetOpportunity',
534
+ name: 'assetOpportunities',
389
535
  inputs: [
390
536
  {
391
537
  name: 'arg0',
@@ -393,25 +539,29 @@ export const abi = [
393
539
  },
394
540
  {
395
541
  name: 'arg1',
396
- type: 'address',
542
+ type: 'uint256',
397
543
  },
398
544
  ],
399
545
  outputs: [
400
546
  {
401
547
  name: '',
402
- type: 'uint256',
548
+ type: 'address',
403
549
  },
404
550
  ],
405
551
  },
406
552
  {
407
553
  stateMutability: 'view',
408
554
  type: 'function',
409
- name: 'numAssetOpportunities',
555
+ name: 'indexOfAssetOpportunity',
410
556
  inputs: [
411
557
  {
412
558
  name: 'arg0',
413
559
  type: 'address',
414
560
  },
561
+ {
562
+ name: 'arg1',
563
+ type: 'address',
564
+ },
415
565
  ],
416
566
  outputs: [
417
567
  {
@@ -423,7 +573,7 @@ export const abi = [
423
573
  {
424
574
  stateMutability: 'view',
425
575
  type: 'function',
426
- name: 'vaultToAsset',
576
+ name: 'numAssetOpportunities',
427
577
  inputs: [
428
578
  {
429
579
  name: 'arg0',
@@ -433,7 +583,7 @@ export const abi = [
433
583
  outputs: [
434
584
  {
435
585
  name: '',
436
- type: 'address',
586
+ type: 'uint256',
437
587
  },
438
588
  ],
439
589
  },
@@ -486,48 +636,113 @@ export const abi = [
486
636
  {
487
637
  stateMutability: 'view',
488
638
  type: 'function',
489
- name: 'hasCapability',
639
+ name: 'snapShotData',
490
640
  inputs: [
491
641
  {
492
- name: '_action',
493
- type: 'uint256',
642
+ name: 'arg0',
643
+ type: 'address',
494
644
  },
495
645
  ],
496
646
  outputs: [
497
647
  {
498
648
  name: '',
499
- type: 'bool',
649
+ type: 'tuple',
650
+ components: [
651
+ {
652
+ name: 'lastSnapShot',
653
+ type: 'tuple',
654
+ components: [
655
+ {
656
+ name: 'totalSupply',
657
+ type: 'uint256',
658
+ },
659
+ {
660
+ name: 'pricePerShare',
661
+ type: 'uint256',
662
+ },
663
+ {
664
+ name: 'lastUpdate',
665
+ type: 'uint256',
666
+ },
667
+ ],
668
+ },
669
+ {
670
+ name: 'nextIndex',
671
+ type: 'uint256',
672
+ },
673
+ ],
500
674
  },
501
675
  ],
502
676
  },
503
677
  {
504
678
  stateMutability: 'view',
505
679
  type: 'function',
506
- name: 'getRegistries',
507
- inputs: [],
680
+ name: 'snapShots',
681
+ inputs: [
682
+ {
683
+ name: 'arg0',
684
+ type: 'address',
685
+ },
686
+ {
687
+ name: 'arg1',
688
+ type: 'uint256',
689
+ },
690
+ ],
508
691
  outputs: [
509
692
  {
510
693
  name: '',
511
- type: 'address[]',
694
+ type: 'tuple',
695
+ components: [
696
+ {
697
+ name: 'totalSupply',
698
+ type: 'uint256',
699
+ },
700
+ {
701
+ name: 'pricePerShare',
702
+ type: 'uint256',
703
+ },
704
+ {
705
+ name: 'lastUpdate',
706
+ type: 'uint256',
707
+ },
708
+ ],
512
709
  },
513
710
  ],
514
711
  },
515
712
  {
516
713
  stateMutability: 'view',
517
714
  type: 'function',
518
- name: 'isYieldLego',
715
+ name: 'snapShotPriceConfig',
519
716
  inputs: [],
520
717
  outputs: [
521
718
  {
522
719
  name: '',
523
- type: 'bool',
720
+ type: 'tuple',
721
+ components: [
722
+ {
723
+ name: 'minSnapshotDelay',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'maxNumSnapshots',
728
+ type: 'uint256',
729
+ },
730
+ {
731
+ name: 'maxUpsideDeviation',
732
+ type: 'uint256',
733
+ },
734
+ {
735
+ name: 'staleTime',
736
+ type: 'uint256',
737
+ },
738
+ ],
524
739
  },
525
740
  ],
526
741
  },
527
742
  {
528
743
  stateMutability: 'view',
529
744
  type: 'function',
530
- name: 'isDexLego',
745
+ name: 'isPaused',
531
746
  inputs: [],
532
747
  outputs: [
533
748
  {
@@ -539,15 +754,11 @@ export const abi = [
539
754
  {
540
755
  stateMutability: 'view',
541
756
  type: 'function',
542
- name: 'isEligibleVaultForTrialFunds',
757
+ name: 'hasCapability',
543
758
  inputs: [
544
759
  {
545
- name: '_vaultToken',
546
- type: 'address',
547
- },
548
- {
549
- name: '_underlyingAsset',
550
- type: 'address',
760
+ name: '_action',
761
+ type: 'uint256',
551
762
  },
552
763
  ],
553
764
  outputs: [
@@ -560,13 +771,20 @@ export const abi = [
560
771
  {
561
772
  stateMutability: 'view',
562
773
  type: 'function',
563
- name: 'isEligibleForYieldBonus',
564
- inputs: [
774
+ name: 'getRegistries',
775
+ inputs: [],
776
+ outputs: [
565
777
  {
566
- name: '_asset',
567
- type: 'address',
778
+ name: '',
779
+ type: 'address[]',
568
780
  },
569
781
  ],
782
+ },
783
+ {
784
+ stateMutability: 'view',
785
+ type: 'function',
786
+ name: 'isYieldLego',
787
+ inputs: [],
570
788
  outputs: [
571
789
  {
572
790
  name: '',
@@ -577,7 +795,7 @@ export const abi = [
577
795
  {
578
796
  stateMutability: 'view',
579
797
  type: 'function',
580
- name: 'isRebasing',
798
+ name: 'isDexLego',
581
799
  inputs: [],
582
800
  outputs: [
583
801
  {
@@ -587,29 +805,34 @@ export const abi = [
587
805
  ],
588
806
  },
589
807
  {
590
- stateMutability: 'nonpayable',
808
+ stateMutability: 'view',
591
809
  type: 'function',
592
- name: 'depositForYield',
810
+ name: 'getUnderlyingAsset',
593
811
  inputs: [
594
812
  {
595
- name: '_asset',
813
+ name: '_vaultToken',
596
814
  type: 'address',
597
815
  },
816
+ ],
817
+ outputs: [
598
818
  {
599
- name: '_amount',
600
- type: 'uint256',
601
- },
602
- {
603
- name: '_vaultAddr',
819
+ name: '',
604
820
  type: 'address',
605
821
  },
822
+ ],
823
+ },
824
+ {
825
+ stateMutability: 'view',
826
+ type: 'function',
827
+ name: 'getUnderlyingBalances',
828
+ inputs: [
606
829
  {
607
- name: '_extraData',
608
- type: 'bytes32',
830
+ name: '_vaultToken',
831
+ type: 'address',
609
832
  },
610
833
  {
611
- name: '_recipient',
612
- type: 'address',
834
+ name: '_vaultTokenBalance',
835
+ type: 'uint256',
613
836
  },
614
837
  ],
615
838
  outputs: [
@@ -619,12 +842,25 @@ export const abi = [
619
842
  },
620
843
  {
621
844
  name: '',
845
+ type: 'uint256',
846
+ },
847
+ ],
848
+ },
849
+ {
850
+ stateMutability: 'view',
851
+ type: 'function',
852
+ name: 'getUnderlyingAmount',
853
+ inputs: [
854
+ {
855
+ name: '_vaultToken',
622
856
  type: 'address',
623
857
  },
624
858
  {
625
- name: '',
859
+ name: '_vaultTokenAmount',
626
860
  type: 'uint256',
627
861
  },
862
+ ],
863
+ outputs: [
628
864
  {
629
865
  name: '',
630
866
  type: 'uint256',
@@ -632,85 +868,404 @@ export const abi = [
632
868
  ],
633
869
  },
634
870
  {
635
- stateMutability: 'nonpayable',
871
+ stateMutability: 'view',
636
872
  type: 'function',
637
- name: 'depositForYield',
873
+ name: 'getUnderlyingAmountSafe',
638
874
  inputs: [
639
875
  {
640
- name: '_asset',
876
+ name: '_vaultToken',
641
877
  type: 'address',
642
878
  },
643
879
  {
644
- name: '_amount',
880
+ name: '_vaultTokenBalance',
645
881
  type: 'uint256',
646
882
  },
647
- {
648
- name: '_vaultAddr',
883
+ ],
884
+ outputs: [
885
+ {
886
+ name: '',
887
+ type: 'uint256',
888
+ },
889
+ ],
890
+ },
891
+ {
892
+ stateMutability: 'view',
893
+ type: 'function',
894
+ name: 'getUnderlyingData',
895
+ inputs: [
896
+ {
897
+ name: '_vaultToken',
898
+ type: 'address',
899
+ },
900
+ {
901
+ name: '_vaultTokenAmount',
902
+ type: 'uint256',
903
+ },
904
+ ],
905
+ outputs: [
906
+ {
907
+ name: '',
908
+ type: 'address',
909
+ },
910
+ {
911
+ name: '',
912
+ type: 'uint256',
913
+ },
914
+ {
915
+ name: '',
916
+ type: 'uint256',
917
+ },
918
+ ],
919
+ },
920
+ {
921
+ stateMutability: 'view',
922
+ type: 'function',
923
+ name: 'getUnderlyingData',
924
+ inputs: [
925
+ {
926
+ name: '_vaultToken',
927
+ type: 'address',
928
+ },
929
+ {
930
+ name: '_vaultTokenAmount',
931
+ type: 'uint256',
932
+ },
933
+ {
934
+ name: '_appraiser',
935
+ type: 'address',
936
+ },
937
+ ],
938
+ outputs: [
939
+ {
940
+ name: '',
941
+ type: 'address',
942
+ },
943
+ {
944
+ name: '',
945
+ type: 'uint256',
946
+ },
947
+ {
948
+ name: '',
949
+ type: 'uint256',
950
+ },
951
+ ],
952
+ },
953
+ {
954
+ stateMutability: 'view',
955
+ type: 'function',
956
+ name: 'getUsdValueOfVaultToken',
957
+ inputs: [
958
+ {
959
+ name: '_vaultToken',
960
+ type: 'address',
961
+ },
962
+ {
963
+ name: '_vaultTokenAmount',
964
+ type: 'uint256',
965
+ },
966
+ ],
967
+ outputs: [
968
+ {
969
+ name: '',
970
+ type: 'uint256',
971
+ },
972
+ ],
973
+ },
974
+ {
975
+ stateMutability: 'view',
976
+ type: 'function',
977
+ name: 'getUsdValueOfVaultToken',
978
+ inputs: [
979
+ {
980
+ name: '_vaultToken',
981
+ type: 'address',
982
+ },
983
+ {
984
+ name: '_vaultTokenAmount',
985
+ type: 'uint256',
986
+ },
987
+ {
988
+ name: '_appraiser',
989
+ type: 'address',
990
+ },
991
+ ],
992
+ outputs: [
993
+ {
994
+ name: '',
995
+ type: 'uint256',
996
+ },
997
+ ],
998
+ },
999
+ {
1000
+ stateMutability: 'view',
1001
+ type: 'function',
1002
+ name: 'isRebasing',
1003
+ inputs: [],
1004
+ outputs: [
1005
+ {
1006
+ name: '',
1007
+ type: 'bool',
1008
+ },
1009
+ ],
1010
+ },
1011
+ {
1012
+ stateMutability: 'view',
1013
+ type: 'function',
1014
+ name: 'getPricePerShare',
1015
+ inputs: [
1016
+ {
1017
+ name: '_vaultToken',
1018
+ type: 'address',
1019
+ },
1020
+ ],
1021
+ outputs: [
1022
+ {
1023
+ name: '',
1024
+ type: 'uint256',
1025
+ },
1026
+ ],
1027
+ },
1028
+ {
1029
+ stateMutability: 'view',
1030
+ type: 'function',
1031
+ name: 'getPricePerShare',
1032
+ inputs: [
1033
+ {
1034
+ name: '_vaultToken',
1035
+ type: 'address',
1036
+ },
1037
+ {
1038
+ name: '_decimals',
1039
+ type: 'uint256',
1040
+ },
1041
+ ],
1042
+ outputs: [
1043
+ {
1044
+ name: '',
1045
+ type: 'uint256',
1046
+ },
1047
+ ],
1048
+ },
1049
+ {
1050
+ stateMutability: 'view',
1051
+ type: 'function',
1052
+ name: 'getVaultTokenAmount',
1053
+ inputs: [
1054
+ {
1055
+ name: '_asset',
1056
+ type: 'address',
1057
+ },
1058
+ {
1059
+ name: '_assetAmount',
1060
+ type: 'uint256',
1061
+ },
1062
+ {
1063
+ name: '_vaultToken',
1064
+ type: 'address',
1065
+ },
1066
+ ],
1067
+ outputs: [
1068
+ {
1069
+ name: '',
1070
+ type: 'uint256',
1071
+ },
1072
+ ],
1073
+ },
1074
+ {
1075
+ stateMutability: 'view',
1076
+ type: 'function',
1077
+ name: 'totalAssets',
1078
+ inputs: [
1079
+ {
1080
+ name: '_vaultToken',
1081
+ type: 'address',
1082
+ },
1083
+ ],
1084
+ outputs: [
1085
+ {
1086
+ name: '',
1087
+ type: 'uint256',
1088
+ },
1089
+ ],
1090
+ },
1091
+ {
1092
+ stateMutability: 'view',
1093
+ type: 'function',
1094
+ name: 'totalBorrows',
1095
+ inputs: [
1096
+ {
1097
+ name: '_vaultToken',
1098
+ type: 'address',
1099
+ },
1100
+ ],
1101
+ outputs: [
1102
+ {
1103
+ name: '',
1104
+ type: 'uint256',
1105
+ },
1106
+ ],
1107
+ },
1108
+ {
1109
+ stateMutability: 'view',
1110
+ type: 'function',
1111
+ name: 'getAvailLiquidity',
1112
+ inputs: [
1113
+ {
1114
+ name: '_vaultToken',
1115
+ type: 'address',
1116
+ },
1117
+ ],
1118
+ outputs: [
1119
+ {
1120
+ name: '',
1121
+ type: 'uint256',
1122
+ },
1123
+ ],
1124
+ },
1125
+ {
1126
+ stateMutability: 'view',
1127
+ type: 'function',
1128
+ name: 'getUtilizationRatio',
1129
+ inputs: [
1130
+ {
1131
+ name: '_vaultToken',
1132
+ type: 'address',
1133
+ },
1134
+ ],
1135
+ outputs: [
1136
+ {
1137
+ name: '',
1138
+ type: 'uint256',
1139
+ },
1140
+ ],
1141
+ },
1142
+ {
1143
+ stateMutability: 'view',
1144
+ type: 'function',
1145
+ name: 'isEligibleForYieldBonus',
1146
+ inputs: [
1147
+ {
1148
+ name: '_asset',
1149
+ type: 'address',
1150
+ },
1151
+ ],
1152
+ outputs: [
1153
+ {
1154
+ name: '',
1155
+ type: 'bool',
1156
+ },
1157
+ ],
1158
+ },
1159
+ {
1160
+ stateMutability: 'view',
1161
+ type: 'function',
1162
+ name: 'getWithdrawalFees',
1163
+ inputs: [
1164
+ {
1165
+ name: '_vaultToken',
1166
+ type: 'address',
1167
+ },
1168
+ {
1169
+ name: '_vaultTokenAmount',
1170
+ type: 'uint256',
1171
+ },
1172
+ ],
1173
+ outputs: [
1174
+ {
1175
+ name: '',
1176
+ type: 'uint256',
1177
+ },
1178
+ ],
1179
+ },
1180
+ {
1181
+ stateMutability: 'view',
1182
+ type: 'function',
1183
+ name: 'canRegisterVaultToken',
1184
+ inputs: [
1185
+ {
1186
+ name: '_asset',
649
1187
  type: 'address',
650
1188
  },
651
1189
  {
652
- name: '_extraData',
653
- type: 'bytes32',
1190
+ name: '_vaultToken',
1191
+ type: 'address',
654
1192
  },
1193
+ ],
1194
+ outputs: [
655
1195
  {
656
- name: '_recipient',
1196
+ name: '',
1197
+ type: 'bool',
1198
+ },
1199
+ ],
1200
+ },
1201
+ {
1202
+ stateMutability: 'nonpayable',
1203
+ type: 'function',
1204
+ name: 'registerVaultTokenLocally',
1205
+ inputs: [
1206
+ {
1207
+ name: '_asset',
657
1208
  type: 'address',
658
1209
  },
659
1210
  {
660
- name: '_miniAddys',
1211
+ name: '_vaultAddr',
1212
+ type: 'address',
1213
+ },
1214
+ ],
1215
+ outputs: [
1216
+ {
1217
+ name: '',
661
1218
  type: 'tuple',
662
1219
  components: [
663
1220
  {
664
- name: 'ledger',
665
- type: 'address',
666
- },
667
- {
668
- name: 'missionControl',
1221
+ name: 'underlyingAsset',
669
1222
  type: 'address',
670
1223
  },
671
1224
  {
672
- name: 'legoBook',
673
- type: 'address',
1225
+ name: 'decimals',
1226
+ type: 'uint256',
674
1227
  },
675
1228
  {
676
- name: 'appraiser',
677
- type: 'address',
1229
+ name: 'lastAveragePricePerShare',
1230
+ type: 'uint256',
678
1231
  },
679
1232
  ],
680
1233
  },
681
1234
  ],
682
- outputs: [
683
- {
684
- name: '',
685
- type: 'uint256',
686
- },
1235
+ },
1236
+ {
1237
+ stateMutability: 'nonpayable',
1238
+ type: 'function',
1239
+ name: 'deregisterVaultTokenLocally',
1240
+ inputs: [
687
1241
  {
688
- name: '',
1242
+ name: '_asset',
689
1243
  type: 'address',
690
1244
  },
691
1245
  {
692
- name: '',
693
- type: 'uint256',
694
- },
695
- {
696
- name: '',
697
- type: 'uint256',
1246
+ name: '_vaultAddr',
1247
+ type: 'address',
698
1248
  },
699
1249
  ],
1250
+ outputs: [],
700
1251
  },
701
1252
  {
702
1253
  stateMutability: 'nonpayable',
703
1254
  type: 'function',
704
- name: 'withdrawFromYield',
1255
+ name: 'depositForYield',
705
1256
  inputs: [
706
1257
  {
707
- name: '_vaultToken',
1258
+ name: '_asset',
708
1259
  type: 'address',
709
1260
  },
710
1261
  {
711
1262
  name: '_amount',
712
1263
  type: 'uint256',
713
1264
  },
1265
+ {
1266
+ name: '_vaultAddr',
1267
+ type: 'address',
1268
+ },
714
1269
  {
715
1270
  name: '_extraData',
716
1271
  type: 'bytes32',
@@ -742,16 +1297,20 @@ export const abi = [
742
1297
  {
743
1298
  stateMutability: 'nonpayable',
744
1299
  type: 'function',
745
- name: 'withdrawFromYield',
1300
+ name: 'depositForYield',
746
1301
  inputs: [
747
1302
  {
748
- name: '_vaultToken',
1303
+ name: '_asset',
749
1304
  type: 'address',
750
1305
  },
751
1306
  {
752
1307
  name: '_amount',
753
1308
  type: 'uint256',
754
1309
  },
1310
+ {
1311
+ name: '_vaultAddr',
1312
+ type: 'address',
1313
+ },
755
1314
  {
756
1315
  name: '_extraData',
757
1316
  type: 'bytes32',
@@ -803,54 +1362,40 @@ export const abi = [
803
1362
  ],
804
1363
  },
805
1364
  {
806
- stateMutability: 'view',
1365
+ stateMutability: 'nonpayable',
807
1366
  type: 'function',
808
- name: 'isVaultToken',
1367
+ name: 'withdrawFromYield',
809
1368
  inputs: [
810
1369
  {
811
1370
  name: '_vaultToken',
812
1371
  type: 'address',
813
1372
  },
814
- ],
815
- outputs: [
816
1373
  {
817
- name: '',
818
- type: 'bool',
1374
+ name: '_amount',
1375
+ type: 'uint256',
819
1376
  },
820
- ],
821
- },
822
- {
823
- stateMutability: 'view',
824
- type: 'function',
825
- name: 'getUnderlyingAsset',
826
- inputs: [
827
1377
  {
828
- name: '_vaultToken',
1378
+ name: '_extraData',
1379
+ type: 'bytes32',
1380
+ },
1381
+ {
1382
+ name: '_recipient',
829
1383
  type: 'address',
830
1384
  },
831
1385
  ],
832
1386
  outputs: [
833
1387
  {
834
1388
  name: '',
835
- type: 'address',
1389
+ type: 'uint256',
836
1390
  },
837
- ],
838
- },
839
- {
840
- stateMutability: 'view',
841
- type: 'function',
842
- name: 'getUnderlyingAmount',
843
- inputs: [
844
1391
  {
845
- name: '_vaultToken',
1392
+ name: '',
846
1393
  type: 'address',
847
1394
  },
848
1395
  {
849
- name: '_vaultTokenAmount',
1396
+ name: '',
850
1397
  type: 'uint256',
851
1398
  },
852
- ],
853
- outputs: [
854
1399
  {
855
1400
  name: '',
856
1401
  type: 'uint256',
@@ -858,70 +1403,108 @@ export const abi = [
858
1403
  ],
859
1404
  },
860
1405
  {
861
- stateMutability: 'view',
1406
+ stateMutability: 'nonpayable',
862
1407
  type: 'function',
863
- name: 'getVaultTokenAmount',
1408
+ name: 'withdrawFromYield',
864
1409
  inputs: [
865
1410
  {
866
- name: '_asset',
1411
+ name: '_vaultToken',
867
1412
  type: 'address',
868
1413
  },
869
1414
  {
870
- name: '_assetAmount',
1415
+ name: '_amount',
871
1416
  type: 'uint256',
872
1417
  },
873
1418
  {
874
- name: '_vaultToken',
1419
+ name: '_extraData',
1420
+ type: 'bytes32',
1421
+ },
1422
+ {
1423
+ name: '_recipient',
875
1424
  type: 'address',
876
1425
  },
1426
+ {
1427
+ name: '_miniAddys',
1428
+ type: 'tuple',
1429
+ components: [
1430
+ {
1431
+ name: 'ledger',
1432
+ type: 'address',
1433
+ },
1434
+ {
1435
+ name: 'missionControl',
1436
+ type: 'address',
1437
+ },
1438
+ {
1439
+ name: 'legoBook',
1440
+ type: 'address',
1441
+ },
1442
+ {
1443
+ name: 'appraiser',
1444
+ type: 'address',
1445
+ },
1446
+ ],
1447
+ },
877
1448
  ],
878
1449
  outputs: [
879
1450
  {
880
1451
  name: '',
881
1452
  type: 'uint256',
882
1453
  },
1454
+ {
1455
+ name: '',
1456
+ type: 'address',
1457
+ },
1458
+ {
1459
+ name: '',
1460
+ type: 'uint256',
1461
+ },
1462
+ {
1463
+ name: '',
1464
+ type: 'uint256',
1465
+ },
883
1466
  ],
884
1467
  },
885
1468
  {
886
- stateMutability: 'view',
1469
+ stateMutability: 'nonpayable',
887
1470
  type: 'function',
888
- name: 'getUsdValueOfVaultToken',
1471
+ name: 'addPriceSnapshot',
889
1472
  inputs: [
890
1473
  {
891
1474
  name: '_vaultToken',
892
1475
  type: 'address',
893
1476
  },
894
- {
895
- name: '_vaultTokenAmount',
896
- type: 'uint256',
897
- },
898
1477
  ],
899
1478
  outputs: [
900
1479
  {
901
1480
  name: '',
902
- type: 'uint256',
1481
+ type: 'bool',
903
1482
  },
904
1483
  ],
905
1484
  },
906
1485
  {
907
1486
  stateMutability: 'view',
908
1487
  type: 'function',
909
- name: 'getUsdValueOfVaultToken',
1488
+ name: 'getAccessForLego',
910
1489
  inputs: [
911
1490
  {
912
- name: '_vaultToken',
1491
+ name: '_user',
913
1492
  type: 'address',
914
1493
  },
915
1494
  {
916
- name: '_vaultTokenAmount',
1495
+ name: '_action',
917
1496
  type: 'uint256',
918
1497
  },
1498
+ ],
1499
+ outputs: [
919
1500
  {
920
- name: '_appraiser',
1501
+ name: '',
921
1502
  type: 'address',
922
1503
  },
923
- ],
924
- outputs: [
1504
+ {
1505
+ name: '',
1506
+ type: 'string',
1507
+ },
925
1508
  {
926
1509
  name: '',
927
1510
  type: 'uint256',
@@ -929,24 +1512,28 @@ export const abi = [
929
1512
  ],
930
1513
  },
931
1514
  {
932
- stateMutability: 'view',
1515
+ stateMutability: 'nonpayable',
933
1516
  type: 'function',
934
- name: 'getUnderlyingData',
1517
+ name: 'claimRewards',
935
1518
  inputs: [
936
1519
  {
937
- name: '_vaultToken',
1520
+ name: '_user',
938
1521
  type: 'address',
939
1522
  },
940
1523
  {
941
- name: '_vaultTokenAmount',
1524
+ name: '_rewardToken',
1525
+ type: 'address',
1526
+ },
1527
+ {
1528
+ name: '_rewardAmount',
942
1529
  type: 'uint256',
943
1530
  },
944
- ],
945
- outputs: [
946
1531
  {
947
- name: '',
948
- type: 'address',
1532
+ name: '_extraData',
1533
+ type: 'bytes32',
949
1534
  },
1535
+ ],
1536
+ outputs: [
950
1537
  {
951
1538
  name: '',
952
1539
  type: 'uint256',
@@ -958,28 +1545,50 @@ export const abi = [
958
1545
  ],
959
1546
  },
960
1547
  {
961
- stateMutability: 'view',
1548
+ stateMutability: 'nonpayable',
962
1549
  type: 'function',
963
- name: 'getUnderlyingData',
1550
+ name: 'claimRewards',
964
1551
  inputs: [
965
1552
  {
966
- name: '_vaultToken',
1553
+ name: '_user',
967
1554
  type: 'address',
968
1555
  },
969
1556
  {
970
- name: '_vaultTokenAmount',
1557
+ name: '_rewardToken',
1558
+ type: 'address',
1559
+ },
1560
+ {
1561
+ name: '_rewardAmount',
971
1562
  type: 'uint256',
972
1563
  },
973
1564
  {
974
- name: '_appraiser',
975
- type: 'address',
1565
+ name: '_extraData',
1566
+ type: 'bytes32',
976
1567
  },
977
- ],
978
- outputs: [
979
1568
  {
980
- name: '',
981
- type: 'address',
1569
+ name: '_miniAddys',
1570
+ type: 'tuple',
1571
+ components: [
1572
+ {
1573
+ name: 'ledger',
1574
+ type: 'address',
1575
+ },
1576
+ {
1577
+ name: 'missionControl',
1578
+ type: 'address',
1579
+ },
1580
+ {
1581
+ name: 'legoBook',
1582
+ type: 'address',
1583
+ },
1584
+ {
1585
+ name: 'appraiser',
1586
+ type: 'address',
1587
+ },
1588
+ ],
982
1589
  },
1590
+ ],
1591
+ outputs: [
983
1592
  {
984
1593
  name: '',
985
1594
  type: 'uint256',
@@ -991,30 +1600,25 @@ export const abi = [
991
1600
  ],
992
1601
  },
993
1602
  {
994
- stateMutability: 'view',
1603
+ stateMutability: 'nonpayable',
995
1604
  type: 'function',
996
- name: 'totalAssets',
1605
+ name: 'claimIncentives',
997
1606
  inputs: [
998
1607
  {
999
- name: '_vaultToken',
1608
+ name: '_user',
1000
1609
  type: 'address',
1001
1610
  },
1002
- ],
1003
- outputs: [
1004
1611
  {
1005
- name: '',
1612
+ name: '_rewardToken',
1613
+ type: 'address',
1614
+ },
1615
+ {
1616
+ name: '_rewardAmount',
1006
1617
  type: 'uint256',
1007
1618
  },
1008
- ],
1009
- },
1010
- {
1011
- stateMutability: 'view',
1012
- type: 'function',
1013
- name: 'totalBorrows',
1014
- inputs: [
1015
1619
  {
1016
- name: '_vaultToken',
1017
- type: 'address',
1620
+ name: '_proofs',
1621
+ type: 'bytes32[]',
1018
1622
  },
1019
1623
  ],
1020
1624
  outputs: [
@@ -1022,60 +1626,83 @@ export const abi = [
1022
1626
  name: '',
1023
1627
  type: 'uint256',
1024
1628
  },
1629
+ {
1630
+ name: '',
1631
+ type: 'uint256',
1632
+ },
1025
1633
  ],
1026
1634
  },
1027
1635
  {
1028
- stateMutability: 'view',
1636
+ stateMutability: 'nonpayable',
1029
1637
  type: 'function',
1030
- name: 'getPricePerShare',
1638
+ name: 'claimIncentives',
1031
1639
  inputs: [
1032
1640
  {
1033
- name: '_asset',
1641
+ name: '_user',
1034
1642
  type: 'address',
1035
1643
  },
1036
1644
  {
1037
- name: '_decimals',
1645
+ name: '_rewardToken',
1646
+ type: 'address',
1647
+ },
1648
+ {
1649
+ name: '_rewardAmount',
1038
1650
  type: 'uint256',
1039
1651
  },
1652
+ {
1653
+ name: '_proofs',
1654
+ type: 'bytes32[]',
1655
+ },
1656
+ {
1657
+ name: '_miniAddys',
1658
+ type: 'tuple',
1659
+ components: [
1660
+ {
1661
+ name: 'ledger',
1662
+ type: 'address',
1663
+ },
1664
+ {
1665
+ name: 'missionControl',
1666
+ type: 'address',
1667
+ },
1668
+ {
1669
+ name: 'legoBook',
1670
+ type: 'address',
1671
+ },
1672
+ {
1673
+ name: 'appraiser',
1674
+ type: 'address',
1675
+ },
1676
+ ],
1677
+ },
1040
1678
  ],
1041
1679
  outputs: [
1042
1680
  {
1043
1681
  name: '',
1044
1682
  type: 'uint256',
1045
1683
  },
1046
- ],
1047
- },
1048
- {
1049
- stateMutability: 'nonpayable',
1050
- type: 'function',
1051
- name: 'addAssetOpportunity',
1052
- inputs: [
1053
- {
1054
- name: '_asset',
1055
- type: 'address',
1056
- },
1057
1684
  {
1058
- name: '_vaultAddr',
1059
- type: 'address',
1685
+ name: '',
1686
+ type: 'uint256',
1060
1687
  },
1061
1688
  ],
1062
- outputs: [],
1063
1689
  },
1064
1690
  {
1065
- stateMutability: 'nonpayable',
1691
+ stateMutability: 'view',
1066
1692
  type: 'function',
1067
- name: 'removeAssetOpportunity',
1693
+ name: 'hasClaimableRewards',
1068
1694
  inputs: [
1069
1695
  {
1070
- name: '_asset',
1696
+ name: '_user',
1071
1697
  type: 'address',
1072
1698
  },
1699
+ ],
1700
+ outputs: [
1073
1701
  {
1074
- name: '_vaultAddr',
1075
- type: 'address',
1702
+ name: '',
1703
+ type: 'bool',
1076
1704
  },
1077
1705
  ],
1078
- outputs: [],
1079
1706
  },
1080
1707
  {
1081
1708
  stateMutability: 'nonpayable',
@@ -1741,94 +2368,6 @@ export const abi = [
1741
2368
  },
1742
2369
  ],
1743
2370
  },
1744
- {
1745
- stateMutability: 'nonpayable',
1746
- type: 'function',
1747
- name: 'claimRewards',
1748
- inputs: [
1749
- {
1750
- name: '_user',
1751
- type: 'address',
1752
- },
1753
- {
1754
- name: '_rewardToken',
1755
- type: 'address',
1756
- },
1757
- {
1758
- name: '_rewardAmount',
1759
- type: 'uint256',
1760
- },
1761
- {
1762
- name: '_extraData',
1763
- type: 'bytes32',
1764
- },
1765
- ],
1766
- outputs: [
1767
- {
1768
- name: '',
1769
- type: 'uint256',
1770
- },
1771
- {
1772
- name: '',
1773
- type: 'uint256',
1774
- },
1775
- ],
1776
- },
1777
- {
1778
- stateMutability: 'nonpayable',
1779
- type: 'function',
1780
- name: 'claimRewards',
1781
- inputs: [
1782
- {
1783
- name: '_user',
1784
- type: 'address',
1785
- },
1786
- {
1787
- name: '_rewardToken',
1788
- type: 'address',
1789
- },
1790
- {
1791
- name: '_rewardAmount',
1792
- type: 'uint256',
1793
- },
1794
- {
1795
- name: '_extraData',
1796
- type: 'bytes32',
1797
- },
1798
- {
1799
- name: '_miniAddys',
1800
- type: 'tuple',
1801
- components: [
1802
- {
1803
- name: 'ledger',
1804
- type: 'address',
1805
- },
1806
- {
1807
- name: 'missionControl',
1808
- type: 'address',
1809
- },
1810
- {
1811
- name: 'legoBook',
1812
- type: 'address',
1813
- },
1814
- {
1815
- name: 'appraiser',
1816
- type: 'address',
1817
- },
1818
- ],
1819
- },
1820
- ],
1821
- outputs: [
1822
- {
1823
- name: '',
1824
- type: 'uint256',
1825
- },
1826
- {
1827
- name: '',
1828
- type: 'uint256',
1829
- },
1830
- ],
1831
- },
1832
2371
  {
1833
2372
  stateMutability: 'nonpayable',
1834
2373
  type: 'function',
@@ -2464,57 +3003,19 @@ export const abi = [
2464
3003
  {
2465
3004
  stateMutability: 'view',
2466
3005
  type: 'function',
2467
- name: 'getAccessForLego',
2468
- inputs: [
2469
- {
2470
- name: '_user',
2471
- type: 'address',
2472
- },
2473
- {
2474
- name: '_action',
2475
- type: 'uint256',
2476
- },
2477
- ],
3006
+ name: 'AAVE_V3_POOL',
3007
+ inputs: [],
2478
3008
  outputs: [
2479
3009
  {
2480
3010
  name: '',
2481
3011
  type: 'address',
2482
3012
  },
2483
- {
2484
- name: '',
2485
- type: 'string',
2486
- },
2487
- {
2488
- name: '',
2489
- type: 'uint256',
2490
- },
2491
- ],
2492
- },
2493
- {
2494
- stateMutability: 'view',
2495
- type: 'function',
2496
- name: 'getPrice',
2497
- inputs: [
2498
- {
2499
- name: '_asset',
2500
- type: 'address',
2501
- },
2502
- {
2503
- name: '_decimals',
2504
- type: 'uint256',
2505
- },
2506
- ],
2507
- outputs: [
2508
- {
2509
- name: '',
2510
- type: 'uint256',
2511
- },
2512
3013
  ],
2513
3014
  },
2514
3015
  {
2515
3016
  stateMutability: 'view',
2516
3017
  type: 'function',
2517
- name: 'AAVE_V3_POOL',
3018
+ name: 'AAVE_V3_ADDRESS_PROVIDER',
2518
3019
  inputs: [],
2519
3020
  outputs: [
2520
3021
  {
@@ -2526,7 +3027,7 @@ export const abi = [
2526
3027
  {
2527
3028
  stateMutability: 'view',
2528
3029
  type: 'function',
2529
- name: 'AAVE_V3_ADDRESS_PROVIDER',
3030
+ name: 'RIPE_REGISTRY',
2530
3031
  inputs: [],
2531
3032
  outputs: [
2532
3033
  {
@@ -2551,11 +3052,15 @@ export const abi = [
2551
3052
  name: '_addressProvider',
2552
3053
  type: 'address',
2553
3054
  },
3055
+ {
3056
+ name: '_ripeRegistry',
3057
+ type: 'address',
3058
+ },
2554
3059
  ],
2555
3060
  outputs: [],
2556
3061
  },
2557
3062
  ];
2558
- export const deployAddress = '0xb7401d91f1586474164B6c6Df328E3C3A5f24649';
3063
+ export const deployAddress = '0xac80b9465d70AAFBe492A08baeA5c6e9d77b1478';
2559
3064
  function getRequest(method, args, contractAddressOrOptions) {
2560
3065
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2561
3066
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2591,34 +3096,45 @@ export const call = {
2591
3096
  getAssets: (...args) => getRequest('getAssets', args),
2592
3097
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2593
3098
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2594
- isPaused: (...args) => getRequest('isPaused', args),
3099
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3100
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3101
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3102
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2595
3103
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2596
3104
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2597
3105
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2598
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2599
3106
  assets: (...args) => getRequest('assets', args),
2600
3107
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2601
3108
  numAssets: (...args) => getRequest('numAssets', args),
3109
+ snapShotData: (...args) => getRequest('snapShotData', args),
3110
+ snapShots: (...args) => getRequest('snapShots', args),
3111
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3112
+ isPaused: (...args) => getRequest('isPaused', args),
2602
3113
  hasCapability: (...args) => getRequest('hasCapability', args),
2603
3114
  getRegistries: (...args) => getRequest('getRegistries', args),
2604
3115
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2605
3116
  isDexLego: (...args) => getRequest('isDexLego', args),
2606
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2607
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2608
- isRebasing: (...args) => getRequest('isRebasing', args),
2609
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2610
3117
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3118
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2611
3119
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2612
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2613
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3120
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2614
3121
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3122
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3123
+ isRebasing: (...args) => getRequest('isRebasing', args),
3124
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3125
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2615
3126
  totalAssets: (...args) => getRequest('totalAssets', args),
2616
3127
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2617
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3128
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3129
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3130
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3131
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3132
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2618
3133
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2619
- getPrice: (...args) => getRequest('getPrice', args),
3134
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2620
3135
  AAVE_V3_POOL: (...args) => getRequest('AAVE_V3_POOL', args),
2621
3136
  AAVE_V3_ADDRESS_PROVIDER: (...args) => getRequest('AAVE_V3_ADDRESS_PROVIDER', args),
3137
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2622
3138
  };
2623
3139
  function getMutation(functionName) {
2624
3140
  return {
@@ -2633,10 +3149,14 @@ export const mutation = {
2633
3149
  pause: getMutation('pause'),
2634
3150
  recoverFunds: getMutation('recoverFunds'),
2635
3151
  recoverFundsMany: getMutation('recoverFundsMany'),
3152
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3153
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3154
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
2636
3155
  depositForYield: getMutation('depositForYield'),
2637
3156
  withdrawFromYield: getMutation('withdrawFromYield'),
2638
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2639
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
3157
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3158
+ claimRewards: getMutation('claimRewards'),
3159
+ claimIncentives: getMutation('claimIncentives'),
2640
3160
  swapTokens: getMutation('swapTokens'),
2641
3161
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2642
3162
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2644,7 +3164,6 @@ export const mutation = {
2644
3164
  removeCollateral: getMutation('removeCollateral'),
2645
3165
  borrow: getMutation('borrow'),
2646
3166
  repayDebt: getMutation('repayDebt'),
2647
- claimRewards: getMutation('claimRewards'),
2648
3167
  addLiquidity: getMutation('addLiquidity'),
2649
3168
  removeLiquidity: getMutation('removeLiquidity'),
2650
3169
  addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
@@ -2662,42 +3181,57 @@ export function toSdk(publicClient, walletClient) {
2662
3181
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2663
3182
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2664
3183
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2665
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3184
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3185
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3186
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3187
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2666
3188
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2667
3189
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2668
3190
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2669
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2670
3191
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2671
3192
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2672
3193
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3194
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3195
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3196
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3197
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2673
3198
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2674
3199
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2675
3200
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2676
3201
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2677
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2678
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2679
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2680
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2681
3202
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3203
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2682
3204
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2683
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2684
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3205
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2685
3206
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3207
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3208
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3209
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3210
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2686
3211
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2687
3212
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2688
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3213
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3214
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3215
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3216
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3217
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
2689
3218
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2690
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3219
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2691
3220
  AAVE_V3_POOL: (...args) => singleQuery(publicClient, call.AAVE_V3_POOL(...args)),
2692
3221
  AAVE_V3_ADDRESS_PROVIDER: (...args) => singleQuery(publicClient, call.AAVE_V3_ADDRESS_PROVIDER(...args)),
3222
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2693
3223
  // Mutations
2694
3224
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2695
3225
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2696
3226
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3227
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3228
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3229
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
2697
3230
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2698
3231
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2699
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2700
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
3232
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3233
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3234
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2701
3235
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2702
3236
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2703
3237
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
@@ -2705,7 +3239,6 @@ export function toSdk(publicClient, walletClient) {
2705
3239
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2706
3240
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2707
3241
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2708
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2709
3242
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2710
3243
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
2711
3244
  addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),