@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
@@ -23,7 +23,7 @@ export const abi = [
23
23
  indexed: false,
24
24
  },
25
25
  {
26
- name: 'vaultId',
26
+ name: 'vaultIdOrLock',
27
27
  type: 'uint256',
28
28
  indexed: false,
29
29
  },
@@ -258,6 +258,53 @@ export const abi = [
258
258
  anonymous: false,
259
259
  type: 'event',
260
260
  },
261
+ {
262
+ name: 'RipeEndaomentPsmSwap',
263
+ inputs: [
264
+ {
265
+ name: 'sender',
266
+ type: 'address',
267
+ indexed: true,
268
+ },
269
+ {
270
+ name: 'tokenIn',
271
+ type: 'address',
272
+ indexed: true,
273
+ },
274
+ {
275
+ name: 'tokenOut',
276
+ type: 'address',
277
+ indexed: true,
278
+ },
279
+ {
280
+ name: 'amountIn',
281
+ type: 'uint256',
282
+ indexed: false,
283
+ },
284
+ {
285
+ name: 'amountOut',
286
+ type: 'uint256',
287
+ indexed: false,
288
+ },
289
+ {
290
+ name: 'usdValue',
291
+ type: 'uint256',
292
+ indexed: false,
293
+ },
294
+ {
295
+ name: 'numTokens',
296
+ type: 'uint256',
297
+ indexed: false,
298
+ },
299
+ {
300
+ name: 'recipient',
301
+ type: 'address',
302
+ indexed: false,
303
+ },
304
+ ],
305
+ anonymous: false,
306
+ type: 'event',
307
+ },
261
308
  {
262
309
  name: 'LegoPauseModified',
263
310
  inputs: [
@@ -292,6 +339,33 @@ export const abi = [
292
339
  anonymous: false,
293
340
  type: 'event',
294
341
  },
342
+ {
343
+ name: 'SnapShotPriceConfigSet',
344
+ inputs: [
345
+ {
346
+ name: 'minSnapshotDelay',
347
+ type: 'uint256',
348
+ indexed: false,
349
+ },
350
+ {
351
+ name: 'maxNumSnapshots',
352
+ type: 'uint256',
353
+ indexed: false,
354
+ },
355
+ {
356
+ name: 'maxUpsideDeviation',
357
+ type: 'uint256',
358
+ indexed: false,
359
+ },
360
+ {
361
+ name: 'staleTime',
362
+ type: 'uint256',
363
+ indexed: false,
364
+ },
365
+ ],
366
+ anonymous: false,
367
+ type: 'event',
368
+ },
295
369
  {
296
370
  name: 'AssetOpportunityAdded',
297
371
  inputs: [
@@ -309,6 +383,50 @@ export const abi = [
309
383
  anonymous: false,
310
384
  type: 'event',
311
385
  },
386
+ {
387
+ name: 'AssetOpportunityRemoved',
388
+ inputs: [
389
+ {
390
+ name: 'asset',
391
+ type: 'address',
392
+ indexed: true,
393
+ },
394
+ {
395
+ name: 'vaultAddr',
396
+ type: 'address',
397
+ indexed: true,
398
+ },
399
+ ],
400
+ anonymous: false,
401
+ type: 'event',
402
+ },
403
+ {
404
+ name: 'PricePerShareSnapShotAdded',
405
+ inputs: [
406
+ {
407
+ name: 'vaultToken',
408
+ type: 'address',
409
+ indexed: true,
410
+ },
411
+ {
412
+ name: 'totalSupply',
413
+ type: 'uint256',
414
+ indexed: false,
415
+ },
416
+ {
417
+ name: 'pricePerShare',
418
+ type: 'uint256',
419
+ indexed: false,
420
+ },
421
+ {
422
+ name: 'lastAveragePricePerShare',
423
+ type: 'uint256',
424
+ indexed: false,
425
+ },
426
+ ],
427
+ anonymous: false,
428
+ type: 'event',
429
+ },
312
430
  {
313
431
  stateMutability: 'view',
314
432
  type: 'function',
@@ -363,6 +481,10 @@ export const abi = [
363
481
  name: 'billing',
364
482
  type: 'address',
365
483
  },
484
+ {
485
+ name: 'vaultRegistry',
486
+ type: 'address',
487
+ },
366
488
  ],
367
489
  },
368
490
  ],
@@ -505,61 +627,124 @@ export const abi = [
505
627
  {
506
628
  stateMutability: 'view',
507
629
  type: 'function',
508
- name: 'isPaused',
509
- inputs: [],
630
+ name: 'getWeightedPricePerShare',
631
+ inputs: [
632
+ {
633
+ name: '_vaultToken',
634
+ type: 'address',
635
+ },
636
+ ],
510
637
  outputs: [
511
638
  {
512
639
  name: '',
513
- type: 'bool',
640
+ type: 'uint256',
514
641
  },
515
642
  ],
516
643
  },
517
644
  {
518
645
  stateMutability: 'view',
519
646
  type: 'function',
520
- name: 'assetOpportunities',
647
+ name: 'getLatestSnapshot',
521
648
  inputs: [
522
649
  {
523
- name: 'arg0',
650
+ name: '_vaultToken',
524
651
  type: 'address',
525
652
  },
526
653
  {
527
- name: 'arg1',
654
+ name: '_pricePerShare',
528
655
  type: 'uint256',
529
656
  },
530
657
  ],
531
658
  outputs: [
532
659
  {
533
660
  name: '',
534
- type: 'address',
661
+ type: 'tuple',
662
+ components: [
663
+ {
664
+ name: 'totalSupply',
665
+ type: 'uint256',
666
+ },
667
+ {
668
+ name: 'pricePerShare',
669
+ type: 'uint256',
670
+ },
671
+ {
672
+ name: 'lastUpdate',
673
+ type: 'uint256',
674
+ },
675
+ ],
535
676
  },
536
677
  ],
537
678
  },
538
679
  {
539
- stateMutability: 'view',
680
+ stateMutability: 'nonpayable',
540
681
  type: 'function',
541
- name: 'indexOfAssetOpportunity',
682
+ name: 'setSnapShotPriceConfig',
542
683
  inputs: [
543
684
  {
544
- name: 'arg0',
545
- type: 'address',
685
+ name: '_config',
686
+ type: 'tuple',
687
+ components: [
688
+ {
689
+ name: 'minSnapshotDelay',
690
+ type: 'uint256',
691
+ },
692
+ {
693
+ name: 'maxNumSnapshots',
694
+ type: 'uint256',
695
+ },
696
+ {
697
+ name: 'maxUpsideDeviation',
698
+ type: 'uint256',
699
+ },
700
+ {
701
+ name: 'staleTime',
702
+ type: 'uint256',
703
+ },
704
+ ],
546
705
  },
706
+ ],
707
+ outputs: [],
708
+ },
709
+ {
710
+ stateMutability: 'view',
711
+ type: 'function',
712
+ name: 'isValidPriceConfig',
713
+ inputs: [
547
714
  {
548
- name: 'arg1',
549
- type: 'address',
715
+ name: '_config',
716
+ type: 'tuple',
717
+ components: [
718
+ {
719
+ name: 'minSnapshotDelay',
720
+ type: 'uint256',
721
+ },
722
+ {
723
+ name: 'maxNumSnapshots',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'maxUpsideDeviation',
728
+ type: 'uint256',
729
+ },
730
+ {
731
+ name: 'staleTime',
732
+ type: 'uint256',
733
+ },
734
+ ],
550
735
  },
551
736
  ],
552
737
  outputs: [
553
738
  {
554
739
  name: '',
555
- type: 'uint256',
740
+ type: 'bool',
556
741
  },
557
742
  ],
558
743
  },
559
744
  {
560
745
  stateMutability: 'view',
561
746
  type: 'function',
562
- name: 'numAssetOpportunities',
747
+ name: 'vaultToAsset',
563
748
  inputs: [
564
749
  {
565
750
  name: 'arg0',
@@ -569,19 +754,37 @@ export const abi = [
569
754
  outputs: [
570
755
  {
571
756
  name: '',
572
- type: 'uint256',
757
+ type: 'tuple',
758
+ components: [
759
+ {
760
+ name: 'underlyingAsset',
761
+ type: 'address',
762
+ },
763
+ {
764
+ name: 'decimals',
765
+ type: 'uint256',
766
+ },
767
+ {
768
+ name: 'lastAveragePricePerShare',
769
+ type: 'uint256',
770
+ },
771
+ ],
573
772
  },
574
773
  ],
575
774
  },
576
775
  {
577
776
  stateMutability: 'view',
578
777
  type: 'function',
579
- name: 'vaultToAsset',
778
+ name: 'assetOpportunities',
580
779
  inputs: [
581
780
  {
582
781
  name: 'arg0',
583
782
  type: 'address',
584
783
  },
784
+ {
785
+ name: 'arg1',
786
+ type: 'uint256',
787
+ },
585
788
  ],
586
789
  outputs: [
587
790
  {
@@ -593,24 +796,28 @@ export const abi = [
593
796
  {
594
797
  stateMutability: 'view',
595
798
  type: 'function',
596
- name: 'assets',
799
+ name: 'indexOfAssetOpportunity',
597
800
  inputs: [
598
801
  {
599
802
  name: 'arg0',
600
- type: 'uint256',
803
+ type: 'address',
804
+ },
805
+ {
806
+ name: 'arg1',
807
+ type: 'address',
601
808
  },
602
809
  ],
603
810
  outputs: [
604
811
  {
605
812
  name: '',
606
- type: 'address',
813
+ type: 'uint256',
607
814
  },
608
815
  ],
609
816
  },
610
817
  {
611
818
  stateMutability: 'view',
612
819
  type: 'function',
613
- name: 'indexOfAsset',
820
+ name: 'numAssetOpportunities',
614
821
  inputs: [
615
822
  {
616
823
  name: 'arg0',
@@ -627,84 +834,207 @@ export const abi = [
627
834
  {
628
835
  stateMutability: 'view',
629
836
  type: 'function',
630
- name: 'numAssets',
631
- inputs: [],
837
+ name: 'assets',
838
+ inputs: [
839
+ {
840
+ name: 'arg0',
841
+ type: 'uint256',
842
+ },
843
+ ],
632
844
  outputs: [
633
845
  {
634
846
  name: '',
635
- type: 'uint256',
847
+ type: 'address',
636
848
  },
637
849
  ],
638
850
  },
639
851
  {
640
852
  stateMutability: 'view',
641
853
  type: 'function',
642
- name: 'hasCapability',
854
+ name: 'indexOfAsset',
643
855
  inputs: [
644
856
  {
645
- name: '_action',
646
- type: 'uint256',
857
+ name: 'arg0',
858
+ type: 'address',
647
859
  },
648
860
  ],
649
861
  outputs: [
650
862
  {
651
863
  name: '',
652
- type: 'bool',
864
+ type: 'uint256',
653
865
  },
654
866
  ],
655
867
  },
656
868
  {
657
869
  stateMutability: 'view',
658
870
  type: 'function',
659
- name: 'getRegistries',
871
+ name: 'numAssets',
660
872
  inputs: [],
661
873
  outputs: [
662
874
  {
663
875
  name: '',
664
- type: 'address[]',
876
+ type: 'uint256',
665
877
  },
666
878
  ],
667
879
  },
668
880
  {
669
881
  stateMutability: 'view',
670
882
  type: 'function',
671
- name: 'getAccessForLego',
883
+ name: 'snapShotData',
672
884
  inputs: [
673
885
  {
674
- name: '_user',
886
+ name: 'arg0',
675
887
  type: 'address',
676
888
  },
677
- {
678
- name: '_action',
679
- type: 'uint256',
680
- },
681
889
  ],
682
890
  outputs: [
683
891
  {
684
892
  name: '',
685
- type: 'address',
893
+ type: 'tuple',
894
+ components: [
895
+ {
896
+ name: 'lastSnapShot',
897
+ type: 'tuple',
898
+ components: [
899
+ {
900
+ name: 'totalSupply',
901
+ type: 'uint256',
902
+ },
903
+ {
904
+ name: 'pricePerShare',
905
+ type: 'uint256',
906
+ },
907
+ {
908
+ name: 'lastUpdate',
909
+ type: 'uint256',
910
+ },
911
+ ],
912
+ },
913
+ {
914
+ name: 'nextIndex',
915
+ type: 'uint256',
916
+ },
917
+ ],
686
918
  },
919
+ ],
920
+ },
921
+ {
922
+ stateMutability: 'view',
923
+ type: 'function',
924
+ name: 'snapShots',
925
+ inputs: [
687
926
  {
688
- name: '',
689
- type: 'string',
927
+ name: 'arg0',
928
+ type: 'address',
690
929
  },
691
930
  {
692
- name: '',
931
+ name: 'arg1',
693
932
  type: 'uint256',
694
933
  },
695
934
  ],
696
- },
697
- {
698
- stateMutability: 'view',
699
- type: 'function',
700
- name: 'isYieldLego',
701
- inputs: [],
702
935
  outputs: [
703
936
  {
704
937
  name: '',
705
- type: 'bool',
706
- },
707
- ],
938
+ type: 'tuple',
939
+ components: [
940
+ {
941
+ name: 'totalSupply',
942
+ type: 'uint256',
943
+ },
944
+ {
945
+ name: 'pricePerShare',
946
+ type: 'uint256',
947
+ },
948
+ {
949
+ name: 'lastUpdate',
950
+ type: 'uint256',
951
+ },
952
+ ],
953
+ },
954
+ ],
955
+ },
956
+ {
957
+ stateMutability: 'view',
958
+ type: 'function',
959
+ name: 'snapShotPriceConfig',
960
+ inputs: [],
961
+ outputs: [
962
+ {
963
+ name: '',
964
+ type: 'tuple',
965
+ components: [
966
+ {
967
+ name: 'minSnapshotDelay',
968
+ type: 'uint256',
969
+ },
970
+ {
971
+ name: 'maxNumSnapshots',
972
+ type: 'uint256',
973
+ },
974
+ {
975
+ name: 'maxUpsideDeviation',
976
+ type: 'uint256',
977
+ },
978
+ {
979
+ name: 'staleTime',
980
+ type: 'uint256',
981
+ },
982
+ ],
983
+ },
984
+ ],
985
+ },
986
+ {
987
+ stateMutability: 'view',
988
+ type: 'function',
989
+ name: 'isPaused',
990
+ inputs: [],
991
+ outputs: [
992
+ {
993
+ name: '',
994
+ type: 'bool',
995
+ },
996
+ ],
997
+ },
998
+ {
999
+ stateMutability: 'view',
1000
+ type: 'function',
1001
+ name: 'hasCapability',
1002
+ inputs: [
1003
+ {
1004
+ name: '_action',
1005
+ type: 'uint256',
1006
+ },
1007
+ ],
1008
+ outputs: [
1009
+ {
1010
+ name: '',
1011
+ type: 'bool',
1012
+ },
1013
+ ],
1014
+ },
1015
+ {
1016
+ stateMutability: 'view',
1017
+ type: 'function',
1018
+ name: 'getRegistries',
1019
+ inputs: [],
1020
+ outputs: [
1021
+ {
1022
+ name: '',
1023
+ type: 'address[]',
1024
+ },
1025
+ ],
1026
+ },
1027
+ {
1028
+ stateMutability: 'view',
1029
+ type: 'function',
1030
+ name: 'isYieldLego',
1031
+ inputs: [],
1032
+ outputs: [
1033
+ {
1034
+ name: '',
1035
+ type: 'bool',
1036
+ },
1037
+ ],
708
1038
  },
709
1039
  {
710
1040
  stateMutability: 'view',
@@ -719,24 +1049,330 @@ export const abi = [
719
1049
  ],
720
1050
  },
721
1051
  {
722
- stateMutability: 'nonpayable',
1052
+ stateMutability: 'view',
1053
+ type: 'function',
1054
+ name: 'getUnderlyingAsset',
1055
+ inputs: [
1056
+ {
1057
+ name: '_vaultToken',
1058
+ type: 'address',
1059
+ },
1060
+ ],
1061
+ outputs: [
1062
+ {
1063
+ name: '',
1064
+ type: 'address',
1065
+ },
1066
+ ],
1067
+ },
1068
+ {
1069
+ stateMutability: 'view',
1070
+ type: 'function',
1071
+ name: 'getUnderlyingBalances',
1072
+ inputs: [
1073
+ {
1074
+ name: '_vaultToken',
1075
+ type: 'address',
1076
+ },
1077
+ {
1078
+ name: '_vaultTokenBalance',
1079
+ type: 'uint256',
1080
+ },
1081
+ ],
1082
+ outputs: [
1083
+ {
1084
+ name: '',
1085
+ type: 'uint256',
1086
+ },
1087
+ {
1088
+ name: '',
1089
+ type: 'uint256',
1090
+ },
1091
+ ],
1092
+ },
1093
+ {
1094
+ stateMutability: 'view',
1095
+ type: 'function',
1096
+ name: 'getUnderlyingAmount',
1097
+ inputs: [
1098
+ {
1099
+ name: '_vaultToken',
1100
+ type: 'address',
1101
+ },
1102
+ {
1103
+ name: '_vaultTokenAmount',
1104
+ type: 'uint256',
1105
+ },
1106
+ ],
1107
+ outputs: [
1108
+ {
1109
+ name: '',
1110
+ type: 'uint256',
1111
+ },
1112
+ ],
1113
+ },
1114
+ {
1115
+ stateMutability: 'view',
1116
+ type: 'function',
1117
+ name: 'getUnderlyingAmountSafe',
1118
+ inputs: [
1119
+ {
1120
+ name: '_vaultToken',
1121
+ type: 'address',
1122
+ },
1123
+ {
1124
+ name: '_vaultTokenBalance',
1125
+ type: 'uint256',
1126
+ },
1127
+ ],
1128
+ outputs: [
1129
+ {
1130
+ name: '',
1131
+ type: 'uint256',
1132
+ },
1133
+ ],
1134
+ },
1135
+ {
1136
+ stateMutability: 'view',
1137
+ type: 'function',
1138
+ name: 'getUnderlyingData',
1139
+ inputs: [
1140
+ {
1141
+ name: '_vaultToken',
1142
+ type: 'address',
1143
+ },
1144
+ {
1145
+ name: '_vaultTokenAmount',
1146
+ type: 'uint256',
1147
+ },
1148
+ ],
1149
+ outputs: [
1150
+ {
1151
+ name: '',
1152
+ type: 'address',
1153
+ },
1154
+ {
1155
+ name: '',
1156
+ type: 'uint256',
1157
+ },
1158
+ {
1159
+ name: '',
1160
+ type: 'uint256',
1161
+ },
1162
+ ],
1163
+ },
1164
+ {
1165
+ stateMutability: 'view',
1166
+ type: 'function',
1167
+ name: 'getUnderlyingData',
1168
+ inputs: [
1169
+ {
1170
+ name: '_vaultToken',
1171
+ type: 'address',
1172
+ },
1173
+ {
1174
+ name: '_vaultTokenAmount',
1175
+ type: 'uint256',
1176
+ },
1177
+ {
1178
+ name: '_appraiser',
1179
+ type: 'address',
1180
+ },
1181
+ ],
1182
+ outputs: [
1183
+ {
1184
+ name: '',
1185
+ type: 'address',
1186
+ },
1187
+ {
1188
+ name: '',
1189
+ type: 'uint256',
1190
+ },
1191
+ {
1192
+ name: '',
1193
+ type: 'uint256',
1194
+ },
1195
+ ],
1196
+ },
1197
+ {
1198
+ stateMutability: 'view',
1199
+ type: 'function',
1200
+ name: 'getUsdValueOfVaultToken',
1201
+ inputs: [
1202
+ {
1203
+ name: '_vaultToken',
1204
+ type: 'address',
1205
+ },
1206
+ {
1207
+ name: '_vaultTokenAmount',
1208
+ type: 'uint256',
1209
+ },
1210
+ ],
1211
+ outputs: [
1212
+ {
1213
+ name: '',
1214
+ type: 'uint256',
1215
+ },
1216
+ ],
1217
+ },
1218
+ {
1219
+ stateMutability: 'view',
1220
+ type: 'function',
1221
+ name: 'getUsdValueOfVaultToken',
1222
+ inputs: [
1223
+ {
1224
+ name: '_vaultToken',
1225
+ type: 'address',
1226
+ },
1227
+ {
1228
+ name: '_vaultTokenAmount',
1229
+ type: 'uint256',
1230
+ },
1231
+ {
1232
+ name: '_appraiser',
1233
+ type: 'address',
1234
+ },
1235
+ ],
1236
+ outputs: [
1237
+ {
1238
+ name: '',
1239
+ type: 'uint256',
1240
+ },
1241
+ ],
1242
+ },
1243
+ {
1244
+ stateMutability: 'view',
1245
+ type: 'function',
1246
+ name: 'isRebasing',
1247
+ inputs: [],
1248
+ outputs: [
1249
+ {
1250
+ name: '',
1251
+ type: 'bool',
1252
+ },
1253
+ ],
1254
+ },
1255
+ {
1256
+ stateMutability: 'view',
1257
+ type: 'function',
1258
+ name: 'getPricePerShare',
1259
+ inputs: [
1260
+ {
1261
+ name: '_vaultToken',
1262
+ type: 'address',
1263
+ },
1264
+ ],
1265
+ outputs: [
1266
+ {
1267
+ name: '',
1268
+ type: 'uint256',
1269
+ },
1270
+ ],
1271
+ },
1272
+ {
1273
+ stateMutability: 'view',
1274
+ type: 'function',
1275
+ name: 'getPricePerShare',
1276
+ inputs: [
1277
+ {
1278
+ name: '_vaultToken',
1279
+ type: 'address',
1280
+ },
1281
+ {
1282
+ name: '_decimals',
1283
+ type: 'uint256',
1284
+ },
1285
+ ],
1286
+ outputs: [
1287
+ {
1288
+ name: '',
1289
+ type: 'uint256',
1290
+ },
1291
+ ],
1292
+ },
1293
+ {
1294
+ stateMutability: 'view',
1295
+ type: 'function',
1296
+ name: 'getVaultTokenAmount',
1297
+ inputs: [
1298
+ {
1299
+ name: '_asset',
1300
+ type: 'address',
1301
+ },
1302
+ {
1303
+ name: '_assetAmount',
1304
+ type: 'uint256',
1305
+ },
1306
+ {
1307
+ name: '_vaultToken',
1308
+ type: 'address',
1309
+ },
1310
+ ],
1311
+ outputs: [
1312
+ {
1313
+ name: '',
1314
+ type: 'uint256',
1315
+ },
1316
+ ],
1317
+ },
1318
+ {
1319
+ stateMutability: 'view',
1320
+ type: 'function',
1321
+ name: 'totalAssets',
1322
+ inputs: [
1323
+ {
1324
+ name: '_vaultToken',
1325
+ type: 'address',
1326
+ },
1327
+ ],
1328
+ outputs: [
1329
+ {
1330
+ name: '',
1331
+ type: 'uint256',
1332
+ },
1333
+ ],
1334
+ },
1335
+ {
1336
+ stateMutability: 'view',
1337
+ type: 'function',
1338
+ name: 'totalBorrows',
1339
+ inputs: [
1340
+ {
1341
+ name: '_vaultToken',
1342
+ type: 'address',
1343
+ },
1344
+ ],
1345
+ outputs: [
1346
+ {
1347
+ name: '',
1348
+ type: 'uint256',
1349
+ },
1350
+ ],
1351
+ },
1352
+ {
1353
+ stateMutability: 'view',
723
1354
  type: 'function',
724
- name: 'addCollateral',
1355
+ name: 'getAvailLiquidity',
725
1356
  inputs: [
726
1357
  {
727
- name: '_asset',
1358
+ name: '_vaultToken',
728
1359
  type: 'address',
729
1360
  },
1361
+ ],
1362
+ outputs: [
730
1363
  {
731
- name: '_amount',
1364
+ name: '',
732
1365
  type: 'uint256',
733
1366
  },
1367
+ ],
1368
+ },
1369
+ {
1370
+ stateMutability: 'view',
1371
+ type: 'function',
1372
+ name: 'getUtilizationRatio',
1373
+ inputs: [
734
1374
  {
735
- name: '_extraData',
736
- type: 'bytes32',
737
- },
738
- {
739
- name: '_recipient',
1375
+ name: '_vaultToken',
740
1376
  type: 'address',
741
1377
  },
742
1378
  ],
@@ -745,54 +1381,37 @@ export const abi = [
745
1381
  name: '',
746
1382
  type: 'uint256',
747
1383
  },
748
- {
749
- name: '',
750
- type: 'uint256',
751
- },
752
1384
  ],
753
1385
  },
754
1386
  {
755
- stateMutability: 'nonpayable',
1387
+ stateMutability: 'view',
756
1388
  type: 'function',
757
- name: 'addCollateral',
1389
+ name: 'isEligibleForYieldBonus',
758
1390
  inputs: [
759
1391
  {
760
1392
  name: '_asset',
761
1393
  type: 'address',
762
1394
  },
1395
+ ],
1396
+ outputs: [
763
1397
  {
764
- name: '_amount',
765
- type: 'uint256',
766
- },
767
- {
768
- name: '_extraData',
769
- type: 'bytes32',
1398
+ name: '',
1399
+ type: 'bool',
770
1400
  },
1401
+ ],
1402
+ },
1403
+ {
1404
+ stateMutability: 'view',
1405
+ type: 'function',
1406
+ name: 'getWithdrawalFees',
1407
+ inputs: [
771
1408
  {
772
- name: '_recipient',
1409
+ name: '_vaultToken',
773
1410
  type: 'address',
774
1411
  },
775
1412
  {
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
- ],
1413
+ name: '_vaultTokenAmount',
1414
+ type: 'uint256',
796
1415
  },
797
1416
  ],
798
1417
  outputs: [
@@ -800,113 +1419,114 @@ export const abi = [
800
1419
  name: '',
801
1420
  type: 'uint256',
802
1421
  },
803
- {
804
- name: '',
805
- type: 'uint256',
806
- },
807
1422
  ],
808
1423
  },
809
1424
  {
810
- stateMutability: 'nonpayable',
1425
+ stateMutability: 'view',
811
1426
  type: 'function',
812
- name: 'removeCollateral',
1427
+ name: 'canRegisterVaultToken',
813
1428
  inputs: [
814
1429
  {
815
1430
  name: '_asset',
816
1431
  type: 'address',
817
1432
  },
818
1433
  {
819
- name: '_amount',
820
- type: 'uint256',
821
- },
822
- {
823
- name: '_extraData',
824
- type: 'bytes32',
825
- },
826
- {
827
- name: '_recipient',
1434
+ name: '_vaultToken',
828
1435
  type: 'address',
829
1436
  },
830
1437
  ],
831
1438
  outputs: [
832
1439
  {
833
1440
  name: '',
834
- type: 'uint256',
835
- },
836
- {
837
- name: '',
838
- type: 'uint256',
1441
+ type: 'bool',
839
1442
  },
840
1443
  ],
841
1444
  },
842
1445
  {
843
1446
  stateMutability: 'nonpayable',
844
1447
  type: 'function',
845
- name: 'removeCollateral',
1448
+ name: 'registerVaultTokenLocally',
846
1449
  inputs: [
847
1450
  {
848
1451
  name: '_asset',
849
1452
  type: 'address',
850
1453
  },
851
1454
  {
852
- name: '_amount',
853
- type: 'uint256',
854
- },
855
- {
856
- name: '_extraData',
857
- type: 'bytes32',
858
- },
859
- {
860
- name: '_recipient',
1455
+ name: '_vaultAddr',
861
1456
  type: 'address',
862
1457
  },
1458
+ ],
1459
+ outputs: [
863
1460
  {
864
- name: '_miniAddys',
1461
+ name: '',
865
1462
  type: 'tuple',
866
1463
  components: [
867
1464
  {
868
- name: 'ledger',
869
- type: 'address',
870
- },
871
- {
872
- name: 'missionControl',
1465
+ name: 'underlyingAsset',
873
1466
  type: 'address',
874
1467
  },
875
1468
  {
876
- name: 'legoBook',
877
- type: 'address',
1469
+ name: 'decimals',
1470
+ type: 'uint256',
878
1471
  },
879
1472
  {
880
- name: 'appraiser',
881
- type: 'address',
1473
+ name: 'lastAveragePricePerShare',
1474
+ type: 'uint256',
882
1475
  },
883
1476
  ],
884
1477
  },
885
1478
  ],
886
- outputs: [
1479
+ },
1480
+ {
1481
+ stateMutability: 'nonpayable',
1482
+ type: 'function',
1483
+ name: 'deregisterVaultTokenLocally',
1484
+ inputs: [
887
1485
  {
888
- name: '',
889
- type: 'uint256',
1486
+ name: '_asset',
1487
+ type: 'address',
1488
+ },
1489
+ {
1490
+ name: '_vaultAddr',
1491
+ type: 'address',
1492
+ },
1493
+ ],
1494
+ outputs: [],
1495
+ },
1496
+ {
1497
+ stateMutability: 'nonpayable',
1498
+ type: 'function',
1499
+ name: 'addPriceSnapshot',
1500
+ inputs: [
1501
+ {
1502
+ name: '_vaultToken',
1503
+ type: 'address',
890
1504
  },
1505
+ ],
1506
+ outputs: [
891
1507
  {
892
1508
  name: '',
893
- type: 'uint256',
1509
+ type: 'bool',
894
1510
  },
895
1511
  ],
896
1512
  },
897
1513
  {
898
1514
  stateMutability: 'nonpayable',
899
1515
  type: 'function',
900
- name: 'borrow',
1516
+ name: 'depositForYield',
901
1517
  inputs: [
902
1518
  {
903
- name: '_borrowAsset',
1519
+ name: '_asset',
904
1520
  type: 'address',
905
1521
  },
906
1522
  {
907
1523
  name: '_amount',
908
1524
  type: 'uint256',
909
1525
  },
1526
+ {
1527
+ name: '_vaultAddr',
1528
+ type: 'address',
1529
+ },
910
1530
  {
911
1531
  name: '_extraData',
912
1532
  type: 'bytes32',
@@ -917,6 +1537,14 @@ export const abi = [
917
1537
  },
918
1538
  ],
919
1539
  outputs: [
1540
+ {
1541
+ name: '',
1542
+ type: 'uint256',
1543
+ },
1544
+ {
1545
+ name: '',
1546
+ type: 'address',
1547
+ },
920
1548
  {
921
1549
  name: '',
922
1550
  type: 'uint256',
@@ -930,16 +1558,20 @@ export const abi = [
930
1558
  {
931
1559
  stateMutability: 'nonpayable',
932
1560
  type: 'function',
933
- name: 'borrow',
1561
+ name: 'depositForYield',
934
1562
  inputs: [
935
1563
  {
936
- name: '_borrowAsset',
1564
+ name: '_asset',
937
1565
  type: 'address',
938
1566
  },
939
1567
  {
940
1568
  name: '_amount',
941
1569
  type: 'uint256',
942
1570
  },
1571
+ {
1572
+ name: '_vaultAddr',
1573
+ type: 'address',
1574
+ },
943
1575
  {
944
1576
  name: '_extraData',
945
1577
  type: 'bytes32',
@@ -972,6 +1604,14 @@ export const abi = [
972
1604
  },
973
1605
  ],
974
1606
  outputs: [
1607
+ {
1608
+ name: '',
1609
+ type: 'uint256',
1610
+ },
1611
+ {
1612
+ name: '',
1613
+ type: 'address',
1614
+ },
975
1615
  {
976
1616
  name: '',
977
1617
  type: 'uint256',
@@ -985,14 +1625,14 @@ export const abi = [
985
1625
  {
986
1626
  stateMutability: 'nonpayable',
987
1627
  type: 'function',
988
- name: 'repayDebt',
1628
+ name: 'withdrawFromYield',
989
1629
  inputs: [
990
1630
  {
991
- name: '_paymentAsset',
1631
+ name: '_vaultToken',
992
1632
  type: 'address',
993
1633
  },
994
1634
  {
995
- name: '_paymentAmount',
1635
+ name: '_amount',
996
1636
  type: 'uint256',
997
1637
  },
998
1638
  {
@@ -1005,6 +1645,14 @@ export const abi = [
1005
1645
  },
1006
1646
  ],
1007
1647
  outputs: [
1648
+ {
1649
+ name: '',
1650
+ type: 'uint256',
1651
+ },
1652
+ {
1653
+ name: '',
1654
+ type: 'address',
1655
+ },
1008
1656
  {
1009
1657
  name: '',
1010
1658
  type: 'uint256',
@@ -1018,14 +1666,14 @@ export const abi = [
1018
1666
  {
1019
1667
  stateMutability: 'nonpayable',
1020
1668
  type: 'function',
1021
- name: 'repayDebt',
1669
+ name: 'withdrawFromYield',
1022
1670
  inputs: [
1023
1671
  {
1024
- name: '_paymentAsset',
1672
+ name: '_vaultToken',
1025
1673
  type: 'address',
1026
1674
  },
1027
1675
  {
1028
- name: '_paymentAmount',
1676
+ name: '_amount',
1029
1677
  type: 'uint256',
1030
1678
  },
1031
1679
  {
@@ -1060,6 +1708,14 @@ export const abi = [
1060
1708
  },
1061
1709
  ],
1062
1710
  outputs: [
1711
+ {
1712
+ name: '',
1713
+ type: 'uint256',
1714
+ },
1715
+ {
1716
+ name: '',
1717
+ type: 'address',
1718
+ },
1063
1719
  {
1064
1720
  name: '',
1065
1721
  type: 'uint256',
@@ -1073,23 +1729,27 @@ export const abi = [
1073
1729
  {
1074
1730
  stateMutability: 'nonpayable',
1075
1731
  type: 'function',
1076
- name: 'claimRewards',
1732
+ name: 'swapTokens',
1077
1733
  inputs: [
1078
1734
  {
1079
- name: '_user',
1080
- type: 'address',
1735
+ name: '_amountIn',
1736
+ type: 'uint256',
1081
1737
  },
1082
1738
  {
1083
- name: '_rewardToken',
1084
- type: 'address',
1739
+ name: '_minAmountOut',
1740
+ type: 'uint256',
1085
1741
  },
1086
1742
  {
1087
- name: '_rewardAmount',
1088
- type: 'uint256',
1743
+ name: '_tokenPath',
1744
+ type: 'address[]',
1089
1745
  },
1090
1746
  {
1091
- name: '_extraData',
1092
- type: 'bytes32',
1747
+ name: '_poolPath',
1748
+ type: 'address[]',
1749
+ },
1750
+ {
1751
+ name: '_recipient',
1752
+ type: 'address',
1093
1753
  },
1094
1754
  ],
1095
1755
  outputs: [
@@ -1101,28 +1761,36 @@ export const abi = [
1101
1761
  name: '',
1102
1762
  type: 'uint256',
1103
1763
  },
1764
+ {
1765
+ name: '',
1766
+ type: 'uint256',
1767
+ },
1104
1768
  ],
1105
1769
  },
1106
1770
  {
1107
1771
  stateMutability: 'nonpayable',
1108
1772
  type: 'function',
1109
- name: 'claimRewards',
1773
+ name: 'swapTokens',
1110
1774
  inputs: [
1111
1775
  {
1112
- name: '_user',
1113
- type: 'address',
1776
+ name: '_amountIn',
1777
+ type: 'uint256',
1114
1778
  },
1115
1779
  {
1116
- name: '_rewardToken',
1117
- type: 'address',
1780
+ name: '_minAmountOut',
1781
+ type: 'uint256',
1118
1782
  },
1119
1783
  {
1120
- name: '_rewardAmount',
1121
- type: 'uint256',
1784
+ name: '_tokenPath',
1785
+ type: 'address[]',
1122
1786
  },
1123
1787
  {
1124
- name: '_extraData',
1125
- type: 'bytes32',
1788
+ name: '_poolPath',
1789
+ type: 'address[]',
1790
+ },
1791
+ {
1792
+ name: '_recipient',
1793
+ type: 'address',
1126
1794
  },
1127
1795
  {
1128
1796
  name: '_miniAddys',
@@ -1156,12 +1824,16 @@ export const abi = [
1156
1824
  name: '',
1157
1825
  type: 'uint256',
1158
1826
  },
1827
+ {
1828
+ name: '',
1829
+ type: 'uint256',
1830
+ },
1159
1831
  ],
1160
1832
  },
1161
1833
  {
1162
1834
  stateMutability: 'nonpayable',
1163
1835
  type: 'function',
1164
- name: 'depositForYield',
1836
+ name: 'addCollateral',
1165
1837
  inputs: [
1166
1838
  {
1167
1839
  name: '_asset',
@@ -1171,10 +1843,6 @@ export const abi = [
1171
1843
  name: '_amount',
1172
1844
  type: 'uint256',
1173
1845
  },
1174
- {
1175
- name: '_vaultAddr',
1176
- type: 'address',
1177
- },
1178
1846
  {
1179
1847
  name: '_extraData',
1180
1848
  type: 'bytes32',
@@ -1185,14 +1853,6 @@ export const abi = [
1185
1853
  },
1186
1854
  ],
1187
1855
  outputs: [
1188
- {
1189
- name: '',
1190
- type: 'uint256',
1191
- },
1192
- {
1193
- name: '',
1194
- type: 'address',
1195
- },
1196
1856
  {
1197
1857
  name: '',
1198
1858
  type: 'uint256',
@@ -1206,7 +1866,7 @@ export const abi = [
1206
1866
  {
1207
1867
  stateMutability: 'nonpayable',
1208
1868
  type: 'function',
1209
- name: 'depositForYield',
1869
+ name: 'addCollateral',
1210
1870
  inputs: [
1211
1871
  {
1212
1872
  name: '_asset',
@@ -1216,10 +1876,6 @@ export const abi = [
1216
1876
  name: '_amount',
1217
1877
  type: 'uint256',
1218
1878
  },
1219
- {
1220
- name: '_vaultAddr',
1221
- type: 'address',
1222
- },
1223
1879
  {
1224
1880
  name: '_extraData',
1225
1881
  type: 'bytes32',
@@ -1252,14 +1908,6 @@ export const abi = [
1252
1908
  },
1253
1909
  ],
1254
1910
  outputs: [
1255
- {
1256
- name: '',
1257
- type: 'uint256',
1258
- },
1259
- {
1260
- name: '',
1261
- type: 'address',
1262
- },
1263
1911
  {
1264
1912
  name: '',
1265
1913
  type: 'uint256',
@@ -1273,10 +1921,10 @@ export const abi = [
1273
1921
  {
1274
1922
  stateMutability: 'nonpayable',
1275
1923
  type: 'function',
1276
- name: 'withdrawFromYield',
1924
+ name: 'removeCollateral',
1277
1925
  inputs: [
1278
1926
  {
1279
- name: '_vaultToken',
1927
+ name: '_asset',
1280
1928
  type: 'address',
1281
1929
  },
1282
1930
  {
@@ -1293,14 +1941,6 @@ export const abi = [
1293
1941
  },
1294
1942
  ],
1295
1943
  outputs: [
1296
- {
1297
- name: '',
1298
- type: 'uint256',
1299
- },
1300
- {
1301
- name: '',
1302
- type: 'address',
1303
- },
1304
1944
  {
1305
1945
  name: '',
1306
1946
  type: 'uint256',
@@ -1314,10 +1954,10 @@ export const abi = [
1314
1954
  {
1315
1955
  stateMutability: 'nonpayable',
1316
1956
  type: 'function',
1317
- name: 'withdrawFromYield',
1957
+ name: 'removeCollateral',
1318
1958
  inputs: [
1319
1959
  {
1320
- name: '_vaultToken',
1960
+ name: '_asset',
1321
1961
  type: 'address',
1322
1962
  },
1323
1963
  {
@@ -1356,14 +1996,6 @@ export const abi = [
1356
1996
  },
1357
1997
  ],
1358
1998
  outputs: [
1359
- {
1360
- name: '',
1361
- type: 'uint256',
1362
- },
1363
- {
1364
- name: '',
1365
- type: 'address',
1366
- },
1367
1999
  {
1368
2000
  name: '',
1369
2001
  type: 'uint256',
@@ -1375,126 +2007,80 @@ export const abi = [
1375
2007
  ],
1376
2008
  },
1377
2009
  {
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
- name: 'isRebasing',
1381
- inputs: [],
1382
- outputs: [
1383
- {
1384
- name: '',
1385
- type: 'bool',
1386
- },
1387
- ],
1388
- },
1389
- {
1390
- stateMutability: 'view',
2010
+ stateMutability: 'nonpayable',
1391
2011
  type: 'function',
1392
- name: 'isEligibleVaultForTrialFunds',
2012
+ name: 'borrow',
1393
2013
  inputs: [
1394
2014
  {
1395
- name: '_vaultToken',
1396
- type: 'address',
1397
- },
1398
- {
1399
- name: '_underlyingAsset',
2015
+ name: '_borrowAsset',
1400
2016
  type: 'address',
1401
2017
  },
1402
- ],
1403
- outputs: [
1404
- {
1405
- name: '',
1406
- type: 'bool',
1407
- },
1408
- ],
1409
- },
1410
- {
1411
- stateMutability: 'view',
1412
- type: 'function',
1413
- name: 'isEligibleForYieldBonus',
1414
- inputs: [
1415
2018
  {
1416
- name: '_asset',
1417
- type: 'address',
2019
+ name: '_amount',
2020
+ type: 'uint256',
1418
2021
  },
1419
- ],
1420
- outputs: [
1421
2022
  {
1422
- name: '',
1423
- type: 'bool',
2023
+ name: '_extraData',
2024
+ type: 'bytes32',
1424
2025
  },
1425
- ],
1426
- },
1427
- {
1428
- stateMutability: 'view',
1429
- type: 'function',
1430
- name: 'isVaultToken',
1431
- inputs: [
1432
2026
  {
1433
- name: '_vaultToken',
2027
+ name: '_recipient',
1434
2028
  type: 'address',
1435
2029
  },
1436
2030
  ],
1437
2031
  outputs: [
1438
2032
  {
1439
2033
  name: '',
1440
- type: 'bool',
1441
- },
1442
- ],
1443
- },
1444
- {
1445
- stateMutability: 'view',
1446
- type: 'function',
1447
- name: 'getUnderlyingAsset',
1448
- inputs: [
1449
- {
1450
- name: '_vaultToken',
1451
- type: 'address',
2034
+ type: 'uint256',
1452
2035
  },
1453
- ],
1454
- outputs: [
1455
2036
  {
1456
2037
  name: '',
1457
- type: 'address',
2038
+ type: 'uint256',
1458
2039
  },
1459
2040
  ],
1460
2041
  },
1461
2042
  {
1462
- stateMutability: 'view',
2043
+ stateMutability: 'nonpayable',
1463
2044
  type: 'function',
1464
- name: 'getUnderlyingAmount',
2045
+ name: 'borrow',
1465
2046
  inputs: [
1466
2047
  {
1467
- name: '_vaultToken',
2048
+ name: '_borrowAsset',
1468
2049
  type: 'address',
1469
2050
  },
1470
2051
  {
1471
- name: '_vaultTokenAmount',
2052
+ name: '_amount',
1472
2053
  type: 'uint256',
1473
2054
  },
1474
- ],
1475
- outputs: [
1476
2055
  {
1477
- name: '',
1478
- type: 'uint256',
2056
+ name: '_extraData',
2057
+ type: 'bytes32',
1479
2058
  },
1480
- ],
1481
- },
1482
- {
1483
- stateMutability: 'view',
1484
- type: 'function',
1485
- name: 'getVaultTokenAmount',
1486
- inputs: [
1487
2059
  {
1488
- name: '_asset',
2060
+ name: '_recipient',
1489
2061
  type: 'address',
1490
2062
  },
1491
2063
  {
1492
- name: '_assetAmount',
1493
- type: 'uint256',
1494
- },
1495
- {
1496
- name: '_vaultToken',
1497
- type: 'address',
2064
+ name: '_miniAddys',
2065
+ type: 'tuple',
2066
+ components: [
2067
+ {
2068
+ name: 'ledger',
2069
+ type: 'address',
2070
+ },
2071
+ {
2072
+ name: 'missionControl',
2073
+ type: 'address',
2074
+ },
2075
+ {
2076
+ name: 'legoBook',
2077
+ type: 'address',
2078
+ },
2079
+ {
2080
+ name: 'appraiser',
2081
+ type: 'address',
2082
+ },
2083
+ ],
1498
2084
  },
1499
2085
  ],
1500
2086
  outputs: [
@@ -1502,23 +2088,6 @@ export const abi = [
1502
2088
  name: '',
1503
2089
  type: 'uint256',
1504
2090
  },
1505
- ],
1506
- },
1507
- {
1508
- stateMutability: 'view',
1509
- type: 'function',
1510
- name: 'getUsdValueOfVaultToken',
1511
- inputs: [
1512
- {
1513
- name: '_vaultToken',
1514
- type: 'address',
1515
- },
1516
- {
1517
- name: '_vaultTokenAmount',
1518
- type: 'uint256',
1519
- },
1520
- ],
1521
- outputs: [
1522
2091
  {
1523
2092
  name: '',
1524
2093
  type: 'uint256',
@@ -1526,49 +2095,28 @@ export const abi = [
1526
2095
  ],
1527
2096
  },
1528
2097
  {
1529
- stateMutability: 'view',
2098
+ stateMutability: 'nonpayable',
1530
2099
  type: 'function',
1531
- name: 'getUsdValueOfVaultToken',
2100
+ name: 'repayDebt',
1532
2101
  inputs: [
1533
2102
  {
1534
- name: '_vaultToken',
2103
+ name: '_paymentAsset',
1535
2104
  type: 'address',
1536
2105
  },
1537
2106
  {
1538
- name: '_vaultTokenAmount',
2107
+ name: '_paymentAmount',
1539
2108
  type: 'uint256',
1540
2109
  },
1541
2110
  {
1542
- name: '_appraiser',
1543
- type: 'address',
1544
- },
1545
- ],
1546
- outputs: [
1547
- {
1548
- name: '',
1549
- type: 'uint256',
2111
+ name: '_extraData',
2112
+ type: 'bytes32',
1550
2113
  },
1551
- ],
1552
- },
1553
- {
1554
- stateMutability: 'view',
1555
- type: 'function',
1556
- name: 'getUnderlyingData',
1557
- inputs: [
1558
2114
  {
1559
- name: '_vaultToken',
2115
+ name: '_recipient',
1560
2116
  type: 'address',
1561
2117
  },
1562
- {
1563
- name: '_vaultTokenAmount',
1564
- type: 'uint256',
1565
- },
1566
2118
  ],
1567
2119
  outputs: [
1568
- {
1569
- name: '',
1570
- type: 'address',
1571
- },
1572
2120
  {
1573
2121
  name: '',
1574
2122
  type: 'uint256',
@@ -1580,28 +2128,50 @@ export const abi = [
1580
2128
  ],
1581
2129
  },
1582
2130
  {
1583
- stateMutability: 'view',
2131
+ stateMutability: 'nonpayable',
1584
2132
  type: 'function',
1585
- name: 'getUnderlyingData',
2133
+ name: 'repayDebt',
1586
2134
  inputs: [
1587
2135
  {
1588
- name: '_vaultToken',
2136
+ name: '_paymentAsset',
1589
2137
  type: 'address',
1590
2138
  },
1591
2139
  {
1592
- name: '_vaultTokenAmount',
2140
+ name: '_paymentAmount',
1593
2141
  type: 'uint256',
1594
2142
  },
1595
2143
  {
1596
- name: '_appraiser',
2144
+ name: '_extraData',
2145
+ type: 'bytes32',
2146
+ },
2147
+ {
2148
+ name: '_recipient',
1597
2149
  type: 'address',
1598
2150
  },
2151
+ {
2152
+ name: '_miniAddys',
2153
+ type: 'tuple',
2154
+ components: [
2155
+ {
2156
+ name: 'ledger',
2157
+ type: 'address',
2158
+ },
2159
+ {
2160
+ name: 'missionControl',
2161
+ type: 'address',
2162
+ },
2163
+ {
2164
+ name: 'legoBook',
2165
+ type: 'address',
2166
+ },
2167
+ {
2168
+ name: 'appraiser',
2169
+ type: 'address',
2170
+ },
2171
+ ],
2172
+ },
1599
2173
  ],
1600
2174
  outputs: [
1601
- {
1602
- name: '',
1603
- type: 'address',
1604
- },
1605
2175
  {
1606
2176
  name: '',
1607
2177
  type: 'uint256',
@@ -1613,12 +2183,30 @@ export const abi = [
1613
2183
  ],
1614
2184
  },
1615
2185
  {
1616
- stateMutability: 'view',
2186
+ stateMutability: 'nonpayable',
1617
2187
  type: 'function',
1618
- name: 'totalAssets',
2188
+ name: 'deleverageWithSpecificAssets',
1619
2189
  inputs: [
1620
2190
  {
1621
- name: '_vaultToken',
2191
+ name: '_assets',
2192
+ type: 'tuple[]',
2193
+ components: [
2194
+ {
2195
+ name: 'vaultId',
2196
+ type: 'uint256',
2197
+ },
2198
+ {
2199
+ name: 'asset',
2200
+ type: 'address',
2201
+ },
2202
+ {
2203
+ name: 'targetRepayAmount',
2204
+ type: 'uint256',
2205
+ },
2206
+ ],
2207
+ },
2208
+ {
2209
+ name: '_user',
1622
2210
  type: 'address',
1623
2211
  },
1624
2212
  ],
@@ -1630,99 +2218,113 @@ export const abi = [
1630
2218
  ],
1631
2219
  },
1632
2220
  {
1633
- stateMutability: 'view',
2221
+ stateMutability: 'nonpayable',
1634
2222
  type: 'function',
1635
- name: 'totalBorrows',
2223
+ name: 'claimIncentives',
1636
2224
  inputs: [
1637
2225
  {
1638
- name: '_vaultToken',
2226
+ name: '_user',
1639
2227
  type: 'address',
1640
2228
  },
1641
- ],
1642
- outputs: [
1643
- {
1644
- name: '',
1645
- type: 'uint256',
1646
- },
1647
- ],
1648
- },
1649
- {
1650
- stateMutability: 'view',
1651
- type: 'function',
1652
- name: 'getPricePerShare',
1653
- inputs: [
1654
2229
  {
1655
- name: '_asset',
2230
+ name: '_rewardToken',
1656
2231
  type: 'address',
1657
2232
  },
1658
2233
  {
1659
- name: '_decimals',
2234
+ name: '_rewardAmount',
1660
2235
  type: 'uint256',
1661
2236
  },
2237
+ {
2238
+ name: '_proofs',
2239
+ type: 'bytes32[]',
2240
+ },
1662
2241
  ],
1663
2242
  outputs: [
1664
2243
  {
1665
2244
  name: '',
1666
2245
  type: 'uint256',
1667
2246
  },
2247
+ {
2248
+ name: '',
2249
+ type: 'uint256',
2250
+ },
1668
2251
  ],
1669
2252
  },
1670
2253
  {
1671
2254
  stateMutability: 'nonpayable',
1672
2255
  type: 'function',
1673
- name: 'addAssetOpportunity',
2256
+ name: 'claimIncentives',
1674
2257
  inputs: [
1675
2258
  {
1676
- name: '_asset',
2259
+ name: '_user',
1677
2260
  type: 'address',
1678
2261
  },
1679
2262
  {
1680
- name: '_vaultAddr',
2263
+ name: '_rewardToken',
1681
2264
  type: 'address',
1682
2265
  },
2266
+ {
2267
+ name: '_rewardAmount',
2268
+ type: 'uint256',
2269
+ },
2270
+ {
2271
+ name: '_proofs',
2272
+ type: 'bytes32[]',
2273
+ },
2274
+ {
2275
+ name: '_miniAddys',
2276
+ type: 'tuple',
2277
+ components: [
2278
+ {
2279
+ name: 'ledger',
2280
+ type: 'address',
2281
+ },
2282
+ {
2283
+ name: 'missionControl',
2284
+ type: 'address',
2285
+ },
2286
+ {
2287
+ name: 'legoBook',
2288
+ type: 'address',
2289
+ },
2290
+ {
2291
+ name: 'appraiser',
2292
+ type: 'address',
2293
+ },
2294
+ ],
2295
+ },
1683
2296
  ],
1684
- outputs: [],
1685
- },
1686
- {
1687
- stateMutability: 'nonpayable',
1688
- type: 'function',
1689
- name: 'removeAssetOpportunity',
1690
- inputs: [
2297
+ outputs: [
1691
2298
  {
1692
- name: '_asset',
1693
- type: 'address',
2299
+ name: '',
2300
+ type: 'uint256',
1694
2301
  },
1695
2302
  {
1696
- name: '_vaultAddr',
1697
- type: 'address',
2303
+ name: '',
2304
+ type: 'uint256',
1698
2305
  },
1699
2306
  ],
1700
- outputs: [],
1701
2307
  },
1702
2308
  {
1703
2309
  stateMutability: 'nonpayable',
1704
2310
  type: 'function',
1705
- name: 'swapTokens',
2311
+ name: 'claimRewards',
1706
2312
  inputs: [
1707
2313
  {
1708
- name: '_amountIn',
1709
- type: 'uint256',
1710
- },
1711
- {
1712
- name: '_minAmountOut',
1713
- type: 'uint256',
2314
+ name: '_user',
2315
+ type: 'address',
1714
2316
  },
1715
2317
  {
1716
- name: '_tokenPath',
1717
- type: 'address[]',
2318
+ name: '_rewardToken',
2319
+ type: 'address',
1718
2320
  },
1719
2321
  {
1720
- name: '_poolPath',
1721
- type: 'address[]',
2322
+ name: '_rewardAmount',
2323
+ type: 'uint256',
1722
2324
  },
1723
2325
  {
1724
- name: '_recipient',
1725
- type: 'address',
2326
+ name: '_extraData',
2327
+ type: 'bytes32',
1726
2328
  },
1727
2329
  ],
1728
2330
  outputs: [
@@ -1734,36 +2336,28 @@ export const abi = [
1734
2336
  name: '',
1735
2337
  type: 'uint256',
1736
2338
  },
1737
- {
1738
- name: '',
1739
- type: 'uint256',
1740
- },
1741
2339
  ],
1742
2340
  },
1743
2341
  {
1744
2342
  stateMutability: 'nonpayable',
1745
2343
  type: 'function',
1746
- name: 'swapTokens',
2344
+ name: 'claimRewards',
1747
2345
  inputs: [
1748
2346
  {
1749
- name: '_amountIn',
1750
- type: 'uint256',
1751
- },
1752
- {
1753
- name: '_minAmountOut',
1754
- type: 'uint256',
2347
+ name: '_user',
2348
+ type: 'address',
1755
2349
  },
1756
2350
  {
1757
- name: '_tokenPath',
1758
- type: 'address[]',
2351
+ name: '_rewardToken',
2352
+ type: 'address',
1759
2353
  },
1760
2354
  {
1761
- name: '_poolPath',
1762
- type: 'address[]',
2355
+ name: '_rewardAmount',
2356
+ type: 'uint256',
1763
2357
  },
1764
2358
  {
1765
- name: '_recipient',
1766
- type: 'address',
2359
+ name: '_extraData',
2360
+ type: 'bytes32',
1767
2361
  },
1768
2362
  {
1769
2363
  name: '_miniAddys',
@@ -1797,6 +2391,48 @@ export const abi = [
1797
2391
  name: '',
1798
2392
  type: 'uint256',
1799
2393
  },
2394
+ ],
2395
+ },
2396
+ {
2397
+ stateMutability: 'view',
2398
+ type: 'function',
2399
+ name: 'hasClaimableRewards',
2400
+ inputs: [
2401
+ {
2402
+ name: '_user',
2403
+ type: 'address',
2404
+ },
2405
+ ],
2406
+ outputs: [
2407
+ {
2408
+ name: '',
2409
+ type: 'bool',
2410
+ },
2411
+ ],
2412
+ },
2413
+ {
2414
+ stateMutability: 'view',
2415
+ type: 'function',
2416
+ name: 'getAccessForLego',
2417
+ inputs: [
2418
+ {
2419
+ name: '_user',
2420
+ type: 'address',
2421
+ },
2422
+ {
2423
+ name: '_action',
2424
+ type: 'uint256',
2425
+ },
2426
+ ],
2427
+ outputs: [
2428
+ {
2429
+ name: '',
2430
+ type: 'address',
2431
+ },
2432
+ {
2433
+ name: '',
2434
+ type: 'string',
2435
+ },
1800
2436
  {
1801
2437
  name: '',
1802
2438
  type: 'uint256',
@@ -2646,28 +3282,19 @@ export const abi = [
2646
3282
  {
2647
3283
  stateMutability: 'view',
2648
3284
  type: 'function',
2649
- name: 'getPrice',
2650
- inputs: [
2651
- {
2652
- name: '_asset',
2653
- type: 'address',
2654
- },
2655
- {
2656
- name: '_decimals',
2657
- type: 'uint256',
2658
- },
2659
- ],
3285
+ name: 'RIPE_REGISTRY',
3286
+ inputs: [],
2660
3287
  outputs: [
2661
3288
  {
2662
3289
  name: '',
2663
- type: 'uint256',
3290
+ type: 'address',
2664
3291
  },
2665
3292
  ],
2666
3293
  },
2667
3294
  {
2668
3295
  stateMutability: 'view',
2669
3296
  type: 'function',
2670
- name: 'RIPE_REGISTRY',
3297
+ name: 'RIPE_GREEN_TOKEN',
2671
3298
  inputs: [],
2672
3299
  outputs: [
2673
3300
  {
@@ -2679,7 +3306,7 @@ export const abi = [
2679
3306
  {
2680
3307
  stateMutability: 'view',
2681
3308
  type: 'function',
2682
- name: 'RIPE_GREEN_TOKEN',
3309
+ name: 'RIPE_SAVINGS_GREEN',
2683
3310
  inputs: [],
2684
3311
  outputs: [
2685
3312
  {
@@ -2691,7 +3318,7 @@ export const abi = [
2691
3318
  {
2692
3319
  stateMutability: 'view',
2693
3320
  type: 'function',
2694
- name: 'RIPE_SAVINGS_GREEN',
3321
+ name: 'RIPE_TOKEN',
2695
3322
  inputs: [],
2696
3323
  outputs: [
2697
3324
  {
@@ -2703,7 +3330,7 @@ export const abi = [
2703
3330
  {
2704
3331
  stateMutability: 'view',
2705
3332
  type: 'function',
2706
- name: 'RIPE_TOKEN',
3333
+ name: 'USDC',
2707
3334
  inputs: [],
2708
3335
  outputs: [
2709
3336
  {
@@ -2724,11 +3351,15 @@ export const abi = [
2724
3351
  name: '_ripeRegistry',
2725
3352
  type: 'address',
2726
3353
  },
3354
+ {
3355
+ name: '_usdc',
3356
+ type: 'address',
3357
+ },
2727
3358
  ],
2728
3359
  outputs: [],
2729
3360
  },
2730
3361
  ];
2731
- export const deployAddress = '0xC402449F5Dd3781d08cb357D9709505fDa8F3696';
3362
+ export const deployAddress = '0x272812fC816a6a8C1A2988b24D06878493459A54';
2732
3363
  function getRequest(method, args, contractAddressOrOptions) {
2733
3364
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2734
3365
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2764,36 +3395,47 @@ export const call = {
2764
3395
  getAssets: (...args) => getRequest('getAssets', args),
2765
3396
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2766
3397
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2767
- isPaused: (...args) => getRequest('isPaused', args),
3398
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3399
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3400
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3401
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2768
3402
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2769
3403
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2770
3404
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2771
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2772
3405
  assets: (...args) => getRequest('assets', args),
2773
3406
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2774
3407
  numAssets: (...args) => getRequest('numAssets', args),
3408
+ snapShotData: (...args) => getRequest('snapShotData', args),
3409
+ snapShots: (...args) => getRequest('snapShots', args),
3410
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3411
+ isPaused: (...args) => getRequest('isPaused', args),
2775
3412
  hasCapability: (...args) => getRequest('hasCapability', args),
2776
3413
  getRegistries: (...args) => getRequest('getRegistries', args),
2777
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2778
3414
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2779
3415
  isDexLego: (...args) => getRequest('isDexLego', args),
2780
- isRebasing: (...args) => getRequest('isRebasing', args),
2781
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2782
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2783
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2784
3416
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3417
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2785
3418
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2786
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2787
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3419
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2788
3420
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3421
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3422
+ isRebasing: (...args) => getRequest('isRebasing', args),
3423
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3424
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2789
3425
  totalAssets: (...args) => getRequest('totalAssets', args),
2790
3426
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2791
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2792
- getPrice: (...args) => getRequest('getPrice', args),
3427
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3428
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3429
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3430
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3431
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3432
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3433
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2793
3434
  RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2794
3435
  RIPE_GREEN_TOKEN: (...args) => getRequest('RIPE_GREEN_TOKEN', args),
2795
3436
  RIPE_SAVINGS_GREEN: (...args) => getRequest('RIPE_SAVINGS_GREEN', args),
2796
3437
  RIPE_TOKEN: (...args) => getRequest('RIPE_TOKEN', args),
3438
+ USDC: (...args) => getRequest('USDC', args),
2797
3439
  };
2798
3440
  function getMutation(functionName) {
2799
3441
  return {
@@ -2808,16 +3450,20 @@ export const mutation = {
2808
3450
  pause: getMutation('pause'),
2809
3451
  recoverFunds: getMutation('recoverFunds'),
2810
3452
  recoverFundsMany: getMutation('recoverFundsMany'),
3453
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3454
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3455
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3456
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3457
+ depositForYield: getMutation('depositForYield'),
3458
+ withdrawFromYield: getMutation('withdrawFromYield'),
3459
+ swapTokens: getMutation('swapTokens'),
2811
3460
  addCollateral: getMutation('addCollateral'),
2812
3461
  removeCollateral: getMutation('removeCollateral'),
2813
3462
  borrow: getMutation('borrow'),
2814
3463
  repayDebt: getMutation('repayDebt'),
3464
+ deleverageWithSpecificAssets: getMutation('deleverageWithSpecificAssets'),
3465
+ claimIncentives: getMutation('claimIncentives'),
2815
3466
  claimRewards: getMutation('claimRewards'),
2816
- depositForYield: getMutation('depositForYield'),
2817
- withdrawFromYield: getMutation('withdrawFromYield'),
2818
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2819
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2820
- swapTokens: getMutation('swapTokens'),
2821
3467
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2822
3468
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
2823
3469
  addLiquidity: getMutation('addLiquidity'),
@@ -2837,50 +3483,65 @@ export function toSdk(publicClient, walletClient) {
2837
3483
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2838
3484
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2839
3485
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2840
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3486
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3487
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3488
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3489
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2841
3490
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2842
3491
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2843
3492
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2844
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2845
3493
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2846
3494
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2847
3495
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3496
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3497
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3498
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3499
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2848
3500
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2849
3501
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2850
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2851
3502
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2852
3503
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2853
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2854
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2855
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2856
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2857
3504
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3505
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2858
3506
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2859
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2860
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3507
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2861
3508
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3509
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3510
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3511
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3512
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2862
3513
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2863
3514
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2864
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
2865
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3515
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3516
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3517
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3518
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3519
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3520
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3521
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2866
3522
  RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2867
3523
  RIPE_GREEN_TOKEN: (...args) => singleQuery(publicClient, call.RIPE_GREEN_TOKEN(...args)),
2868
3524
  RIPE_SAVINGS_GREEN: (...args) => singleQuery(publicClient, call.RIPE_SAVINGS_GREEN(...args)),
2869
3525
  RIPE_TOKEN: (...args) => singleQuery(publicClient, call.RIPE_TOKEN(...args)),
3526
+ USDC: (...args) => singleQuery(publicClient, call.USDC(...args)),
2870
3527
  // Mutations
2871
3528
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2872
3529
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2873
3530
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3531
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3532
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3533
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3534
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3535
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3536
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3537
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2874
3538
  addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
2875
3539
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2876
3540
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2877
3541
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
3542
+ deleverageWithSpecificAssets: (...args) => mutate(walletClient, mutation.deleverageWithSpecificAssets)(...args),
3543
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2878
3544
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2879
- depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2880
- withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2881
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2882
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2883
- swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2884
3545
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2885
3546
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
2886
3547
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),