@underscore-finance/sdk 1.0.12 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/contracts/AaveV3.d.ts +688 -251
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +873 -340
  4. package/dist/contracts/AeroClassic.d.ts +85 -13
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +106 -17
  7. package/dist/contracts/AeroSlipstream.d.ts +120 -14
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +149 -18
  10. package/dist/contracts/{v0_2_Agent.d.ts → AgentSenderGeneric.d.ts} +2546 -1228
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  12. package/dist/contracts/{v0_2_Agent.js → AgentSenderGeneric.js} +3210 -1388
  13. package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
  14. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  15. package/dist/contracts/AgentSenderSpecial.js +2509 -0
  16. package/dist/contracts/AgentWrapper.d.ts +170 -1462
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +262 -1869
  19. package/dist/contracts/{v0_3_Agent.d.ts → AgentWrapperV1.d.ts} +1983 -932
  20. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  21. package/dist/contracts/{Agent_v2.js → AgentWrapperV1.js} +2582 -1118
  22. package/dist/contracts/Appraiser.d.ts +22 -459
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +26 -596
  25. package/dist/contracts/Avantis.d.ts +2565 -0
  26. package/dist/contracts/Avantis.d.ts.map +1 -0
  27. package/dist/contracts/{v0_1_Agent.js → Avantis.js} +1674 -1790
  28. package/dist/contracts/Billing.d.ts +4 -68
  29. package/dist/contracts/Billing.d.ts.map +1 -1
  30. package/dist/contracts/Billing.js +5 -82
  31. package/dist/contracts/ChequeBook.d.ts +52 -1
  32. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  33. package/dist/contracts/ChequeBook.js +53 -1
  34. package/dist/contracts/CompoundV3.d.ts +674 -251
  35. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  36. package/dist/contracts/CompoundV3.js +819 -305
  37. package/dist/contracts/ConvertVaultToken.d.ts +63 -0
  38. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  39. package/dist/contracts/ConvertVaultToken.js +75 -0
  40. package/dist/contracts/Curve.d.ts +18 -17
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +23 -24
  43. package/dist/contracts/DefaultsBase.d.ts +45 -56
  44. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  45. package/dist/contracts/DefaultsBase.js +45 -59
  46. package/dist/contracts/EarnVault.d.ts +1680 -0
  47. package/dist/contracts/EarnVault.d.ts.map +1 -0
  48. package/dist/contracts/{UserWallet_v2.js → EarnVault.js} +898 -1245
  49. package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
  50. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  51. package/dist/contracts/{v0_3_LegoSky.js → EarnVaultAgent.js} +640 -547
  52. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
  53. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  54. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  55. package/dist/contracts/Euler.d.ts +700 -255
  56. package/dist/contracts/Euler.d.ts.map +1 -1
  57. package/dist/contracts/Euler.js +834 -293
  58. package/dist/contracts/Fluid.d.ts +771 -284
  59. package/dist/contracts/Fluid.d.ts.map +1 -1
  60. package/dist/contracts/Fluid.js +925 -329
  61. package/dist/contracts/FortyAcres.d.ts +2579 -0
  62. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  63. package/dist/contracts/FortyAcres.js +3274 -0
  64. package/dist/contracts/Hatchery.d.ts +6 -176
  65. package/dist/contracts/Hatchery.d.ts.map +1 -1
  66. package/dist/contracts/Hatchery.js +5 -225
  67. package/dist/contracts/HighCommand.d.ts +237 -1
  68. package/dist/contracts/HighCommand.d.ts.map +1 -1
  69. package/dist/contracts/HighCommand.js +259 -1
  70. package/dist/contracts/Kernel.d.ts +8 -0
  71. package/dist/contracts/Kernel.d.ts.map +1 -1
  72. package/dist/contracts/Kernel.js +9 -1
  73. package/dist/contracts/LegoBook.d.ts +7 -0
  74. package/dist/contracts/LegoBook.d.ts.map +1 -1
  75. package/dist/contracts/LegoBook.js +9 -1
  76. package/dist/contracts/LegoTools.d.ts +4 -0
  77. package/dist/contracts/LegoTools.d.ts.map +1 -1
  78. package/dist/contracts/LegoTools.js +5 -1
  79. package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
  80. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  81. package/dist/contracts/{LegoCurve.js → LevgVaultHelper.js} +662 -767
  82. package/dist/contracts/LootDistributor.d.ts +49 -131
  83. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  84. package/dist/contracts/LootDistributor.js +58 -157
  85. package/dist/contracts/Migrator.d.ts +4 -0
  86. package/dist/contracts/Migrator.d.ts.map +1 -1
  87. package/dist/contracts/Migrator.js +5 -1
  88. package/dist/contracts/MissionControl.d.ts +211 -295
  89. package/dist/contracts/MissionControl.d.ts.map +1 -1
  90. package/dist/contracts/MissionControl.js +216 -305
  91. package/dist/contracts/Moonwell.d.ts +696 -251
  92. package/dist/contracts/Moonwell.d.ts.map +1 -1
  93. package/dist/contracts/Moonwell.js +832 -291
  94. package/dist/contracts/Morpho.d.ts +719 -274
  95. package/dist/contracts/Morpho.d.ts.map +1 -1
  96. package/dist/contracts/Morpho.js +849 -308
  97. package/dist/contracts/Paymaster.d.ts +4 -0
  98. package/dist/contracts/Paymaster.d.ts.map +1 -1
  99. package/dist/contracts/Paymaster.js +5 -1
  100. package/dist/contracts/RipeLego.d.ts +920 -378
  101. package/dist/contracts/RipeLego.d.ts.map +1 -1
  102. package/dist/contracts/RipeLego.js +1123 -462
  103. package/dist/contracts/Sentinel.d.ts +275 -7
  104. package/dist/contracts/Sentinel.d.ts.map +1 -1
  105. package/dist/contracts/Sentinel.js +331 -7
  106. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  107. package/dist/contracts/SignatureHelperV1.js +333 -333
  108. package/dist/contracts/SkyPsm.d.ts +2622 -0
  109. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  110. package/dist/contracts/SkyPsm.js +3329 -0
  111. package/dist/contracts/Switchboard.d.ts +7 -0
  112. package/dist/contracts/Switchboard.d.ts.map +1 -1
  113. package/dist/contracts/Switchboard.js +9 -1
  114. package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
  115. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardAlpha.js +566 -282
  117. package/dist/contracts/SwitchboardBravo.d.ts +4 -24
  118. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  119. package/dist/contracts/SwitchboardBravo.js +5 -32
  120. package/dist/contracts/SwitchboardCharlie.d.ts +2923 -0
  121. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  122. package/dist/contracts/SwitchboardCharlie.js +3635 -0
  123. package/dist/contracts/{Agent_v2.d.ts → UnderscoreLego.d.ts} +1605 -1763
  124. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  125. package/dist/contracts/{AgentTemplate.js → UnderscoreLego.js} +1664 -1796
  126. package/dist/contracts/UndyAero.d.ts +1680 -0
  127. package/dist/contracts/UndyAero.d.ts.map +1 -0
  128. package/dist/contracts/{v0_2_UserWallet.js → UndyAero.js} +1056 -1403
  129. package/dist/contracts/UndyBtc.d.ts +1680 -0
  130. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  131. package/dist/contracts/{WalletFunds.js → UndyBtc.js} +1063 -1436
  132. package/dist/contracts/UndyCbeth.d.ts +1680 -0
  133. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  134. package/dist/contracts/{UserWallet_v1.js → UndyCbeth.js} +1063 -1438
  135. package/dist/contracts/UndyEth.d.ts +1680 -0
  136. package/dist/contracts/UndyEth.d.ts.map +1 -0
  137. package/dist/contracts/UndyEth.js +2206 -0
  138. package/dist/contracts/UndyEurc.d.ts +1680 -0
  139. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  140. package/dist/contracts/UndyEurc.js +2206 -0
  141. package/dist/contracts/UndyGho.d.ts +1680 -0
  142. package/dist/contracts/UndyGho.d.ts.map +1 -0
  143. package/dist/contracts/UndyGho.js +2206 -0
  144. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  145. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  146. package/dist/contracts/UndyRewardsLego.js +5 -1
  147. package/dist/contracts/UndyUsd.d.ts +1680 -0
  148. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  149. package/dist/contracts/UndyUsd.js +2206 -0
  150. package/dist/contracts/UndyUsds.d.ts +1680 -0
  151. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  152. package/dist/contracts/UndyUsds.js +2206 -0
  153. package/dist/contracts/UniswapV2.d.ts +85 -13
  154. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  155. package/dist/contracts/UniswapV2.js +106 -17
  156. package/dist/contracts/UniswapV3.d.ts +120 -14
  157. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  158. package/dist/contracts/UniswapV3.js +149 -18
  159. package/dist/contracts/UserWallet.d.ts +12 -8
  160. package/dist/contracts/UserWallet.d.ts.map +1 -1
  161. package/dist/contracts/UserWallet.js +13 -9
  162. package/dist/contracts/UserWalletConfig.d.ts +198 -56
  163. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  164. package/dist/contracts/UserWalletConfig.js +225 -72
  165. package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
  166. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  167. package/dist/contracts/UserWalletConfigV1.js +4251 -0
  168. package/dist/contracts/{Agent_v1.d.ts → UserWalletV1.d.ts} +1178 -1176
  169. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  170. package/dist/contracts/{Agent_v1.js → UserWalletV1.js} +1468 -1340
  171. package/dist/contracts/VaultRegistry.d.ts +3028 -0
  172. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  173. package/dist/contracts/VaultRegistry.js +3843 -0
  174. package/dist/contracts/WalletBackpack.d.ts +4 -0
  175. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  176. package/dist/contracts/WalletBackpack.js +5 -1
  177. package/dist/contracts/Wasabi.d.ts +2579 -0
  178. package/dist/contracts/Wasabi.d.ts.map +1 -0
  179. package/dist/contracts/Wasabi.js +3274 -0
  180. package/dist/contracts/index.d.ts +25 -1
  181. package/dist/contracts/index.d.ts.map +1 -1
  182. package/dist/contracts/index.js +25 -1
  183. package/dist/contracts/sdk.d.ts +50 -2
  184. package/dist/contracts/sdk.d.ts.map +1 -1
  185. package/dist/contracts/sdk.js +50 -2
  186. package/dist/getSwapInstructions.js +1 -1
  187. package/dist/index.d.ts +33 -6
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +13 -7
  190. package/package.json +2 -2
  191. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  192. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  193. package/dist/contracts/AddyRegistry.js +0 -1392
  194. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  195. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  196. package/dist/contracts/AddyRegistry_v1.js +0 -594
  197. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  198. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  199. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  200. package/dist/contracts/AgentFactory.d.ts +0 -1665
  201. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  202. package/dist/contracts/AgentFactory.js +0 -2078
  203. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  204. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  205. package/dist/contracts/AgentFactory_v1.js +0 -1336
  206. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  207. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  208. package/dist/contracts/AgentFactory_v2.js +0 -1609
  209. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  210. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  211. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  212. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  213. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  214. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  215. package/dist/contracts/ChainlinkFeeds.js +0 -900
  216. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  217. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  218. package/dist/contracts/LegoAaveV3.js +0 -1330
  219. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  220. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  221. package/dist/contracts/LegoAeroClassic.js +0 -1546
  222. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  223. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  224. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  225. package/dist/contracts/LegoCommon.d.ts +0 -164
  226. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  227. package/dist/contracts/LegoCommon.js +0 -202
  228. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  229. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  230. package/dist/contracts/LegoCompoundV3.js +0 -1365
  231. package/dist/contracts/LegoCredit.d.ts +0 -140
  232. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  233. package/dist/contracts/LegoCredit.js +0 -179
  234. package/dist/contracts/LegoCurve.d.ts +0 -1189
  235. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  236. package/dist/contracts/LegoDex.d.ts +0 -587
  237. package/dist/contracts/LegoDex.d.ts.map +0 -1
  238. package/dist/contracts/LegoDex.js +0 -774
  239. package/dist/contracts/LegoEuler.d.ts +0 -1074
  240. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  241. package/dist/contracts/LegoEuler.js +0 -1383
  242. package/dist/contracts/LegoFluid.d.ts +0 -1025
  243. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  244. package/dist/contracts/LegoFluid.js +0 -1320
  245. package/dist/contracts/LegoHelper.d.ts +0 -1563
  246. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  247. package/dist/contracts/LegoHelper.js +0 -1947
  248. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  249. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  250. package/dist/contracts/LegoMoonwell.js +0 -1342
  251. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  252. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  253. package/dist/contracts/LegoMorpho.js +0 -1383
  254. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  255. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  256. package/dist/contracts/LegoRegistry.js +0 -1368
  257. package/dist/contracts/LegoSky.d.ts +0 -923
  258. package/dist/contracts/LegoSky.d.ts.map +0 -1
  259. package/dist/contracts/LegoSky.js +0 -1180
  260. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  261. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  262. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  263. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  264. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  265. package/dist/contracts/LegoUniswapV2.js +0 -1546
  266. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  267. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  268. package/dist/contracts/LegoUniswapV3.js +0 -1718
  269. package/dist/contracts/LegoYield.d.ts +0 -390
  270. package/dist/contracts/LegoYield.d.ts.map +0 -1
  271. package/dist/contracts/LegoYield.js +0 -511
  272. package/dist/contracts/OracleParser.d.ts +0 -207
  273. package/dist/contracts/OracleParser.d.ts.map +0 -1
  274. package/dist/contracts/OracleParser.js +0 -264
  275. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  276. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  277. package/dist/contracts/OracleRegistry.js +0 -1562
  278. package/dist/contracts/PriceSheets.d.ts +0 -1127
  279. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  280. package/dist/contracts/PriceSheets.js +0 -1383
  281. package/dist/contracts/PythFeeds.d.ts +0 -640
  282. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  283. package/dist/contracts/PythFeeds.js +0 -813
  284. package/dist/contracts/StorkFeeds.d.ts +0 -640
  285. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  286. package/dist/contracts/StorkFeeds.js +0 -813
  287. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  288. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  289. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  290. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  291. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  292. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  293. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  294. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  295. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  296. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  297. package/dist/contracts/WalletConfig.d.ts +0 -1398
  298. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  299. package/dist/contracts/WalletConfig.js +0 -1674
  300. package/dist/contracts/WalletFunds.d.ts +0 -1978
  301. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  302. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  303. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  304. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  305. package/dist/contracts/v0_1_Agent.d.ts +0 -2631
  306. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  307. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  308. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  309. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  310. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  311. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  312. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  313. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  314. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  315. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  316. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  317. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  318. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  319. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  320. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  321. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  322. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  323. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  324. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  325. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  326. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  327. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  328. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  329. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  330. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  331. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  332. package/dist/contracts/v0_3_Agent.js +0 -3458
  333. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  334. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  335. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  336. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  337. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  338. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  339. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  340. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  341. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  342. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  343. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  344. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  345. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  346. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  347. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  348. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  349. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  350. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  351. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  352. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  353. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  354. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  355. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  356. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  357. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  358. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  359. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  360. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  361. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  362. package/dist/contracts/v0_3_LegoDex.js +0 -774
  363. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  364. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  365. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  366. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  367. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  368. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  369. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  370. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  371. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  372. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  373. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  374. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  375. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  376. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  377. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  378. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  379. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  380. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  381. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  382. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  383. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  384. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  385. package/dist/contracts/v0_3_LegoUniswapV3.js +0 -1718
  386. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  387. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  388. package/dist/contracts/v0_3_LegoYield.js +0 -511
  389. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  390. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  391. package/dist/contracts/v0_3_OracleParser.js +0 -264
  392. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  393. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  394. package/dist/contracts/v0_3_OracleRegistry.js +0 -1562
  395. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  396. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  397. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  398. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  399. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  400. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  401. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  402. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  403. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  404. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  405. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  406. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  407. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  408. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  409. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  410. package/dist/getLegacyContracts.d.ts +0 -69
  411. package/dist/getLegacyContracts.d.ts.map +0 -1
  412. package/dist/getLegacyContracts.js +0 -55
@@ -102,6 +102,27 @@ export declare const abi: readonly [{
102
102
  }];
103
103
  readonly anonymous: false;
104
104
  readonly type: "event";
105
+ }, {
106
+ readonly name: "SnapShotPriceConfigSet";
107
+ readonly inputs: readonly [{
108
+ readonly name: "minSnapshotDelay";
109
+ readonly type: "uint256";
110
+ readonly indexed: false;
111
+ }, {
112
+ readonly name: "maxNumSnapshots";
113
+ readonly type: "uint256";
114
+ readonly indexed: false;
115
+ }, {
116
+ readonly name: "maxUpsideDeviation";
117
+ readonly type: "uint256";
118
+ readonly indexed: false;
119
+ }, {
120
+ readonly name: "staleTime";
121
+ readonly type: "uint256";
122
+ readonly indexed: false;
123
+ }];
124
+ readonly anonymous: false;
125
+ readonly type: "event";
105
126
  }, {
106
127
  readonly name: "AssetOpportunityAdded";
107
128
  readonly inputs: readonly [{
@@ -169,6 +190,9 @@ export declare const abi: readonly [{
169
190
  }, {
170
191
  readonly name: "billing";
171
192
  readonly type: "address";
193
+ }, {
194
+ readonly name: "vaultRegistry";
195
+ readonly type: "address";
172
196
  }];
173
197
  }];
174
198
  }, {
@@ -273,12 +297,109 @@ export declare const abi: readonly [{
273
297
  }, {
274
298
  readonly stateMutability: "view";
275
299
  readonly type: "function";
276
- readonly name: "isPaused";
277
- readonly inputs: readonly [];
300
+ readonly name: "getWeightedPricePerShare";
301
+ readonly inputs: readonly [{
302
+ readonly name: "_vaultToken";
303
+ readonly type: "address";
304
+ }];
305
+ readonly outputs: readonly [{
306
+ readonly name: "";
307
+ readonly type: "uint256";
308
+ }];
309
+ }, {
310
+ readonly stateMutability: "view";
311
+ readonly type: "function";
312
+ readonly name: "getLatestSnapshot";
313
+ readonly inputs: readonly [{
314
+ readonly name: "_vaultToken";
315
+ readonly type: "address";
316
+ }, {
317
+ readonly name: "_pricePerShare";
318
+ readonly type: "uint256";
319
+ }];
320
+ readonly outputs: readonly [{
321
+ readonly name: "";
322
+ readonly type: "tuple";
323
+ readonly components: readonly [{
324
+ readonly name: "totalSupply";
325
+ readonly type: "uint256";
326
+ }, {
327
+ readonly name: "pricePerShare";
328
+ readonly type: "uint256";
329
+ }, {
330
+ readonly name: "lastUpdate";
331
+ readonly type: "uint256";
332
+ }];
333
+ }];
334
+ }, {
335
+ readonly stateMutability: "nonpayable";
336
+ readonly type: "function";
337
+ readonly name: "setSnapShotPriceConfig";
338
+ readonly inputs: readonly [{
339
+ readonly name: "_config";
340
+ readonly type: "tuple";
341
+ readonly components: readonly [{
342
+ readonly name: "minSnapshotDelay";
343
+ readonly type: "uint256";
344
+ }, {
345
+ readonly name: "maxNumSnapshots";
346
+ readonly type: "uint256";
347
+ }, {
348
+ readonly name: "maxUpsideDeviation";
349
+ readonly type: "uint256";
350
+ }, {
351
+ readonly name: "staleTime";
352
+ readonly type: "uint256";
353
+ }];
354
+ }];
355
+ readonly outputs: readonly [];
356
+ }, {
357
+ readonly stateMutability: "view";
358
+ readonly type: "function";
359
+ readonly name: "isValidPriceConfig";
360
+ readonly inputs: readonly [{
361
+ readonly name: "_config";
362
+ readonly type: "tuple";
363
+ readonly components: readonly [{
364
+ readonly name: "minSnapshotDelay";
365
+ readonly type: "uint256";
366
+ }, {
367
+ readonly name: "maxNumSnapshots";
368
+ readonly type: "uint256";
369
+ }, {
370
+ readonly name: "maxUpsideDeviation";
371
+ readonly type: "uint256";
372
+ }, {
373
+ readonly name: "staleTime";
374
+ readonly type: "uint256";
375
+ }];
376
+ }];
278
377
  readonly outputs: readonly [{
279
378
  readonly name: "";
280
379
  readonly type: "bool";
281
380
  }];
381
+ }, {
382
+ readonly stateMutability: "view";
383
+ readonly type: "function";
384
+ readonly name: "vaultToAsset";
385
+ readonly inputs: readonly [{
386
+ readonly name: "arg0";
387
+ readonly type: "address";
388
+ }];
389
+ readonly outputs: readonly [{
390
+ readonly name: "";
391
+ readonly type: "tuple";
392
+ readonly components: readonly [{
393
+ readonly name: "underlyingAsset";
394
+ readonly type: "address";
395
+ }, {
396
+ readonly name: "decimals";
397
+ readonly type: "uint256";
398
+ }, {
399
+ readonly name: "lastAveragePricePerShare";
400
+ readonly type: "uint256";
401
+ }];
402
+ }];
282
403
  }, {
283
404
  readonly stateMutability: "view";
284
405
  readonly type: "function";
@@ -324,10 +445,10 @@ export declare const abi: readonly [{
324
445
  }, {
325
446
  readonly stateMutability: "view";
326
447
  readonly type: "function";
327
- readonly name: "vaultToAsset";
448
+ readonly name: "assets";
328
449
  readonly inputs: readonly [{
329
450
  readonly name: "arg0";
330
- readonly type: "address";
451
+ readonly type: "uint256";
331
452
  }];
332
453
  readonly outputs: readonly [{
333
454
  readonly name: "";
@@ -336,35 +457,108 @@ export declare const abi: readonly [{
336
457
  }, {
337
458
  readonly stateMutability: "view";
338
459
  readonly type: "function";
339
- readonly name: "assets";
460
+ readonly name: "indexOfAsset";
340
461
  readonly inputs: readonly [{
341
462
  readonly name: "arg0";
463
+ readonly type: "address";
464
+ }];
465
+ readonly outputs: readonly [{
466
+ readonly name: "";
342
467
  readonly type: "uint256";
343
468
  }];
469
+ }, {
470
+ readonly stateMutability: "view";
471
+ readonly type: "function";
472
+ readonly name: "numAssets";
473
+ readonly inputs: readonly [];
344
474
  readonly outputs: readonly [{
345
475
  readonly name: "";
346
- readonly type: "address";
476
+ readonly type: "uint256";
347
477
  }];
348
478
  }, {
349
479
  readonly stateMutability: "view";
350
480
  readonly type: "function";
351
- readonly name: "indexOfAsset";
481
+ readonly name: "snapShotData";
352
482
  readonly inputs: readonly [{
353
483
  readonly name: "arg0";
354
484
  readonly type: "address";
355
485
  }];
356
486
  readonly outputs: readonly [{
357
487
  readonly name: "";
488
+ readonly type: "tuple";
489
+ readonly components: readonly [{
490
+ readonly name: "lastSnapShot";
491
+ readonly type: "tuple";
492
+ readonly components: readonly [{
493
+ readonly name: "totalSupply";
494
+ readonly type: "uint256";
495
+ }, {
496
+ readonly name: "pricePerShare";
497
+ readonly type: "uint256";
498
+ }, {
499
+ readonly name: "lastUpdate";
500
+ readonly type: "uint256";
501
+ }];
502
+ }, {
503
+ readonly name: "nextIndex";
504
+ readonly type: "uint256";
505
+ }];
506
+ }];
507
+ }, {
508
+ readonly stateMutability: "view";
509
+ readonly type: "function";
510
+ readonly name: "snapShots";
511
+ readonly inputs: readonly [{
512
+ readonly name: "arg0";
513
+ readonly type: "address";
514
+ }, {
515
+ readonly name: "arg1";
358
516
  readonly type: "uint256";
359
517
  }];
518
+ readonly outputs: readonly [{
519
+ readonly name: "";
520
+ readonly type: "tuple";
521
+ readonly components: readonly [{
522
+ readonly name: "totalSupply";
523
+ readonly type: "uint256";
524
+ }, {
525
+ readonly name: "pricePerShare";
526
+ readonly type: "uint256";
527
+ }, {
528
+ readonly name: "lastUpdate";
529
+ readonly type: "uint256";
530
+ }];
531
+ }];
360
532
  }, {
361
533
  readonly stateMutability: "view";
362
534
  readonly type: "function";
363
- readonly name: "numAssets";
535
+ readonly name: "snapShotPriceConfig";
364
536
  readonly inputs: readonly [];
365
537
  readonly outputs: readonly [{
366
538
  readonly name: "";
367
- readonly type: "uint256";
539
+ readonly type: "tuple";
540
+ readonly components: readonly [{
541
+ readonly name: "minSnapshotDelay";
542
+ readonly type: "uint256";
543
+ }, {
544
+ readonly name: "maxNumSnapshots";
545
+ readonly type: "uint256";
546
+ }, {
547
+ readonly name: "maxUpsideDeviation";
548
+ readonly type: "uint256";
549
+ }, {
550
+ readonly name: "staleTime";
551
+ readonly type: "uint256";
552
+ }];
553
+ }];
554
+ }, {
555
+ readonly stateMutability: "view";
556
+ readonly type: "function";
557
+ readonly name: "isPaused";
558
+ readonly inputs: readonly [];
559
+ readonly outputs: readonly [{
560
+ readonly name: "";
561
+ readonly type: "bool";
368
562
  }];
369
563
  }, {
370
564
  readonly stateMutability: "view";
@@ -408,18 +602,243 @@ export declare const abi: readonly [{
408
602
  }, {
409
603
  readonly stateMutability: "view";
410
604
  readonly type: "function";
411
- readonly name: "isEligibleVaultForTrialFunds";
605
+ readonly name: "getUnderlyingAsset";
606
+ readonly inputs: readonly [{
607
+ readonly name: "_vaultToken";
608
+ readonly type: "address";
609
+ }];
610
+ readonly outputs: readonly [{
611
+ readonly name: "";
612
+ readonly type: "address";
613
+ }];
614
+ }, {
615
+ readonly stateMutability: "view";
616
+ readonly type: "function";
617
+ readonly name: "getUnderlyingBalances";
618
+ readonly inputs: readonly [{
619
+ readonly name: "_vaultToken";
620
+ readonly type: "address";
621
+ }, {
622
+ readonly name: "_vaultTokenBalance";
623
+ readonly type: "uint256";
624
+ }];
625
+ readonly outputs: readonly [{
626
+ readonly name: "";
627
+ readonly type: "uint256";
628
+ }, {
629
+ readonly name: "";
630
+ readonly type: "uint256";
631
+ }];
632
+ }, {
633
+ readonly stateMutability: "view";
634
+ readonly type: "function";
635
+ readonly name: "getUnderlyingAmount";
636
+ readonly inputs: readonly [{
637
+ readonly name: "_vaultToken";
638
+ readonly type: "address";
639
+ }, {
640
+ readonly name: "_vaultTokenAmount";
641
+ readonly type: "uint256";
642
+ }];
643
+ readonly outputs: readonly [{
644
+ readonly name: "";
645
+ readonly type: "uint256";
646
+ }];
647
+ }, {
648
+ readonly stateMutability: "view";
649
+ readonly type: "function";
650
+ readonly name: "getUnderlyingAmountSafe";
651
+ readonly inputs: readonly [{
652
+ readonly name: "_vaultToken";
653
+ readonly type: "address";
654
+ }, {
655
+ readonly name: "_vaultTokenBalance";
656
+ readonly type: "uint256";
657
+ }];
658
+ readonly outputs: readonly [{
659
+ readonly name: "";
660
+ readonly type: "uint256";
661
+ }];
662
+ }, {
663
+ readonly stateMutability: "view";
664
+ readonly type: "function";
665
+ readonly name: "getUnderlyingData";
666
+ readonly inputs: readonly [{
667
+ readonly name: "_vaultToken";
668
+ readonly type: "address";
669
+ }, {
670
+ readonly name: "_vaultTokenAmount";
671
+ readonly type: "uint256";
672
+ }];
673
+ readonly outputs: readonly [{
674
+ readonly name: "";
675
+ readonly type: "address";
676
+ }, {
677
+ readonly name: "";
678
+ readonly type: "uint256";
679
+ }, {
680
+ readonly name: "";
681
+ readonly type: "uint256";
682
+ }];
683
+ }, {
684
+ readonly stateMutability: "view";
685
+ readonly type: "function";
686
+ readonly name: "getUnderlyingData";
687
+ readonly inputs: readonly [{
688
+ readonly name: "_vaultToken";
689
+ readonly type: "address";
690
+ }, {
691
+ readonly name: "_vaultTokenAmount";
692
+ readonly type: "uint256";
693
+ }, {
694
+ readonly name: "_appraiser";
695
+ readonly type: "address";
696
+ }];
697
+ readonly outputs: readonly [{
698
+ readonly name: "";
699
+ readonly type: "address";
700
+ }, {
701
+ readonly name: "";
702
+ readonly type: "uint256";
703
+ }, {
704
+ readonly name: "";
705
+ readonly type: "uint256";
706
+ }];
707
+ }, {
708
+ readonly stateMutability: "view";
709
+ readonly type: "function";
710
+ readonly name: "getUsdValueOfVaultToken";
412
711
  readonly inputs: readonly [{
413
712
  readonly name: "_vaultToken";
414
713
  readonly type: "address";
415
714
  }, {
416
- readonly name: "_underlyingAsset";
715
+ readonly name: "_vaultTokenAmount";
716
+ readonly type: "uint256";
717
+ }];
718
+ readonly outputs: readonly [{
719
+ readonly name: "";
720
+ readonly type: "uint256";
721
+ }];
722
+ }, {
723
+ readonly stateMutability: "view";
724
+ readonly type: "function";
725
+ readonly name: "getUsdValueOfVaultToken";
726
+ readonly inputs: readonly [{
727
+ readonly name: "_vaultToken";
728
+ readonly type: "address";
729
+ }, {
730
+ readonly name: "_vaultTokenAmount";
731
+ readonly type: "uint256";
732
+ }, {
733
+ readonly name: "_appraiser";
417
734
  readonly type: "address";
418
735
  }];
736
+ readonly outputs: readonly [{
737
+ readonly name: "";
738
+ readonly type: "uint256";
739
+ }];
740
+ }, {
741
+ readonly stateMutability: "view";
742
+ readonly type: "function";
743
+ readonly name: "isRebasing";
744
+ readonly inputs: readonly [];
419
745
  readonly outputs: readonly [{
420
746
  readonly name: "";
421
747
  readonly type: "bool";
422
748
  }];
749
+ }, {
750
+ readonly stateMutability: "view";
751
+ readonly type: "function";
752
+ readonly name: "getPricePerShare";
753
+ readonly inputs: readonly [{
754
+ readonly name: "_vaultToken";
755
+ readonly type: "address";
756
+ }];
757
+ readonly outputs: readonly [{
758
+ readonly name: "";
759
+ readonly type: "uint256";
760
+ }];
761
+ }, {
762
+ readonly stateMutability: "view";
763
+ readonly type: "function";
764
+ readonly name: "getPricePerShare";
765
+ readonly inputs: readonly [{
766
+ readonly name: "_vaultToken";
767
+ readonly type: "address";
768
+ }, {
769
+ readonly name: "_decimals";
770
+ readonly type: "uint256";
771
+ }];
772
+ readonly outputs: readonly [{
773
+ readonly name: "";
774
+ readonly type: "uint256";
775
+ }];
776
+ }, {
777
+ readonly stateMutability: "view";
778
+ readonly type: "function";
779
+ readonly name: "getVaultTokenAmount";
780
+ readonly inputs: readonly [{
781
+ readonly name: "_asset";
782
+ readonly type: "address";
783
+ }, {
784
+ readonly name: "_assetAmount";
785
+ readonly type: "uint256";
786
+ }, {
787
+ readonly name: "_vaultToken";
788
+ readonly type: "address";
789
+ }];
790
+ readonly outputs: readonly [{
791
+ readonly name: "";
792
+ readonly type: "uint256";
793
+ }];
794
+ }, {
795
+ readonly stateMutability: "view";
796
+ readonly type: "function";
797
+ readonly name: "totalAssets";
798
+ readonly inputs: readonly [{
799
+ readonly name: "_vaultToken";
800
+ readonly type: "address";
801
+ }];
802
+ readonly outputs: readonly [{
803
+ readonly name: "";
804
+ readonly type: "uint256";
805
+ }];
806
+ }, {
807
+ readonly stateMutability: "view";
808
+ readonly type: "function";
809
+ readonly name: "totalBorrows";
810
+ readonly inputs: readonly [{
811
+ readonly name: "_vaultToken";
812
+ readonly type: "address";
813
+ }];
814
+ readonly outputs: readonly [{
815
+ readonly name: "";
816
+ readonly type: "uint256";
817
+ }];
818
+ }, {
819
+ readonly stateMutability: "view";
820
+ readonly type: "function";
821
+ readonly name: "getAvailLiquidity";
822
+ readonly inputs: readonly [{
823
+ readonly name: "_vaultToken";
824
+ readonly type: "address";
825
+ }];
826
+ readonly outputs: readonly [{
827
+ readonly name: "";
828
+ readonly type: "uint256";
829
+ }];
830
+ }, {
831
+ readonly stateMutability: "view";
832
+ readonly type: "function";
833
+ readonly name: "getUtilizationRatio";
834
+ readonly inputs: readonly [{
835
+ readonly name: "_vaultToken";
836
+ readonly type: "address";
837
+ }];
838
+ readonly outputs: readonly [{
839
+ readonly name: "";
840
+ readonly type: "uint256";
841
+ }];
423
842
  }, {
424
843
  readonly stateMutability: "view";
425
844
  readonly type: "function";
@@ -435,12 +854,70 @@ export declare const abi: readonly [{
435
854
  }, {
436
855
  readonly stateMutability: "view";
437
856
  readonly type: "function";
438
- readonly name: "isRebasing";
439
- readonly inputs: readonly [];
857
+ readonly name: "getWithdrawalFees";
858
+ readonly inputs: readonly [{
859
+ readonly name: "_vaultToken";
860
+ readonly type: "address";
861
+ }, {
862
+ readonly name: "_vaultTokenAmount";
863
+ readonly type: "uint256";
864
+ }];
865
+ readonly outputs: readonly [{
866
+ readonly name: "";
867
+ readonly type: "uint256";
868
+ }];
869
+ }, {
870
+ readonly stateMutability: "view";
871
+ readonly type: "function";
872
+ readonly name: "canRegisterVaultToken";
873
+ readonly inputs: readonly [{
874
+ readonly name: "_asset";
875
+ readonly type: "address";
876
+ }, {
877
+ readonly name: "_vaultToken";
878
+ readonly type: "address";
879
+ }];
440
880
  readonly outputs: readonly [{
441
881
  readonly name: "";
442
882
  readonly type: "bool";
443
883
  }];
884
+ }, {
885
+ readonly stateMutability: "nonpayable";
886
+ readonly type: "function";
887
+ readonly name: "registerVaultTokenLocally";
888
+ readonly inputs: readonly [{
889
+ readonly name: "_asset";
890
+ readonly type: "address";
891
+ }, {
892
+ readonly name: "_vaultAddr";
893
+ readonly type: "address";
894
+ }];
895
+ readonly outputs: readonly [{
896
+ readonly name: "";
897
+ readonly type: "tuple";
898
+ readonly components: readonly [{
899
+ readonly name: "underlyingAsset";
900
+ readonly type: "address";
901
+ }, {
902
+ readonly name: "decimals";
903
+ readonly type: "uint256";
904
+ }, {
905
+ readonly name: "lastAveragePricePerShare";
906
+ readonly type: "uint256";
907
+ }];
908
+ }];
909
+ }, {
910
+ readonly stateMutability: "nonpayable";
911
+ readonly type: "function";
912
+ readonly name: "deregisterVaultTokenLocally";
913
+ readonly inputs: readonly [{
914
+ readonly name: "_asset";
915
+ readonly type: "address";
916
+ }, {
917
+ readonly name: "_vaultAddr";
918
+ readonly type: "address";
919
+ }];
920
+ readonly outputs: readonly [];
444
921
  }, {
445
922
  readonly stateMutability: "nonpayable";
446
923
  readonly type: "function";
@@ -561,14 +1038,84 @@ export declare const abi: readonly [{
561
1038
  readonly name: "_vaultToken";
562
1039
  readonly type: "address";
563
1040
  }, {
564
- readonly name: "_amount";
1041
+ readonly name: "_amount";
1042
+ readonly type: "uint256";
1043
+ }, {
1044
+ readonly name: "_extraData";
1045
+ readonly type: "bytes32";
1046
+ }, {
1047
+ readonly name: "_recipient";
1048
+ readonly type: "address";
1049
+ }, {
1050
+ readonly name: "_miniAddys";
1051
+ readonly type: "tuple";
1052
+ readonly components: readonly [{
1053
+ readonly name: "ledger";
1054
+ readonly type: "address";
1055
+ }, {
1056
+ readonly name: "missionControl";
1057
+ readonly type: "address";
1058
+ }, {
1059
+ readonly name: "legoBook";
1060
+ readonly type: "address";
1061
+ }, {
1062
+ readonly name: "appraiser";
1063
+ readonly type: "address";
1064
+ }];
1065
+ }];
1066
+ readonly outputs: readonly [{
1067
+ readonly name: "";
1068
+ readonly type: "uint256";
1069
+ }, {
1070
+ readonly name: "";
1071
+ readonly type: "address";
1072
+ }, {
1073
+ readonly name: "";
1074
+ readonly type: "uint256";
1075
+ }, {
1076
+ readonly name: "";
1077
+ readonly type: "uint256";
1078
+ }];
1079
+ }, {
1080
+ readonly stateMutability: "nonpayable";
1081
+ readonly type: "function";
1082
+ readonly name: "claimIncentives";
1083
+ readonly inputs: readonly [{
1084
+ readonly name: "_user";
1085
+ readonly type: "address";
1086
+ }, {
1087
+ readonly name: "_rewardToken";
1088
+ readonly type: "address";
1089
+ }, {
1090
+ readonly name: "_rewardAmount";
1091
+ readonly type: "uint256";
1092
+ }, {
1093
+ readonly name: "_proofs";
1094
+ readonly type: "bytes32[]";
1095
+ }];
1096
+ readonly outputs: readonly [{
1097
+ readonly name: "";
1098
+ readonly type: "uint256";
1099
+ }, {
1100
+ readonly name: "";
1101
+ readonly type: "uint256";
1102
+ }];
1103
+ }, {
1104
+ readonly stateMutability: "nonpayable";
1105
+ readonly type: "function";
1106
+ readonly name: "claimIncentives";
1107
+ readonly inputs: readonly [{
1108
+ readonly name: "_user";
1109
+ readonly type: "address";
1110
+ }, {
1111
+ readonly name: "_rewardToken";
1112
+ readonly type: "address";
1113
+ }, {
1114
+ readonly name: "_rewardAmount";
565
1115
  readonly type: "uint256";
566
1116
  }, {
567
- readonly name: "_extraData";
568
- readonly type: "bytes32";
569
- }, {
570
- readonly name: "_recipient";
571
- readonly type: "address";
1117
+ readonly name: "_proofs";
1118
+ readonly type: "bytes32[]";
572
1119
  }, {
573
1120
  readonly name: "_miniAddys";
574
1121
  readonly type: "tuple";
@@ -589,12 +1136,6 @@ export declare const abi: readonly [{
589
1136
  readonly outputs: readonly [{
590
1137
  readonly name: "";
591
1138
  readonly type: "uint256";
592
- }, {
593
- readonly name: "";
594
- readonly type: "address";
595
- }, {
596
- readonly name: "";
597
- readonly type: "uint256";
598
1139
  }, {
599
1140
  readonly name: "";
600
1141
  readonly type: "uint256";
@@ -688,9 +1229,9 @@ export declare const abi: readonly [{
688
1229
  readonly type: "bool";
689
1230
  }];
690
1231
  }, {
691
- readonly stateMutability: "view";
1232
+ readonly stateMutability: "nonpayable";
692
1233
  readonly type: "function";
693
- readonly name: "isVaultToken";
1234
+ readonly name: "addPriceSnapshot";
694
1235
  readonly inputs: readonly [{
695
1236
  readonly name: "_vaultToken";
696
1237
  readonly type: "address";
@@ -702,189 +1243,24 @@ export declare const abi: readonly [{
702
1243
  }, {
703
1244
  readonly stateMutability: "view";
704
1245
  readonly type: "function";
705
- readonly name: "getUnderlyingAsset";
706
- readonly inputs: readonly [{
707
- readonly name: "_vaultToken";
708
- readonly type: "address";
709
- }];
710
- readonly outputs: readonly [{
711
- readonly name: "";
712
- readonly type: "address";
713
- }];
714
- }, {
715
- readonly stateMutability: "view";
716
- readonly type: "function";
717
- readonly name: "getUnderlyingAmount";
718
- readonly inputs: readonly [{
719
- readonly name: "_vaultToken";
720
- readonly type: "address";
721
- }, {
722
- readonly name: "_vaultTokenAmount";
723
- readonly type: "uint256";
724
- }];
725
- readonly outputs: readonly [{
726
- readonly name: "";
727
- readonly type: "uint256";
728
- }];
729
- }, {
730
- readonly stateMutability: "view";
731
- readonly type: "function";
732
- readonly name: "getVaultTokenAmount";
733
- readonly inputs: readonly [{
734
- readonly name: "_asset";
735
- readonly type: "address";
736
- }, {
737
- readonly name: "_assetAmount";
738
- readonly type: "uint256";
739
- }, {
740
- readonly name: "_vaultToken";
741
- readonly type: "address";
742
- }];
743
- readonly outputs: readonly [{
744
- readonly name: "";
745
- readonly type: "uint256";
746
- }];
747
- }, {
748
- readonly stateMutability: "view";
749
- readonly type: "function";
750
- readonly name: "getUsdValueOfVaultToken";
751
- readonly inputs: readonly [{
752
- readonly name: "_vaultToken";
753
- readonly type: "address";
754
- }, {
755
- readonly name: "_vaultTokenAmount";
756
- readonly type: "uint256";
757
- }];
758
- readonly outputs: readonly [{
759
- readonly name: "";
760
- readonly type: "uint256";
761
- }];
762
- }, {
763
- readonly stateMutability: "view";
764
- readonly type: "function";
765
- readonly name: "getUsdValueOfVaultToken";
766
- readonly inputs: readonly [{
767
- readonly name: "_vaultToken";
768
- readonly type: "address";
769
- }, {
770
- readonly name: "_vaultTokenAmount";
771
- readonly type: "uint256";
772
- }, {
773
- readonly name: "_appraiser";
774
- readonly type: "address";
775
- }];
776
- readonly outputs: readonly [{
777
- readonly name: "";
778
- readonly type: "uint256";
779
- }];
780
- }, {
781
- readonly stateMutability: "view";
782
- readonly type: "function";
783
- readonly name: "getUnderlyingData";
784
- readonly inputs: readonly [{
785
- readonly name: "_vaultToken";
786
- readonly type: "address";
787
- }, {
788
- readonly name: "_vaultTokenAmount";
789
- readonly type: "uint256";
790
- }];
791
- readonly outputs: readonly [{
792
- readonly name: "";
793
- readonly type: "address";
794
- }, {
795
- readonly name: "";
796
- readonly type: "uint256";
797
- }, {
798
- readonly name: "";
799
- readonly type: "uint256";
800
- }];
801
- }, {
802
- readonly stateMutability: "view";
803
- readonly type: "function";
804
- readonly name: "getUnderlyingData";
1246
+ readonly name: "getAccessForLego";
805
1247
  readonly inputs: readonly [{
806
- readonly name: "_vaultToken";
1248
+ readonly name: "_user";
807
1249
  readonly type: "address";
808
1250
  }, {
809
- readonly name: "_vaultTokenAmount";
1251
+ readonly name: "_action";
810
1252
  readonly type: "uint256";
811
- }, {
812
- readonly name: "_appraiser";
813
- readonly type: "address";
814
1253
  }];
815
1254
  readonly outputs: readonly [{
816
1255
  readonly name: "";
817
1256
  readonly type: "address";
818
1257
  }, {
819
1258
  readonly name: "";
820
- readonly type: "uint256";
821
- }, {
822
- readonly name: "";
823
- readonly type: "uint256";
824
- }];
825
- }, {
826
- readonly stateMutability: "view";
827
- readonly type: "function";
828
- readonly name: "totalAssets";
829
- readonly inputs: readonly [{
830
- readonly name: "_vaultToken";
831
- readonly type: "address";
832
- }];
833
- readonly outputs: readonly [{
834
- readonly name: "";
835
- readonly type: "uint256";
836
- }];
837
- }, {
838
- readonly stateMutability: "view";
839
- readonly type: "function";
840
- readonly name: "totalBorrows";
841
- readonly inputs: readonly [{
842
- readonly name: "_vaultToken";
843
- readonly type: "address";
844
- }];
845
- readonly outputs: readonly [{
846
- readonly name: "";
847
- readonly type: "uint256";
848
- }];
849
- }, {
850
- readonly stateMutability: "view";
851
- readonly type: "function";
852
- readonly name: "getPricePerShare";
853
- readonly inputs: readonly [{
854
- readonly name: "_asset";
855
- readonly type: "address";
1259
+ readonly type: "string";
856
1260
  }, {
857
- readonly name: "_decimals";
858
- readonly type: "uint256";
859
- }];
860
- readonly outputs: readonly [{
861
1261
  readonly name: "";
862
1262
  readonly type: "uint256";
863
1263
  }];
864
- }, {
865
- readonly stateMutability: "nonpayable";
866
- readonly type: "function";
867
- readonly name: "addAssetOpportunity";
868
- readonly inputs: readonly [{
869
- readonly name: "_asset";
870
- readonly type: "address";
871
- }, {
872
- readonly name: "_vaultAddr";
873
- readonly type: "address";
874
- }];
875
- readonly outputs: readonly [];
876
- }, {
877
- readonly stateMutability: "nonpayable";
878
- readonly type: "function";
879
- readonly name: "removeAssetOpportunity";
880
- readonly inputs: readonly [{
881
- readonly name: "_asset";
882
- readonly type: "address";
883
- }, {
884
- readonly name: "_vaultAddr";
885
- readonly type: "address";
886
- }];
887
- readonly outputs: readonly [];
888
1264
  }, {
889
1265
  readonly stateMutability: "nonpayable";
890
1266
  readonly type: "function";
@@ -1838,43 +2214,16 @@ export declare const abi: readonly [{
1838
2214
  }, {
1839
2215
  readonly stateMutability: "view";
1840
2216
  readonly type: "function";
1841
- readonly name: "getAccessForLego";
1842
- readonly inputs: readonly [{
1843
- readonly name: "_user";
1844
- readonly type: "address";
1845
- }, {
1846
- readonly name: "_action";
1847
- readonly type: "uint256";
1848
- }];
2217
+ readonly name: "compoundRewards";
2218
+ readonly inputs: readonly [];
1849
2219
  readonly outputs: readonly [{
1850
2220
  readonly name: "";
1851
2221
  readonly type: "address";
1852
- }, {
1853
- readonly name: "";
1854
- readonly type: "string";
1855
- }, {
1856
- readonly name: "";
1857
- readonly type: "uint256";
1858
- }];
1859
- }, {
1860
- readonly stateMutability: "view";
1861
- readonly type: "function";
1862
- readonly name: "getPrice";
1863
- readonly inputs: readonly [{
1864
- readonly name: "_asset";
1865
- readonly type: "address";
1866
- }, {
1867
- readonly name: "_decimals";
1868
- readonly type: "uint256";
1869
- }];
1870
- readonly outputs: readonly [{
1871
- readonly name: "";
1872
- readonly type: "uint256";
1873
2222
  }];
1874
2223
  }, {
1875
2224
  readonly stateMutability: "view";
1876
2225
  readonly type: "function";
1877
- readonly name: "compoundRewards";
2226
+ readonly name: "COMPOUND_V3_CONFIGURATOR";
1878
2227
  readonly inputs: readonly [];
1879
2228
  readonly outputs: readonly [{
1880
2229
  readonly name: "";
@@ -1883,7 +2232,7 @@ export declare const abi: readonly [{
1883
2232
  }, {
1884
2233
  readonly stateMutability: "view";
1885
2234
  readonly type: "function";
1886
- readonly name: "COMPOUND_V3_CONFIGURATOR";
2235
+ readonly name: "RIPE_REGISTRY";
1887
2236
  readonly inputs: readonly [];
1888
2237
  readonly outputs: readonly [{
1889
2238
  readonly name: "";
@@ -1901,6 +2250,9 @@ export declare const abi: readonly [{
1901
2250
  }, {
1902
2251
  readonly name: "_compRewards";
1903
2252
  readonly type: "address";
2253
+ }, {
2254
+ readonly name: "_ripeRegistry";
2255
+ readonly type: "address";
1904
2256
  }];
1905
2257
  readonly outputs: readonly [];
1906
2258
  }];
@@ -1919,6 +2271,7 @@ export type Contract = {
1919
2271
  appraiser: `0x${string}`;
1920
2272
  walletBackpack: `0x${string}`;
1921
2273
  billing: `0x${string}`;
2274
+ vaultRegistry: `0x${string}`;
1922
2275
  }>;
1923
2276
  getUndyHq: () => Promise<`0x${string}`>;
1924
2277
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -1926,39 +2279,90 @@ export type Contract = {
1926
2279
  getAssets: () => Promise<`0x${string}`[]>;
1927
2280
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
1928
2281
  getNumLegoAssets: () => Promise<bigint>;
1929
- isPaused: () => Promise<boolean>;
2282
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2283
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2284
+ totalSupply: bigint;
2285
+ pricePerShare: bigint;
2286
+ lastUpdate: bigint;
2287
+ }>;
2288
+ isValidPriceConfig: (config: {
2289
+ minSnapshotDelay: bigint;
2290
+ maxNumSnapshots: bigint;
2291
+ maxUpsideDeviation: bigint;
2292
+ staleTime: bigint;
2293
+ }) => Promise<boolean>;
2294
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2295
+ underlyingAsset: `0x${string}`;
2296
+ decimals: bigint;
2297
+ lastAveragePricePerShare: bigint;
2298
+ }>;
1930
2299
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
1931
2300
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
1932
2301
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
1933
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
1934
2302
  assets: (arg0: bigint) => Promise<`0x${string}`>;
1935
2303
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
1936
2304
  numAssets: () => Promise<bigint>;
2305
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2306
+ lastSnapShot: {
2307
+ totalSupply: bigint;
2308
+ pricePerShare: bigint;
2309
+ lastUpdate: bigint;
2310
+ };
2311
+ nextIndex: bigint;
2312
+ }>;
2313
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2314
+ totalSupply: bigint;
2315
+ pricePerShare: bigint;
2316
+ lastUpdate: bigint;
2317
+ }>;
2318
+ snapShotPriceConfig: () => Promise<{
2319
+ minSnapshotDelay: bigint;
2320
+ maxNumSnapshots: bigint;
2321
+ maxUpsideDeviation: bigint;
2322
+ staleTime: bigint;
2323
+ }>;
2324
+ isPaused: () => Promise<boolean>;
1937
2325
  hasCapability: (action: bigint) => Promise<boolean>;
1938
2326
  getRegistries: () => Promise<`0x${string}`[]>;
1939
2327
  isYieldLego: () => Promise<boolean>;
1940
2328
  isDexLego: () => Promise<boolean>;
1941
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
1942
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1943
- isRebasing: () => Promise<boolean>;
1944
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
1945
2329
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2330
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
1946
2331
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
1947
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1948
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2332
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
1949
2333
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2334
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2335
+ isRebasing: () => Promise<boolean>;
2336
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2337
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1950
2338
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
1951
2339
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
1952
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2340
+ getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
2341
+ getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
2342
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2343
+ getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2344
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
1953
2345
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
1954
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
1955
2346
  compoundRewards: () => Promise<`0x${string}`>;
1956
2347
  COMPOUND_V3_CONFIGURATOR: () => Promise<`0x${string}`>;
2348
+ RIPE_REGISTRY: () => Promise<`0x${string}`>;
1957
2349
  };
1958
2350
  mutations: {
1959
2351
  pause: (shouldPause: boolean) => Promise<void>;
1960
2352
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1961
2353
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2354
+ setSnapShotPriceConfig: (config: {
2355
+ minSnapshotDelay: bigint;
2356
+ maxNumSnapshots: bigint;
2357
+ maxUpsideDeviation: bigint;
2358
+ staleTime: bigint;
2359
+ }) => Promise<void>;
2360
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2361
+ underlyingAsset: `0x${string}`;
2362
+ decimals: bigint;
2363
+ lastAveragePricePerShare: bigint;
2364
+ }>;
2365
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1962
2366
  depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1963
2367
  ledger: `0x${string}`;
1964
2368
  missionControl: `0x${string}`;
@@ -1971,6 +2375,12 @@ export type Contract = {
1971
2375
  legoBook: `0x${string}`;
1972
2376
  appraiser: `0x${string}`;
1973
2377
  }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2378
+ claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
2379
+ ledger: `0x${string}`;
2380
+ missionControl: `0x${string}`;
2381
+ legoBook: `0x${string}`;
2382
+ appraiser: `0x${string}`;
2383
+ }) => Promise<[bigint, bigint]>;
1974
2384
  claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
1975
2385
  ledger: `0x${string}`;
1976
2386
  missionControl: `0x${string}`;
@@ -1979,8 +2389,7 @@ export type Contract = {
1979
2389
  }) => Promise<[bigint, bigint]>;
1980
2390
  hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1981
2391
  setCompRewardsAddr: (addr: `0x${string}`) => Promise<boolean>;
1982
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1983
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2392
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
1984
2393
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
1985
2394
  ledger: `0x${string}`;
1986
2395
  missionControl: `0x${string}`;
@@ -2054,6 +2463,7 @@ export type Contract = {
2054
2463
  CompoundV3RewardsAddrSet: (addr: `0x${string}`) => Promise<void>;
2055
2464
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2056
2465
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2466
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2057
2467
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2058
2468
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2059
2469
  };
@@ -2103,44 +2513,57 @@ export type SDK = {
2103
2513
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2104
2514
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2105
2515
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2106
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2516
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2517
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2518
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2519
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2107
2520
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2108
2521
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2109
2522
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2110
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2111
2523
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2112
2524
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2113
2525
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2526
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2527
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2528
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2529
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2114
2530
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2115
2531
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2116
2532
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2117
2533
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2118
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2119
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2120
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2121
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2122
2534
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2535
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2123
2536
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2124
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2125
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2537
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2126
2538
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2539
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2540
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2541
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2542
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2127
2543
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2128
2544
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2129
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2545
+ getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
2546
+ getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
2547
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2548
+ getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
2549
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2130
2550
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2131
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2132
2551
  compoundRewards: (...args: ExtractArgs<Contract['calls']['compoundRewards']>) => Promise<CallReturn<'compoundRewards'>>;
2133
2552
  COMPOUND_V3_CONFIGURATOR: (...args: ExtractArgs<Contract['calls']['COMPOUND_V3_CONFIGURATOR']>) => Promise<CallReturn<'COMPOUND_V3_CONFIGURATOR'>>;
2553
+ RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
2134
2554
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2135
2555
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2136
2556
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2557
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2558
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2559
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2137
2560
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2138
2561
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2562
+ claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
2139
2563
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2140
2564
  hasClaimableRewards: (...args: ExtractArgs<Contract['mutations']['hasClaimableRewards']>) => Promise<Address>;
2141
2565
  setCompRewardsAddr: (...args: ExtractArgs<Contract['mutations']['setCompRewardsAddr']>) => Promise<Address>;
2142
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2143
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2566
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2144
2567
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2145
2568
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2146
2569
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;