@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
@@ -93,6 +93,27 @@ export declare const abi: readonly [{
93
93
  }];
94
94
  readonly anonymous: false;
95
95
  readonly type: "event";
96
+ }, {
97
+ readonly name: "SnapShotPriceConfigSet";
98
+ readonly inputs: readonly [{
99
+ readonly name: "minSnapshotDelay";
100
+ readonly type: "uint256";
101
+ readonly indexed: false;
102
+ }, {
103
+ readonly name: "maxNumSnapshots";
104
+ readonly type: "uint256";
105
+ readonly indexed: false;
106
+ }, {
107
+ readonly name: "maxUpsideDeviation";
108
+ readonly type: "uint256";
109
+ readonly indexed: false;
110
+ }, {
111
+ readonly name: "staleTime";
112
+ readonly type: "uint256";
113
+ readonly indexed: false;
114
+ }];
115
+ readonly anonymous: false;
116
+ readonly type: "event";
96
117
  }, {
97
118
  readonly name: "AssetOpportunityAdded";
98
119
  readonly inputs: readonly [{
@@ -119,6 +140,27 @@ export declare const abi: readonly [{
119
140
  }];
120
141
  readonly anonymous: false;
121
142
  readonly type: "event";
143
+ }, {
144
+ readonly name: "PricePerShareSnapShotAdded";
145
+ readonly inputs: readonly [{
146
+ readonly name: "vaultToken";
147
+ readonly type: "address";
148
+ readonly indexed: true;
149
+ }, {
150
+ readonly name: "totalSupply";
151
+ readonly type: "uint256";
152
+ readonly indexed: false;
153
+ }, {
154
+ readonly name: "pricePerShare";
155
+ readonly type: "uint256";
156
+ readonly indexed: false;
157
+ }, {
158
+ readonly name: "lastAveragePricePerShare";
159
+ readonly type: "uint256";
160
+ readonly indexed: false;
161
+ }];
162
+ readonly anonymous: false;
163
+ readonly type: "event";
122
164
  }, {
123
165
  readonly stateMutability: "view";
124
166
  readonly type: "function";
@@ -160,6 +202,9 @@ export declare const abi: readonly [{
160
202
  }, {
161
203
  readonly name: "billing";
162
204
  readonly type: "address";
205
+ }, {
206
+ readonly name: "vaultRegistry";
207
+ readonly type: "address";
163
208
  }];
164
209
  }];
165
210
  }, {
@@ -264,12 +309,109 @@ export declare const abi: readonly [{
264
309
  }, {
265
310
  readonly stateMutability: "view";
266
311
  readonly type: "function";
267
- readonly name: "isPaused";
268
- readonly inputs: readonly [];
312
+ readonly name: "getWeightedPricePerShare";
313
+ readonly inputs: readonly [{
314
+ readonly name: "_vaultToken";
315
+ readonly type: "address";
316
+ }];
317
+ readonly outputs: readonly [{
318
+ readonly name: "";
319
+ readonly type: "uint256";
320
+ }];
321
+ }, {
322
+ readonly stateMutability: "view";
323
+ readonly type: "function";
324
+ readonly name: "getLatestSnapshot";
325
+ readonly inputs: readonly [{
326
+ readonly name: "_vaultToken";
327
+ readonly type: "address";
328
+ }, {
329
+ readonly name: "_pricePerShare";
330
+ readonly type: "uint256";
331
+ }];
332
+ readonly outputs: readonly [{
333
+ readonly name: "";
334
+ readonly type: "tuple";
335
+ readonly components: readonly [{
336
+ readonly name: "totalSupply";
337
+ readonly type: "uint256";
338
+ }, {
339
+ readonly name: "pricePerShare";
340
+ readonly type: "uint256";
341
+ }, {
342
+ readonly name: "lastUpdate";
343
+ readonly type: "uint256";
344
+ }];
345
+ }];
346
+ }, {
347
+ readonly stateMutability: "nonpayable";
348
+ readonly type: "function";
349
+ readonly name: "setSnapShotPriceConfig";
350
+ readonly inputs: readonly [{
351
+ readonly name: "_config";
352
+ readonly type: "tuple";
353
+ readonly components: readonly [{
354
+ readonly name: "minSnapshotDelay";
355
+ readonly type: "uint256";
356
+ }, {
357
+ readonly name: "maxNumSnapshots";
358
+ readonly type: "uint256";
359
+ }, {
360
+ readonly name: "maxUpsideDeviation";
361
+ readonly type: "uint256";
362
+ }, {
363
+ readonly name: "staleTime";
364
+ readonly type: "uint256";
365
+ }];
366
+ }];
367
+ readonly outputs: readonly [];
368
+ }, {
369
+ readonly stateMutability: "view";
370
+ readonly type: "function";
371
+ readonly name: "isValidPriceConfig";
372
+ readonly inputs: readonly [{
373
+ readonly name: "_config";
374
+ readonly type: "tuple";
375
+ readonly components: readonly [{
376
+ readonly name: "minSnapshotDelay";
377
+ readonly type: "uint256";
378
+ }, {
379
+ readonly name: "maxNumSnapshots";
380
+ readonly type: "uint256";
381
+ }, {
382
+ readonly name: "maxUpsideDeviation";
383
+ readonly type: "uint256";
384
+ }, {
385
+ readonly name: "staleTime";
386
+ readonly type: "uint256";
387
+ }];
388
+ }];
269
389
  readonly outputs: readonly [{
270
390
  readonly name: "";
271
391
  readonly type: "bool";
272
392
  }];
393
+ }, {
394
+ readonly stateMutability: "view";
395
+ readonly type: "function";
396
+ readonly name: "vaultToAsset";
397
+ readonly inputs: readonly [{
398
+ readonly name: "arg0";
399
+ readonly type: "address";
400
+ }];
401
+ readonly outputs: readonly [{
402
+ readonly name: "";
403
+ readonly type: "tuple";
404
+ readonly components: readonly [{
405
+ readonly name: "underlyingAsset";
406
+ readonly type: "address";
407
+ }, {
408
+ readonly name: "decimals";
409
+ readonly type: "uint256";
410
+ }, {
411
+ readonly name: "lastAveragePricePerShare";
412
+ readonly type: "uint256";
413
+ }];
414
+ }];
273
415
  }, {
274
416
  readonly stateMutability: "view";
275
417
  readonly type: "function";
@@ -315,10 +457,10 @@ export declare const abi: readonly [{
315
457
  }, {
316
458
  readonly stateMutability: "view";
317
459
  readonly type: "function";
318
- readonly name: "vaultToAsset";
460
+ readonly name: "assets";
319
461
  readonly inputs: readonly [{
320
462
  readonly name: "arg0";
321
- readonly type: "address";
463
+ readonly type: "uint256";
322
464
  }];
323
465
  readonly outputs: readonly [{
324
466
  readonly name: "";
@@ -327,35 +469,108 @@ export declare const abi: readonly [{
327
469
  }, {
328
470
  readonly stateMutability: "view";
329
471
  readonly type: "function";
330
- readonly name: "assets";
472
+ readonly name: "indexOfAsset";
331
473
  readonly inputs: readonly [{
332
474
  readonly name: "arg0";
475
+ readonly type: "address";
476
+ }];
477
+ readonly outputs: readonly [{
478
+ readonly name: "";
333
479
  readonly type: "uint256";
334
480
  }];
481
+ }, {
482
+ readonly stateMutability: "view";
483
+ readonly type: "function";
484
+ readonly name: "numAssets";
485
+ readonly inputs: readonly [];
335
486
  readonly outputs: readonly [{
336
487
  readonly name: "";
337
- readonly type: "address";
488
+ readonly type: "uint256";
338
489
  }];
339
490
  }, {
340
491
  readonly stateMutability: "view";
341
492
  readonly type: "function";
342
- readonly name: "indexOfAsset";
493
+ readonly name: "snapShotData";
343
494
  readonly inputs: readonly [{
344
495
  readonly name: "arg0";
345
496
  readonly type: "address";
346
497
  }];
347
498
  readonly outputs: readonly [{
348
499
  readonly name: "";
500
+ readonly type: "tuple";
501
+ readonly components: readonly [{
502
+ readonly name: "lastSnapShot";
503
+ readonly type: "tuple";
504
+ readonly components: readonly [{
505
+ readonly name: "totalSupply";
506
+ readonly type: "uint256";
507
+ }, {
508
+ readonly name: "pricePerShare";
509
+ readonly type: "uint256";
510
+ }, {
511
+ readonly name: "lastUpdate";
512
+ readonly type: "uint256";
513
+ }];
514
+ }, {
515
+ readonly name: "nextIndex";
516
+ readonly type: "uint256";
517
+ }];
518
+ }];
519
+ }, {
520
+ readonly stateMutability: "view";
521
+ readonly type: "function";
522
+ readonly name: "snapShots";
523
+ readonly inputs: readonly [{
524
+ readonly name: "arg0";
525
+ readonly type: "address";
526
+ }, {
527
+ readonly name: "arg1";
349
528
  readonly type: "uint256";
350
529
  }];
530
+ readonly outputs: readonly [{
531
+ readonly name: "";
532
+ readonly type: "tuple";
533
+ readonly components: readonly [{
534
+ readonly name: "totalSupply";
535
+ readonly type: "uint256";
536
+ }, {
537
+ readonly name: "pricePerShare";
538
+ readonly type: "uint256";
539
+ }, {
540
+ readonly name: "lastUpdate";
541
+ readonly type: "uint256";
542
+ }];
543
+ }];
351
544
  }, {
352
545
  readonly stateMutability: "view";
353
546
  readonly type: "function";
354
- readonly name: "numAssets";
547
+ readonly name: "snapShotPriceConfig";
355
548
  readonly inputs: readonly [];
356
549
  readonly outputs: readonly [{
357
550
  readonly name: "";
358
- readonly type: "uint256";
551
+ readonly type: "tuple";
552
+ readonly components: readonly [{
553
+ readonly name: "minSnapshotDelay";
554
+ readonly type: "uint256";
555
+ }, {
556
+ readonly name: "maxNumSnapshots";
557
+ readonly type: "uint256";
558
+ }, {
559
+ readonly name: "maxUpsideDeviation";
560
+ readonly type: "uint256";
561
+ }, {
562
+ readonly name: "staleTime";
563
+ readonly type: "uint256";
564
+ }];
565
+ }];
566
+ }, {
567
+ readonly stateMutability: "view";
568
+ readonly type: "function";
569
+ readonly name: "isPaused";
570
+ readonly inputs: readonly [];
571
+ readonly outputs: readonly [{
572
+ readonly name: "";
573
+ readonly type: "bool";
359
574
  }];
360
575
  }, {
361
576
  readonly stateMutability: "view";
@@ -399,63 +614,75 @@ export declare const abi: readonly [{
399
614
  }, {
400
615
  readonly stateMutability: "view";
401
616
  readonly type: "function";
402
- readonly name: "isEligibleVaultForTrialFunds";
617
+ readonly name: "getUnderlyingAsset";
403
618
  readonly inputs: readonly [{
404
619
  readonly name: "_vaultToken";
405
620
  readonly type: "address";
406
- }, {
407
- readonly name: "_underlyingAsset";
408
- readonly type: "address";
409
621
  }];
410
622
  readonly outputs: readonly [{
411
623
  readonly name: "";
412
- readonly type: "bool";
624
+ readonly type: "address";
413
625
  }];
414
626
  }, {
415
627
  readonly stateMutability: "view";
416
628
  readonly type: "function";
417
- readonly name: "isEligibleForYieldBonus";
629
+ readonly name: "getUnderlyingBalances";
418
630
  readonly inputs: readonly [{
419
- readonly name: "_asset";
631
+ readonly name: "_vaultToken";
420
632
  readonly type: "address";
633
+ }, {
634
+ readonly name: "_vaultTokenBalance";
635
+ readonly type: "uint256";
421
636
  }];
422
637
  readonly outputs: readonly [{
423
638
  readonly name: "";
424
- readonly type: "bool";
639
+ readonly type: "uint256";
640
+ }, {
641
+ readonly name: "";
642
+ readonly type: "uint256";
425
643
  }];
426
644
  }, {
427
645
  readonly stateMutability: "view";
428
646
  readonly type: "function";
429
- readonly name: "isRebasing";
430
- readonly inputs: readonly [];
647
+ readonly name: "getUnderlyingAmount";
648
+ readonly inputs: readonly [{
649
+ readonly name: "_vaultToken";
650
+ readonly type: "address";
651
+ }, {
652
+ readonly name: "_vaultTokenAmount";
653
+ readonly type: "uint256";
654
+ }];
431
655
  readonly outputs: readonly [{
432
656
  readonly name: "";
433
- readonly type: "bool";
657
+ readonly type: "uint256";
434
658
  }];
435
659
  }, {
436
- readonly stateMutability: "nonpayable";
660
+ readonly stateMutability: "view";
437
661
  readonly type: "function";
438
- readonly name: "depositForYield";
662
+ readonly name: "getUnderlyingAmountSafe";
439
663
  readonly inputs: readonly [{
440
- readonly name: "_asset";
664
+ readonly name: "_vaultToken";
441
665
  readonly type: "address";
442
666
  }, {
443
- readonly name: "_amount";
667
+ readonly name: "_vaultTokenBalance";
444
668
  readonly type: "uint256";
445
- }, {
446
- readonly name: "_vaultAddr";
447
- readonly type: "address";
448
- }, {
449
- readonly name: "_extraData";
450
- readonly type: "bytes32";
451
- }, {
452
- readonly name: "_recipient";
453
- readonly type: "address";
454
669
  }];
455
670
  readonly outputs: readonly [{
456
671
  readonly name: "";
457
672
  readonly type: "uint256";
673
+ }];
674
+ }, {
675
+ readonly stateMutability: "view";
676
+ readonly type: "function";
677
+ readonly name: "getUnderlyingData";
678
+ readonly inputs: readonly [{
679
+ readonly name: "_vaultToken";
680
+ readonly type: "address";
458
681
  }, {
682
+ readonly name: "_vaultTokenAmount";
683
+ readonly type: "uint256";
684
+ }];
685
+ readonly outputs: readonly [{
459
686
  readonly name: "";
460
687
  readonly type: "address";
461
688
  }, {
@@ -466,45 +693,20 @@ export declare const abi: readonly [{
466
693
  readonly type: "uint256";
467
694
  }];
468
695
  }, {
469
- readonly stateMutability: "nonpayable";
696
+ readonly stateMutability: "view";
470
697
  readonly type: "function";
471
- readonly name: "depositForYield";
698
+ readonly name: "getUnderlyingData";
472
699
  readonly inputs: readonly [{
473
- readonly name: "_asset";
700
+ readonly name: "_vaultToken";
474
701
  readonly type: "address";
475
702
  }, {
476
- readonly name: "_amount";
703
+ readonly name: "_vaultTokenAmount";
477
704
  readonly type: "uint256";
478
705
  }, {
479
- readonly name: "_vaultAddr";
480
- readonly type: "address";
481
- }, {
482
- readonly name: "_extraData";
483
- readonly type: "bytes32";
484
- }, {
485
- readonly name: "_recipient";
706
+ readonly name: "_appraiser";
486
707
  readonly type: "address";
487
- }, {
488
- readonly name: "_miniAddys";
489
- readonly type: "tuple";
490
- readonly components: readonly [{
491
- readonly name: "ledger";
492
- readonly type: "address";
493
- }, {
494
- readonly name: "missionControl";
495
- readonly type: "address";
496
- }, {
497
- readonly name: "legoBook";
498
- readonly type: "address";
499
- }, {
500
- readonly name: "appraiser";
501
- readonly type: "address";
502
- }];
503
708
  }];
504
709
  readonly outputs: readonly [{
505
- readonly name: "";
506
- readonly type: "uint256";
507
- }, {
508
710
  readonly name: "";
509
711
  readonly type: "address";
510
712
  }, {
@@ -515,45 +717,277 @@ export declare const abi: readonly [{
515
717
  readonly type: "uint256";
516
718
  }];
517
719
  }, {
518
- readonly stateMutability: "nonpayable";
720
+ readonly stateMutability: "view";
519
721
  readonly type: "function";
520
- readonly name: "withdrawFromYield";
722
+ readonly name: "getUsdValueOfVaultToken";
521
723
  readonly inputs: readonly [{
522
724
  readonly name: "_vaultToken";
523
725
  readonly type: "address";
524
726
  }, {
525
- readonly name: "_amount";
727
+ readonly name: "_vaultTokenAmount";
526
728
  readonly type: "uint256";
729
+ }];
730
+ readonly outputs: readonly [{
731
+ readonly name: "";
732
+ readonly type: "uint256";
733
+ }];
734
+ }, {
735
+ readonly stateMutability: "view";
736
+ readonly type: "function";
737
+ readonly name: "getUsdValueOfVaultToken";
738
+ readonly inputs: readonly [{
739
+ readonly name: "_vaultToken";
740
+ readonly type: "address";
527
741
  }, {
528
- readonly name: "_extraData";
529
- readonly type: "bytes32";
530
- }, {
531
- readonly name: "_recipient";
742
+ readonly name: "_vaultTokenAmount";
743
+ readonly type: "uint256";
744
+ }, {
745
+ readonly name: "_appraiser";
532
746
  readonly type: "address";
533
747
  }];
534
748
  readonly outputs: readonly [{
535
749
  readonly name: "";
536
750
  readonly type: "uint256";
751
+ }];
752
+ }, {
753
+ readonly stateMutability: "view";
754
+ readonly type: "function";
755
+ readonly name: "isRebasing";
756
+ readonly inputs: readonly [];
757
+ readonly outputs: readonly [{
758
+ readonly name: "";
759
+ readonly type: "bool";
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 outputs: readonly [{
770
+ readonly name: "";
771
+ readonly type: "uint256";
772
+ }];
773
+ }, {
774
+ readonly stateMutability: "view";
775
+ readonly type: "function";
776
+ readonly name: "getPricePerShare";
777
+ readonly inputs: readonly [{
778
+ readonly name: "_vaultToken";
779
+ readonly type: "address";
537
780
  }, {
781
+ readonly name: "_decimals";
782
+ readonly type: "uint256";
783
+ }];
784
+ readonly outputs: readonly [{
538
785
  readonly name: "";
786
+ readonly type: "uint256";
787
+ }];
788
+ }, {
789
+ readonly stateMutability: "view";
790
+ readonly type: "function";
791
+ readonly name: "getVaultTokenAmount";
792
+ readonly inputs: readonly [{
793
+ readonly name: "_asset";
539
794
  readonly type: "address";
540
795
  }, {
796
+ readonly name: "_assetAmount";
797
+ readonly type: "uint256";
798
+ }, {
799
+ readonly name: "_vaultToken";
800
+ readonly type: "address";
801
+ }];
802
+ readonly outputs: readonly [{
541
803
  readonly name: "";
542
804
  readonly type: "uint256";
805
+ }];
806
+ }, {
807
+ readonly stateMutability: "view";
808
+ readonly type: "function";
809
+ readonly name: "totalAssets";
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: "totalBorrows";
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: "getAvailLiquidity";
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
+ }];
842
+ }, {
843
+ readonly stateMutability: "view";
844
+ readonly type: "function";
845
+ readonly name: "getUtilizationRatio";
846
+ readonly inputs: readonly [{
847
+ readonly name: "_vaultToken";
848
+ readonly type: "address";
849
+ }];
850
+ readonly outputs: readonly [{
851
+ readonly name: "";
852
+ readonly type: "uint256";
853
+ }];
854
+ }, {
855
+ readonly stateMutability: "view";
856
+ readonly type: "function";
857
+ readonly name: "isEligibleForYieldBonus";
858
+ readonly inputs: readonly [{
859
+ readonly name: "_asset";
860
+ readonly type: "address";
861
+ }];
862
+ readonly outputs: readonly [{
863
+ readonly name: "";
864
+ readonly type: "bool";
865
+ }];
866
+ }, {
867
+ readonly stateMutability: "view";
868
+ readonly type: "function";
869
+ readonly name: "getWithdrawalFees";
870
+ readonly inputs: readonly [{
871
+ readonly name: "_vaultToken";
872
+ readonly type: "address";
543
873
  }, {
874
+ readonly name: "_vaultTokenAmount";
875
+ readonly type: "uint256";
876
+ }];
877
+ readonly outputs: readonly [{
544
878
  readonly name: "";
545
879
  readonly type: "uint256";
546
880
  }];
881
+ }, {
882
+ readonly stateMutability: "view";
883
+ readonly type: "function";
884
+ readonly name: "canRegisterVaultToken";
885
+ readonly inputs: readonly [{
886
+ readonly name: "_asset";
887
+ readonly type: "address";
888
+ }, {
889
+ readonly name: "_vaultToken";
890
+ readonly type: "address";
891
+ }];
892
+ readonly outputs: readonly [{
893
+ readonly name: "";
894
+ readonly type: "bool";
895
+ }];
547
896
  }, {
548
897
  readonly stateMutability: "nonpayable";
549
898
  readonly type: "function";
550
- readonly name: "withdrawFromYield";
899
+ readonly name: "registerVaultTokenLocally";
900
+ readonly inputs: readonly [{
901
+ readonly name: "_asset";
902
+ readonly type: "address";
903
+ }, {
904
+ readonly name: "_vaultAddr";
905
+ readonly type: "address";
906
+ }];
907
+ readonly outputs: readonly [{
908
+ readonly name: "";
909
+ readonly type: "tuple";
910
+ readonly components: readonly [{
911
+ readonly name: "underlyingAsset";
912
+ readonly type: "address";
913
+ }, {
914
+ readonly name: "decimals";
915
+ readonly type: "uint256";
916
+ }, {
917
+ readonly name: "lastAveragePricePerShare";
918
+ readonly type: "uint256";
919
+ }];
920
+ }];
921
+ }, {
922
+ readonly stateMutability: "nonpayable";
923
+ readonly type: "function";
924
+ readonly name: "deregisterVaultTokenLocally";
925
+ readonly inputs: readonly [{
926
+ readonly name: "_asset";
927
+ readonly type: "address";
928
+ }, {
929
+ readonly name: "_vaultAddr";
930
+ readonly type: "address";
931
+ }];
932
+ readonly outputs: readonly [];
933
+ }, {
934
+ readonly stateMutability: "nonpayable";
935
+ readonly type: "function";
936
+ readonly name: "addPriceSnapshot";
551
937
  readonly inputs: readonly [{
552
938
  readonly name: "_vaultToken";
553
939
  readonly type: "address";
940
+ }];
941
+ readonly outputs: readonly [{
942
+ readonly name: "";
943
+ readonly type: "bool";
944
+ }];
945
+ }, {
946
+ readonly stateMutability: "nonpayable";
947
+ readonly type: "function";
948
+ readonly name: "depositForYield";
949
+ readonly inputs: readonly [{
950
+ readonly name: "_asset";
951
+ readonly type: "address";
952
+ }, {
953
+ readonly name: "_amount";
954
+ readonly type: "uint256";
955
+ }, {
956
+ readonly name: "_vaultAddr";
957
+ readonly type: "address";
958
+ }, {
959
+ readonly name: "_extraData";
960
+ readonly type: "bytes32";
961
+ }, {
962
+ readonly name: "_recipient";
963
+ readonly type: "address";
964
+ }];
965
+ readonly outputs: readonly [{
966
+ readonly name: "";
967
+ readonly type: "uint256";
968
+ }, {
969
+ readonly name: "";
970
+ readonly type: "address";
971
+ }, {
972
+ readonly name: "";
973
+ readonly type: "uint256";
974
+ }, {
975
+ readonly name: "";
976
+ readonly type: "uint256";
977
+ }];
978
+ }, {
979
+ readonly stateMutability: "nonpayable";
980
+ readonly type: "function";
981
+ readonly name: "depositForYield";
982
+ readonly inputs: readonly [{
983
+ readonly name: "_asset";
984
+ readonly type: "address";
554
985
  }, {
555
986
  readonly name: "_amount";
556
987
  readonly type: "uint256";
988
+ }, {
989
+ readonly name: "_vaultAddr";
990
+ readonly type: "address";
557
991
  }, {
558
992
  readonly name: "_extraData";
559
993
  readonly type: "bytes32";
@@ -591,110 +1025,160 @@ export declare const abi: readonly [{
591
1025
  readonly type: "uint256";
592
1026
  }];
593
1027
  }, {
594
- readonly stateMutability: "view";
1028
+ readonly stateMutability: "nonpayable";
595
1029
  readonly type: "function";
596
- readonly name: "isVaultToken";
1030
+ readonly name: "withdrawFromYield";
597
1031
  readonly inputs: readonly [{
598
1032
  readonly name: "_vaultToken";
599
1033
  readonly type: "address";
600
- }];
601
- readonly outputs: readonly [{
602
- readonly name: "";
603
- readonly type: "bool";
604
- }];
605
- }, {
606
- readonly stateMutability: "view";
607
- readonly type: "function";
608
- readonly name: "getUnderlyingAsset";
609
- readonly inputs: readonly [{
610
- readonly name: "_vaultToken";
1034
+ }, {
1035
+ readonly name: "_amount";
1036
+ readonly type: "uint256";
1037
+ }, {
1038
+ readonly name: "_extraData";
1039
+ readonly type: "bytes32";
1040
+ }, {
1041
+ readonly name: "_recipient";
611
1042
  readonly type: "address";
612
1043
  }];
613
1044
  readonly outputs: readonly [{
1045
+ readonly name: "";
1046
+ readonly type: "uint256";
1047
+ }, {
614
1048
  readonly name: "";
615
1049
  readonly type: "address";
1050
+ }, {
1051
+ readonly name: "";
1052
+ readonly type: "uint256";
1053
+ }, {
1054
+ readonly name: "";
1055
+ readonly type: "uint256";
616
1056
  }];
617
1057
  }, {
618
- readonly stateMutability: "view";
1058
+ readonly stateMutability: "nonpayable";
619
1059
  readonly type: "function";
620
- readonly name: "getUnderlyingAmount";
1060
+ readonly name: "withdrawFromYield";
621
1061
  readonly inputs: readonly [{
622
1062
  readonly name: "_vaultToken";
623
1063
  readonly type: "address";
624
1064
  }, {
625
- readonly name: "_vaultTokenAmount";
1065
+ readonly name: "_amount";
626
1066
  readonly type: "uint256";
1067
+ }, {
1068
+ readonly name: "_extraData";
1069
+ readonly type: "bytes32";
1070
+ }, {
1071
+ readonly name: "_recipient";
1072
+ readonly type: "address";
1073
+ }, {
1074
+ readonly name: "_miniAddys";
1075
+ readonly type: "tuple";
1076
+ readonly components: readonly [{
1077
+ readonly name: "ledger";
1078
+ readonly type: "address";
1079
+ }, {
1080
+ readonly name: "missionControl";
1081
+ readonly type: "address";
1082
+ }, {
1083
+ readonly name: "legoBook";
1084
+ readonly type: "address";
1085
+ }, {
1086
+ readonly name: "appraiser";
1087
+ readonly type: "address";
1088
+ }];
627
1089
  }];
628
1090
  readonly outputs: readonly [{
629
1091
  readonly name: "";
630
1092
  readonly type: "uint256";
631
- }];
632
- }, {
633
- readonly stateMutability: "view";
634
- readonly type: "function";
635
- readonly name: "getVaultTokenAmount";
636
- readonly inputs: readonly [{
637
- readonly name: "_asset";
1093
+ }, {
1094
+ readonly name: "";
638
1095
  readonly type: "address";
639
1096
  }, {
640
- readonly name: "_assetAmount";
1097
+ readonly name: "";
641
1098
  readonly type: "uint256";
642
1099
  }, {
643
- readonly name: "_vaultToken";
644
- readonly type: "address";
645
- }];
646
- readonly outputs: readonly [{
647
1100
  readonly name: "";
648
1101
  readonly type: "uint256";
649
1102
  }];
650
1103
  }, {
651
1104
  readonly stateMutability: "view";
652
1105
  readonly type: "function";
653
- readonly name: "getUsdValueOfVaultToken";
1106
+ readonly name: "getAccessForLego";
654
1107
  readonly inputs: readonly [{
655
- readonly name: "_vaultToken";
1108
+ readonly name: "_user";
656
1109
  readonly type: "address";
657
1110
  }, {
658
- readonly name: "_vaultTokenAmount";
1111
+ readonly name: "_action";
659
1112
  readonly type: "uint256";
660
1113
  }];
661
1114
  readonly outputs: readonly [{
1115
+ readonly name: "";
1116
+ readonly type: "address";
1117
+ }, {
1118
+ readonly name: "";
1119
+ readonly type: "string";
1120
+ }, {
662
1121
  readonly name: "";
663
1122
  readonly type: "uint256";
664
1123
  }];
665
1124
  }, {
666
- readonly stateMutability: "view";
1125
+ readonly stateMutability: "nonpayable";
667
1126
  readonly type: "function";
668
- readonly name: "getUsdValueOfVaultToken";
1127
+ readonly name: "claimRewards";
669
1128
  readonly inputs: readonly [{
670
- readonly name: "_vaultToken";
1129
+ readonly name: "_user";
671
1130
  readonly type: "address";
672
1131
  }, {
673
- readonly name: "_vaultTokenAmount";
1132
+ readonly name: "_rewardToken";
1133
+ readonly type: "address";
1134
+ }, {
1135
+ readonly name: "_rewardAmount";
674
1136
  readonly type: "uint256";
675
1137
  }, {
676
- readonly name: "_appraiser";
677
- readonly type: "address";
1138
+ readonly name: "_extraData";
1139
+ readonly type: "bytes32";
678
1140
  }];
679
1141
  readonly outputs: readonly [{
680
1142
  readonly name: "";
681
1143
  readonly type: "uint256";
1144
+ }, {
1145
+ readonly name: "";
1146
+ readonly type: "uint256";
682
1147
  }];
683
1148
  }, {
684
- readonly stateMutability: "view";
1149
+ readonly stateMutability: "nonpayable";
685
1150
  readonly type: "function";
686
- readonly name: "getUnderlyingData";
1151
+ readonly name: "claimRewards";
687
1152
  readonly inputs: readonly [{
688
- readonly name: "_vaultToken";
1153
+ readonly name: "_user";
689
1154
  readonly type: "address";
690
1155
  }, {
691
- readonly name: "_vaultTokenAmount";
1156
+ readonly name: "_rewardToken";
1157
+ readonly type: "address";
1158
+ }, {
1159
+ readonly name: "_rewardAmount";
692
1160
  readonly type: "uint256";
1161
+ }, {
1162
+ readonly name: "_extraData";
1163
+ readonly type: "bytes32";
1164
+ }, {
1165
+ readonly name: "_miniAddys";
1166
+ readonly type: "tuple";
1167
+ readonly components: readonly [{
1168
+ readonly name: "ledger";
1169
+ readonly type: "address";
1170
+ }, {
1171
+ readonly name: "missionControl";
1172
+ readonly type: "address";
1173
+ }, {
1174
+ readonly name: "legoBook";
1175
+ readonly type: "address";
1176
+ }, {
1177
+ readonly name: "appraiser";
1178
+ readonly type: "address";
1179
+ }];
693
1180
  }];
694
1181
  readonly outputs: readonly [{
695
- readonly name: "";
696
- readonly type: "address";
697
- }, {
698
1182
  readonly name: "";
699
1183
  readonly type: "uint256";
700
1184
  }, {
@@ -702,23 +1186,23 @@ export declare const abi: readonly [{
702
1186
  readonly type: "uint256";
703
1187
  }];
704
1188
  }, {
705
- readonly stateMutability: "view";
1189
+ readonly stateMutability: "nonpayable";
706
1190
  readonly type: "function";
707
- readonly name: "getUnderlyingData";
1191
+ readonly name: "claimIncentives";
708
1192
  readonly inputs: readonly [{
709
- readonly name: "_vaultToken";
1193
+ readonly name: "_user";
710
1194
  readonly type: "address";
711
1195
  }, {
712
- readonly name: "_vaultTokenAmount";
1196
+ readonly name: "_rewardToken";
1197
+ readonly type: "address";
1198
+ }, {
1199
+ readonly name: "_rewardAmount";
713
1200
  readonly type: "uint256";
714
1201
  }, {
715
- readonly name: "_appraiser";
716
- readonly type: "address";
1202
+ readonly name: "_proofs";
1203
+ readonly type: "bytes32[]";
717
1204
  }];
718
1205
  readonly outputs: readonly [{
719
- readonly name: "";
720
- readonly type: "address";
721
- }, {
722
1206
  readonly name: "";
723
1207
  readonly type: "uint256";
724
1208
  }, {
@@ -726,68 +1210,57 @@ export declare const abi: readonly [{
726
1210
  readonly type: "uint256";
727
1211
  }];
728
1212
  }, {
729
- readonly stateMutability: "view";
1213
+ readonly stateMutability: "nonpayable";
730
1214
  readonly type: "function";
731
- readonly name: "totalAssets";
1215
+ readonly name: "claimIncentives";
732
1216
  readonly inputs: readonly [{
733
- readonly name: "_vaultToken";
1217
+ readonly name: "_user";
1218
+ readonly type: "address";
1219
+ }, {
1220
+ readonly name: "_rewardToken";
734
1221
  readonly type: "address";
1222
+ }, {
1223
+ readonly name: "_rewardAmount";
1224
+ readonly type: "uint256";
1225
+ }, {
1226
+ readonly name: "_proofs";
1227
+ readonly type: "bytes32[]";
1228
+ }, {
1229
+ readonly name: "_miniAddys";
1230
+ readonly type: "tuple";
1231
+ readonly components: readonly [{
1232
+ readonly name: "ledger";
1233
+ readonly type: "address";
1234
+ }, {
1235
+ readonly name: "missionControl";
1236
+ readonly type: "address";
1237
+ }, {
1238
+ readonly name: "legoBook";
1239
+ readonly type: "address";
1240
+ }, {
1241
+ readonly name: "appraiser";
1242
+ readonly type: "address";
1243
+ }];
735
1244
  }];
736
1245
  readonly outputs: readonly [{
737
1246
  readonly name: "";
738
1247
  readonly type: "uint256";
739
- }];
740
- }, {
741
- readonly stateMutability: "view";
742
- readonly type: "function";
743
- readonly name: "totalBorrows";
744
- readonly inputs: readonly [{
745
- readonly name: "_vaultToken";
746
- readonly type: "address";
747
- }];
748
- readonly outputs: readonly [{
1248
+ }, {
749
1249
  readonly name: "";
750
1250
  readonly type: "uint256";
751
1251
  }];
752
1252
  }, {
753
1253
  readonly stateMutability: "view";
754
1254
  readonly type: "function";
755
- readonly name: "getPricePerShare";
1255
+ readonly name: "hasClaimableRewards";
756
1256
  readonly inputs: readonly [{
757
- readonly name: "_asset";
1257
+ readonly name: "_user";
758
1258
  readonly type: "address";
759
- }, {
760
- readonly name: "_decimals";
761
- readonly type: "uint256";
762
1259
  }];
763
1260
  readonly outputs: readonly [{
764
1261
  readonly name: "";
765
- readonly type: "uint256";
766
- }];
767
- }, {
768
- readonly stateMutability: "nonpayable";
769
- readonly type: "function";
770
- readonly name: "addAssetOpportunity";
771
- readonly inputs: readonly [{
772
- readonly name: "_asset";
773
- readonly type: "address";
774
- }, {
775
- readonly name: "_vaultAddr";
776
- readonly type: "address";
777
- }];
778
- readonly outputs: readonly [];
779
- }, {
780
- readonly stateMutability: "nonpayable";
781
- readonly type: "function";
782
- readonly name: "removeAssetOpportunity";
783
- readonly inputs: readonly [{
784
- readonly name: "_asset";
785
- readonly type: "address";
786
- }, {
787
- readonly name: "_vaultAddr";
788
- readonly type: "address";
1262
+ readonly type: "bool";
789
1263
  }];
790
- readonly outputs: readonly [];
791
1264
  }, {
792
1265
  readonly stateMutability: "nonpayable";
793
1266
  readonly type: "function";
@@ -1272,70 +1745,6 @@ export declare const abi: readonly [{
1272
1745
  readonly name: "";
1273
1746
  readonly type: "uint256";
1274
1747
  }];
1275
- }, {
1276
- readonly stateMutability: "nonpayable";
1277
- readonly type: "function";
1278
- readonly name: "claimRewards";
1279
- readonly inputs: readonly [{
1280
- readonly name: "_user";
1281
- readonly type: "address";
1282
- }, {
1283
- readonly name: "_rewardToken";
1284
- readonly type: "address";
1285
- }, {
1286
- readonly name: "_rewardAmount";
1287
- readonly type: "uint256";
1288
- }, {
1289
- readonly name: "_extraData";
1290
- readonly type: "bytes32";
1291
- }];
1292
- readonly outputs: readonly [{
1293
- readonly name: "";
1294
- readonly type: "uint256";
1295
- }, {
1296
- readonly name: "";
1297
- readonly type: "uint256";
1298
- }];
1299
- }, {
1300
- readonly stateMutability: "nonpayable";
1301
- readonly type: "function";
1302
- readonly name: "claimRewards";
1303
- readonly inputs: readonly [{
1304
- readonly name: "_user";
1305
- readonly type: "address";
1306
- }, {
1307
- readonly name: "_rewardToken";
1308
- readonly type: "address";
1309
- }, {
1310
- readonly name: "_rewardAmount";
1311
- readonly type: "uint256";
1312
- }, {
1313
- readonly name: "_extraData";
1314
- readonly type: "bytes32";
1315
- }, {
1316
- readonly name: "_miniAddys";
1317
- readonly type: "tuple";
1318
- readonly components: readonly [{
1319
- readonly name: "ledger";
1320
- readonly type: "address";
1321
- }, {
1322
- readonly name: "missionControl";
1323
- readonly type: "address";
1324
- }, {
1325
- readonly name: "legoBook";
1326
- readonly type: "address";
1327
- }, {
1328
- readonly name: "appraiser";
1329
- readonly type: "address";
1330
- }];
1331
- }];
1332
- readonly outputs: readonly [{
1333
- readonly name: "";
1334
- readonly type: "uint256";
1335
- }, {
1336
- readonly name: "";
1337
- readonly type: "uint256";
1338
- }];
1339
1748
  }, {
1340
1749
  readonly stateMutability: "nonpayable";
1341
1750
  readonly type: "function";
@@ -1805,43 +2214,34 @@ export declare const abi: readonly [{
1805
2214
  }, {
1806
2215
  readonly stateMutability: "view";
1807
2216
  readonly type: "function";
1808
- readonly name: "getAccessForLego";
1809
- readonly inputs: readonly [{
1810
- readonly name: "_user";
1811
- readonly type: "address";
1812
- }, {
1813
- readonly name: "_action";
1814
- readonly type: "uint256";
1815
- }];
2217
+ readonly name: "FLUID_RESOLVER";
2218
+ readonly inputs: readonly [];
1816
2219
  readonly outputs: readonly [{
1817
2220
  readonly name: "";
1818
2221
  readonly type: "address";
1819
- }, {
1820
- readonly name: "";
1821
- readonly type: "string";
1822
- }, {
1823
- readonly name: "";
1824
- readonly type: "uint256";
1825
2222
  }];
1826
2223
  }, {
1827
2224
  readonly stateMutability: "view";
1828
2225
  readonly type: "function";
1829
- readonly name: "getPrice";
1830
- readonly inputs: readonly [{
1831
- readonly name: "_asset";
2226
+ readonly name: "RIPE_REGISTRY";
2227
+ readonly inputs: readonly [];
2228
+ readonly outputs: readonly [{
2229
+ readonly name: "";
1832
2230
  readonly type: "address";
1833
- }, {
1834
- readonly name: "_decimals";
1835
- readonly type: "uint256";
1836
2231
  }];
2232
+ }, {
2233
+ readonly stateMutability: "view";
2234
+ readonly type: "function";
2235
+ readonly name: "WETH";
2236
+ readonly inputs: readonly [];
1837
2237
  readonly outputs: readonly [{
1838
2238
  readonly name: "";
1839
- readonly type: "uint256";
2239
+ readonly type: "address";
1840
2240
  }];
1841
2241
  }, {
1842
2242
  readonly stateMutability: "view";
1843
2243
  readonly type: "function";
1844
- readonly name: "FLUID_RESOLVER";
2244
+ readonly name: "NATIVE_ETH";
1845
2245
  readonly inputs: readonly [];
1846
2246
  readonly outputs: readonly [{
1847
2247
  readonly name: "";
@@ -1856,6 +2256,15 @@ export declare const abi: readonly [{
1856
2256
  }, {
1857
2257
  readonly name: "_fluidResolver";
1858
2258
  readonly type: "address";
2259
+ }, {
2260
+ readonly name: "_ripeRegistry";
2261
+ readonly type: "address";
2262
+ }, {
2263
+ readonly name: "_weth";
2264
+ readonly type: "address";
2265
+ }, {
2266
+ readonly name: "_eth";
2267
+ readonly type: "address";
1859
2268
  }];
1860
2269
  readonly outputs: readonly [];
1861
2270
  }];
@@ -1874,6 +2283,7 @@ export type Contract = {
1874
2283
  appraiser: `0x${string}`;
1875
2284
  walletBackpack: `0x${string}`;
1876
2285
  billing: `0x${string}`;
2286
+ vaultRegistry: `0x${string}`;
1877
2287
  }>;
1878
2288
  getUndyHq: () => Promise<`0x${string}`>;
1879
2289
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -1881,38 +2291,93 @@ export type Contract = {
1881
2291
  getAssets: () => Promise<`0x${string}`[]>;
1882
2292
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
1883
2293
  getNumLegoAssets: () => Promise<bigint>;
1884
- isPaused: () => Promise<boolean>;
2294
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2295
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2296
+ totalSupply: bigint;
2297
+ pricePerShare: bigint;
2298
+ lastUpdate: bigint;
2299
+ }>;
2300
+ isValidPriceConfig: (config: {
2301
+ minSnapshotDelay: bigint;
2302
+ maxNumSnapshots: bigint;
2303
+ maxUpsideDeviation: bigint;
2304
+ staleTime: bigint;
2305
+ }) => Promise<boolean>;
2306
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2307
+ underlyingAsset: `0x${string}`;
2308
+ decimals: bigint;
2309
+ lastAveragePricePerShare: bigint;
2310
+ }>;
1885
2311
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
1886
2312
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
1887
2313
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
1888
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
1889
2314
  assets: (arg0: bigint) => Promise<`0x${string}`>;
1890
2315
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
1891
2316
  numAssets: () => Promise<bigint>;
2317
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2318
+ lastSnapShot: {
2319
+ totalSupply: bigint;
2320
+ pricePerShare: bigint;
2321
+ lastUpdate: bigint;
2322
+ };
2323
+ nextIndex: bigint;
2324
+ }>;
2325
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2326
+ totalSupply: bigint;
2327
+ pricePerShare: bigint;
2328
+ lastUpdate: bigint;
2329
+ }>;
2330
+ snapShotPriceConfig: () => Promise<{
2331
+ minSnapshotDelay: bigint;
2332
+ maxNumSnapshots: bigint;
2333
+ maxUpsideDeviation: bigint;
2334
+ staleTime: bigint;
2335
+ }>;
2336
+ isPaused: () => Promise<boolean>;
1892
2337
  hasCapability: (action: bigint) => Promise<boolean>;
1893
2338
  getRegistries: () => Promise<`0x${string}`[]>;
1894
2339
  isYieldLego: () => Promise<boolean>;
1895
2340
  isDexLego: () => Promise<boolean>;
1896
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
1897
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1898
- isRebasing: () => Promise<boolean>;
1899
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
1900
2341
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2342
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
1901
2343
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
1902
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1903
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2344
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
1904
2345
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2346
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2347
+ isRebasing: () => Promise<boolean>;
2348
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2349
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1905
2350
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
1906
2351
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
1907
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2352
+ getAvailLiquidity: (vaultToken: `0x${string}`) => Promise<bigint>;
2353
+ getUtilizationRatio: (vaultToken: `0x${string}`) => Promise<bigint>;
2354
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2355
+ getWithdrawalFees: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2356
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
1908
2357
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
1909
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2358
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1910
2359
  FLUID_RESOLVER: () => Promise<`0x${string}`>;
2360
+ RIPE_REGISTRY: () => Promise<`0x${string}`>;
2361
+ WETH: () => Promise<`0x${string}`>;
2362
+ NATIVE_ETH: () => Promise<`0x${string}`>;
1911
2363
  };
1912
2364
  mutations: {
1913
2365
  pause: (shouldPause: boolean) => Promise<void>;
1914
2366
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1915
2367
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2368
+ setSnapShotPriceConfig: (config: {
2369
+ minSnapshotDelay: bigint;
2370
+ maxNumSnapshots: bigint;
2371
+ maxUpsideDeviation: bigint;
2372
+ staleTime: bigint;
2373
+ }) => Promise<void>;
2374
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2375
+ underlyingAsset: `0x${string}`;
2376
+ decimals: bigint;
2377
+ lastAveragePricePerShare: bigint;
2378
+ }>;
2379
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2380
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
1916
2381
  depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1917
2382
  ledger: `0x${string}`;
1918
2383
  missionControl: `0x${string}`;
@@ -1925,8 +2390,18 @@ export type Contract = {
1925
2390
  legoBook: `0x${string}`;
1926
2391
  appraiser: `0x${string}`;
1927
2392
  }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
1928
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1929
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2393
+ claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2394
+ ledger: `0x${string}`;
2395
+ missionControl: `0x${string}`;
2396
+ legoBook: `0x${string}`;
2397
+ appraiser: `0x${string}`;
2398
+ }) => Promise<[bigint, bigint]>;
2399
+ claimIncentives: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proofs: `0x${string}`[], miniAddys?: {
2400
+ ledger: `0x${string}`;
2401
+ missionControl: `0x${string}`;
2402
+ legoBook: `0x${string}`;
2403
+ appraiser: `0x${string}`;
2404
+ }) => Promise<[bigint, bigint]>;
1930
2405
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
1931
2406
  ledger: `0x${string}`;
1932
2407
  missionControl: `0x${string}`;
@@ -1969,12 +2444,6 @@ export type Contract = {
1969
2444
  legoBook: `0x${string}`;
1970
2445
  appraiser: `0x${string}`;
1971
2446
  }) => Promise<[bigint, bigint]>;
1972
- claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
1973
- ledger: `0x${string}`;
1974
- missionControl: `0x${string}`;
1975
- legoBook: `0x${string}`;
1976
- appraiser: `0x${string}`;
1977
- }) => Promise<[bigint, bigint]>;
1978
2447
  addLiquidity: (pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA: bigint, amountB: bigint, minAmountA: bigint, minAmountB: bigint, minLpAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1979
2448
  ledger: `0x${string}`;
1980
2449
  missionControl: `0x${string}`;
@@ -2005,8 +2474,10 @@ export type Contract = {
2005
2474
  FluidWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
2006
2475
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2007
2476
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2477
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2008
2478
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2009
2479
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2480
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint, lastAveragePricePerShare: bigint) => Promise<void>;
2010
2481
  };
2011
2482
  };
2012
2483
  export type Calls = keyof Contract['calls'];
@@ -2054,40 +2525,57 @@ export type SDK = {
2054
2525
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2055
2526
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2056
2527
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2057
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2528
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2529
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2530
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2531
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2058
2532
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2059
2533
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2060
2534
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2061
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2062
2535
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2063
2536
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2064
2537
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2538
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2539
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2540
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2541
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2065
2542
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2066
2543
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2067
2544
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2068
2545
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2069
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2070
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2071
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2072
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2073
2546
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2547
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2074
2548
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2075
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2076
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2549
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2077
2550
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2551
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2552
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2553
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2554
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2078
2555
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2079
2556
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2080
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2557
+ getAvailLiquidity: (...args: ExtractArgs<Contract['calls']['getAvailLiquidity']>) => Promise<CallReturn<'getAvailLiquidity'>>;
2558
+ getUtilizationRatio: (...args: ExtractArgs<Contract['calls']['getUtilizationRatio']>) => Promise<CallReturn<'getUtilizationRatio'>>;
2559
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2560
+ getWithdrawalFees: (...args: ExtractArgs<Contract['calls']['getWithdrawalFees']>) => Promise<CallReturn<'getWithdrawalFees'>>;
2561
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2081
2562
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2082
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2563
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2083
2564
  FLUID_RESOLVER: (...args: ExtractArgs<Contract['calls']['FLUID_RESOLVER']>) => Promise<CallReturn<'FLUID_RESOLVER'>>;
2565
+ RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
2566
+ WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
2567
+ NATIVE_ETH: (...args: ExtractArgs<Contract['calls']['NATIVE_ETH']>) => Promise<CallReturn<'NATIVE_ETH'>>;
2084
2568
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2085
2569
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2086
2570
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2571
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2572
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2573
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2574
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2087
2575
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2088
2576
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2089
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2090
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2577
+ claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2578
+ claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
2091
2579
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2092
2580
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2093
2581
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
@@ -2095,7 +2583,6 @@ export type SDK = {
2095
2583
  removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
2096
2584
  borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2097
2585
  repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2098
- claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2099
2586
  addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
2100
2587
  removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
2101
2588
  addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;