@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
@@ -134,6 +134,33 @@ export const abi = [
134
134
  anonymous: false,
135
135
  type: 'event',
136
136
  },
137
+ {
138
+ name: 'SnapShotPriceConfigSet',
139
+ inputs: [
140
+ {
141
+ name: 'minSnapshotDelay',
142
+ type: 'uint256',
143
+ indexed: false,
144
+ },
145
+ {
146
+ name: 'maxNumSnapshots',
147
+ type: 'uint256',
148
+ indexed: false,
149
+ },
150
+ {
151
+ name: 'maxUpsideDeviation',
152
+ type: 'uint256',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'staleTime',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ ],
161
+ anonymous: false,
162
+ type: 'event',
163
+ },
137
164
  {
138
165
  name: 'AssetOpportunityAdded',
139
166
  inputs: [
@@ -222,6 +249,10 @@ export const abi = [
222
249
  name: 'billing',
223
250
  type: 'address',
224
251
  },
252
+ {
253
+ name: 'vaultRegistry',
254
+ type: 'address',
255
+ },
225
256
  ],
226
257
  },
227
258
  ],
@@ -364,40 +395,155 @@ export const abi = [
364
395
  {
365
396
  stateMutability: 'view',
366
397
  type: 'function',
367
- name: 'isPaused',
368
- inputs: [],
398
+ name: 'getWeightedPricePerShare',
399
+ inputs: [
400
+ {
401
+ name: '_vaultToken',
402
+ type: 'address',
403
+ },
404
+ ],
369
405
  outputs: [
370
406
  {
371
407
  name: '',
372
- type: 'bool',
408
+ type: 'uint256',
373
409
  },
374
410
  ],
375
411
  },
376
412
  {
377
413
  stateMutability: 'view',
378
414
  type: 'function',
379
- name: 'assetOpportunities',
415
+ name: 'getLatestSnapshot',
380
416
  inputs: [
381
417
  {
382
- name: 'arg0',
418
+ name: '_vaultToken',
383
419
  type: 'address',
384
420
  },
385
421
  {
386
- name: 'arg1',
422
+ name: '_pricePerShare',
387
423
  type: 'uint256',
388
424
  },
389
425
  ],
390
426
  outputs: [
391
427
  {
392
428
  name: '',
429
+ type: 'tuple',
430
+ components: [
431
+ {
432
+ name: 'totalSupply',
433
+ type: 'uint256',
434
+ },
435
+ {
436
+ name: 'pricePerShare',
437
+ type: 'uint256',
438
+ },
439
+ {
440
+ name: 'lastUpdate',
441
+ type: 'uint256',
442
+ },
443
+ ],
444
+ },
445
+ ],
446
+ },
447
+ {
448
+ stateMutability: 'nonpayable',
449
+ type: 'function',
450
+ name: 'setSnapShotPriceConfig',
451
+ inputs: [
452
+ {
453
+ name: '_config',
454
+ type: 'tuple',
455
+ components: [
456
+ {
457
+ name: 'minSnapshotDelay',
458
+ type: 'uint256',
459
+ },
460
+ {
461
+ name: 'maxNumSnapshots',
462
+ type: 'uint256',
463
+ },
464
+ {
465
+ name: 'maxUpsideDeviation',
466
+ type: 'uint256',
467
+ },
468
+ {
469
+ name: 'staleTime',
470
+ type: 'uint256',
471
+ },
472
+ ],
473
+ },
474
+ ],
475
+ outputs: [],
476
+ },
477
+ {
478
+ stateMutability: 'view',
479
+ type: 'function',
480
+ name: 'isValidPriceConfig',
481
+ inputs: [
482
+ {
483
+ name: '_config',
484
+ type: 'tuple',
485
+ components: [
486
+ {
487
+ name: 'minSnapshotDelay',
488
+ type: 'uint256',
489
+ },
490
+ {
491
+ name: 'maxNumSnapshots',
492
+ type: 'uint256',
493
+ },
494
+ {
495
+ name: 'maxUpsideDeviation',
496
+ type: 'uint256',
497
+ },
498
+ {
499
+ name: 'staleTime',
500
+ type: 'uint256',
501
+ },
502
+ ],
503
+ },
504
+ ],
505
+ outputs: [
506
+ {
507
+ name: '',
508
+ type: 'bool',
509
+ },
510
+ ],
511
+ },
512
+ {
513
+ stateMutability: 'view',
514
+ type: 'function',
515
+ name: 'vaultToAsset',
516
+ inputs: [
517
+ {
518
+ name: 'arg0',
393
519
  type: 'address',
394
520
  },
395
521
  ],
522
+ outputs: [
523
+ {
524
+ name: '',
525
+ type: 'tuple',
526
+ components: [
527
+ {
528
+ name: 'underlyingAsset',
529
+ type: 'address',
530
+ },
531
+ {
532
+ name: 'decimals',
533
+ type: 'uint256',
534
+ },
535
+ {
536
+ name: 'lastAveragePricePerShare',
537
+ type: 'uint256',
538
+ },
539
+ ],
540
+ },
541
+ ],
396
542
  },
397
543
  {
398
544
  stateMutability: 'view',
399
545
  type: 'function',
400
- name: 'indexOfAssetOpportunity',
546
+ name: 'assetOpportunities',
401
547
  inputs: [
402
548
  {
403
549
  name: 'arg0',
@@ -405,25 +551,29 @@ export const abi = [
405
551
  },
406
552
  {
407
553
  name: 'arg1',
408
- type: 'address',
554
+ type: 'uint256',
409
555
  },
410
556
  ],
411
557
  outputs: [
412
558
  {
413
559
  name: '',
414
- type: 'uint256',
560
+ type: 'address',
415
561
  },
416
562
  ],
417
563
  },
418
564
  {
419
565
  stateMutability: 'view',
420
566
  type: 'function',
421
- name: 'numAssetOpportunities',
567
+ name: 'indexOfAssetOpportunity',
422
568
  inputs: [
423
569
  {
424
570
  name: 'arg0',
425
571
  type: 'address',
426
572
  },
573
+ {
574
+ name: 'arg1',
575
+ type: 'address',
576
+ },
427
577
  ],
428
578
  outputs: [
429
579
  {
@@ -435,7 +585,7 @@ export const abi = [
435
585
  {
436
586
  stateMutability: 'view',
437
587
  type: 'function',
438
- name: 'vaultToAsset',
588
+ name: 'numAssetOpportunities',
439
589
  inputs: [
440
590
  {
441
591
  name: 'arg0',
@@ -445,7 +595,7 @@ export const abi = [
445
595
  outputs: [
446
596
  {
447
597
  name: '',
448
- type: 'address',
598
+ type: 'uint256',
449
599
  },
450
600
  ],
451
601
  },
@@ -498,48 +648,113 @@ export const abi = [
498
648
  {
499
649
  stateMutability: 'view',
500
650
  type: 'function',
501
- name: 'hasCapability',
651
+ name: 'snapShotData',
502
652
  inputs: [
503
653
  {
504
- name: '_action',
505
- type: 'uint256',
654
+ name: 'arg0',
655
+ type: 'address',
506
656
  },
507
657
  ],
508
658
  outputs: [
509
659
  {
510
660
  name: '',
511
- type: 'bool',
661
+ type: 'tuple',
662
+ components: [
663
+ {
664
+ name: 'lastSnapShot',
665
+ type: 'tuple',
666
+ components: [
667
+ {
668
+ name: 'totalSupply',
669
+ type: 'uint256',
670
+ },
671
+ {
672
+ name: 'pricePerShare',
673
+ type: 'uint256',
674
+ },
675
+ {
676
+ name: 'lastUpdate',
677
+ type: 'uint256',
678
+ },
679
+ ],
680
+ },
681
+ {
682
+ name: 'nextIndex',
683
+ type: 'uint256',
684
+ },
685
+ ],
512
686
  },
513
687
  ],
514
688
  },
515
689
  {
516
690
  stateMutability: 'view',
517
691
  type: 'function',
518
- name: 'getRegistries',
519
- inputs: [],
692
+ name: 'snapShots',
693
+ inputs: [
694
+ {
695
+ name: 'arg0',
696
+ type: 'address',
697
+ },
698
+ {
699
+ name: 'arg1',
700
+ type: 'uint256',
701
+ },
702
+ ],
520
703
  outputs: [
521
704
  {
522
705
  name: '',
523
- type: 'address[]',
706
+ type: 'tuple',
707
+ components: [
708
+ {
709
+ name: 'totalSupply',
710
+ type: 'uint256',
711
+ },
712
+ {
713
+ name: 'pricePerShare',
714
+ type: 'uint256',
715
+ },
716
+ {
717
+ name: 'lastUpdate',
718
+ type: 'uint256',
719
+ },
720
+ ],
524
721
  },
525
722
  ],
526
723
  },
527
724
  {
528
725
  stateMutability: 'view',
529
726
  type: 'function',
530
- name: 'isYieldLego',
727
+ name: 'snapShotPriceConfig',
531
728
  inputs: [],
532
729
  outputs: [
533
730
  {
534
731
  name: '',
535
- type: 'bool',
732
+ type: 'tuple',
733
+ components: [
734
+ {
735
+ name: 'minSnapshotDelay',
736
+ type: 'uint256',
737
+ },
738
+ {
739
+ name: 'maxNumSnapshots',
740
+ type: 'uint256',
741
+ },
742
+ {
743
+ name: 'maxUpsideDeviation',
744
+ type: 'uint256',
745
+ },
746
+ {
747
+ name: 'staleTime',
748
+ type: 'uint256',
749
+ },
750
+ ],
536
751
  },
537
752
  ],
538
753
  },
539
754
  {
540
755
  stateMutability: 'view',
541
756
  type: 'function',
542
- name: 'isDexLego',
757
+ name: 'isPaused',
543
758
  inputs: [],
544
759
  outputs: [
545
760
  {
@@ -551,15 +766,11 @@ export const abi = [
551
766
  {
552
767
  stateMutability: 'view',
553
768
  type: 'function',
554
- name: 'isEligibleVaultForTrialFunds',
769
+ name: 'hasCapability',
555
770
  inputs: [
556
771
  {
557
- name: '_vaultToken',
558
- type: 'address',
559
- },
560
- {
561
- name: '_underlyingAsset',
562
- type: 'address',
772
+ name: '_action',
773
+ type: 'uint256',
563
774
  },
564
775
  ],
565
776
  outputs: [
@@ -572,13 +783,20 @@ export const abi = [
572
783
  {
573
784
  stateMutability: 'view',
574
785
  type: 'function',
575
- name: 'isEligibleForYieldBonus',
576
- inputs: [
786
+ name: 'getRegistries',
787
+ inputs: [],
788
+ outputs: [
577
789
  {
578
- name: '_asset',
579
- type: 'address',
790
+ name: '',
791
+ type: 'address[]',
580
792
  },
581
793
  ],
794
+ },
795
+ {
796
+ stateMutability: 'view',
797
+ type: 'function',
798
+ name: 'isYieldLego',
799
+ inputs: [],
582
800
  outputs: [
583
801
  {
584
802
  name: '',
@@ -589,7 +807,7 @@ export const abi = [
589
807
  {
590
808
  stateMutability: 'view',
591
809
  type: 'function',
592
- name: 'isRebasing',
810
+ name: 'isDexLego',
593
811
  inputs: [],
594
812
  outputs: [
595
813
  {
@@ -599,29 +817,34 @@ export const abi = [
599
817
  ],
600
818
  },
601
819
  {
602
- stateMutability: 'nonpayable',
820
+ stateMutability: 'view',
603
821
  type: 'function',
604
- name: 'depositForYield',
822
+ name: 'getUnderlyingAsset',
605
823
  inputs: [
606
824
  {
607
- name: '_asset',
825
+ name: '_vaultToken',
608
826
  type: 'address',
609
827
  },
828
+ ],
829
+ outputs: [
610
830
  {
611
- name: '_amount',
612
- type: 'uint256',
613
- },
614
- {
615
- name: '_vaultAddr',
831
+ name: '',
616
832
  type: 'address',
617
833
  },
834
+ ],
835
+ },
836
+ {
837
+ stateMutability: 'view',
838
+ type: 'function',
839
+ name: 'getUnderlyingBalances',
840
+ inputs: [
618
841
  {
619
- name: '_extraData',
620
- type: 'bytes32',
842
+ name: '_vaultToken',
843
+ type: 'address',
621
844
  },
622
845
  {
623
- name: '_recipient',
624
- type: 'address',
846
+ name: '_vaultTokenBalance',
847
+ type: 'uint256',
625
848
  },
626
849
  ],
627
850
  outputs: [
@@ -631,12 +854,25 @@ export const abi = [
631
854
  },
632
855
  {
633
856
  name: '',
857
+ type: 'uint256',
858
+ },
859
+ ],
860
+ },
861
+ {
862
+ stateMutability: 'view',
863
+ type: 'function',
864
+ name: 'getUnderlyingAmount',
865
+ inputs: [
866
+ {
867
+ name: '_vaultToken',
634
868
  type: 'address',
635
869
  },
636
870
  {
637
- name: '',
871
+ name: '_vaultTokenAmount',
638
872
  type: 'uint256',
639
873
  },
874
+ ],
875
+ outputs: [
640
876
  {
641
877
  name: '',
642
878
  type: 'uint256',
@@ -644,58 +880,74 @@ export const abi = [
644
880
  ],
645
881
  },
646
882
  {
647
- stateMutability: 'nonpayable',
883
+ stateMutability: 'view',
648
884
  type: 'function',
649
- name: 'depositForYield',
885
+ name: 'getUnderlyingAmountSafe',
650
886
  inputs: [
651
887
  {
652
- name: '_asset',
888
+ name: '_vaultToken',
653
889
  type: 'address',
654
890
  },
655
891
  {
656
- name: '_amount',
892
+ name: '_vaultTokenBalance',
657
893
  type: 'uint256',
658
894
  },
895
+ ],
896
+ outputs: [
659
897
  {
660
- name: '_vaultAddr',
661
- type: 'address',
662
- },
663
- {
664
- name: '_extraData',
665
- type: 'bytes32',
898
+ name: '',
899
+ type: 'uint256',
666
900
  },
901
+ ],
902
+ },
903
+ {
904
+ stateMutability: 'view',
905
+ type: 'function',
906
+ name: 'getUnderlyingData',
907
+ inputs: [
667
908
  {
668
- name: '_recipient',
909
+ name: '_vaultToken',
669
910
  type: 'address',
670
911
  },
671
912
  {
672
- name: '_miniAddys',
673
- type: 'tuple',
674
- components: [
675
- {
676
- name: 'ledger',
677
- type: 'address',
678
- },
679
- {
680
- name: 'missionControl',
681
- type: 'address',
682
- },
683
- {
684
- name: 'legoBook',
685
- type: 'address',
686
- },
687
- {
688
- name: 'appraiser',
689
- type: 'address',
690
- },
691
- ],
913
+ name: '_vaultTokenAmount',
914
+ type: 'uint256',
692
915
  },
693
916
  ],
694
917
  outputs: [
918
+ {
919
+ name: '',
920
+ type: 'address',
921
+ },
695
922
  {
696
923
  name: '',
697
924
  type: 'uint256',
698
925
  },
926
+ {
927
+ name: '',
928
+ type: 'uint256',
929
+ },
930
+ ],
931
+ },
932
+ {
933
+ stateMutability: 'view',
934
+ type: 'function',
935
+ name: 'getUnderlyingData',
936
+ inputs: [
937
+ {
938
+ name: '_vaultToken',
939
+ type: 'address',
940
+ },
941
+ {
942
+ name: '_vaultTokenAmount',
943
+ type: 'uint256',
944
+ },
945
+ {
946
+ name: '_appraiser',
947
+ type: 'address',
948
+ },
949
+ ],
950
+ outputs: [
699
951
  {
700
952
  name: '',
701
953
  type: 'address',
@@ -711,24 +963,41 @@ export const abi = [
711
963
  ],
712
964
  },
713
965
  {
714
- stateMutability: 'nonpayable',
966
+ stateMutability: 'view',
715
967
  type: 'function',
716
- name: 'withdrawFromYield',
968
+ name: 'getUsdValueOfVaultToken',
717
969
  inputs: [
718
970
  {
719
971
  name: '_vaultToken',
720
972
  type: 'address',
721
973
  },
722
974
  {
723
- name: '_amount',
975
+ name: '_vaultTokenAmount',
724
976
  type: 'uint256',
725
977
  },
978
+ ],
979
+ outputs: [
726
980
  {
727
- name: '_extraData',
728
- type: 'bytes32',
981
+ name: '',
982
+ type: 'uint256',
729
983
  },
984
+ ],
985
+ },
986
+ {
987
+ stateMutability: 'view',
988
+ type: 'function',
989
+ name: 'getUsdValueOfVaultToken',
990
+ inputs: [
730
991
  {
731
- name: '_recipient',
992
+ name: '_vaultToken',
993
+ type: 'address',
994
+ },
995
+ {
996
+ name: '_vaultTokenAmount',
997
+ type: 'uint256',
998
+ },
999
+ {
1000
+ name: '_appraiser',
732
1001
  type: 'address',
733
1002
  },
734
1003
  ],
@@ -737,14 +1006,52 @@ export const abi = [
737
1006
  name: '',
738
1007
  type: 'uint256',
739
1008
  },
1009
+ ],
1010
+ },
1011
+ {
1012
+ stateMutability: 'view',
1013
+ type: 'function',
1014
+ name: 'isRebasing',
1015
+ inputs: [],
1016
+ outputs: [
740
1017
  {
741
1018
  name: '',
1019
+ type: 'bool',
1020
+ },
1021
+ ],
1022
+ },
1023
+ {
1024
+ stateMutability: 'view',
1025
+ type: 'function',
1026
+ name: 'getPricePerShare',
1027
+ inputs: [
1028
+ {
1029
+ name: '_vaultToken',
742
1030
  type: 'address',
743
1031
  },
1032
+ ],
1033
+ outputs: [
744
1034
  {
745
1035
  name: '',
746
1036
  type: 'uint256',
747
1037
  },
1038
+ ],
1039
+ },
1040
+ {
1041
+ stateMutability: 'view',
1042
+ type: 'function',
1043
+ name: 'getPricePerShare',
1044
+ inputs: [
1045
+ {
1046
+ name: '_vaultToken',
1047
+ type: 'address',
1048
+ },
1049
+ {
1050
+ name: '_decimals',
1051
+ type: 'uint256',
1052
+ },
1053
+ ],
1054
+ outputs: [
748
1055
  {
749
1056
  name: '',
750
1057
  type: 'uint256',
@@ -752,47 +1059,72 @@ export const abi = [
752
1059
  ],
753
1060
  },
754
1061
  {
755
- stateMutability: 'nonpayable',
1062
+ stateMutability: 'view',
756
1063
  type: 'function',
757
- name: 'withdrawFromYield',
1064
+ name: 'getVaultTokenAmount',
758
1065
  inputs: [
1066
+ {
1067
+ name: '_asset',
1068
+ type: 'address',
1069
+ },
1070
+ {
1071
+ name: '_assetAmount',
1072
+ type: 'uint256',
1073
+ },
759
1074
  {
760
1075
  name: '_vaultToken',
761
1076
  type: 'address',
762
1077
  },
1078
+ ],
1079
+ outputs: [
763
1080
  {
764
- name: '_amount',
1081
+ name: '',
765
1082
  type: 'uint256',
766
1083
  },
1084
+ ],
1085
+ },
1086
+ {
1087
+ stateMutability: 'view',
1088
+ type: 'function',
1089
+ name: 'totalAssets',
1090
+ inputs: [
767
1091
  {
768
- name: '_extraData',
769
- type: 'bytes32',
1092
+ name: '_vaultToken',
1093
+ type: 'address',
770
1094
  },
1095
+ ],
1096
+ outputs: [
771
1097
  {
772
- name: '_recipient',
1098
+ name: '',
1099
+ type: 'uint256',
1100
+ },
1101
+ ],
1102
+ },
1103
+ {
1104
+ stateMutability: 'view',
1105
+ type: 'function',
1106
+ name: 'totalBorrows',
1107
+ inputs: [
1108
+ {
1109
+ name: '_vaultToken',
773
1110
  type: 'address',
774
1111
  },
1112
+ ],
1113
+ outputs: [
775
1114
  {
776
- name: '_miniAddys',
777
- type: 'tuple',
778
- components: [
779
- {
780
- name: 'ledger',
781
- type: 'address',
782
- },
783
- {
784
- name: 'missionControl',
785
- type: 'address',
786
- },
787
- {
788
- name: 'legoBook',
789
- type: 'address',
790
- },
791
- {
792
- name: 'appraiser',
793
- type: 'address',
794
- },
795
- ],
1115
+ name: '',
1116
+ type: 'uint256',
1117
+ },
1118
+ ],
1119
+ },
1120
+ {
1121
+ stateMutability: 'view',
1122
+ type: 'function',
1123
+ name: 'getAvailLiquidity',
1124
+ inputs: [
1125
+ {
1126
+ name: '_vaultToken',
1127
+ type: 'address',
796
1128
  },
797
1129
  ],
798
1130
  outputs: [
@@ -800,43 +1132,170 @@ export const abi = [
800
1132
  name: '',
801
1133
  type: 'uint256',
802
1134
  },
1135
+ ],
1136
+ },
1137
+ {
1138
+ stateMutability: 'view',
1139
+ type: 'function',
1140
+ name: 'getUtilizationRatio',
1141
+ inputs: [
1142
+ {
1143
+ name: '_vaultToken',
1144
+ type: 'address',
1145
+ },
1146
+ ],
1147
+ outputs: [
803
1148
  {
804
1149
  name: '',
1150
+ type: 'uint256',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'view',
1156
+ type: 'function',
1157
+ name: 'isEligibleForYieldBonus',
1158
+ inputs: [
1159
+ {
1160
+ name: '_asset',
805
1161
  type: 'address',
806
1162
  },
1163
+ ],
1164
+ outputs: [
807
1165
  {
808
1166
  name: '',
1167
+ type: 'bool',
1168
+ },
1169
+ ],
1170
+ },
1171
+ {
1172
+ stateMutability: 'view',
1173
+ type: 'function',
1174
+ name: 'getWithdrawalFees',
1175
+ inputs: [
1176
+ {
1177
+ name: '_vaultToken',
1178
+ type: 'address',
1179
+ },
1180
+ {
1181
+ name: '_vaultTokenAmount',
809
1182
  type: 'uint256',
810
1183
  },
1184
+ ],
1185
+ outputs: [
811
1186
  {
812
1187
  name: '',
813
1188
  type: 'uint256',
814
1189
  },
815
1190
  ],
816
1191
  },
1192
+ {
1193
+ stateMutability: 'view',
1194
+ type: 'function',
1195
+ name: 'canRegisterVaultToken',
1196
+ inputs: [
1197
+ {
1198
+ name: '_asset',
1199
+ type: 'address',
1200
+ },
1201
+ {
1202
+ name: '_vaultToken',
1203
+ type: 'address',
1204
+ },
1205
+ ],
1206
+ outputs: [
1207
+ {
1208
+ name: '',
1209
+ type: 'bool',
1210
+ },
1211
+ ],
1212
+ },
817
1213
  {
818
1214
  stateMutability: 'nonpayable',
819
1215
  type: 'function',
820
- name: 'claimRewards',
1216
+ name: 'registerVaultTokenLocally',
821
1217
  inputs: [
822
1218
  {
823
- name: '_user',
1219
+ name: '_asset',
824
1220
  type: 'address',
825
1221
  },
826
1222
  {
827
- name: '_rewardToken',
1223
+ name: '_vaultAddr',
828
1224
  type: 'address',
829
1225
  },
1226
+ ],
1227
+ outputs: [
830
1228
  {
831
- name: '_rewardAmount',
1229
+ name: '',
1230
+ type: 'tuple',
1231
+ components: [
1232
+ {
1233
+ name: 'underlyingAsset',
1234
+ type: 'address',
1235
+ },
1236
+ {
1237
+ name: 'decimals',
1238
+ type: 'uint256',
1239
+ },
1240
+ {
1241
+ name: 'lastAveragePricePerShare',
1242
+ type: 'uint256',
1243
+ },
1244
+ ],
1245
+ },
1246
+ ],
1247
+ },
1248
+ {
1249
+ stateMutability: 'nonpayable',
1250
+ type: 'function',
1251
+ name: 'deregisterVaultTokenLocally',
1252
+ inputs: [
1253
+ {
1254
+ name: '_asset',
1255
+ type: 'address',
1256
+ },
1257
+ {
1258
+ name: '_vaultAddr',
1259
+ type: 'address',
1260
+ },
1261
+ ],
1262
+ outputs: [],
1263
+ },
1264
+ {
1265
+ stateMutability: 'nonpayable',
1266
+ type: 'function',
1267
+ name: 'depositForYield',
1268
+ inputs: [
1269
+ {
1270
+ name: '_asset',
1271
+ type: 'address',
1272
+ },
1273
+ {
1274
+ name: '_amount',
832
1275
  type: 'uint256',
833
1276
  },
1277
+ {
1278
+ name: '_vaultAddr',
1279
+ type: 'address',
1280
+ },
834
1281
  {
835
1282
  name: '_extraData',
836
1283
  type: 'bytes32',
837
1284
  },
1285
+ {
1286
+ name: '_recipient',
1287
+ type: 'address',
1288
+ },
838
1289
  ],
839
1290
  outputs: [
1291
+ {
1292
+ name: '',
1293
+ type: 'uint256',
1294
+ },
1295
+ {
1296
+ name: '',
1297
+ type: 'address',
1298
+ },
840
1299
  {
841
1300
  name: '',
842
1301
  type: 'uint256',
@@ -850,24 +1309,28 @@ export const abi = [
850
1309
  {
851
1310
  stateMutability: 'nonpayable',
852
1311
  type: 'function',
853
- name: 'claimRewards',
1312
+ name: 'depositForYield',
854
1313
  inputs: [
855
1314
  {
856
- name: '_user',
1315
+ name: '_asset',
857
1316
  type: 'address',
858
1317
  },
859
1318
  {
860
- name: '_rewardToken',
861
- type: 'address',
1319
+ name: '_amount',
1320
+ type: 'uint256',
862
1321
  },
863
1322
  {
864
- name: '_rewardAmount',
865
- type: 'uint256',
1323
+ name: '_vaultAddr',
1324
+ type: 'address',
866
1325
  },
867
1326
  {
868
1327
  name: '_extraData',
869
1328
  type: 'bytes32',
870
1329
  },
1330
+ {
1331
+ name: '_recipient',
1332
+ type: 'address',
1333
+ },
871
1334
  {
872
1335
  name: '_miniAddys',
873
1336
  type: 'tuple',
@@ -898,118 +1361,116 @@ export const abi = [
898
1361
  },
899
1362
  {
900
1363
  name: '',
901
- type: 'uint256',
1364
+ type: 'address',
902
1365
  },
903
- ],
904
- },
905
- {
906
- stateMutability: 'nonpayable',
907
- type: 'function',
908
- name: 'hasClaimableRewards',
909
- inputs: [
910
1366
  {
911
- name: '_user',
912
- type: 'address',
1367
+ name: '',
1368
+ type: 'uint256',
913
1369
  },
914
- ],
915
- outputs: [
916
1370
  {
917
1371
  name: '',
918
- type: 'bool',
1372
+ type: 'uint256',
919
1373
  },
920
1374
  ],
921
1375
  },
922
1376
  {
923
1377
  stateMutability: 'nonpayable',
924
1378
  type: 'function',
925
- name: 'setCompRewardsAddr',
1379
+ name: 'withdrawFromYield',
926
1380
  inputs: [
927
1381
  {
928
- name: '_addr',
1382
+ name: '_vaultToken',
929
1383
  type: 'address',
930
1384
  },
931
- ],
932
- outputs: [
933
1385
  {
934
- name: '',
935
- type: 'bool',
1386
+ name: '_amount',
1387
+ type: 'uint256',
936
1388
  },
937
- ],
938
- },
939
- {
940
- stateMutability: 'view',
941
- type: 'function',
942
- name: 'isVaultToken',
943
- inputs: [
944
1389
  {
945
- name: '_vaultToken',
1390
+ name: '_extraData',
1391
+ type: 'bytes32',
1392
+ },
1393
+ {
1394
+ name: '_recipient',
946
1395
  type: 'address',
947
1396
  },
948
1397
  ],
949
1398
  outputs: [
950
1399
  {
951
1400
  name: '',
952
- type: 'bool',
1401
+ type: 'uint256',
953
1402
  },
954
- ],
955
- },
956
- {
957
- stateMutability: 'view',
958
- type: 'function',
959
- name: 'getUnderlyingAsset',
960
- inputs: [
961
1403
  {
962
- name: '_vaultToken',
1404
+ name: '',
963
1405
  type: 'address',
964
1406
  },
965
- ],
966
- outputs: [
967
1407
  {
968
1408
  name: '',
969
- type: 'address',
1409
+ type: 'uint256',
1410
+ },
1411
+ {
1412
+ name: '',
1413
+ type: 'uint256',
970
1414
  },
971
1415
  ],
972
1416
  },
973
1417
  {
974
- stateMutability: 'view',
1418
+ stateMutability: 'nonpayable',
975
1419
  type: 'function',
976
- name: 'getUnderlyingAmount',
1420
+ name: 'withdrawFromYield',
977
1421
  inputs: [
978
1422
  {
979
1423
  name: '_vaultToken',
980
1424
  type: 'address',
981
1425
  },
982
1426
  {
983
- name: '_vaultTokenAmount',
1427
+ name: '_amount',
984
1428
  type: 'uint256',
985
1429
  },
986
- ],
987
- outputs: [
988
1430
  {
989
- name: '',
990
- type: 'uint256',
1431
+ name: '_extraData',
1432
+ type: 'bytes32',
991
1433
  },
992
- ],
993
- },
994
- {
995
- stateMutability: 'view',
996
- type: 'function',
997
- name: 'getVaultTokenAmount',
998
- inputs: [
999
1434
  {
1000
- name: '_asset',
1435
+ name: '_recipient',
1001
1436
  type: 'address',
1002
1437
  },
1003
1438
  {
1004
- name: '_assetAmount',
1439
+ name: '_miniAddys',
1440
+ type: 'tuple',
1441
+ components: [
1442
+ {
1443
+ name: 'ledger',
1444
+ type: 'address',
1445
+ },
1446
+ {
1447
+ name: 'missionControl',
1448
+ type: 'address',
1449
+ },
1450
+ {
1451
+ name: 'legoBook',
1452
+ type: 'address',
1453
+ },
1454
+ {
1455
+ name: 'appraiser',
1456
+ type: 'address',
1457
+ },
1458
+ ],
1459
+ },
1460
+ ],
1461
+ outputs: [
1462
+ {
1463
+ name: '',
1005
1464
  type: 'uint256',
1006
1465
  },
1007
1466
  {
1008
- name: '_vaultToken',
1467
+ name: '',
1009
1468
  type: 'address',
1010
1469
  },
1011
- ],
1012
- outputs: [
1470
+ {
1471
+ name: '',
1472
+ type: 'uint256',
1473
+ },
1013
1474
  {
1014
1475
  name: '',
1015
1476
  type: 'uint256',
@@ -1017,42 +1478,80 @@ export const abi = [
1017
1478
  ],
1018
1479
  },
1019
1480
  {
1020
- stateMutability: 'view',
1481
+ stateMutability: 'nonpayable',
1021
1482
  type: 'function',
1022
- name: 'getUsdValueOfVaultToken',
1483
+ name: 'claimIncentives',
1023
1484
  inputs: [
1024
1485
  {
1025
- name: '_vaultToken',
1486
+ name: '_user',
1026
1487
  type: 'address',
1027
1488
  },
1028
1489
  {
1029
- name: '_vaultTokenAmount',
1490
+ name: '_rewardToken',
1491
+ type: 'address',
1492
+ },
1493
+ {
1494
+ name: '_rewardAmount',
1030
1495
  type: 'uint256',
1031
1496
  },
1497
+ {
1498
+ name: '_proofs',
1499
+ type: 'bytes32[]',
1500
+ },
1032
1501
  ],
1033
1502
  outputs: [
1034
1503
  {
1035
1504
  name: '',
1036
1505
  type: 'uint256',
1037
1506
  },
1507
+ {
1508
+ name: '',
1509
+ type: 'uint256',
1510
+ },
1038
1511
  ],
1039
1512
  },
1040
1513
  {
1041
- stateMutability: 'view',
1514
+ stateMutability: 'nonpayable',
1042
1515
  type: 'function',
1043
- name: 'getUsdValueOfVaultToken',
1516
+ name: 'claimIncentives',
1044
1517
  inputs: [
1045
1518
  {
1046
- name: '_vaultToken',
1519
+ name: '_user',
1047
1520
  type: 'address',
1048
1521
  },
1049
1522
  {
1050
- name: '_vaultTokenAmount',
1523
+ name: '_rewardToken',
1524
+ type: 'address',
1525
+ },
1526
+ {
1527
+ name: '_rewardAmount',
1051
1528
  type: 'uint256',
1052
1529
  },
1053
1530
  {
1054
- name: '_appraiser',
1055
- type: 'address',
1531
+ name: '_proofs',
1532
+ type: 'bytes32[]',
1533
+ },
1534
+ {
1535
+ name: '_miniAddys',
1536
+ type: 'tuple',
1537
+ components: [
1538
+ {
1539
+ name: 'ledger',
1540
+ type: 'address',
1541
+ },
1542
+ {
1543
+ name: 'missionControl',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ name: 'legoBook',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ name: 'appraiser',
1552
+ type: 'address',
1553
+ },
1554
+ ],
1056
1555
  },
1057
1556
  ],
1058
1557
  outputs: [
@@ -1060,27 +1559,35 @@ export const abi = [
1060
1559
  name: '',
1061
1560
  type: 'uint256',
1062
1561
  },
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1063
1566
  ],
1064
1567
  },
1065
1568
  {
1066
- stateMutability: 'view',
1569
+ stateMutability: 'nonpayable',
1067
1570
  type: 'function',
1068
- name: 'getUnderlyingData',
1571
+ name: 'claimRewards',
1069
1572
  inputs: [
1070
1573
  {
1071
- name: '_vaultToken',
1574
+ name: '_user',
1072
1575
  type: 'address',
1073
1576
  },
1074
1577
  {
1075
- name: '_vaultTokenAmount',
1578
+ name: '_rewardToken',
1579
+ type: 'address',
1580
+ },
1581
+ {
1582
+ name: '_rewardAmount',
1076
1583
  type: 'uint256',
1077
1584
  },
1078
- ],
1079
- outputs: [
1080
1585
  {
1081
- name: '',
1082
- type: 'address',
1586
+ name: '_extraData',
1587
+ type: 'bytes32',
1083
1588
  },
1589
+ ],
1590
+ outputs: [
1084
1591
  {
1085
1592
  name: '',
1086
1593
  type: 'uint256',
@@ -1092,28 +1599,50 @@ export const abi = [
1092
1599
  ],
1093
1600
  },
1094
1601
  {
1095
- stateMutability: 'view',
1602
+ stateMutability: 'nonpayable',
1096
1603
  type: 'function',
1097
- name: 'getUnderlyingData',
1604
+ name: 'claimRewards',
1098
1605
  inputs: [
1099
1606
  {
1100
- name: '_vaultToken',
1607
+ name: '_user',
1101
1608
  type: 'address',
1102
1609
  },
1103
1610
  {
1104
- name: '_vaultTokenAmount',
1611
+ name: '_rewardToken',
1612
+ type: 'address',
1613
+ },
1614
+ {
1615
+ name: '_rewardAmount',
1105
1616
  type: 'uint256',
1106
1617
  },
1107
1618
  {
1108
- name: '_appraiser',
1109
- type: 'address',
1619
+ name: '_extraData',
1620
+ type: 'bytes32',
1110
1621
  },
1111
- ],
1112
- outputs: [
1113
1622
  {
1114
- name: '',
1115
- type: 'address',
1623
+ name: '_miniAddys',
1624
+ type: 'tuple',
1625
+ components: [
1626
+ {
1627
+ name: 'ledger',
1628
+ type: 'address',
1629
+ },
1630
+ {
1631
+ name: 'missionControl',
1632
+ type: 'address',
1633
+ },
1634
+ {
1635
+ name: 'legoBook',
1636
+ type: 'address',
1637
+ },
1638
+ {
1639
+ name: 'appraiser',
1640
+ type: 'address',
1641
+ },
1642
+ ],
1116
1643
  },
1644
+ ],
1645
+ outputs: [
1117
1646
  {
1118
1647
  name: '',
1119
1648
  type: 'uint256',
@@ -1125,91 +1654,84 @@ export const abi = [
1125
1654
  ],
1126
1655
  },
1127
1656
  {
1128
- stateMutability: 'view',
1657
+ stateMutability: 'nonpayable',
1129
1658
  type: 'function',
1130
- name: 'totalAssets',
1659
+ name: 'hasClaimableRewards',
1131
1660
  inputs: [
1132
1661
  {
1133
- name: '_vaultToken',
1662
+ name: '_user',
1134
1663
  type: 'address',
1135
1664
  },
1136
1665
  ],
1137
1666
  outputs: [
1138
1667
  {
1139
1668
  name: '',
1140
- type: 'uint256',
1669
+ type: 'bool',
1141
1670
  },
1142
1671
  ],
1143
1672
  },
1144
1673
  {
1145
- stateMutability: 'view',
1674
+ stateMutability: 'nonpayable',
1146
1675
  type: 'function',
1147
- name: 'totalBorrows',
1676
+ name: 'setCompRewardsAddr',
1148
1677
  inputs: [
1149
1678
  {
1150
- name: '_vaultToken',
1679
+ name: '_addr',
1151
1680
  type: 'address',
1152
1681
  },
1153
1682
  ],
1154
1683
  outputs: [
1155
1684
  {
1156
1685
  name: '',
1157
- type: 'uint256',
1686
+ type: 'bool',
1158
1687
  },
1159
1688
  ],
1160
1689
  },
1161
1690
  {
1162
- stateMutability: 'view',
1691
+ stateMutability: 'nonpayable',
1163
1692
  type: 'function',
1164
- name: 'getPricePerShare',
1693
+ name: 'addPriceSnapshot',
1165
1694
  inputs: [
1166
1695
  {
1167
- name: '_asset',
1696
+ name: '_vaultToken',
1168
1697
  type: 'address',
1169
1698
  },
1170
- {
1171
- name: '_decimals',
1172
- type: 'uint256',
1173
- },
1174
1699
  ],
1175
1700
  outputs: [
1176
1701
  {
1177
1702
  name: '',
1178
- type: 'uint256',
1703
+ type: 'bool',
1179
1704
  },
1180
1705
  ],
1181
1706
  },
1182
1707
  {
1183
- stateMutability: 'nonpayable',
1708
+ stateMutability: 'view',
1184
1709
  type: 'function',
1185
- name: 'addAssetOpportunity',
1710
+ name: 'getAccessForLego',
1186
1711
  inputs: [
1187
1712
  {
1188
- name: '_asset',
1713
+ name: '_user',
1189
1714
  type: 'address',
1190
1715
  },
1191
1716
  {
1192
- name: '_vaultAddr',
1193
- type: 'address',
1717
+ name: '_action',
1718
+ type: 'uint256',
1194
1719
  },
1195
1720
  ],
1196
- outputs: [],
1197
- },
1198
- {
1199
- stateMutability: 'nonpayable',
1200
- type: 'function',
1201
- name: 'removeAssetOpportunity',
1202
- inputs: [
1721
+ outputs: [
1203
1722
  {
1204
- name: '_asset',
1723
+ name: '',
1205
1724
  type: 'address',
1206
1725
  },
1207
1726
  {
1208
- name: '_vaultAddr',
1209
- type: 'address',
1727
+ name: '',
1728
+ type: 'string',
1729
+ },
1730
+ {
1731
+ name: '',
1732
+ type: 'uint256',
1210
1733
  },
1211
1734
  ],
1212
- outputs: [],
1213
1735
  },
1214
1736
  {
1215
1737
  stateMutability: 'nonpayable',
@@ -2510,57 +3032,19 @@ export const abi = [
2510
3032
  {
2511
3033
  stateMutability: 'view',
2512
3034
  type: 'function',
2513
- name: 'getAccessForLego',
2514
- inputs: [
2515
- {
2516
- name: '_user',
2517
- type: 'address',
2518
- },
2519
- {
2520
- name: '_action',
2521
- type: 'uint256',
2522
- },
2523
- ],
3035
+ name: 'compoundRewards',
3036
+ inputs: [],
2524
3037
  outputs: [
2525
3038
  {
2526
3039
  name: '',
2527
3040
  type: 'address',
2528
3041
  },
2529
- {
2530
- name: '',
2531
- type: 'string',
2532
- },
2533
- {
2534
- name: '',
2535
- type: 'uint256',
2536
- },
2537
- ],
2538
- },
2539
- {
2540
- stateMutability: 'view',
2541
- type: 'function',
2542
- name: 'getPrice',
2543
- inputs: [
2544
- {
2545
- name: '_asset',
2546
- type: 'address',
2547
- },
2548
- {
2549
- name: '_decimals',
2550
- type: 'uint256',
2551
- },
2552
- ],
2553
- outputs: [
2554
- {
2555
- name: '',
2556
- type: 'uint256',
2557
- },
2558
3042
  ],
2559
3043
  },
2560
3044
  {
2561
3045
  stateMutability: 'view',
2562
3046
  type: 'function',
2563
- name: 'compoundRewards',
3047
+ name: 'COMPOUND_V3_CONFIGURATOR',
2564
3048
  inputs: [],
2565
3049
  outputs: [
2566
3050
  {
@@ -2572,7 +3056,7 @@ export const abi = [
2572
3056
  {
2573
3057
  stateMutability: 'view',
2574
3058
  type: 'function',
2575
- name: 'COMPOUND_V3_CONFIGURATOR',
3059
+ name: 'RIPE_REGISTRY',
2576
3060
  inputs: [],
2577
3061
  outputs: [
2578
3062
  {
@@ -2597,11 +3081,15 @@ export const abi = [
2597
3081
  name: '_compRewards',
2598
3082
  type: 'address',
2599
3083
  },
3084
+ {
3085
+ name: '_ripeRegistry',
3086
+ type: 'address',
3087
+ },
2600
3088
  ],
2601
3089
  outputs: [],
2602
3090
  },
2603
3091
  ];
2604
- export const deployAddress = '0x5Dec90961280605Dd9f3BA19dB0ad57459a86A61';
3092
+ export const deployAddress = '0x590FB39919c5F0323a93B54f2634d010b6ECfbA7';
2605
3093
  function getRequest(method, args, contractAddressOrOptions) {
2606
3094
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2607
3095
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2637,34 +3125,44 @@ export const call = {
2637
3125
  getAssets: (...args) => getRequest('getAssets', args),
2638
3126
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2639
3127
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2640
- isPaused: (...args) => getRequest('isPaused', args),
3128
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3129
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3130
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3131
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2641
3132
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2642
3133
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2643
3134
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2644
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2645
3135
  assets: (...args) => getRequest('assets', args),
2646
3136
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2647
3137
  numAssets: (...args) => getRequest('numAssets', args),
3138
+ snapShotData: (...args) => getRequest('snapShotData', args),
3139
+ snapShots: (...args) => getRequest('snapShots', args),
3140
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3141
+ isPaused: (...args) => getRequest('isPaused', args),
2648
3142
  hasCapability: (...args) => getRequest('hasCapability', args),
2649
3143
  getRegistries: (...args) => getRequest('getRegistries', args),
2650
3144
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2651
3145
  isDexLego: (...args) => getRequest('isDexLego', args),
2652
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2653
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2654
- isRebasing: (...args) => getRequest('isRebasing', args),
2655
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2656
3146
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3147
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2657
3148
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2658
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2659
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3149
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2660
3150
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3151
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3152
+ isRebasing: (...args) => getRequest('isRebasing', args),
3153
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3154
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2661
3155
  totalAssets: (...args) => getRequest('totalAssets', args),
2662
3156
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2663
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3157
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3158
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3159
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3160
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3161
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2664
3162
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2665
- getPrice: (...args) => getRequest('getPrice', args),
2666
3163
  compoundRewards: (...args) => getRequest('compoundRewards', args),
2667
3164
  COMPOUND_V3_CONFIGURATOR: (...args) => getRequest('COMPOUND_V3_CONFIGURATOR', args),
3165
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2668
3166
  };
2669
3167
  function getMutation(functionName) {
2670
3168
  return {
@@ -2679,13 +3177,16 @@ export const mutation = {
2679
3177
  pause: getMutation('pause'),
2680
3178
  recoverFunds: getMutation('recoverFunds'),
2681
3179
  recoverFundsMany: getMutation('recoverFundsMany'),
3180
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3181
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3182
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
2682
3183
  depositForYield: getMutation('depositForYield'),
2683
3184
  withdrawFromYield: getMutation('withdrawFromYield'),
3185
+ claimIncentives: getMutation('claimIncentives'),
2684
3186
  claimRewards: getMutation('claimRewards'),
2685
3187
  hasClaimableRewards: getMutation('hasClaimableRewards'),
2686
3188
  setCompRewardsAddr: getMutation('setCompRewardsAddr'),
2687
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2688
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
3189
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2689
3190
  swapTokens: getMutation('swapTokens'),
2690
3191
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2691
3192
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2710,45 +3211,58 @@ export function toSdk(publicClient, walletClient) {
2710
3211
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2711
3212
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2712
3213
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2713
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3214
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3215
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3216
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3217
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2714
3218
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2715
3219
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2716
3220
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2717
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2718
3221
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2719
3222
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2720
3223
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3224
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3225
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3226
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3227
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2721
3228
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2722
3229
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2723
3230
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2724
3231
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2725
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2726
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2727
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2728
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2729
3232
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3233
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2730
3234
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2731
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2732
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3235
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2733
3236
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3237
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3238
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3239
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3240
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2734
3241
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2735
3242
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2736
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3243
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3244
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3245
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3246
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3247
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
2737
3248
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2738
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2739
3249
  compoundRewards: (...args) => singleQuery(publicClient, call.compoundRewards(...args)),
2740
3250
  COMPOUND_V3_CONFIGURATOR: (...args) => singleQuery(publicClient, call.COMPOUND_V3_CONFIGURATOR(...args)),
3251
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2741
3252
  // Mutations
2742
3253
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2743
3254
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2744
3255
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3256
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3257
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3258
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
2745
3259
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2746
3260
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3261
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2747
3262
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2748
3263
  hasClaimableRewards: (...args) => mutate(walletClient, mutation.hasClaimableRewards)(...args),
2749
3264
  setCompRewardsAddr: (...args) => mutate(walletClient, mutation.setCompRewardsAddr)(...args),
2750
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2751
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
3265
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2752
3266
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2753
3267
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2754
3268
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),