@underscore-finance/sdk 1.0.12 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/contracts/AaveV3.d.ts +688 -251
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +873 -340
  4. package/dist/contracts/AeroClassic.d.ts +85 -13
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +106 -17
  7. package/dist/contracts/AeroSlipstream.d.ts +120 -14
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +149 -18
  10. package/dist/contracts/{v0_2_Agent.d.ts → AgentSenderGeneric.d.ts} +2546 -1228
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  12. package/dist/contracts/{v0_2_Agent.js → AgentSenderGeneric.js} +3210 -1388
  13. package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
  14. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  15. package/dist/contracts/AgentSenderSpecial.js +2509 -0
  16. package/dist/contracts/AgentWrapper.d.ts +170 -1462
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +262 -1869
  19. package/dist/contracts/{v0_3_Agent.d.ts → AgentWrapperV1.d.ts} +1983 -932
  20. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  21. package/dist/contracts/{Agent_v2.js → AgentWrapperV1.js} +2582 -1118
  22. package/dist/contracts/Appraiser.d.ts +22 -459
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +26 -596
  25. package/dist/contracts/Avantis.d.ts +2565 -0
  26. package/dist/contracts/Avantis.d.ts.map +1 -0
  27. package/dist/contracts/{v0_1_Agent.js → Avantis.js} +1674 -1790
  28. package/dist/contracts/Billing.d.ts +4 -68
  29. package/dist/contracts/Billing.d.ts.map +1 -1
  30. package/dist/contracts/Billing.js +5 -82
  31. package/dist/contracts/ChequeBook.d.ts +52 -1
  32. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  33. package/dist/contracts/ChequeBook.js +53 -1
  34. package/dist/contracts/CompoundV3.d.ts +674 -251
  35. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  36. package/dist/contracts/CompoundV3.js +819 -305
  37. package/dist/contracts/ConvertVaultToken.d.ts +63 -0
  38. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  39. package/dist/contracts/ConvertVaultToken.js +75 -0
  40. package/dist/contracts/Curve.d.ts +18 -17
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +23 -24
  43. package/dist/contracts/DefaultsBase.d.ts +45 -56
  44. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  45. package/dist/contracts/DefaultsBase.js +45 -59
  46. package/dist/contracts/EarnVault.d.ts +1680 -0
  47. package/dist/contracts/EarnVault.d.ts.map +1 -0
  48. package/dist/contracts/{UserWallet_v2.js → EarnVault.js} +898 -1245
  49. package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
  50. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  51. package/dist/contracts/{v0_3_LegoSky.js → EarnVaultAgent.js} +640 -547
  52. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
  53. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  54. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  55. package/dist/contracts/Euler.d.ts +700 -255
  56. package/dist/contracts/Euler.d.ts.map +1 -1
  57. package/dist/contracts/Euler.js +834 -293
  58. package/dist/contracts/Fluid.d.ts +771 -284
  59. package/dist/contracts/Fluid.d.ts.map +1 -1
  60. package/dist/contracts/Fluid.js +925 -329
  61. package/dist/contracts/FortyAcres.d.ts +2579 -0
  62. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  63. package/dist/contracts/FortyAcres.js +3274 -0
  64. package/dist/contracts/Hatchery.d.ts +6 -176
  65. package/dist/contracts/Hatchery.d.ts.map +1 -1
  66. package/dist/contracts/Hatchery.js +5 -225
  67. package/dist/contracts/HighCommand.d.ts +237 -1
  68. package/dist/contracts/HighCommand.d.ts.map +1 -1
  69. package/dist/contracts/HighCommand.js +259 -1
  70. package/dist/contracts/Kernel.d.ts +8 -0
  71. package/dist/contracts/Kernel.d.ts.map +1 -1
  72. package/dist/contracts/Kernel.js +9 -1
  73. package/dist/contracts/LegoBook.d.ts +7 -0
  74. package/dist/contracts/LegoBook.d.ts.map +1 -1
  75. package/dist/contracts/LegoBook.js +9 -1
  76. package/dist/contracts/LegoTools.d.ts +4 -0
  77. package/dist/contracts/LegoTools.d.ts.map +1 -1
  78. package/dist/contracts/LegoTools.js +5 -1
  79. package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
  80. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  81. package/dist/contracts/{LegoCurve.js → LevgVaultHelper.js} +662 -767
  82. package/dist/contracts/LootDistributor.d.ts +49 -131
  83. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  84. package/dist/contracts/LootDistributor.js +58 -157
  85. package/dist/contracts/Migrator.d.ts +4 -0
  86. package/dist/contracts/Migrator.d.ts.map +1 -1
  87. package/dist/contracts/Migrator.js +5 -1
  88. package/dist/contracts/MissionControl.d.ts +211 -295
  89. package/dist/contracts/MissionControl.d.ts.map +1 -1
  90. package/dist/contracts/MissionControl.js +216 -305
  91. package/dist/contracts/Moonwell.d.ts +696 -251
  92. package/dist/contracts/Moonwell.d.ts.map +1 -1
  93. package/dist/contracts/Moonwell.js +832 -291
  94. package/dist/contracts/Morpho.d.ts +719 -274
  95. package/dist/contracts/Morpho.d.ts.map +1 -1
  96. package/dist/contracts/Morpho.js +849 -308
  97. package/dist/contracts/Paymaster.d.ts +4 -0
  98. package/dist/contracts/Paymaster.d.ts.map +1 -1
  99. package/dist/contracts/Paymaster.js +5 -1
  100. package/dist/contracts/RipeLego.d.ts +920 -378
  101. package/dist/contracts/RipeLego.d.ts.map +1 -1
  102. package/dist/contracts/RipeLego.js +1123 -462
  103. package/dist/contracts/Sentinel.d.ts +275 -7
  104. package/dist/contracts/Sentinel.d.ts.map +1 -1
  105. package/dist/contracts/Sentinel.js +331 -7
  106. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  107. package/dist/contracts/SignatureHelperV1.js +333 -333
  108. package/dist/contracts/SkyPsm.d.ts +2622 -0
  109. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  110. package/dist/contracts/SkyPsm.js +3329 -0
  111. package/dist/contracts/Switchboard.d.ts +7 -0
  112. package/dist/contracts/Switchboard.d.ts.map +1 -1
  113. package/dist/contracts/Switchboard.js +9 -1
  114. package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
  115. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardAlpha.js +566 -282
  117. package/dist/contracts/SwitchboardBravo.d.ts +4 -24
  118. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  119. package/dist/contracts/SwitchboardBravo.js +5 -32
  120. package/dist/contracts/SwitchboardCharlie.d.ts +2923 -0
  121. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  122. package/dist/contracts/SwitchboardCharlie.js +3635 -0
  123. package/dist/contracts/{Agent_v2.d.ts → UnderscoreLego.d.ts} +1605 -1763
  124. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  125. package/dist/contracts/{AgentTemplate.js → UnderscoreLego.js} +1664 -1796
  126. package/dist/contracts/UndyAero.d.ts +1680 -0
  127. package/dist/contracts/UndyAero.d.ts.map +1 -0
  128. package/dist/contracts/{v0_2_UserWallet.js → UndyAero.js} +1056 -1403
  129. package/dist/contracts/UndyBtc.d.ts +1680 -0
  130. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  131. package/dist/contracts/{WalletFunds.js → UndyBtc.js} +1063 -1436
  132. package/dist/contracts/UndyCbeth.d.ts +1680 -0
  133. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  134. package/dist/contracts/{UserWallet_v1.js → UndyCbeth.js} +1063 -1438
  135. package/dist/contracts/UndyEth.d.ts +1680 -0
  136. package/dist/contracts/UndyEth.d.ts.map +1 -0
  137. package/dist/contracts/UndyEth.js +2206 -0
  138. package/dist/contracts/UndyEurc.d.ts +1680 -0
  139. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  140. package/dist/contracts/UndyEurc.js +2206 -0
  141. package/dist/contracts/UndyGho.d.ts +1680 -0
  142. package/dist/contracts/UndyGho.d.ts.map +1 -0
  143. package/dist/contracts/UndyGho.js +2206 -0
  144. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  145. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  146. package/dist/contracts/UndyRewardsLego.js +5 -1
  147. package/dist/contracts/UndyUsd.d.ts +1680 -0
  148. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  149. package/dist/contracts/UndyUsd.js +2206 -0
  150. package/dist/contracts/UndyUsds.d.ts +1680 -0
  151. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  152. package/dist/contracts/UndyUsds.js +2206 -0
  153. package/dist/contracts/UniswapV2.d.ts +85 -13
  154. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  155. package/dist/contracts/UniswapV2.js +106 -17
  156. package/dist/contracts/UniswapV3.d.ts +120 -14
  157. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  158. package/dist/contracts/UniswapV3.js +149 -18
  159. package/dist/contracts/UserWallet.d.ts +12 -8
  160. package/dist/contracts/UserWallet.d.ts.map +1 -1
  161. package/dist/contracts/UserWallet.js +13 -9
  162. package/dist/contracts/UserWalletConfig.d.ts +198 -56
  163. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  164. package/dist/contracts/UserWalletConfig.js +225 -72
  165. package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
  166. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  167. package/dist/contracts/UserWalletConfigV1.js +4251 -0
  168. package/dist/contracts/{Agent_v1.d.ts → UserWalletV1.d.ts} +1178 -1176
  169. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  170. package/dist/contracts/{Agent_v1.js → UserWalletV1.js} +1468 -1340
  171. package/dist/contracts/VaultRegistry.d.ts +3028 -0
  172. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  173. package/dist/contracts/VaultRegistry.js +3843 -0
  174. package/dist/contracts/WalletBackpack.d.ts +4 -0
  175. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  176. package/dist/contracts/WalletBackpack.js +5 -1
  177. package/dist/contracts/Wasabi.d.ts +2579 -0
  178. package/dist/contracts/Wasabi.d.ts.map +1 -0
  179. package/dist/contracts/Wasabi.js +3274 -0
  180. package/dist/contracts/index.d.ts +25 -1
  181. package/dist/contracts/index.d.ts.map +1 -1
  182. package/dist/contracts/index.js +25 -1
  183. package/dist/contracts/sdk.d.ts +50 -2
  184. package/dist/contracts/sdk.d.ts.map +1 -1
  185. package/dist/contracts/sdk.js +50 -2
  186. package/dist/getSwapInstructions.js +1 -1
  187. package/dist/index.d.ts +33 -6
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +13 -7
  190. package/package.json +2 -2
  191. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  192. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  193. package/dist/contracts/AddyRegistry.js +0 -1392
  194. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  195. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  196. package/dist/contracts/AddyRegistry_v1.js +0 -594
  197. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  198. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  199. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  200. package/dist/contracts/AgentFactory.d.ts +0 -1665
  201. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  202. package/dist/contracts/AgentFactory.js +0 -2078
  203. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  204. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  205. package/dist/contracts/AgentFactory_v1.js +0 -1336
  206. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  207. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  208. package/dist/contracts/AgentFactory_v2.js +0 -1609
  209. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  210. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  211. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  212. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  213. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  214. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  215. package/dist/contracts/ChainlinkFeeds.js +0 -900
  216. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  217. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  218. package/dist/contracts/LegoAaveV3.js +0 -1330
  219. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  220. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  221. package/dist/contracts/LegoAeroClassic.js +0 -1546
  222. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  223. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  224. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  225. package/dist/contracts/LegoCommon.d.ts +0 -164
  226. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  227. package/dist/contracts/LegoCommon.js +0 -202
  228. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  229. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  230. package/dist/contracts/LegoCompoundV3.js +0 -1365
  231. package/dist/contracts/LegoCredit.d.ts +0 -140
  232. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  233. package/dist/contracts/LegoCredit.js +0 -179
  234. package/dist/contracts/LegoCurve.d.ts +0 -1189
  235. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  236. package/dist/contracts/LegoDex.d.ts +0 -587
  237. package/dist/contracts/LegoDex.d.ts.map +0 -1
  238. package/dist/contracts/LegoDex.js +0 -774
  239. package/dist/contracts/LegoEuler.d.ts +0 -1074
  240. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  241. package/dist/contracts/LegoEuler.js +0 -1383
  242. package/dist/contracts/LegoFluid.d.ts +0 -1025
  243. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  244. package/dist/contracts/LegoFluid.js +0 -1320
  245. package/dist/contracts/LegoHelper.d.ts +0 -1563
  246. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  247. package/dist/contracts/LegoHelper.js +0 -1947
  248. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  249. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  250. package/dist/contracts/LegoMoonwell.js +0 -1342
  251. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  252. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  253. package/dist/contracts/LegoMorpho.js +0 -1383
  254. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  255. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  256. package/dist/contracts/LegoRegistry.js +0 -1368
  257. package/dist/contracts/LegoSky.d.ts +0 -923
  258. package/dist/contracts/LegoSky.d.ts.map +0 -1
  259. package/dist/contracts/LegoSky.js +0 -1180
  260. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  261. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  262. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  263. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  264. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  265. package/dist/contracts/LegoUniswapV2.js +0 -1546
  266. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  267. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  268. package/dist/contracts/LegoUniswapV3.js +0 -1718
  269. package/dist/contracts/LegoYield.d.ts +0 -390
  270. package/dist/contracts/LegoYield.d.ts.map +0 -1
  271. package/dist/contracts/LegoYield.js +0 -511
  272. package/dist/contracts/OracleParser.d.ts +0 -207
  273. package/dist/contracts/OracleParser.d.ts.map +0 -1
  274. package/dist/contracts/OracleParser.js +0 -264
  275. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  276. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  277. package/dist/contracts/OracleRegistry.js +0 -1562
  278. package/dist/contracts/PriceSheets.d.ts +0 -1127
  279. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  280. package/dist/contracts/PriceSheets.js +0 -1383
  281. package/dist/contracts/PythFeeds.d.ts +0 -640
  282. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  283. package/dist/contracts/PythFeeds.js +0 -813
  284. package/dist/contracts/StorkFeeds.d.ts +0 -640
  285. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  286. package/dist/contracts/StorkFeeds.js +0 -813
  287. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  288. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  289. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  290. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  291. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  292. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  293. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  294. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  295. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  296. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  297. package/dist/contracts/WalletConfig.d.ts +0 -1398
  298. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  299. package/dist/contracts/WalletConfig.js +0 -1674
  300. package/dist/contracts/WalletFunds.d.ts +0 -1978
  301. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  302. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  303. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  304. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  305. package/dist/contracts/v0_1_Agent.d.ts +0 -2631
  306. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  307. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  308. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  309. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  310. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  311. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  312. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  313. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  314. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  315. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  316. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  317. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  318. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  319. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  320. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  321. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  322. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  323. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  324. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  325. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  326. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  327. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  328. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  329. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  330. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  331. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  332. package/dist/contracts/v0_3_Agent.js +0 -3458
  333. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  334. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  335. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  336. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  337. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  338. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  339. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  340. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  341. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  342. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  343. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  344. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  345. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  346. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  347. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  348. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  349. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  350. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  351. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  352. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  353. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  354. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  355. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  356. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  357. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  358. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  359. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  360. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  361. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  362. package/dist/contracts/v0_3_LegoDex.js +0 -774
  363. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  364. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  365. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  366. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  367. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  368. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  369. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  370. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  371. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  372. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  373. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  374. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  375. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  376. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  377. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  378. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  379. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  380. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  381. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  382. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  383. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  384. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  385. package/dist/contracts/v0_3_LegoUniswapV3.js +0 -1718
  386. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  387. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  388. package/dist/contracts/v0_3_LegoYield.js +0 -511
  389. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  390. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  391. package/dist/contracts/v0_3_OracleParser.js +0 -264
  392. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  393. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  394. package/dist/contracts/v0_3_OracleRegistry.js +0 -1562
  395. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  396. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  397. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  398. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  399. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  400. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  401. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  402. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  403. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  404. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  405. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  406. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  407. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  408. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  409. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  410. package/dist/getLegacyContracts.d.ts +0 -69
  411. package/dist/getLegacyContracts.d.ts.map +0 -1
  412. package/dist/getLegacyContracts.js +0 -55
@@ -122,6 +122,33 @@ export const abi = [
122
122
  anonymous: false,
123
123
  type: 'event',
124
124
  },
125
+ {
126
+ name: 'SnapShotPriceConfigSet',
127
+ inputs: [
128
+ {
129
+ name: 'minSnapshotDelay',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ {
134
+ name: 'maxNumSnapshots',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ {
139
+ name: 'maxUpsideDeviation',
140
+ type: 'uint256',
141
+ indexed: false,
142
+ },
143
+ {
144
+ name: 'staleTime',
145
+ type: 'uint256',
146
+ indexed: false,
147
+ },
148
+ ],
149
+ anonymous: false,
150
+ type: 'event',
151
+ },
125
152
  {
126
153
  name: 'AssetOpportunityAdded',
127
154
  inputs: [
@@ -156,6 +183,33 @@ export const abi = [
156
183
  anonymous: false,
157
184
  type: 'event',
158
185
  },
186
+ {
187
+ name: 'PricePerShareSnapShotAdded',
188
+ inputs: [
189
+ {
190
+ name: 'vaultToken',
191
+ type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'totalSupply',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'pricePerShare',
201
+ type: 'uint256',
202
+ indexed: false,
203
+ },
204
+ {
205
+ name: 'lastAveragePricePerShare',
206
+ type: 'uint256',
207
+ indexed: false,
208
+ },
209
+ ],
210
+ anonymous: false,
211
+ type: 'event',
212
+ },
159
213
  {
160
214
  stateMutability: 'view',
161
215
  type: 'function',
@@ -210,6 +264,10 @@ export const abi = [
210
264
  name: 'billing',
211
265
  type: 'address',
212
266
  },
267
+ {
268
+ name: 'vaultRegistry',
269
+ type: 'address',
270
+ },
213
271
  ],
214
272
  },
215
273
  ],
@@ -352,40 +410,155 @@ export const abi = [
352
410
  {
353
411
  stateMutability: 'view',
354
412
  type: 'function',
355
- name: 'isPaused',
356
- inputs: [],
413
+ name: 'getWeightedPricePerShare',
414
+ inputs: [
415
+ {
416
+ name: '_vaultToken',
417
+ type: 'address',
418
+ },
419
+ ],
357
420
  outputs: [
358
421
  {
359
422
  name: '',
360
- type: 'bool',
423
+ type: 'uint256',
361
424
  },
362
425
  ],
363
426
  },
364
427
  {
365
428
  stateMutability: 'view',
366
429
  type: 'function',
367
- name: 'assetOpportunities',
430
+ name: 'getLatestSnapshot',
368
431
  inputs: [
369
432
  {
370
- name: 'arg0',
433
+ name: '_vaultToken',
371
434
  type: 'address',
372
435
  },
373
436
  {
374
- name: 'arg1',
437
+ name: '_pricePerShare',
375
438
  type: 'uint256',
376
439
  },
377
440
  ],
378
441
  outputs: [
379
442
  {
380
443
  name: '',
444
+ type: 'tuple',
445
+ components: [
446
+ {
447
+ name: 'totalSupply',
448
+ type: 'uint256',
449
+ },
450
+ {
451
+ name: 'pricePerShare',
452
+ type: 'uint256',
453
+ },
454
+ {
455
+ name: 'lastUpdate',
456
+ type: 'uint256',
457
+ },
458
+ ],
459
+ },
460
+ ],
461
+ },
462
+ {
463
+ stateMutability: 'nonpayable',
464
+ type: 'function',
465
+ name: 'setSnapShotPriceConfig',
466
+ inputs: [
467
+ {
468
+ name: '_config',
469
+ type: 'tuple',
470
+ components: [
471
+ {
472
+ name: 'minSnapshotDelay',
473
+ type: 'uint256',
474
+ },
475
+ {
476
+ name: 'maxNumSnapshots',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ name: 'maxUpsideDeviation',
481
+ type: 'uint256',
482
+ },
483
+ {
484
+ name: 'staleTime',
485
+ type: 'uint256',
486
+ },
487
+ ],
488
+ },
489
+ ],
490
+ outputs: [],
491
+ },
492
+ {
493
+ stateMutability: 'view',
494
+ type: 'function',
495
+ name: 'isValidPriceConfig',
496
+ inputs: [
497
+ {
498
+ name: '_config',
499
+ type: 'tuple',
500
+ components: [
501
+ {
502
+ name: 'minSnapshotDelay',
503
+ type: 'uint256',
504
+ },
505
+ {
506
+ name: 'maxNumSnapshots',
507
+ type: 'uint256',
508
+ },
509
+ {
510
+ name: 'maxUpsideDeviation',
511
+ type: 'uint256',
512
+ },
513
+ {
514
+ name: 'staleTime',
515
+ type: 'uint256',
516
+ },
517
+ ],
518
+ },
519
+ ],
520
+ outputs: [
521
+ {
522
+ name: '',
523
+ type: 'bool',
524
+ },
525
+ ],
526
+ },
527
+ {
528
+ stateMutability: 'view',
529
+ type: 'function',
530
+ name: 'vaultToAsset',
531
+ inputs: [
532
+ {
533
+ name: 'arg0',
381
534
  type: 'address',
382
535
  },
383
536
  ],
537
+ outputs: [
538
+ {
539
+ name: '',
540
+ type: 'tuple',
541
+ components: [
542
+ {
543
+ name: 'underlyingAsset',
544
+ type: 'address',
545
+ },
546
+ {
547
+ name: 'decimals',
548
+ type: 'uint256',
549
+ },
550
+ {
551
+ name: 'lastAveragePricePerShare',
552
+ type: 'uint256',
553
+ },
554
+ ],
555
+ },
556
+ ],
384
557
  },
385
558
  {
386
559
  stateMutability: 'view',
387
560
  type: 'function',
388
- name: 'indexOfAssetOpportunity',
561
+ name: 'assetOpportunities',
389
562
  inputs: [
390
563
  {
391
564
  name: 'arg0',
@@ -393,25 +566,29 @@ export const abi = [
393
566
  },
394
567
  {
395
568
  name: 'arg1',
396
- type: 'address',
569
+ type: 'uint256',
397
570
  },
398
571
  ],
399
572
  outputs: [
400
573
  {
401
574
  name: '',
402
- type: 'uint256',
575
+ type: 'address',
403
576
  },
404
577
  ],
405
578
  },
406
579
  {
407
580
  stateMutability: 'view',
408
581
  type: 'function',
409
- name: 'numAssetOpportunities',
582
+ name: 'indexOfAssetOpportunity',
410
583
  inputs: [
411
584
  {
412
585
  name: 'arg0',
413
586
  type: 'address',
414
587
  },
588
+ {
589
+ name: 'arg1',
590
+ type: 'address',
591
+ },
415
592
  ],
416
593
  outputs: [
417
594
  {
@@ -423,7 +600,7 @@ export const abi = [
423
600
  {
424
601
  stateMutability: 'view',
425
602
  type: 'function',
426
- name: 'vaultToAsset',
603
+ name: 'numAssetOpportunities',
427
604
  inputs: [
428
605
  {
429
606
  name: 'arg0',
@@ -433,7 +610,7 @@ export const abi = [
433
610
  outputs: [
434
611
  {
435
612
  name: '',
436
- type: 'address',
613
+ type: 'uint256',
437
614
  },
438
615
  ],
439
616
  },
@@ -486,48 +663,113 @@ export const abi = [
486
663
  {
487
664
  stateMutability: 'view',
488
665
  type: 'function',
489
- name: 'hasCapability',
666
+ name: 'snapShotData',
490
667
  inputs: [
491
668
  {
492
- name: '_action',
493
- type: 'uint256',
669
+ name: 'arg0',
670
+ type: 'address',
494
671
  },
495
672
  ],
496
673
  outputs: [
497
674
  {
498
675
  name: '',
499
- type: 'bool',
676
+ type: 'tuple',
677
+ components: [
678
+ {
679
+ name: 'lastSnapShot',
680
+ type: 'tuple',
681
+ components: [
682
+ {
683
+ name: 'totalSupply',
684
+ type: 'uint256',
685
+ },
686
+ {
687
+ name: 'pricePerShare',
688
+ type: 'uint256',
689
+ },
690
+ {
691
+ name: 'lastUpdate',
692
+ type: 'uint256',
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ name: 'nextIndex',
698
+ type: 'uint256',
699
+ },
700
+ ],
500
701
  },
501
702
  ],
502
703
  },
503
704
  {
504
705
  stateMutability: 'view',
505
706
  type: 'function',
506
- name: 'getRegistries',
507
- inputs: [],
707
+ name: 'snapShots',
708
+ inputs: [
709
+ {
710
+ name: 'arg0',
711
+ type: 'address',
712
+ },
713
+ {
714
+ name: 'arg1',
715
+ type: 'uint256',
716
+ },
717
+ ],
508
718
  outputs: [
509
719
  {
510
720
  name: '',
511
- type: 'address[]',
721
+ type: 'tuple',
722
+ components: [
723
+ {
724
+ name: 'totalSupply',
725
+ type: 'uint256',
726
+ },
727
+ {
728
+ name: 'pricePerShare',
729
+ type: 'uint256',
730
+ },
731
+ {
732
+ name: 'lastUpdate',
733
+ type: 'uint256',
734
+ },
735
+ ],
512
736
  },
513
737
  ],
514
738
  },
515
739
  {
516
740
  stateMutability: 'view',
517
741
  type: 'function',
518
- name: 'isYieldLego',
742
+ name: 'snapShotPriceConfig',
519
743
  inputs: [],
520
744
  outputs: [
521
745
  {
522
746
  name: '',
523
- type: 'bool',
747
+ type: 'tuple',
748
+ components: [
749
+ {
750
+ name: 'minSnapshotDelay',
751
+ type: 'uint256',
752
+ },
753
+ {
754
+ name: 'maxNumSnapshots',
755
+ type: 'uint256',
756
+ },
757
+ {
758
+ name: 'maxUpsideDeviation',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: 'staleTime',
763
+ type: 'uint256',
764
+ },
765
+ ],
524
766
  },
525
767
  ],
526
768
  },
527
769
  {
528
770
  stateMutability: 'view',
529
771
  type: 'function',
530
- name: 'isDexLego',
772
+ name: 'isPaused',
531
773
  inputs: [],
532
774
  outputs: [
533
775
  {
@@ -539,15 +781,11 @@ export const abi = [
539
781
  {
540
782
  stateMutability: 'view',
541
783
  type: 'function',
542
- name: 'isEligibleVaultForTrialFunds',
784
+ name: 'hasCapability',
543
785
  inputs: [
544
786
  {
545
- name: '_vaultToken',
546
- type: 'address',
547
- },
548
- {
549
- name: '_underlyingAsset',
550
- type: 'address',
787
+ name: '_action',
788
+ type: 'uint256',
551
789
  },
552
790
  ],
553
791
  outputs: [
@@ -560,13 +798,20 @@ export const abi = [
560
798
  {
561
799
  stateMutability: 'view',
562
800
  type: 'function',
563
- name: 'isEligibleForYieldBonus',
564
- inputs: [
801
+ name: 'getRegistries',
802
+ inputs: [],
803
+ outputs: [
565
804
  {
566
- name: '_asset',
567
- type: 'address',
805
+ name: '',
806
+ type: 'address[]',
568
807
  },
569
808
  ],
809
+ },
810
+ {
811
+ stateMutability: 'view',
812
+ type: 'function',
813
+ name: 'isYieldLego',
814
+ inputs: [],
570
815
  outputs: [
571
816
  {
572
817
  name: '',
@@ -577,7 +822,7 @@ export const abi = [
577
822
  {
578
823
  stateMutability: 'view',
579
824
  type: 'function',
580
- name: 'isRebasing',
825
+ name: 'isDexLego',
581
826
  inputs: [],
582
827
  outputs: [
583
828
  {
@@ -587,130 +832,484 @@ export const abi = [
587
832
  ],
588
833
  },
589
834
  {
590
- stateMutability: 'nonpayable',
835
+ stateMutability: 'view',
591
836
  type: 'function',
592
- name: 'depositForYield',
837
+ name: 'getUnderlyingAsset',
593
838
  inputs: [
594
839
  {
595
- name: '_asset',
840
+ name: '_vaultToken',
596
841
  type: 'address',
597
842
  },
843
+ ],
844
+ outputs: [
598
845
  {
599
- name: '_amount',
600
- type: 'uint256',
846
+ name: '',
847
+ type: 'address',
601
848
  },
849
+ ],
850
+ },
851
+ {
852
+ stateMutability: 'view',
853
+ type: 'function',
854
+ name: 'getUnderlyingBalances',
855
+ inputs: [
602
856
  {
603
- name: '_vaultAddr',
857
+ name: '_vaultToken',
604
858
  type: 'address',
605
859
  },
606
860
  {
607
- name: '_extraData',
608
- type: 'bytes32',
861
+ name: '_vaultTokenBalance',
862
+ type: 'uint256',
609
863
  },
864
+ ],
865
+ outputs: [
610
866
  {
611
- name: '_recipient',
867
+ name: '',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ name: '',
872
+ type: 'uint256',
873
+ },
874
+ ],
875
+ },
876
+ {
877
+ stateMutability: 'view',
878
+ type: 'function',
879
+ name: 'getUnderlyingAmount',
880
+ inputs: [
881
+ {
882
+ name: '_vaultToken',
883
+ type: 'address',
884
+ },
885
+ {
886
+ name: '_vaultTokenAmount',
887
+ type: 'uint256',
888
+ },
889
+ ],
890
+ outputs: [
891
+ {
892
+ name: '',
893
+ type: 'uint256',
894
+ },
895
+ ],
896
+ },
897
+ {
898
+ stateMutability: 'view',
899
+ type: 'function',
900
+ name: 'getUnderlyingAmountSafe',
901
+ inputs: [
902
+ {
903
+ name: '_vaultToken',
904
+ type: 'address',
905
+ },
906
+ {
907
+ name: '_vaultTokenBalance',
908
+ type: 'uint256',
909
+ },
910
+ ],
911
+ outputs: [
912
+ {
913
+ name: '',
914
+ type: 'uint256',
915
+ },
916
+ ],
917
+ },
918
+ {
919
+ stateMutability: 'view',
920
+ type: 'function',
921
+ name: 'getUnderlyingData',
922
+ inputs: [
923
+ {
924
+ name: '_vaultToken',
925
+ type: 'address',
926
+ },
927
+ {
928
+ name: '_vaultTokenAmount',
929
+ type: 'uint256',
930
+ },
931
+ ],
932
+ outputs: [
933
+ {
934
+ name: '',
935
+ type: 'address',
936
+ },
937
+ {
938
+ name: '',
939
+ type: 'uint256',
940
+ },
941
+ {
942
+ name: '',
943
+ type: 'uint256',
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ stateMutability: 'view',
949
+ type: 'function',
950
+ name: 'getUnderlyingData',
951
+ inputs: [
952
+ {
953
+ name: '_vaultToken',
954
+ type: 'address',
955
+ },
956
+ {
957
+ name: '_vaultTokenAmount',
958
+ type: 'uint256',
959
+ },
960
+ {
961
+ name: '_appraiser',
962
+ type: 'address',
963
+ },
964
+ ],
965
+ outputs: [
966
+ {
967
+ name: '',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '',
972
+ type: 'uint256',
973
+ },
974
+ {
975
+ name: '',
976
+ type: 'uint256',
977
+ },
978
+ ],
979
+ },
980
+ {
981
+ stateMutability: 'view',
982
+ type: 'function',
983
+ name: 'getUsdValueOfVaultToken',
984
+ inputs: [
985
+ {
986
+ name: '_vaultToken',
987
+ type: 'address',
988
+ },
989
+ {
990
+ name: '_vaultTokenAmount',
991
+ type: 'uint256',
992
+ },
993
+ ],
994
+ outputs: [
995
+ {
996
+ name: '',
997
+ type: 'uint256',
998
+ },
999
+ ],
1000
+ },
1001
+ {
1002
+ stateMutability: 'view',
1003
+ type: 'function',
1004
+ name: 'getUsdValueOfVaultToken',
1005
+ inputs: [
1006
+ {
1007
+ name: '_vaultToken',
1008
+ type: 'address',
1009
+ },
1010
+ {
1011
+ name: '_vaultTokenAmount',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ name: '_appraiser',
1016
+ type: 'address',
1017
+ },
1018
+ ],
1019
+ outputs: [
1020
+ {
1021
+ name: '',
1022
+ type: 'uint256',
1023
+ },
1024
+ ],
1025
+ },
1026
+ {
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ name: 'isRebasing',
1030
+ inputs: [],
1031
+ outputs: [
1032
+ {
1033
+ name: '',
1034
+ type: 'bool',
1035
+ },
1036
+ ],
1037
+ },
1038
+ {
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ name: 'getPricePerShare',
1042
+ inputs: [
1043
+ {
1044
+ name: '_vaultToken',
1045
+ type: 'address',
1046
+ },
1047
+ ],
1048
+ outputs: [
1049
+ {
1050
+ name: '',
1051
+ type: 'uint256',
1052
+ },
1053
+ ],
1054
+ },
1055
+ {
1056
+ stateMutability: 'view',
1057
+ type: 'function',
1058
+ name: 'getPricePerShare',
1059
+ inputs: [
1060
+ {
1061
+ name: '_vaultToken',
1062
+ type: 'address',
1063
+ },
1064
+ {
1065
+ name: '_decimals',
1066
+ type: 'uint256',
1067
+ },
1068
+ ],
1069
+ outputs: [
1070
+ {
1071
+ name: '',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ stateMutability: 'view',
1078
+ type: 'function',
1079
+ name: 'getVaultTokenAmount',
1080
+ inputs: [
1081
+ {
1082
+ name: '_asset',
1083
+ type: 'address',
1084
+ },
1085
+ {
1086
+ name: '_assetAmount',
1087
+ type: 'uint256',
1088
+ },
1089
+ {
1090
+ name: '_vaultToken',
1091
+ type: 'address',
1092
+ },
1093
+ ],
1094
+ outputs: [
1095
+ {
1096
+ name: '',
1097
+ type: 'uint256',
1098
+ },
1099
+ ],
1100
+ },
1101
+ {
1102
+ stateMutability: 'view',
1103
+ type: 'function',
1104
+ name: 'totalAssets',
1105
+ inputs: [
1106
+ {
1107
+ name: '_vaultToken',
1108
+ type: 'address',
1109
+ },
1110
+ ],
1111
+ outputs: [
1112
+ {
1113
+ name: '',
1114
+ type: 'uint256',
1115
+ },
1116
+ ],
1117
+ },
1118
+ {
1119
+ stateMutability: 'view',
1120
+ type: 'function',
1121
+ name: 'totalBorrows',
1122
+ inputs: [
1123
+ {
1124
+ name: '_vaultToken',
1125
+ type: 'address',
1126
+ },
1127
+ ],
1128
+ outputs: [
1129
+ {
1130
+ name: '',
1131
+ type: 'uint256',
1132
+ },
1133
+ ],
1134
+ },
1135
+ {
1136
+ stateMutability: 'view',
1137
+ type: 'function',
1138
+ name: 'getAvailLiquidity',
1139
+ inputs: [
1140
+ {
1141
+ name: '_vaultToken',
1142
+ type: 'address',
1143
+ },
1144
+ ],
1145
+ outputs: [
1146
+ {
1147
+ name: '',
1148
+ type: 'uint256',
1149
+ },
1150
+ ],
1151
+ },
1152
+ {
1153
+ stateMutability: 'view',
1154
+ type: 'function',
1155
+ name: 'getUtilizationRatio',
1156
+ inputs: [
1157
+ {
1158
+ name: '_vaultToken',
1159
+ type: 'address',
1160
+ },
1161
+ ],
1162
+ outputs: [
1163
+ {
1164
+ name: '',
1165
+ type: 'uint256',
1166
+ },
1167
+ ],
1168
+ },
1169
+ {
1170
+ stateMutability: 'view',
1171
+ type: 'function',
1172
+ name: 'isEligibleForYieldBonus',
1173
+ inputs: [
1174
+ {
1175
+ name: '_asset',
1176
+ type: 'address',
1177
+ },
1178
+ ],
1179
+ outputs: [
1180
+ {
1181
+ name: '',
1182
+ type: 'bool',
1183
+ },
1184
+ ],
1185
+ },
1186
+ {
1187
+ stateMutability: 'view',
1188
+ type: 'function',
1189
+ name: 'getWithdrawalFees',
1190
+ inputs: [
1191
+ {
1192
+ name: '_vaultToken',
612
1193
  type: 'address',
613
1194
  },
1195
+ {
1196
+ name: '_vaultTokenAmount',
1197
+ type: 'uint256',
1198
+ },
614
1199
  ],
615
1200
  outputs: [
616
1201
  {
617
1202
  name: '',
618
1203
  type: 'uint256',
619
1204
  },
1205
+ ],
1206
+ },
1207
+ {
1208
+ stateMutability: 'view',
1209
+ type: 'function',
1210
+ name: 'canRegisterVaultToken',
1211
+ inputs: [
620
1212
  {
621
- name: '',
1213
+ name: '_asset',
622
1214
  type: 'address',
623
1215
  },
624
1216
  {
625
- name: '',
626
- type: 'uint256',
1217
+ name: '_vaultToken',
1218
+ type: 'address',
627
1219
  },
1220
+ ],
1221
+ outputs: [
628
1222
  {
629
1223
  name: '',
630
- type: 'uint256',
1224
+ type: 'bool',
631
1225
  },
632
1226
  ],
633
1227
  },
634
1228
  {
635
1229
  stateMutability: 'nonpayable',
636
1230
  type: 'function',
637
- name: 'depositForYield',
1231
+ name: 'registerVaultTokenLocally',
638
1232
  inputs: [
639
1233
  {
640
1234
  name: '_asset',
641
1235
  type: 'address',
642
1236
  },
643
- {
644
- name: '_amount',
645
- type: 'uint256',
646
- },
647
1237
  {
648
1238
  name: '_vaultAddr',
649
1239
  type: 'address',
650
1240
  },
1241
+ ],
1242
+ outputs: [
651
1243
  {
652
- name: '_extraData',
653
- type: 'bytes32',
654
- },
655
- {
656
- name: '_recipient',
657
- type: 'address',
658
- },
659
- {
660
- name: '_miniAddys',
1244
+ name: '',
661
1245
  type: 'tuple',
662
1246
  components: [
663
1247
  {
664
- name: 'ledger',
665
- type: 'address',
666
- },
667
- {
668
- name: 'missionControl',
1248
+ name: 'underlyingAsset',
669
1249
  type: 'address',
670
1250
  },
671
1251
  {
672
- name: 'legoBook',
673
- type: 'address',
1252
+ name: 'decimals',
1253
+ type: 'uint256',
674
1254
  },
675
1255
  {
676
- name: 'appraiser',
677
- type: 'address',
1256
+ name: 'lastAveragePricePerShare',
1257
+ type: 'uint256',
678
1258
  },
679
1259
  ],
680
1260
  },
681
1261
  ],
682
- outputs: [
1262
+ },
1263
+ {
1264
+ stateMutability: 'nonpayable',
1265
+ type: 'function',
1266
+ name: 'deregisterVaultTokenLocally',
1267
+ inputs: [
683
1268
  {
684
- name: '',
685
- type: 'uint256',
1269
+ name: '_asset',
1270
+ type: 'address',
686
1271
  },
687
1272
  {
688
- name: '',
1273
+ name: '_vaultAddr',
689
1274
  type: 'address',
690
1275
  },
1276
+ ],
1277
+ outputs: [],
1278
+ },
1279
+ {
1280
+ stateMutability: 'nonpayable',
1281
+ type: 'function',
1282
+ name: 'addPriceSnapshot',
1283
+ inputs: [
691
1284
  {
692
- name: '',
693
- type: 'uint256',
1285
+ name: '_vaultToken',
1286
+ type: 'address',
694
1287
  },
1288
+ ],
1289
+ outputs: [
695
1290
  {
696
1291
  name: '',
697
- type: 'uint256',
1292
+ type: 'bool',
698
1293
  },
699
1294
  ],
700
1295
  },
701
1296
  {
702
1297
  stateMutability: 'nonpayable',
703
1298
  type: 'function',
704
- name: 'withdrawFromYield',
1299
+ name: 'depositForYield',
705
1300
  inputs: [
706
1301
  {
707
- name: '_vaultToken',
1302
+ name: '_asset',
708
1303
  type: 'address',
709
1304
  },
710
1305
  {
711
1306
  name: '_amount',
712
1307
  type: 'uint256',
713
1308
  },
1309
+ {
1310
+ name: '_vaultAddr',
1311
+ type: 'address',
1312
+ },
714
1313
  {
715
1314
  name: '_extraData',
716
1315
  type: 'bytes32',
@@ -742,16 +1341,20 @@ export const abi = [
742
1341
  {
743
1342
  stateMutability: 'nonpayable',
744
1343
  type: 'function',
745
- name: 'withdrawFromYield',
1344
+ name: 'depositForYield',
746
1345
  inputs: [
747
1346
  {
748
- name: '_vaultToken',
1347
+ name: '_asset',
749
1348
  type: 'address',
750
1349
  },
751
1350
  {
752
1351
  name: '_amount',
753
1352
  type: 'uint256',
754
1353
  },
1354
+ {
1355
+ name: '_vaultAddr',
1356
+ type: 'address',
1357
+ },
755
1358
  {
756
1359
  name: '_extraData',
757
1360
  type: 'bytes32',
@@ -803,54 +1406,40 @@ export const abi = [
803
1406
  ],
804
1407
  },
805
1408
  {
806
- stateMutability: 'view',
1409
+ stateMutability: 'nonpayable',
807
1410
  type: 'function',
808
- name: 'isVaultToken',
1411
+ name: 'withdrawFromYield',
809
1412
  inputs: [
810
1413
  {
811
1414
  name: '_vaultToken',
812
1415
  type: 'address',
813
1416
  },
814
- ],
815
- outputs: [
816
1417
  {
817
- name: '',
818
- type: 'bool',
1418
+ name: '_amount',
1419
+ type: 'uint256',
819
1420
  },
820
- ],
821
- },
822
- {
823
- stateMutability: 'view',
824
- type: 'function',
825
- name: 'getUnderlyingAsset',
826
- inputs: [
827
1421
  {
828
- name: '_vaultToken',
1422
+ name: '_extraData',
1423
+ type: 'bytes32',
1424
+ },
1425
+ {
1426
+ name: '_recipient',
829
1427
  type: 'address',
830
1428
  },
831
1429
  ],
832
1430
  outputs: [
833
1431
  {
834
1432
  name: '',
835
- type: 'address',
1433
+ type: 'uint256',
836
1434
  },
837
- ],
838
- },
839
- {
840
- stateMutability: 'view',
841
- type: 'function',
842
- name: 'getUnderlyingAmount',
843
- inputs: [
844
1435
  {
845
- name: '_vaultToken',
1436
+ name: '',
846
1437
  type: 'address',
847
1438
  },
848
1439
  {
849
- name: '_vaultTokenAmount',
1440
+ name: '',
850
1441
  type: 'uint256',
851
1442
  },
852
- ],
853
- outputs: [
854
1443
  {
855
1444
  name: '',
856
1445
  type: 'uint256',
@@ -858,45 +1447,62 @@ export const abi = [
858
1447
  ],
859
1448
  },
860
1449
  {
861
- stateMutability: 'view',
1450
+ stateMutability: 'nonpayable',
862
1451
  type: 'function',
863
- name: 'getVaultTokenAmount',
1452
+ name: 'withdrawFromYield',
864
1453
  inputs: [
865
1454
  {
866
- name: '_asset',
1455
+ name: '_vaultToken',
867
1456
  type: 'address',
868
1457
  },
869
1458
  {
870
- name: '_assetAmount',
1459
+ name: '_amount',
871
1460
  type: 'uint256',
872
1461
  },
873
1462
  {
874
- name: '_vaultToken',
1463
+ name: '_extraData',
1464
+ type: 'bytes32',
1465
+ },
1466
+ {
1467
+ name: '_recipient',
875
1468
  type: 'address',
876
1469
  },
1470
+ {
1471
+ name: '_miniAddys',
1472
+ type: 'tuple',
1473
+ components: [
1474
+ {
1475
+ name: 'ledger',
1476
+ type: 'address',
1477
+ },
1478
+ {
1479
+ name: 'missionControl',
1480
+ type: 'address',
1481
+ },
1482
+ {
1483
+ name: 'legoBook',
1484
+ type: 'address',
1485
+ },
1486
+ {
1487
+ name: 'appraiser',
1488
+ type: 'address',
1489
+ },
1490
+ ],
1491
+ },
877
1492
  ],
878
1493
  outputs: [
879
1494
  {
880
1495
  name: '',
881
1496
  type: 'uint256',
882
1497
  },
883
- ],
884
- },
885
- {
886
- stateMutability: 'view',
887
- type: 'function',
888
- name: 'getUsdValueOfVaultToken',
889
- inputs: [
890
1498
  {
891
- name: '_vaultToken',
1499
+ name: '',
892
1500
  type: 'address',
893
1501
  },
894
1502
  {
895
- name: '_vaultTokenAmount',
1503
+ name: '',
896
1504
  type: 'uint256',
897
1505
  },
898
- ],
899
- outputs: [
900
1506
  {
901
1507
  name: '',
902
1508
  type: 'uint256',
@@ -906,22 +1512,26 @@ export const abi = [
906
1512
  {
907
1513
  stateMutability: 'view',
908
1514
  type: 'function',
909
- name: 'getUsdValueOfVaultToken',
1515
+ name: 'getAccessForLego',
910
1516
  inputs: [
911
1517
  {
912
- name: '_vaultToken',
1518
+ name: '_user',
913
1519
  type: 'address',
914
1520
  },
915
1521
  {
916
- name: '_vaultTokenAmount',
1522
+ name: '_action',
917
1523
  type: 'uint256',
918
1524
  },
1525
+ ],
1526
+ outputs: [
919
1527
  {
920
- name: '_appraiser',
1528
+ name: '',
921
1529
  type: 'address',
922
1530
  },
923
- ],
924
- outputs: [
1531
+ {
1532
+ name: '',
1533
+ type: 'string',
1534
+ },
925
1535
  {
926
1536
  name: '',
927
1537
  type: 'uint256',
@@ -929,24 +1539,28 @@ export const abi = [
929
1539
  ],
930
1540
  },
931
1541
  {
932
- stateMutability: 'view',
1542
+ stateMutability: 'nonpayable',
933
1543
  type: 'function',
934
- name: 'getUnderlyingData',
1544
+ name: 'claimRewards',
935
1545
  inputs: [
936
1546
  {
937
- name: '_vaultToken',
1547
+ name: '_user',
938
1548
  type: 'address',
939
1549
  },
940
1550
  {
941
- name: '_vaultTokenAmount',
1551
+ name: '_rewardToken',
1552
+ type: 'address',
1553
+ },
1554
+ {
1555
+ name: '_rewardAmount',
942
1556
  type: 'uint256',
943
1557
  },
944
- ],
945
- outputs: [
946
1558
  {
947
- name: '',
948
- type: 'address',
1559
+ name: '_extraData',
1560
+ type: 'bytes32',
949
1561
  },
1562
+ ],
1563
+ outputs: [
950
1564
  {
951
1565
  name: '',
952
1566
  type: 'uint256',
@@ -958,28 +1572,50 @@ export const abi = [
958
1572
  ],
959
1573
  },
960
1574
  {
961
- stateMutability: 'view',
1575
+ stateMutability: 'nonpayable',
962
1576
  type: 'function',
963
- name: 'getUnderlyingData',
1577
+ name: 'claimRewards',
964
1578
  inputs: [
965
1579
  {
966
- name: '_vaultToken',
1580
+ name: '_user',
967
1581
  type: 'address',
968
1582
  },
969
1583
  {
970
- name: '_vaultTokenAmount',
1584
+ name: '_rewardToken',
1585
+ type: 'address',
1586
+ },
1587
+ {
1588
+ name: '_rewardAmount',
971
1589
  type: 'uint256',
972
1590
  },
973
1591
  {
974
- name: '_appraiser',
975
- type: 'address',
1592
+ name: '_extraData',
1593
+ type: 'bytes32',
976
1594
  },
977
- ],
978
- outputs: [
979
1595
  {
980
- name: '',
981
- type: 'address',
1596
+ name: '_miniAddys',
1597
+ type: 'tuple',
1598
+ components: [
1599
+ {
1600
+ name: 'ledger',
1601
+ type: 'address',
1602
+ },
1603
+ {
1604
+ name: 'missionControl',
1605
+ type: 'address',
1606
+ },
1607
+ {
1608
+ name: 'legoBook',
1609
+ type: 'address',
1610
+ },
1611
+ {
1612
+ name: 'appraiser',
1613
+ type: 'address',
1614
+ },
1615
+ ],
982
1616
  },
1617
+ ],
1618
+ outputs: [
983
1619
  {
984
1620
  name: '',
985
1621
  type: 'uint256',
@@ -991,30 +1627,25 @@ export const abi = [
991
1627
  ],
992
1628
  },
993
1629
  {
994
- stateMutability: 'view',
1630
+ stateMutability: 'nonpayable',
995
1631
  type: 'function',
996
- name: 'totalAssets',
1632
+ name: 'claimIncentives',
997
1633
  inputs: [
998
1634
  {
999
- name: '_vaultToken',
1635
+ name: '_user',
1000
1636
  type: 'address',
1001
1637
  },
1002
- ],
1003
- outputs: [
1004
1638
  {
1005
- name: '',
1639
+ name: '_rewardToken',
1640
+ type: 'address',
1641
+ },
1642
+ {
1643
+ name: '_rewardAmount',
1006
1644
  type: 'uint256',
1007
1645
  },
1008
- ],
1009
- },
1010
- {
1011
- stateMutability: 'view',
1012
- type: 'function',
1013
- name: 'totalBorrows',
1014
- inputs: [
1015
1646
  {
1016
- name: '_vaultToken',
1017
- type: 'address',
1647
+ name: '_proofs',
1648
+ type: 'bytes32[]',
1018
1649
  },
1019
1650
  ],
1020
1651
  outputs: [
@@ -1022,60 +1653,83 @@ export const abi = [
1022
1653
  name: '',
1023
1654
  type: 'uint256',
1024
1655
  },
1656
+ {
1657
+ name: '',
1658
+ type: 'uint256',
1659
+ },
1025
1660
  ],
1026
1661
  },
1027
1662
  {
1028
- stateMutability: 'view',
1663
+ stateMutability: 'nonpayable',
1029
1664
  type: 'function',
1030
- name: 'getPricePerShare',
1665
+ name: 'claimIncentives',
1031
1666
  inputs: [
1032
1667
  {
1033
- name: '_asset',
1668
+ name: '_user',
1034
1669
  type: 'address',
1035
1670
  },
1036
1671
  {
1037
- name: '_decimals',
1672
+ name: '_rewardToken',
1673
+ type: 'address',
1674
+ },
1675
+ {
1676
+ name: '_rewardAmount',
1038
1677
  type: 'uint256',
1039
1678
  },
1679
+ {
1680
+ name: '_proofs',
1681
+ type: 'bytes32[]',
1682
+ },
1683
+ {
1684
+ name: '_miniAddys',
1685
+ type: 'tuple',
1686
+ components: [
1687
+ {
1688
+ name: 'ledger',
1689
+ type: 'address',
1690
+ },
1691
+ {
1692
+ name: 'missionControl',
1693
+ type: 'address',
1694
+ },
1695
+ {
1696
+ name: 'legoBook',
1697
+ type: 'address',
1698
+ },
1699
+ {
1700
+ name: 'appraiser',
1701
+ type: 'address',
1702
+ },
1703
+ ],
1704
+ },
1040
1705
  ],
1041
1706
  outputs: [
1042
1707
  {
1043
1708
  name: '',
1044
1709
  type: 'uint256',
1045
1710
  },
1046
- ],
1047
- },
1048
- {
1049
- stateMutability: 'nonpayable',
1050
- type: 'function',
1051
- name: 'addAssetOpportunity',
1052
- inputs: [
1053
- {
1054
- name: '_asset',
1055
- type: 'address',
1056
- },
1057
1711
  {
1058
- name: '_vaultAddr',
1059
- type: 'address',
1712
+ name: '',
1713
+ type: 'uint256',
1060
1714
  },
1061
1715
  ],
1062
- outputs: [],
1063
1716
  },
1064
1717
  {
1065
- stateMutability: 'nonpayable',
1718
+ stateMutability: 'view',
1066
1719
  type: 'function',
1067
- name: 'removeAssetOpportunity',
1720
+ name: 'hasClaimableRewards',
1068
1721
  inputs: [
1069
1722
  {
1070
- name: '_asset',
1723
+ name: '_user',
1071
1724
  type: 'address',
1072
1725
  },
1726
+ ],
1727
+ outputs: [
1073
1728
  {
1074
- name: '_vaultAddr',
1075
- type: 'address',
1729
+ name: '',
1730
+ type: 'bool',
1076
1731
  },
1077
1732
  ],
1078
- outputs: [],
1079
1733
  },
1080
1734
  {
1081
1735
  stateMutability: 'nonpayable',
@@ -1741,94 +2395,6 @@ export const abi = [
1741
2395
  },
1742
2396
  ],
1743
2397
  },
1744
- {
1745
- stateMutability: 'nonpayable',
1746
- type: 'function',
1747
- name: 'claimRewards',
1748
- inputs: [
1749
- {
1750
- name: '_user',
1751
- type: 'address',
1752
- },
1753
- {
1754
- name: '_rewardToken',
1755
- type: 'address',
1756
- },
1757
- {
1758
- name: '_rewardAmount',
1759
- type: 'uint256',
1760
- },
1761
- {
1762
- name: '_extraData',
1763
- type: 'bytes32',
1764
- },
1765
- ],
1766
- outputs: [
1767
- {
1768
- name: '',
1769
- type: 'uint256',
1770
- },
1771
- {
1772
- name: '',
1773
- type: 'uint256',
1774
- },
1775
- ],
1776
- },
1777
- {
1778
- stateMutability: 'nonpayable',
1779
- type: 'function',
1780
- name: 'claimRewards',
1781
- inputs: [
1782
- {
1783
- name: '_user',
1784
- type: 'address',
1785
- },
1786
- {
1787
- name: '_rewardToken',
1788
- type: 'address',
1789
- },
1790
- {
1791
- name: '_rewardAmount',
1792
- type: 'uint256',
1793
- },
1794
- {
1795
- name: '_extraData',
1796
- type: 'bytes32',
1797
- },
1798
- {
1799
- name: '_miniAddys',
1800
- type: 'tuple',
1801
- components: [
1802
- {
1803
- name: 'ledger',
1804
- type: 'address',
1805
- },
1806
- {
1807
- name: 'missionControl',
1808
- type: 'address',
1809
- },
1810
- {
1811
- name: 'legoBook',
1812
- type: 'address',
1813
- },
1814
- {
1815
- name: 'appraiser',
1816
- type: 'address',
1817
- },
1818
- ],
1819
- },
1820
- ],
1821
- outputs: [
1822
- {
1823
- name: '',
1824
- type: 'uint256',
1825
- },
1826
- {
1827
- name: '',
1828
- type: 'uint256',
1829
- },
1830
- ],
1831
- },
1832
2398
  {
1833
2399
  stateMutability: 'nonpayable',
1834
2400
  type: 'function',
@@ -2464,57 +3030,43 @@ export const abi = [
2464
3030
  {
2465
3031
  stateMutability: 'view',
2466
3032
  type: 'function',
2467
- name: 'getAccessForLego',
2468
- inputs: [
2469
- {
2470
- name: '_user',
2471
- type: 'address',
2472
- },
2473
- {
2474
- name: '_action',
2475
- type: 'uint256',
2476
- },
2477
- ],
3033
+ name: 'FLUID_RESOLVER',
3034
+ inputs: [],
2478
3035
  outputs: [
2479
3036
  {
2480
3037
  name: '',
2481
3038
  type: 'address',
2482
3039
  },
2483
- {
2484
- name: '',
2485
- type: 'string',
2486
- },
2487
- {
2488
- name: '',
2489
- type: 'uint256',
2490
- },
2491
3040
  ],
2492
3041
  },
2493
3042
  {
2494
3043
  stateMutability: 'view',
2495
3044
  type: 'function',
2496
- name: 'getPrice',
2497
- inputs: [
3045
+ name: 'RIPE_REGISTRY',
3046
+ inputs: [],
3047
+ outputs: [
2498
3048
  {
2499
- name: '_asset',
3049
+ name: '',
2500
3050
  type: 'address',
2501
3051
  },
2502
- {
2503
- name: '_decimals',
2504
- type: 'uint256',
2505
- },
2506
3052
  ],
3053
+ },
3054
+ {
3055
+ stateMutability: 'view',
3056
+ type: 'function',
3057
+ name: 'WETH',
3058
+ inputs: [],
2507
3059
  outputs: [
2508
3060
  {
2509
3061
  name: '',
2510
- type: 'uint256',
3062
+ type: 'address',
2511
3063
  },
2512
3064
  ],
2513
3065
  },
2514
3066
  {
2515
3067
  stateMutability: 'view',
2516
3068
  type: 'function',
2517
- name: 'FLUID_RESOLVER',
3069
+ name: 'NATIVE_ETH',
2518
3070
  inputs: [],
2519
3071
  outputs: [
2520
3072
  {
@@ -2535,11 +3087,23 @@ export const abi = [
2535
3087
  name: '_fluidResolver',
2536
3088
  type: 'address',
2537
3089
  },
3090
+ {
3091
+ name: '_ripeRegistry',
3092
+ type: 'address',
3093
+ },
3094
+ {
3095
+ name: '_weth',
3096
+ type: 'address',
3097
+ },
3098
+ {
3099
+ name: '_eth',
3100
+ type: 'address',
3101
+ },
2538
3102
  ],
2539
3103
  outputs: [],
2540
3104
  },
2541
3105
  ];
2542
- export const deployAddress = '0x4719731fC7c8A3e17CB3e1EadD4412692432B404';
3106
+ export const deployAddress = '0x67E7bcC1deBd060251a9ECeA37002a3986E74f93';
2543
3107
  function getRequest(method, args, contractAddressOrOptions) {
2544
3108
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2545
3109
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2575,33 +3139,46 @@ export const call = {
2575
3139
  getAssets: (...args) => getRequest('getAssets', args),
2576
3140
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2577
3141
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2578
- isPaused: (...args) => getRequest('isPaused', args),
3142
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3143
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3144
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3145
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2579
3146
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2580
3147
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2581
3148
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2582
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2583
3149
  assets: (...args) => getRequest('assets', args),
2584
3150
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2585
3151
  numAssets: (...args) => getRequest('numAssets', args),
3152
+ snapShotData: (...args) => getRequest('snapShotData', args),
3153
+ snapShots: (...args) => getRequest('snapShots', args),
3154
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3155
+ isPaused: (...args) => getRequest('isPaused', args),
2586
3156
  hasCapability: (...args) => getRequest('hasCapability', args),
2587
3157
  getRegistries: (...args) => getRequest('getRegistries', args),
2588
3158
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2589
3159
  isDexLego: (...args) => getRequest('isDexLego', args),
2590
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2591
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2592
- isRebasing: (...args) => getRequest('isRebasing', args),
2593
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2594
3160
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3161
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2595
3162
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2596
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2597
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3163
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2598
3164
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3165
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3166
+ isRebasing: (...args) => getRequest('isRebasing', args),
3167
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3168
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2599
3169
  totalAssets: (...args) => getRequest('totalAssets', args),
2600
3170
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2601
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3171
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3172
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3173
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3174
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3175
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2602
3176
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2603
- getPrice: (...args) => getRequest('getPrice', args),
3177
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2604
3178
  FLUID_RESOLVER: (...args) => getRequest('FLUID_RESOLVER', args),
3179
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
3180
+ WETH: (...args) => getRequest('WETH', args),
3181
+ NATIVE_ETH: (...args) => getRequest('NATIVE_ETH', args),
2605
3182
  };
2606
3183
  function getMutation(functionName) {
2607
3184
  return {
@@ -2616,10 +3193,14 @@ export const mutation = {
2616
3193
  pause: getMutation('pause'),
2617
3194
  recoverFunds: getMutation('recoverFunds'),
2618
3195
  recoverFundsMany: getMutation('recoverFundsMany'),
3196
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3197
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3198
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3199
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2619
3200
  depositForYield: getMutation('depositForYield'),
2620
3201
  withdrawFromYield: getMutation('withdrawFromYield'),
2621
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2622
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
3202
+ claimRewards: getMutation('claimRewards'),
3203
+ claimIncentives: getMutation('claimIncentives'),
2623
3204
  swapTokens: getMutation('swapTokens'),
2624
3205
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2625
3206
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2627,7 +3208,6 @@ export const mutation = {
2627
3208
  removeCollateral: getMutation('removeCollateral'),
2628
3209
  borrow: getMutation('borrow'),
2629
3210
  repayDebt: getMutation('repayDebt'),
2630
- claimRewards: getMutation('claimRewards'),
2631
3211
  addLiquidity: getMutation('addLiquidity'),
2632
3212
  removeLiquidity: getMutation('removeLiquidity'),
2633
3213
  addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
@@ -2645,41 +3225,58 @@ export function toSdk(publicClient, walletClient) {
2645
3225
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2646
3226
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2647
3227
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2648
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3228
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3229
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3230
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3231
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2649
3232
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2650
3233
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2651
3234
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2652
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2653
3235
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2654
3236
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2655
3237
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3238
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3239
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3240
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3241
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2656
3242
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2657
3243
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2658
3244
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2659
3245
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2660
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2661
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2662
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2663
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2664
3246
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3247
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2665
3248
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2666
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2667
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3249
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2668
3250
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3251
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3252
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3253
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3254
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2669
3255
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2670
3256
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2671
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3257
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3258
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3259
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3260
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3261
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
2672
3262
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2673
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3263
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2674
3264
  FLUID_RESOLVER: (...args) => singleQuery(publicClient, call.FLUID_RESOLVER(...args)),
3265
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
3266
+ WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
3267
+ NATIVE_ETH: (...args) => singleQuery(publicClient, call.NATIVE_ETH(...args)),
2675
3268
  // Mutations
2676
3269
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2677
3270
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2678
3271
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3272
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3273
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3274
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3275
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2679
3276
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2680
3277
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2681
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2682
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
3278
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3279
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2683
3280
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2684
3281
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2685
3282
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
@@ -2687,7 +3284,6 @@ export function toSdk(publicClient, walletClient) {
2687
3284
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2688
3285
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2689
3286
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2690
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2691
3287
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2692
3288
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
2693
3289
  addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),