@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: [
@@ -168,6 +195,33 @@ export const abi = [
168
195
  anonymous: false,
169
196
  type: 'event',
170
197
  },
198
+ {
199
+ name: 'PricePerShareSnapShotAdded',
200
+ inputs: [
201
+ {
202
+ name: 'vaultToken',
203
+ type: 'address',
204
+ indexed: true,
205
+ },
206
+ {
207
+ name: 'totalSupply',
208
+ type: 'uint256',
209
+ indexed: false,
210
+ },
211
+ {
212
+ name: 'pricePerShare',
213
+ type: 'uint256',
214
+ indexed: false,
215
+ },
216
+ {
217
+ name: 'lastAveragePricePerShare',
218
+ type: 'uint256',
219
+ indexed: false,
220
+ },
221
+ ],
222
+ anonymous: false,
223
+ type: 'event',
224
+ },
171
225
  {
172
226
  stateMutability: 'view',
173
227
  type: 'function',
@@ -222,6 +276,10 @@ export const abi = [
222
276
  name: 'billing',
223
277
  type: 'address',
224
278
  },
279
+ {
280
+ name: 'vaultRegistry',
281
+ type: 'address',
282
+ },
225
283
  ],
226
284
  },
227
285
  ],
@@ -364,40 +422,155 @@ export const abi = [
364
422
  {
365
423
  stateMutability: 'view',
366
424
  type: 'function',
367
- name: 'isPaused',
368
- inputs: [],
425
+ name: 'getWeightedPricePerShare',
426
+ inputs: [
427
+ {
428
+ name: '_vaultToken',
429
+ type: 'address',
430
+ },
431
+ ],
369
432
  outputs: [
370
433
  {
371
434
  name: '',
372
- type: 'bool',
435
+ type: 'uint256',
373
436
  },
374
437
  ],
375
438
  },
376
439
  {
377
440
  stateMutability: 'view',
378
441
  type: 'function',
379
- name: 'assetOpportunities',
442
+ name: 'getLatestSnapshot',
380
443
  inputs: [
381
444
  {
382
- name: 'arg0',
445
+ name: '_vaultToken',
383
446
  type: 'address',
384
447
  },
385
448
  {
386
- name: 'arg1',
449
+ name: '_pricePerShare',
387
450
  type: 'uint256',
388
451
  },
389
452
  ],
390
453
  outputs: [
391
454
  {
392
455
  name: '',
456
+ type: 'tuple',
457
+ components: [
458
+ {
459
+ name: 'totalSupply',
460
+ type: 'uint256',
461
+ },
462
+ {
463
+ name: 'pricePerShare',
464
+ type: 'uint256',
465
+ },
466
+ {
467
+ name: 'lastUpdate',
468
+ type: 'uint256',
469
+ },
470
+ ],
471
+ },
472
+ ],
473
+ },
474
+ {
475
+ stateMutability: 'nonpayable',
476
+ type: 'function',
477
+ name: 'setSnapShotPriceConfig',
478
+ inputs: [
479
+ {
480
+ name: '_config',
481
+ type: 'tuple',
482
+ components: [
483
+ {
484
+ name: 'minSnapshotDelay',
485
+ type: 'uint256',
486
+ },
487
+ {
488
+ name: 'maxNumSnapshots',
489
+ type: 'uint256',
490
+ },
491
+ {
492
+ name: 'maxUpsideDeviation',
493
+ type: 'uint256',
494
+ },
495
+ {
496
+ name: 'staleTime',
497
+ type: 'uint256',
498
+ },
499
+ ],
500
+ },
501
+ ],
502
+ outputs: [],
503
+ },
504
+ {
505
+ stateMutability: 'view',
506
+ type: 'function',
507
+ name: 'isValidPriceConfig',
508
+ inputs: [
509
+ {
510
+ name: '_config',
511
+ type: 'tuple',
512
+ components: [
513
+ {
514
+ name: 'minSnapshotDelay',
515
+ type: 'uint256',
516
+ },
517
+ {
518
+ name: 'maxNumSnapshots',
519
+ type: 'uint256',
520
+ },
521
+ {
522
+ name: 'maxUpsideDeviation',
523
+ type: 'uint256',
524
+ },
525
+ {
526
+ name: 'staleTime',
527
+ type: 'uint256',
528
+ },
529
+ ],
530
+ },
531
+ ],
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'bool',
536
+ },
537
+ ],
538
+ },
539
+ {
540
+ stateMutability: 'view',
541
+ type: 'function',
542
+ name: 'vaultToAsset',
543
+ inputs: [
544
+ {
545
+ name: 'arg0',
393
546
  type: 'address',
394
547
  },
395
548
  ],
549
+ outputs: [
550
+ {
551
+ name: '',
552
+ type: 'tuple',
553
+ components: [
554
+ {
555
+ name: 'underlyingAsset',
556
+ type: 'address',
557
+ },
558
+ {
559
+ name: 'decimals',
560
+ type: 'uint256',
561
+ },
562
+ {
563
+ name: 'lastAveragePricePerShare',
564
+ type: 'uint256',
565
+ },
566
+ ],
567
+ },
568
+ ],
396
569
  },
397
570
  {
398
571
  stateMutability: 'view',
399
572
  type: 'function',
400
- name: 'indexOfAssetOpportunity',
573
+ name: 'assetOpportunities',
401
574
  inputs: [
402
575
  {
403
576
  name: 'arg0',
@@ -405,25 +578,29 @@ export const abi = [
405
578
  },
406
579
  {
407
580
  name: 'arg1',
408
- type: 'address',
581
+ type: 'uint256',
409
582
  },
410
583
  ],
411
584
  outputs: [
412
585
  {
413
586
  name: '',
414
- type: 'uint256',
587
+ type: 'address',
415
588
  },
416
589
  ],
417
590
  },
418
591
  {
419
592
  stateMutability: 'view',
420
593
  type: 'function',
421
- name: 'numAssetOpportunities',
594
+ name: 'indexOfAssetOpportunity',
422
595
  inputs: [
423
596
  {
424
597
  name: 'arg0',
425
598
  type: 'address',
426
599
  },
600
+ {
601
+ name: 'arg1',
602
+ type: 'address',
603
+ },
427
604
  ],
428
605
  outputs: [
429
606
  {
@@ -435,7 +612,7 @@ export const abi = [
435
612
  {
436
613
  stateMutability: 'view',
437
614
  type: 'function',
438
- name: 'vaultToAsset',
615
+ name: 'numAssetOpportunities',
439
616
  inputs: [
440
617
  {
441
618
  name: 'arg0',
@@ -445,7 +622,7 @@ export const abi = [
445
622
  outputs: [
446
623
  {
447
624
  name: '',
448
- type: 'address',
625
+ type: 'uint256',
449
626
  },
450
627
  ],
451
628
  },
@@ -498,41 +675,126 @@ export const abi = [
498
675
  {
499
676
  stateMutability: 'view',
500
677
  type: 'function',
501
- name: 'hasCapability',
678
+ name: 'snapShotData',
502
679
  inputs: [
503
680
  {
504
- name: '_action',
681
+ name: 'arg0',
682
+ type: 'address',
683
+ },
684
+ ],
685
+ outputs: [
686
+ {
687
+ name: '',
688
+ type: 'tuple',
689
+ components: [
690
+ {
691
+ name: 'lastSnapShot',
692
+ type: 'tuple',
693
+ components: [
694
+ {
695
+ name: 'totalSupply',
696
+ type: 'uint256',
697
+ },
698
+ {
699
+ name: 'pricePerShare',
700
+ type: 'uint256',
701
+ },
702
+ {
703
+ name: 'lastUpdate',
704
+ type: 'uint256',
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ name: 'nextIndex',
710
+ type: 'uint256',
711
+ },
712
+ ],
713
+ },
714
+ ],
715
+ },
716
+ {
717
+ stateMutability: 'view',
718
+ type: 'function',
719
+ name: 'snapShots',
720
+ inputs: [
721
+ {
722
+ name: 'arg0',
723
+ type: 'address',
724
+ },
725
+ {
726
+ name: 'arg1',
505
727
  type: 'uint256',
506
728
  },
507
729
  ],
508
730
  outputs: [
509
731
  {
510
732
  name: '',
511
- type: 'bool',
733
+ type: 'tuple',
734
+ components: [
735
+ {
736
+ name: 'totalSupply',
737
+ type: 'uint256',
738
+ },
739
+ {
740
+ name: 'pricePerShare',
741
+ type: 'uint256',
742
+ },
743
+ {
744
+ name: 'lastUpdate',
745
+ type: 'uint256',
746
+ },
747
+ ],
512
748
  },
513
749
  ],
514
750
  },
515
751
  {
516
752
  stateMutability: 'view',
517
753
  type: 'function',
518
- name: 'getRegistries',
754
+ name: 'snapShotPriceConfig',
519
755
  inputs: [],
520
756
  outputs: [
521
757
  {
522
758
  name: '',
523
- type: 'address[]',
759
+ type: 'tuple',
760
+ components: [
761
+ {
762
+ name: 'minSnapshotDelay',
763
+ type: 'uint256',
764
+ },
765
+ {
766
+ name: 'maxNumSnapshots',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: 'maxUpsideDeviation',
771
+ type: 'uint256',
772
+ },
773
+ {
774
+ name: 'staleTime',
775
+ type: 'uint256',
776
+ },
777
+ ],
524
778
  },
525
779
  ],
526
780
  },
527
781
  {
528
782
  stateMutability: 'view',
529
783
  type: 'function',
530
- name: 'getAccessForLego',
531
- inputs: [
784
+ name: 'isPaused',
785
+ inputs: [],
786
+ outputs: [
532
787
  {
533
- name: '_user',
534
- type: 'address',
788
+ name: '',
789
+ type: 'bool',
535
790
  },
791
+ ],
792
+ },
793
+ {
794
+ stateMutability: 'view',
795
+ type: 'function',
796
+ name: 'hasCapability',
797
+ inputs: [
536
798
  {
537
799
  name: '_action',
538
800
  type: 'uint256',
@@ -541,34 +803,26 @@ export const abi = [
541
803
  outputs: [
542
804
  {
543
805
  name: '',
544
- type: 'address',
545
- },
546
- {
547
- name: '',
548
- type: 'string',
549
- },
550
- {
551
- name: '',
552
- type: 'uint256',
806
+ type: 'bool',
553
807
  },
554
808
  ],
555
809
  },
556
810
  {
557
811
  stateMutability: 'view',
558
812
  type: 'function',
559
- name: 'isYieldLego',
813
+ name: 'getRegistries',
560
814
  inputs: [],
561
815
  outputs: [
562
816
  {
563
817
  name: '',
564
- type: 'bool',
818
+ type: 'address[]',
565
819
  },
566
820
  ],
567
821
  },
568
822
  {
569
823
  stateMutability: 'view',
570
824
  type: 'function',
571
- name: 'isDexLego',
825
+ name: 'isYieldLego',
572
826
  inputs: [],
573
827
  outputs: [
574
828
  {
@@ -580,7 +834,7 @@ export const abi = [
580
834
  {
581
835
  stateMutability: 'view',
582
836
  type: 'function',
583
- name: 'isRebasing',
837
+ name: 'isDexLego',
584
838
  inputs: [],
585
839
  outputs: [
586
840
  {
@@ -592,72 +846,135 @@ export const abi = [
592
846
  {
593
847
  stateMutability: 'view',
594
848
  type: 'function',
595
- name: 'isEligibleVaultForTrialFunds',
849
+ name: 'getUnderlyingAsset',
596
850
  inputs: [
597
851
  {
598
852
  name: '_vaultToken',
599
853
  type: 'address',
600
854
  },
601
- {
602
- name: '_underlyingAsset',
603
- type: 'address',
604
- },
605
855
  ],
606
856
  outputs: [
607
857
  {
608
858
  name: '',
609
- type: 'bool',
859
+ type: 'address',
610
860
  },
611
861
  ],
612
862
  },
613
863
  {
614
864
  stateMutability: 'view',
615
865
  type: 'function',
616
- name: 'isEligibleForYieldBonus',
866
+ name: 'getUnderlyingBalances',
617
867
  inputs: [
618
868
  {
619
- name: '_asset',
869
+ name: '_vaultToken',
620
870
  type: 'address',
621
871
  },
872
+ {
873
+ name: '_vaultTokenBalance',
874
+ type: 'uint256',
875
+ },
622
876
  ],
623
877
  outputs: [
624
878
  {
625
879
  name: '',
626
- type: 'bool',
880
+ type: 'uint256',
627
881
  },
628
- ],
882
+ {
883
+ name: '',
884
+ type: 'uint256',
885
+ },
886
+ ],
629
887
  },
630
888
  {
631
- stateMutability: 'nonpayable',
889
+ stateMutability: 'view',
632
890
  type: 'function',
633
- name: 'depositForYield',
891
+ name: 'getUnderlyingAmount',
634
892
  inputs: [
635
893
  {
636
- name: '_asset',
894
+ name: '_vaultToken',
637
895
  type: 'address',
638
896
  },
639
897
  {
640
- name: '_amount',
898
+ name: '_vaultTokenAmount',
641
899
  type: 'uint256',
642
900
  },
901
+ ],
902
+ outputs: [
643
903
  {
644
- name: '_vaultAddr',
904
+ name: '',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ },
909
+ {
910
+ stateMutability: 'view',
911
+ type: 'function',
912
+ name: 'getUnderlyingAmountSafe',
913
+ inputs: [
914
+ {
915
+ name: '_vaultToken',
645
916
  type: 'address',
646
917
  },
647
918
  {
648
- name: '_extraData',
649
- type: 'bytes32',
919
+ name: '_vaultTokenBalance',
920
+ type: 'uint256',
650
921
  },
922
+ ],
923
+ outputs: [
651
924
  {
652
- name: '_recipient',
925
+ name: '',
926
+ type: 'uint256',
927
+ },
928
+ ],
929
+ },
930
+ {
931
+ stateMutability: 'view',
932
+ type: 'function',
933
+ name: 'getUnderlyingData',
934
+ inputs: [
935
+ {
936
+ name: '_vaultToken',
653
937
  type: 'address',
654
938
  },
939
+ {
940
+ name: '_vaultTokenAmount',
941
+ type: 'uint256',
942
+ },
655
943
  ],
656
944
  outputs: [
945
+ {
946
+ name: '',
947
+ type: 'address',
948
+ },
949
+ {
950
+ name: '',
951
+ type: 'uint256',
952
+ },
657
953
  {
658
954
  name: '',
659
955
  type: 'uint256',
660
956
  },
957
+ ],
958
+ },
959
+ {
960
+ stateMutability: 'view',
961
+ type: 'function',
962
+ name: 'getUnderlyingData',
963
+ inputs: [
964
+ {
965
+ name: '_vaultToken',
966
+ type: 'address',
967
+ },
968
+ {
969
+ name: '_vaultTokenAmount',
970
+ type: 'uint256',
971
+ },
972
+ {
973
+ name: '_appraiser',
974
+ type: 'address',
975
+ },
976
+ ],
977
+ outputs: [
661
978
  {
662
979
  name: '',
663
980
  type: 'address',
@@ -673,66 +990,120 @@ export const abi = [
673
990
  ],
674
991
  },
675
992
  {
676
- stateMutability: 'nonpayable',
993
+ stateMutability: 'view',
677
994
  type: 'function',
678
- name: 'depositForYield',
995
+ name: 'getUsdValueOfVaultToken',
679
996
  inputs: [
680
997
  {
681
- name: '_asset',
998
+ name: '_vaultToken',
682
999
  type: 'address',
683
1000
  },
684
1001
  {
685
- name: '_amount',
1002
+ name: '_vaultTokenAmount',
686
1003
  type: 'uint256',
687
1004
  },
1005
+ ],
1006
+ outputs: [
688
1007
  {
689
- name: '_vaultAddr',
1008
+ name: '',
1009
+ type: 'uint256',
1010
+ },
1011
+ ],
1012
+ },
1013
+ {
1014
+ stateMutability: 'view',
1015
+ type: 'function',
1016
+ name: 'getUsdValueOfVaultToken',
1017
+ inputs: [
1018
+ {
1019
+ name: '_vaultToken',
690
1020
  type: 'address',
691
1021
  },
692
1022
  {
693
- name: '_extraData',
694
- type: 'bytes32',
1023
+ name: '_vaultTokenAmount',
1024
+ type: 'uint256',
695
1025
  },
696
1026
  {
697
- name: '_recipient',
1027
+ name: '_appraiser',
698
1028
  type: 'address',
699
1029
  },
1030
+ ],
1031
+ outputs: [
700
1032
  {
701
- name: '_miniAddys',
702
- type: 'tuple',
703
- components: [
704
- {
705
- name: 'ledger',
706
- type: 'address',
707
- },
708
- {
709
- name: 'missionControl',
710
- type: 'address',
711
- },
712
- {
713
- name: 'legoBook',
714
- type: 'address',
715
- },
716
- {
717
- name: 'appraiser',
718
- type: 'address',
719
- },
720
- ],
1033
+ name: '',
1034
+ type: 'uint256',
721
1035
  },
722
1036
  ],
1037
+ },
1038
+ {
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ name: 'isRebasing',
1042
+ inputs: [],
723
1043
  outputs: [
724
1044
  {
725
1045
  name: '',
726
- type: 'uint256',
1046
+ type: 'bool',
727
1047
  },
1048
+ ],
1049
+ },
1050
+ {
1051
+ stateMutability: 'view',
1052
+ type: 'function',
1053
+ name: 'getPricePerShare',
1054
+ inputs: [
1055
+ {
1056
+ name: '_vaultToken',
1057
+ type: 'address',
1058
+ },
1059
+ ],
1060
+ outputs: [
728
1061
  {
729
1062
  name: '',
1063
+ type: 'uint256',
1064
+ },
1065
+ ],
1066
+ },
1067
+ {
1068
+ stateMutability: 'view',
1069
+ type: 'function',
1070
+ name: 'getPricePerShare',
1071
+ inputs: [
1072
+ {
1073
+ name: '_vaultToken',
730
1074
  type: 'address',
731
1075
  },
1076
+ {
1077
+ name: '_decimals',
1078
+ type: 'uint256',
1079
+ },
1080
+ ],
1081
+ outputs: [
732
1082
  {
733
1083
  name: '',
734
1084
  type: 'uint256',
735
1085
  },
1086
+ ],
1087
+ },
1088
+ {
1089
+ stateMutability: 'view',
1090
+ type: 'function',
1091
+ name: 'getVaultTokenAmount',
1092
+ inputs: [
1093
+ {
1094
+ name: '_asset',
1095
+ type: 'address',
1096
+ },
1097
+ {
1098
+ name: '_assetAmount',
1099
+ type: 'uint256',
1100
+ },
1101
+ {
1102
+ name: '_vaultToken',
1103
+ type: 'address',
1104
+ },
1105
+ ],
1106
+ outputs: [
736
1107
  {
737
1108
  name: '',
738
1109
  type: 'uint256',
@@ -740,24 +1111,46 @@ export const abi = [
740
1111
  ],
741
1112
  },
742
1113
  {
743
- stateMutability: 'nonpayable',
1114
+ stateMutability: 'view',
744
1115
  type: 'function',
745
- name: 'withdrawFromYield',
1116
+ name: 'totalAssets',
746
1117
  inputs: [
747
1118
  {
748
1119
  name: '_vaultToken',
749
1120
  type: 'address',
750
1121
  },
1122
+ ],
1123
+ outputs: [
751
1124
  {
752
- name: '_amount',
1125
+ name: '',
753
1126
  type: 'uint256',
754
1127
  },
1128
+ ],
1129
+ },
1130
+ {
1131
+ stateMutability: 'view',
1132
+ type: 'function',
1133
+ name: 'totalBorrows',
1134
+ inputs: [
755
1135
  {
756
- name: '_extraData',
757
- type: 'bytes32',
1136
+ name: '_vaultToken',
1137
+ type: 'address',
758
1138
  },
1139
+ ],
1140
+ outputs: [
759
1141
  {
760
- name: '_recipient',
1142
+ name: '',
1143
+ type: 'uint256',
1144
+ },
1145
+ ],
1146
+ },
1147
+ {
1148
+ stateMutability: 'view',
1149
+ type: 'function',
1150
+ name: 'getAvailLiquidity',
1151
+ inputs: [
1152
+ {
1153
+ name: '_vaultToken',
761
1154
  type: 'address',
762
1155
  },
763
1156
  ],
@@ -766,14 +1159,57 @@ export const abi = [
766
1159
  name: '',
767
1160
  type: 'uint256',
768
1161
  },
1162
+ ],
1163
+ },
1164
+ {
1165
+ stateMutability: 'view',
1166
+ type: 'function',
1167
+ name: 'getUtilizationRatio',
1168
+ inputs: [
1169
+ {
1170
+ name: '_vaultToken',
1171
+ type: 'address',
1172
+ },
1173
+ ],
1174
+ outputs: [
769
1175
  {
770
1176
  name: '',
1177
+ type: 'uint256',
1178
+ },
1179
+ ],
1180
+ },
1181
+ {
1182
+ stateMutability: 'view',
1183
+ type: 'function',
1184
+ name: 'isEligibleForYieldBonus',
1185
+ inputs: [
1186
+ {
1187
+ name: '_asset',
771
1188
  type: 'address',
772
1189
  },
1190
+ ],
1191
+ outputs: [
773
1192
  {
774
1193
  name: '',
1194
+ type: 'bool',
1195
+ },
1196
+ ],
1197
+ },
1198
+ {
1199
+ stateMutability: 'view',
1200
+ type: 'function',
1201
+ name: 'getWithdrawalFees',
1202
+ inputs: [
1203
+ {
1204
+ name: '_vaultToken',
1205
+ type: 'address',
1206
+ },
1207
+ {
1208
+ name: '_vaultTokenAmount',
775
1209
  type: 'uint256',
776
1210
  },
1211
+ ],
1212
+ outputs: [
777
1213
  {
778
1214
  name: '',
779
1215
  type: 'uint256',
@@ -781,91 +1217,129 @@ export const abi = [
781
1217
  ],
782
1218
  },
783
1219
  {
784
- stateMutability: 'nonpayable',
1220
+ stateMutability: 'view',
785
1221
  type: 'function',
786
- name: 'withdrawFromYield',
1222
+ name: 'canRegisterVaultToken',
787
1223
  inputs: [
1224
+ {
1225
+ name: '_asset',
1226
+ type: 'address',
1227
+ },
788
1228
  {
789
1229
  name: '_vaultToken',
790
1230
  type: 'address',
791
1231
  },
1232
+ ],
1233
+ outputs: [
792
1234
  {
793
- name: '_amount',
794
- type: 'uint256',
1235
+ name: '',
1236
+ type: 'bool',
795
1237
  },
1238
+ ],
1239
+ },
1240
+ {
1241
+ stateMutability: 'nonpayable',
1242
+ type: 'function',
1243
+ name: 'registerVaultTokenLocally',
1244
+ inputs: [
796
1245
  {
797
- name: '_extraData',
798
- type: 'bytes32',
1246
+ name: '_asset',
1247
+ type: 'address',
799
1248
  },
800
1249
  {
801
- name: '_recipient',
1250
+ name: '_vaultAddr',
802
1251
  type: 'address',
803
1252
  },
1253
+ ],
1254
+ outputs: [
804
1255
  {
805
- name: '_miniAddys',
1256
+ name: '',
806
1257
  type: 'tuple',
807
1258
  components: [
808
1259
  {
809
- name: 'ledger',
1260
+ name: 'underlyingAsset',
810
1261
  type: 'address',
811
1262
  },
812
1263
  {
813
- name: 'missionControl',
814
- type: 'address',
1264
+ name: 'decimals',
1265
+ type: 'uint256',
815
1266
  },
816
1267
  {
817
- name: 'legoBook',
818
- type: 'address',
819
- },
820
- {
821
- name: 'appraiser',
822
- type: 'address',
1268
+ name: 'lastAveragePricePerShare',
1269
+ type: 'uint256',
823
1270
  },
824
1271
  ],
825
1272
  },
826
1273
  ],
827
- outputs: [
1274
+ },
1275
+ {
1276
+ stateMutability: 'nonpayable',
1277
+ type: 'function',
1278
+ name: 'deregisterVaultTokenLocally',
1279
+ inputs: [
828
1280
  {
829
- name: '',
830
- type: 'uint256',
1281
+ name: '_asset',
1282
+ type: 'address',
831
1283
  },
832
1284
  {
833
- name: '',
1285
+ name: '_vaultAddr',
834
1286
  type: 'address',
835
1287
  },
1288
+ ],
1289
+ outputs: [],
1290
+ },
1291
+ {
1292
+ stateMutability: 'nonpayable',
1293
+ type: 'function',
1294
+ name: 'addPriceSnapshot',
1295
+ inputs: [
836
1296
  {
837
- name: '',
838
- type: 'uint256',
1297
+ name: '_vaultToken',
1298
+ type: 'address',
839
1299
  },
1300
+ ],
1301
+ outputs: [
840
1302
  {
841
1303
  name: '',
842
- type: 'uint256',
1304
+ type: 'bool',
843
1305
  },
844
1306
  ],
845
1307
  },
846
1308
  {
847
1309
  stateMutability: 'nonpayable',
848
1310
  type: 'function',
849
- name: 'claimRewards',
1311
+ name: 'depositForYield',
850
1312
  inputs: [
851
1313
  {
852
- name: '_user',
1314
+ name: '_asset',
853
1315
  type: 'address',
854
1316
  },
855
1317
  {
856
- name: '_rewardToken',
857
- type: 'address',
1318
+ name: '_amount',
1319
+ type: 'uint256',
858
1320
  },
859
1321
  {
860
- name: '_rewardAmount',
861
- type: 'uint256',
1322
+ name: '_vaultAddr',
1323
+ type: 'address',
862
1324
  },
863
1325
  {
864
1326
  name: '_extraData',
865
1327
  type: 'bytes32',
866
1328
  },
1329
+ {
1330
+ name: '_recipient',
1331
+ type: 'address',
1332
+ },
867
1333
  ],
868
1334
  outputs: [
1335
+ {
1336
+ name: '',
1337
+ type: 'uint256',
1338
+ },
1339
+ {
1340
+ name: '',
1341
+ type: 'address',
1342
+ },
869
1343
  {
870
1344
  name: '',
871
1345
  type: 'uint256',
@@ -879,24 +1353,28 @@ export const abi = [
879
1353
  {
880
1354
  stateMutability: 'nonpayable',
881
1355
  type: 'function',
882
- name: 'claimRewards',
1356
+ name: 'depositForYield',
883
1357
  inputs: [
884
1358
  {
885
- name: '_user',
1359
+ name: '_asset',
886
1360
  type: 'address',
887
1361
  },
888
1362
  {
889
- name: '_rewardToken',
890
- type: 'address',
1363
+ name: '_amount',
1364
+ type: 'uint256',
891
1365
  },
892
1366
  {
893
- name: '_rewardAmount',
894
- type: 'uint256',
1367
+ name: '_vaultAddr',
1368
+ type: 'address',
895
1369
  },
896
1370
  {
897
1371
  name: '_extraData',
898
1372
  type: 'bytes32',
899
1373
  },
1374
+ {
1375
+ name: '_recipient',
1376
+ type: 'address',
1377
+ },
900
1378
  {
901
1379
  name: '_miniAddys',
902
1380
  type: 'tuple',
@@ -927,93 +1405,116 @@ export const abi = [
927
1405
  },
928
1406
  {
929
1407
  name: '',
930
- type: 'uint256',
1408
+ type: 'address',
931
1409
  },
932
- ],
933
- },
934
- {
935
- stateMutability: 'view',
936
- type: 'function',
937
- name: 'hasClaimableRewards',
938
- inputs: [
939
1410
  {
940
- name: '_user',
941
- type: 'address',
1411
+ name: '',
1412
+ type: 'uint256',
942
1413
  },
943
- ],
944
- outputs: [
945
1414
  {
946
1415
  name: '',
947
- type: 'bool',
1416
+ type: 'uint256',
948
1417
  },
949
1418
  ],
950
1419
  },
951
1420
  {
952
1421
  stateMutability: 'nonpayable',
953
1422
  type: 'function',
954
- name: 'setEulerRewardsAddr',
1423
+ name: 'withdrawFromYield',
955
1424
  inputs: [
956
1425
  {
957
- name: '_addr',
1426
+ name: '_vaultToken',
1427
+ type: 'address',
1428
+ },
1429
+ {
1430
+ name: '_amount',
1431
+ type: 'uint256',
1432
+ },
1433
+ {
1434
+ name: '_extraData',
1435
+ type: 'bytes32',
1436
+ },
1437
+ {
1438
+ name: '_recipient',
958
1439
  type: 'address',
959
1440
  },
960
1441
  ],
961
1442
  outputs: [
962
1443
  {
963
1444
  name: '',
964
- type: 'bool',
1445
+ type: 'uint256',
965
1446
  },
966
- ],
967
- },
968
- {
969
- stateMutability: 'view',
970
- type: 'function',
971
- name: 'isVaultToken',
972
- inputs: [
973
1447
  {
974
- name: '_vaultToken',
1448
+ name: '',
975
1449
  type: 'address',
976
1450
  },
977
- ],
978
- outputs: [
979
1451
  {
980
1452
  name: '',
981
- type: 'bool',
1453
+ type: 'uint256',
1454
+ },
1455
+ {
1456
+ name: '',
1457
+ type: 'uint256',
982
1458
  },
983
1459
  ],
984
1460
  },
985
1461
  {
986
- stateMutability: 'view',
1462
+ stateMutability: 'nonpayable',
987
1463
  type: 'function',
988
- name: 'getUnderlyingAsset',
1464
+ name: 'withdrawFromYield',
989
1465
  inputs: [
990
1466
  {
991
1467
  name: '_vaultToken',
992
1468
  type: 'address',
993
1469
  },
1470
+ {
1471
+ name: '_amount',
1472
+ type: 'uint256',
1473
+ },
1474
+ {
1475
+ name: '_extraData',
1476
+ type: 'bytes32',
1477
+ },
1478
+ {
1479
+ name: '_recipient',
1480
+ type: 'address',
1481
+ },
1482
+ {
1483
+ name: '_miniAddys',
1484
+ type: 'tuple',
1485
+ components: [
1486
+ {
1487
+ name: 'ledger',
1488
+ type: 'address',
1489
+ },
1490
+ {
1491
+ name: 'missionControl',
1492
+ type: 'address',
1493
+ },
1494
+ {
1495
+ name: 'legoBook',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: 'appraiser',
1500
+ type: 'address',
1501
+ },
1502
+ ],
1503
+ },
994
1504
  ],
995
1505
  outputs: [
996
1506
  {
997
1507
  name: '',
998
- type: 'address',
1508
+ type: 'uint256',
999
1509
  },
1000
- ],
1001
- },
1002
- {
1003
- stateMutability: 'view',
1004
- type: 'function',
1005
- name: 'getUnderlyingAmount',
1006
- inputs: [
1007
1510
  {
1008
- name: '_vaultToken',
1511
+ name: '',
1009
1512
  type: 'address',
1010
1513
  },
1011
1514
  {
1012
- name: '_vaultTokenAmount',
1515
+ name: '',
1013
1516
  type: 'uint256',
1014
1517
  },
1015
- ],
1016
- outputs: [
1017
1518
  {
1018
1519
  name: '',
1019
1520
  type: 'uint256',
@@ -1021,45 +1522,32 @@ export const abi = [
1021
1522
  ],
1022
1523
  },
1023
1524
  {
1024
- stateMutability: 'view',
1525
+ stateMutability: 'nonpayable',
1025
1526
  type: 'function',
1026
- name: 'getVaultTokenAmount',
1527
+ name: 'claimIncentives',
1027
1528
  inputs: [
1028
1529
  {
1029
- name: '_asset',
1530
+ name: '_user',
1030
1531
  type: 'address',
1031
1532
  },
1032
1533
  {
1033
- name: '_assetAmount',
1034
- type: 'uint256',
1035
- },
1036
- {
1037
- name: '_vaultToken',
1534
+ name: '_rewardToken',
1038
1535
  type: 'address',
1039
1536
  },
1040
- ],
1041
- outputs: [
1042
1537
  {
1043
- name: '',
1538
+ name: '_rewardAmount',
1044
1539
  type: 'uint256',
1045
1540
  },
1046
- ],
1047
- },
1048
- {
1049
- stateMutability: 'view',
1050
- type: 'function',
1051
- name: 'getUsdValueOfVaultToken',
1052
- inputs: [
1053
1541
  {
1054
- name: '_vaultToken',
1055
- type: 'address',
1542
+ name: '_proofs',
1543
+ type: 'bytes32[]',
1056
1544
  },
1545
+ ],
1546
+ outputs: [
1057
1547
  {
1058
- name: '_vaultTokenAmount',
1548
+ name: '',
1059
1549
  type: 'uint256',
1060
1550
  },
1061
- ],
1062
- outputs: [
1063
1551
  {
1064
1552
  name: '',
1065
1553
  type: 'uint256',
@@ -1067,21 +1555,47 @@ export const abi = [
1067
1555
  ],
1068
1556
  },
1069
1557
  {
1070
- stateMutability: 'view',
1558
+ stateMutability: 'nonpayable',
1071
1559
  type: 'function',
1072
- name: 'getUsdValueOfVaultToken',
1560
+ name: 'claimIncentives',
1073
1561
  inputs: [
1074
1562
  {
1075
- name: '_vaultToken',
1563
+ name: '_user',
1076
1564
  type: 'address',
1077
1565
  },
1078
1566
  {
1079
- name: '_vaultTokenAmount',
1567
+ name: '_rewardToken',
1568
+ type: 'address',
1569
+ },
1570
+ {
1571
+ name: '_rewardAmount',
1080
1572
  type: 'uint256',
1081
1573
  },
1082
1574
  {
1083
- name: '_appraiser',
1084
- type: 'address',
1575
+ name: '_proofs',
1576
+ type: 'bytes32[]',
1577
+ },
1578
+ {
1579
+ name: '_miniAddys',
1580
+ type: 'tuple',
1581
+ components: [
1582
+ {
1583
+ name: 'ledger',
1584
+ type: 'address',
1585
+ },
1586
+ {
1587
+ name: 'missionControl',
1588
+ type: 'address',
1589
+ },
1590
+ {
1591
+ name: 'legoBook',
1592
+ type: 'address',
1593
+ },
1594
+ {
1595
+ name: 'appraiser',
1596
+ type: 'address',
1597
+ },
1598
+ ],
1085
1599
  },
1086
1600
  ],
1087
1601
  outputs: [
@@ -1089,27 +1603,35 @@ export const abi = [
1089
1603
  name: '',
1090
1604
  type: 'uint256',
1091
1605
  },
1606
+ {
1607
+ name: '',
1608
+ type: 'uint256',
1609
+ },
1092
1610
  ],
1093
1611
  },
1094
1612
  {
1095
- stateMutability: 'view',
1613
+ stateMutability: 'nonpayable',
1096
1614
  type: 'function',
1097
- name: 'getUnderlyingData',
1615
+ name: 'claimRewards',
1098
1616
  inputs: [
1099
1617
  {
1100
- name: '_vaultToken',
1618
+ name: '_user',
1101
1619
  type: 'address',
1102
1620
  },
1103
1621
  {
1104
- name: '_vaultTokenAmount',
1622
+ name: '_rewardToken',
1623
+ type: 'address',
1624
+ },
1625
+ {
1626
+ name: '_rewardAmount',
1105
1627
  type: 'uint256',
1106
1628
  },
1107
- ],
1108
- outputs: [
1109
1629
  {
1110
- name: '',
1111
- type: 'address',
1630
+ name: '_extraData',
1631
+ type: 'bytes32',
1112
1632
  },
1633
+ ],
1634
+ outputs: [
1113
1635
  {
1114
1636
  name: '',
1115
1637
  type: 'uint256',
@@ -1121,28 +1643,50 @@ export const abi = [
1121
1643
  ],
1122
1644
  },
1123
1645
  {
1124
- stateMutability: 'view',
1646
+ stateMutability: 'nonpayable',
1125
1647
  type: 'function',
1126
- name: 'getUnderlyingData',
1648
+ name: 'claimRewards',
1127
1649
  inputs: [
1128
1650
  {
1129
- name: '_vaultToken',
1651
+ name: '_user',
1130
1652
  type: 'address',
1131
1653
  },
1132
1654
  {
1133
- name: '_vaultTokenAmount',
1655
+ name: '_rewardToken',
1656
+ type: 'address',
1657
+ },
1658
+ {
1659
+ name: '_rewardAmount',
1134
1660
  type: 'uint256',
1135
1661
  },
1136
1662
  {
1137
- name: '_appraiser',
1138
- type: 'address',
1663
+ name: '_extraData',
1664
+ type: 'bytes32',
1139
1665
  },
1140
- ],
1141
- outputs: [
1142
1666
  {
1143
- name: '',
1144
- type: 'address',
1667
+ name: '_miniAddys',
1668
+ type: 'tuple',
1669
+ components: [
1670
+ {
1671
+ name: 'ledger',
1672
+ type: 'address',
1673
+ },
1674
+ {
1675
+ name: 'missionControl',
1676
+ type: 'address',
1677
+ },
1678
+ {
1679
+ name: 'legoBook',
1680
+ type: 'address',
1681
+ },
1682
+ {
1683
+ name: 'appraiser',
1684
+ type: 'address',
1685
+ },
1686
+ ],
1145
1687
  },
1688
+ ],
1689
+ outputs: [
1146
1690
  {
1147
1691
  name: '',
1148
1692
  type: 'uint256',
@@ -1156,89 +1700,65 @@ export const abi = [
1156
1700
  {
1157
1701
  stateMutability: 'view',
1158
1702
  type: 'function',
1159
- name: 'totalAssets',
1703
+ name: 'hasClaimableRewards',
1160
1704
  inputs: [
1161
1705
  {
1162
- name: '_vaultToken',
1706
+ name: '_user',
1163
1707
  type: 'address',
1164
1708
  },
1165
1709
  ],
1166
1710
  outputs: [
1167
1711
  {
1168
1712
  name: '',
1169
- type: 'uint256',
1713
+ type: 'bool',
1170
1714
  },
1171
1715
  ],
1172
1716
  },
1173
1717
  {
1174
- stateMutability: 'view',
1718
+ stateMutability: 'nonpayable',
1175
1719
  type: 'function',
1176
- name: 'totalBorrows',
1720
+ name: 'setEulerRewardsAddr',
1177
1721
  inputs: [
1178
1722
  {
1179
- name: '_vaultToken',
1723
+ name: '_addr',
1180
1724
  type: 'address',
1181
1725
  },
1182
1726
  ],
1183
1727
  outputs: [
1184
1728
  {
1185
1729
  name: '',
1186
- type: 'uint256',
1730
+ type: 'bool',
1187
1731
  },
1188
1732
  ],
1189
1733
  },
1190
1734
  {
1191
1735
  stateMutability: 'view',
1192
1736
  type: 'function',
1193
- name: 'getPricePerShare',
1737
+ name: 'getAccessForLego',
1194
1738
  inputs: [
1195
1739
  {
1196
- name: '_asset',
1740
+ name: '_user',
1197
1741
  type: 'address',
1198
1742
  },
1199
1743
  {
1200
- name: '_decimals',
1744
+ name: '_action',
1201
1745
  type: 'uint256',
1202
1746
  },
1203
1747
  ],
1204
1748
  outputs: [
1205
1749
  {
1206
1750
  name: '',
1207
- type: 'uint256',
1208
- },
1209
- ],
1210
- },
1211
- {
1212
- stateMutability: 'nonpayable',
1213
- type: 'function',
1214
- name: 'addAssetOpportunity',
1215
- inputs: [
1216
- {
1217
- name: '_asset',
1218
- type: 'address',
1219
- },
1220
- {
1221
- name: '_vaultAddr',
1222
1751
  type: 'address',
1223
1752
  },
1224
- ],
1225
- outputs: [],
1226
- },
1227
- {
1228
- stateMutability: 'nonpayable',
1229
- type: 'function',
1230
- name: 'removeAssetOpportunity',
1231
- inputs: [
1232
1753
  {
1233
- name: '_asset',
1234
- type: 'address',
1754
+ name: '',
1755
+ type: 'string',
1235
1756
  },
1236
1757
  {
1237
- name: '_vaultAddr',
1238
- type: 'address',
1758
+ name: '',
1759
+ type: 'uint256',
1239
1760
  },
1240
1761
  ],
1241
- outputs: [],
1242
1762
  },
1243
1763
  {
1244
1764
  stateMutability: 'nonpayable',
@@ -2539,28 +3059,19 @@ export const abi = [
2539
3059
  {
2540
3060
  stateMutability: 'view',
2541
3061
  type: 'function',
2542
- name: 'getPrice',
2543
- inputs: [
2544
- {
2545
- name: '_asset',
2546
- type: 'address',
2547
- },
2548
- {
2549
- name: '_decimals',
2550
- type: 'uint256',
2551
- },
2552
- ],
3062
+ name: 'eulerRewards',
3063
+ inputs: [],
2553
3064
  outputs: [
2554
3065
  {
2555
3066
  name: '',
2556
- type: 'uint256',
3067
+ type: 'address',
2557
3068
  },
2558
3069
  ],
2559
3070
  },
2560
3071
  {
2561
3072
  stateMutability: 'view',
2562
3073
  type: 'function',
2563
- name: 'eulerRewards',
3074
+ name: 'EULER_EVAULT_FACTORY',
2564
3075
  inputs: [],
2565
3076
  outputs: [
2566
3077
  {
@@ -2572,7 +3083,7 @@ export const abi = [
2572
3083
  {
2573
3084
  stateMutability: 'view',
2574
3085
  type: 'function',
2575
- name: 'EULER_EVAULT_FACTORY',
3086
+ name: 'EULER_EARN_FACTORY',
2576
3087
  inputs: [],
2577
3088
  outputs: [
2578
3089
  {
@@ -2584,7 +3095,7 @@ export const abi = [
2584
3095
  {
2585
3096
  stateMutability: 'view',
2586
3097
  type: 'function',
2587
- name: 'EULER_EARN_FACTORY',
3098
+ name: 'RIPE_REGISTRY',
2588
3099
  inputs: [],
2589
3100
  outputs: [
2590
3101
  {
@@ -2613,11 +3124,15 @@ export const abi = [
2613
3124
  name: '_eulerRewardsAddr',
2614
3125
  type: 'address',
2615
3126
  },
3127
+ {
3128
+ name: '_ripeRegistry',
3129
+ type: 'address',
3130
+ },
2616
3131
  ],
2617
3132
  outputs: [],
2618
3133
  },
2619
3134
  ];
2620
- export const deployAddress = '0x22D16D820c20492597caDb6e36db976Ca16c4156';
3135
+ export const deployAddress = '0x7f52A8bCF7589e157961dbc072e1C5E45A3F4fd6';
2621
3136
  function getRequest(method, args, contractAddressOrOptions) {
2622
3137
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2623
3138
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2653,36 +3168,46 @@ export const call = {
2653
3168
  getAssets: (...args) => getRequest('getAssets', args),
2654
3169
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2655
3170
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2656
- isPaused: (...args) => getRequest('isPaused', args),
3171
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3172
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3173
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3174
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2657
3175
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2658
3176
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2659
3177
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2660
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2661
3178
  assets: (...args) => getRequest('assets', args),
2662
3179
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2663
3180
  numAssets: (...args) => getRequest('numAssets', args),
3181
+ snapShotData: (...args) => getRequest('snapShotData', args),
3182
+ snapShots: (...args) => getRequest('snapShots', args),
3183
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3184
+ isPaused: (...args) => getRequest('isPaused', args),
2664
3185
  hasCapability: (...args) => getRequest('hasCapability', args),
2665
3186
  getRegistries: (...args) => getRequest('getRegistries', args),
2666
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2667
3187
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2668
3188
  isDexLego: (...args) => getRequest('isDexLego', args),
2669
- isRebasing: (...args) => getRequest('isRebasing', args),
2670
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2671
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2672
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2673
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2674
3189
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3190
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2675
3191
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2676
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2677
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3192
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2678
3193
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3194
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3195
+ isRebasing: (...args) => getRequest('isRebasing', args),
3196
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3197
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2679
3198
  totalAssets: (...args) => getRequest('totalAssets', args),
2680
3199
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2681
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2682
- getPrice: (...args) => getRequest('getPrice', args),
3200
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3201
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3202
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3203
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3204
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3205
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3206
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2683
3207
  eulerRewards: (...args) => getRequest('eulerRewards', args),
2684
3208
  EULER_EVAULT_FACTORY: (...args) => getRequest('EULER_EVAULT_FACTORY', args),
2685
3209
  EULER_EARN_FACTORY: (...args) => getRequest('EULER_EARN_FACTORY', args),
3210
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2686
3211
  };
2687
3212
  function getMutation(functionName) {
2688
3213
  return {
@@ -2697,12 +3222,15 @@ export const mutation = {
2697
3222
  pause: getMutation('pause'),
2698
3223
  recoverFunds: getMutation('recoverFunds'),
2699
3224
  recoverFundsMany: getMutation('recoverFundsMany'),
3225
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3226
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3227
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3228
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2700
3229
  depositForYield: getMutation('depositForYield'),
2701
3230
  withdrawFromYield: getMutation('withdrawFromYield'),
3231
+ claimIncentives: getMutation('claimIncentives'),
2702
3232
  claimRewards: getMutation('claimRewards'),
2703
3233
  setEulerRewardsAddr: getMutation('setEulerRewardsAddr'),
2704
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2705
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2706
3234
  swapTokens: getMutation('swapTokens'),
2707
3235
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2708
3236
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2727,46 +3255,59 @@ export function toSdk(publicClient, walletClient) {
2727
3255
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2728
3256
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2729
3257
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2730
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3258
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3259
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3260
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3261
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2731
3262
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2732
3263
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2733
3264
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2734
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2735
3265
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2736
3266
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2737
3267
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3268
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3269
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3270
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3271
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2738
3272
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2739
3273
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2740
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2741
3274
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2742
3275
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2743
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2744
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2745
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2746
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2747
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2748
3276
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3277
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2749
3278
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2750
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2751
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3279
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2752
3280
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3281
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3282
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3283
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3284
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2753
3285
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2754
3286
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2755
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
2756
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3287
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3288
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3289
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3290
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3291
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3292
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3293
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2757
3294
  eulerRewards: (...args) => singleQuery(publicClient, call.eulerRewards(...args)),
2758
3295
  EULER_EVAULT_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EVAULT_FACTORY(...args)),
2759
3296
  EULER_EARN_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EARN_FACTORY(...args)),
3297
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2760
3298
  // Mutations
2761
3299
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2762
3300
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2763
3301
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3302
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3303
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3304
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3305
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2764
3306
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2765
3307
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3308
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2766
3309
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2767
3310
  setEulerRewardsAddr: (...args) => mutate(walletClient, mutation.setEulerRewardsAddr)(...args),
2768
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2769
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2770
3311
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2771
3312
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2772
3313
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),