@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
@@ -92,6 +92,10 @@ export const abi = [
92
92
  name: 'billing',
93
93
  type: 'address',
94
94
  },
95
+ {
96
+ name: 'vaultRegistry',
97
+ type: 'address',
98
+ },
95
99
  ],
96
100
  },
97
101
  ],
@@ -269,16 +273,12 @@ export const abi = [
269
273
  {
270
274
  stateMutability: 'view',
271
275
  type: 'function',
272
- name: 'getUsdValue',
276
+ name: 'lastPricePerShare',
273
277
  inputs: [
274
278
  {
275
279
  name: '_asset',
276
280
  type: 'address',
277
281
  },
278
- {
279
- name: '_amount',
280
- type: 'uint256',
281
- },
282
282
  ],
283
283
  outputs: [
284
284
  {
@@ -300,10 +300,6 @@ export const abi = [
300
300
  name: '_amount',
301
301
  type: 'uint256',
302
302
  },
303
- {
304
- name: '_missionControl',
305
- type: 'address',
306
- },
307
303
  ],
308
304
  outputs: [
309
305
  {
@@ -329,10 +325,6 @@ export const abi = [
329
325
  name: '_missionControl',
330
326
  type: 'address',
331
327
  },
332
- {
333
- name: '_legoBook',
334
- type: 'address',
335
- },
336
328
  ],
337
329
  outputs: [
338
330
  {
@@ -362,10 +354,6 @@ export const abi = [
362
354
  name: '_legoBook',
363
355
  type: 'address',
364
356
  },
365
- {
366
- name: '_ledger',
367
- type: 'address',
368
- },
369
357
  ],
370
358
  outputs: [
371
359
  {
@@ -377,56 +365,26 @@ export const abi = [
377
365
  {
378
366
  stateMutability: 'view',
379
367
  type: 'function',
380
- name: 'getPrice',
368
+ name: 'getUsdValue',
381
369
  inputs: [
382
370
  {
383
371
  name: '_asset',
384
372
  type: 'address',
385
373
  },
386
- ],
387
- outputs: [
388
374
  {
389
- name: '',
375
+ name: '_amount',
390
376
  type: 'uint256',
391
377
  },
392
- ],
393
- },
394
- {
395
- stateMutability: 'view',
396
- type: 'function',
397
- name: 'getPrice',
398
- inputs: [
399
- {
400
- name: '_asset',
401
- type: 'address',
402
- },
403
378
  {
404
379
  name: '_missionControl',
405
380
  type: 'address',
406
381
  },
407
- ],
408
- outputs: [
409
- {
410
- name: '',
411
- type: 'uint256',
412
- },
413
- ],
414
- },
415
- {
416
- stateMutability: 'view',
417
- type: 'function',
418
- name: 'getPrice',
419
- inputs: [
420
- {
421
- name: '_asset',
422
- type: 'address',
423
- },
424
382
  {
425
- name: '_missionControl',
383
+ name: '_legoBook',
426
384
  type: 'address',
427
385
  },
428
386
  {
429
- name: '_legoBook',
387
+ name: '_ledger',
430
388
  type: 'address',
431
389
  },
432
390
  ],
@@ -440,23 +398,15 @@ export const abi = [
440
398
  {
441
399
  stateMutability: 'view',
442
400
  type: 'function',
443
- name: 'getPrice',
401
+ name: 'getUnderlyingUsdValue',
444
402
  inputs: [
445
403
  {
446
404
  name: '_asset',
447
405
  type: 'address',
448
406
  },
449
407
  {
450
- name: '_missionControl',
451
- type: 'address',
452
- },
453
- {
454
- name: '_legoBook',
455
- type: 'address',
456
- },
457
- {
458
- name: '_ledger',
459
- type: 'address',
408
+ name: '_amount',
409
+ type: 'uint256',
460
410
  },
461
411
  ],
462
412
  outputs: [
@@ -631,58 +581,12 @@ export const abi = [
631
581
  {
632
582
  stateMutability: 'view',
633
583
  type: 'function',
634
- name: 'getNormalAssetPrice',
635
- inputs: [
636
- {
637
- name: '_asset',
638
- type: 'address',
639
- },
640
- ],
641
- outputs: [
642
- {
643
- name: '',
644
- type: 'uint256',
645
- },
646
- ],
647
- },
648
- {
649
- stateMutability: 'view',
650
- type: 'function',
651
- name: 'getNormalAssetPrice',
652
- inputs: [
653
- {
654
- name: '_asset',
655
- type: 'address',
656
- },
657
- {
658
- name: '_missionControl',
659
- type: 'address',
660
- },
661
- ],
662
- outputs: [
663
- {
664
- name: '',
665
- type: 'uint256',
666
- },
667
- ],
668
- },
669
- {
670
- stateMutability: 'view',
671
- type: 'function',
672
- name: 'getNormalAssetPrice',
584
+ name: 'getRipePrice',
673
585
  inputs: [
674
586
  {
675
587
  name: '_asset',
676
588
  type: 'address',
677
589
  },
678
- {
679
- name: '_missionControl',
680
- type: 'address',
681
- },
682
- {
683
- name: '_legoBook',
684
- type: 'address',
685
- },
686
590
  ],
687
591
  outputs: [
688
592
  {
@@ -694,63 +598,17 @@ export const abi = [
694
598
  {
695
599
  stateMutability: 'view',
696
600
  type: 'function',
697
- name: 'getNormalAssetPrice',
698
- inputs: [
699
- {
700
- name: '_asset',
701
- type: 'address',
702
- },
703
- {
704
- name: '_missionControl',
705
- type: 'address',
706
- },
707
- {
708
- name: '_legoBook',
709
- type: 'address',
710
- },
711
- {
712
- name: '_ledger',
713
- type: 'address',
714
- },
715
- ],
716
- outputs: [
717
- {
718
- name: '',
719
- type: 'uint256',
720
- },
721
- ],
722
- },
723
- {
724
- stateMutability: 'nonpayable',
725
- type: 'function',
726
- name: 'updateAndGetNormalAssetPrice',
601
+ name: 'getAssetAmountFromRipe',
727
602
  inputs: [
728
603
  {
729
604
  name: '_asset',
730
605
  type: 'address',
731
606
  },
732
- ],
733
- outputs: [
734
607
  {
735
- name: '',
608
+ name: '_usdValue',
736
609
  type: 'uint256',
737
610
  },
738
611
  ],
739
- },
740
- {
741
- stateMutability: 'nonpayable',
742
- type: 'function',
743
- name: 'updateAndGetNormalAssetPrice',
744
- inputs: [
745
- {
746
- name: '_asset',
747
- type: 'address',
748
- },
749
- {
750
- name: '_missionControl',
751
- type: 'address',
752
- },
753
- ],
754
612
  outputs: [
755
613
  {
756
614
  name: '',
@@ -760,431 +618,21 @@ export const abi = [
760
618
  },
761
619
  {
762
620
  stateMutability: 'nonpayable',
763
- type: 'function',
764
- name: 'updateAndGetNormalAssetPrice',
765
- inputs: [
766
- {
767
- name: '_asset',
768
- type: 'address',
769
- },
770
- {
771
- name: '_missionControl',
772
- type: 'address',
773
- },
774
- {
775
- name: '_legoBook',
776
- type: 'address',
777
- },
778
- ],
779
- outputs: [
780
- {
781
- name: '',
782
- type: 'uint256',
783
- },
784
- ],
785
- },
786
- {
787
- stateMutability: 'view',
788
- type: 'function',
789
- name: 'getPricePerShare',
790
- inputs: [
791
- {
792
- name: '_asset',
793
- type: 'address',
794
- },
795
- ],
796
- outputs: [
797
- {
798
- name: '',
799
- type: 'uint256',
800
- },
801
- ],
802
- },
803
- {
804
- stateMutability: 'view',
805
- type: 'function',
806
- name: 'getPricePerShare',
807
- inputs: [
808
- {
809
- name: '_asset',
810
- type: 'address',
811
- },
812
- {
813
- name: '_missionControl',
814
- type: 'address',
815
- },
816
- ],
817
- outputs: [
818
- {
819
- name: '',
820
- type: 'uint256',
821
- },
822
- ],
823
- },
824
- {
825
- stateMutability: 'view',
826
- type: 'function',
827
- name: 'getPricePerShare',
621
+ type: 'constructor',
828
622
  inputs: [
829
623
  {
830
- name: '_asset',
831
- type: 'address',
832
- },
833
- {
834
- name: '_missionControl',
624
+ name: '_undyHq',
835
625
  type: 'address',
836
626
  },
837
627
  {
838
- name: '_legoBook',
628
+ name: '_ripeHq',
839
629
  type: 'address',
840
630
  },
841
631
  ],
842
- outputs: [
843
- {
844
- name: '',
845
- type: 'uint256',
846
- },
847
- ],
848
- },
849
- {
850
- stateMutability: 'view',
851
- type: 'function',
852
- name: 'getPricePerShare',
853
- inputs: [
854
- {
855
- name: '_asset',
856
- type: 'address',
857
- },
858
- {
859
- name: '_missionControl',
860
- type: 'address',
861
- },
862
- {
863
- name: '_legoBook',
864
- type: 'address',
865
- },
866
- {
867
- name: '_ledger',
868
- type: 'address',
869
- },
870
- ],
871
- outputs: [
872
- {
873
- name: '',
874
- type: 'uint256',
875
- },
876
- ],
877
- },
878
- {
879
- stateMutability: 'view',
880
- type: 'function',
881
- name: 'getPricePerShareWithConfig',
882
- inputs: [
883
- {
884
- name: '_asset',
885
- type: 'address',
886
- },
887
- {
888
- name: '_legoAddr',
889
- type: 'address',
890
- },
891
- {
892
- name: '_staleBlocks',
893
- type: 'uint256',
894
- },
895
- {
896
- name: '_decimals',
897
- type: 'uint256',
898
- },
899
- ],
900
- outputs: [
901
- {
902
- name: '',
903
- type: 'uint256',
904
- },
905
- ],
906
- },
907
- {
908
- stateMutability: 'nonpayable',
909
- type: 'function',
910
- name: 'updateAndGetPricePerShare',
911
- inputs: [
912
- {
913
- name: '_asset',
914
- type: 'address',
915
- },
916
- ],
917
- outputs: [
918
- {
919
- name: '',
920
- type: 'uint256',
921
- },
922
- ],
923
- },
924
- {
925
- stateMutability: 'nonpayable',
926
- type: 'function',
927
- name: 'updateAndGetPricePerShare',
928
- inputs: [
929
- {
930
- name: '_asset',
931
- type: 'address',
932
- },
933
- {
934
- name: '_missionControl',
935
- type: 'address',
936
- },
937
- ],
938
- outputs: [
939
- {
940
- name: '',
941
- type: 'uint256',
942
- },
943
- ],
944
- },
945
- {
946
- stateMutability: 'nonpayable',
947
- type: 'function',
948
- name: 'updateAndGetPricePerShare',
949
- inputs: [
950
- {
951
- name: '_asset',
952
- type: 'address',
953
- },
954
- {
955
- name: '_missionControl',
956
- type: 'address',
957
- },
958
- {
959
- name: '_legoBook',
960
- type: 'address',
961
- },
962
- ],
963
- outputs: [
964
- {
965
- name: '',
966
- type: 'uint256',
967
- },
968
- ],
969
- },
970
- {
971
- stateMutability: 'view',
972
- type: 'function',
973
- name: 'getRipePrice',
974
- inputs: [
975
- {
976
- name: '_asset',
977
- type: 'address',
978
- },
979
- ],
980
- outputs: [
981
- {
982
- name: '',
983
- type: 'uint256',
984
- },
985
- ],
986
- },
987
- {
988
- stateMutability: 'view',
989
- type: 'function',
990
- name: 'getProfitCalcConfig',
991
- inputs: [
992
- {
993
- name: '_asset',
994
- type: 'address',
995
- },
996
- ],
997
- outputs: [
998
- {
999
- name: '',
1000
- type: 'tuple',
1001
- components: [
1002
- {
1003
- name: 'legoId',
1004
- type: 'uint256',
1005
- },
1006
- {
1007
- name: 'legoAddr',
1008
- type: 'address',
1009
- },
1010
- {
1011
- name: 'decimals',
1012
- type: 'uint256',
1013
- },
1014
- {
1015
- name: 'staleBlocks',
1016
- type: 'uint256',
1017
- },
1018
- {
1019
- name: 'isYieldAsset',
1020
- type: 'bool',
1021
- },
1022
- {
1023
- name: 'isRebasing',
1024
- type: 'bool',
1025
- },
1026
- {
1027
- name: 'underlyingAsset',
1028
- type: 'address',
1029
- },
1030
- {
1031
- name: 'maxYieldIncrease',
1032
- type: 'uint256',
1033
- },
1034
- {
1035
- name: 'performanceFee',
1036
- type: 'uint256',
1037
- },
1038
- ],
1039
- },
1040
- ],
1041
- },
1042
- {
1043
- stateMutability: 'view',
1044
- type: 'function',
1045
- name: 'getAssetUsdValueConfig',
1046
- inputs: [
1047
- {
1048
- name: '_asset',
1049
- type: 'address',
1050
- },
1051
- ],
1052
- outputs: [
1053
- {
1054
- name: '',
1055
- type: 'tuple',
1056
- components: [
1057
- {
1058
- name: 'legoId',
1059
- type: 'uint256',
1060
- },
1061
- {
1062
- name: 'legoAddr',
1063
- type: 'address',
1064
- },
1065
- {
1066
- name: 'decimals',
1067
- type: 'uint256',
1068
- },
1069
- {
1070
- name: 'staleBlocks',
1071
- type: 'uint256',
1072
- },
1073
- {
1074
- name: 'isYieldAsset',
1075
- type: 'bool',
1076
- },
1077
- {
1078
- name: 'underlyingAsset',
1079
- type: 'address',
1080
- },
1081
- ],
1082
- },
1083
- ],
1084
- },
1085
- {
1086
- stateMutability: 'view',
1087
- type: 'function',
1088
- name: 'lastPrice',
1089
- inputs: [
1090
- {
1091
- name: 'arg0',
1092
- type: 'address',
1093
- },
1094
- ],
1095
- outputs: [
1096
- {
1097
- name: '',
1098
- type: 'tuple',
1099
- components: [
1100
- {
1101
- name: 'price',
1102
- type: 'uint256',
1103
- },
1104
- {
1105
- name: 'lastUpdate',
1106
- type: 'uint256',
1107
- },
1108
- ],
1109
- },
1110
- ],
1111
- },
1112
- {
1113
- stateMutability: 'view',
1114
- type: 'function',
1115
- name: 'lastPricePerShare',
1116
- inputs: [
1117
- {
1118
- name: 'arg0',
1119
- type: 'address',
1120
- },
1121
- ],
1122
- outputs: [
1123
- {
1124
- name: '',
1125
- type: 'tuple',
1126
- components: [
1127
- {
1128
- name: 'pricePerShare',
1129
- type: 'uint256',
1130
- },
1131
- {
1132
- name: 'lastUpdate',
1133
- type: 'uint256',
1134
- },
1135
- ],
1136
- },
1137
- ],
1138
- },
1139
- {
1140
- stateMutability: 'view',
1141
- type: 'function',
1142
- name: 'WETH',
1143
- inputs: [],
1144
- outputs: [
1145
- {
1146
- name: '',
1147
- type: 'address',
1148
- },
1149
- ],
1150
- },
1151
- {
1152
- stateMutability: 'view',
1153
- type: 'function',
1154
- name: 'ETH',
1155
- inputs: [],
1156
- outputs: [
1157
- {
1158
- name: '',
1159
- type: 'address',
1160
- },
1161
- ],
1162
- },
1163
- {
1164
- stateMutability: 'nonpayable',
1165
- type: 'constructor',
1166
- inputs: [
1167
- {
1168
- name: '_undyHq',
1169
- type: 'address',
1170
- },
1171
- {
1172
- name: '_ripeHq',
1173
- type: 'address',
1174
- },
1175
- {
1176
- name: '_wethAddr',
1177
- type: 'address',
1178
- },
1179
- {
1180
- name: '_ethAddr',
1181
- type: 'address',
1182
- },
1183
- ],
1184
- outputs: [],
632
+ outputs: [],
1185
633
  },
1186
634
  ];
1187
- export const deployAddress = '0x50B32Df18452986f35Cb5B3d59B2Ea6C101ab2ad';
635
+ export const deployAddress = '0x8C6521e6f2676a7AdC8484444f161c3538e545e2';
1188
636
  function getRequest(method, args, contractAddressOrOptions) {
1189
637
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1190
638
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -1218,18 +666,11 @@ export const call = {
1218
666
  canMintUndy: (...args) => getRequest('canMintUndy', args),
1219
667
  isPaused: (...args) => getRequest('isPaused', args),
1220
668
  calculateYieldProfitsNoUpdate: (...args) => getRequest('calculateYieldProfitsNoUpdate', args),
669
+ lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
1221
670
  getUsdValue: (...args) => getRequest('getUsdValue', args),
1222
- getPrice: (...args) => getRequest('getPrice', args),
1223
- getNormalAssetPrice: (...args) => getRequest('getNormalAssetPrice', args),
1224
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
1225
- getPricePerShareWithConfig: (...args) => getRequest('getPricePerShareWithConfig', args),
671
+ getUnderlyingUsdValue: (...args) => getRequest('getUnderlyingUsdValue', args),
1226
672
  getRipePrice: (...args) => getRequest('getRipePrice', args),
1227
- getProfitCalcConfig: (...args) => getRequest('getProfitCalcConfig', args),
1228
- getAssetUsdValueConfig: (...args) => getRequest('getAssetUsdValueConfig', args),
1229
- lastPrice: (...args) => getRequest('lastPrice', args),
1230
- lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
1231
- WETH: (...args) => getRequest('WETH', args),
1232
- ETH: (...args) => getRequest('ETH', args),
673
+ getAssetAmountFromRipe: (...args) => getRequest('getAssetAmountFromRipe', args),
1233
674
  };
1234
675
  function getMutation(functionName) {
1235
676
  return {
@@ -1247,8 +688,6 @@ export const mutation = {
1247
688
  calculateYieldProfits: getMutation('calculateYieldProfits'),
1248
689
  updatePriceAndGetUsdValue: getMutation('updatePriceAndGetUsdValue'),
1249
690
  updatePriceAndGetUsdValueAndIsYieldAsset: getMutation('updatePriceAndGetUsdValueAndIsYieldAsset'),
1250
- updateAndGetNormalAssetPrice: getMutation('updateAndGetNormalAssetPrice'),
1251
- updateAndGetPricePerShare: getMutation('updateAndGetPricePerShare'),
1252
691
  };
1253
692
  export function toSdk(publicClient, walletClient) {
1254
693
  return {
@@ -1260,18 +699,11 @@ export function toSdk(publicClient, walletClient) {
1260
699
  canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
1261
700
  isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1262
701
  calculateYieldProfitsNoUpdate: (...args) => singleQuery(publicClient, call.calculateYieldProfitsNoUpdate(...args)),
702
+ lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
1263
703
  getUsdValue: (...args) => singleQuery(publicClient, call.getUsdValue(...args)),
1264
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
1265
- getNormalAssetPrice: (...args) => singleQuery(publicClient, call.getNormalAssetPrice(...args)),
1266
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
1267
- getPricePerShareWithConfig: (...args) => singleQuery(publicClient, call.getPricePerShareWithConfig(...args)),
704
+ getUnderlyingUsdValue: (...args) => singleQuery(publicClient, call.getUnderlyingUsdValue(...args)),
1268
705
  getRipePrice: (...args) => singleQuery(publicClient, call.getRipePrice(...args)),
1269
- getProfitCalcConfig: (...args) => singleQuery(publicClient, call.getProfitCalcConfig(...args)),
1270
- getAssetUsdValueConfig: (...args) => singleQuery(publicClient, call.getAssetUsdValueConfig(...args)),
1271
- lastPrice: (...args) => singleQuery(publicClient, call.lastPrice(...args)),
1272
- lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
1273
- WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
1274
- ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
706
+ getAssetAmountFromRipe: (...args) => singleQuery(publicClient, call.getAssetAmountFromRipe(...args)),
1275
707
  // Mutations
1276
708
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1277
709
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
@@ -1279,7 +711,5 @@ export function toSdk(publicClient, walletClient) {
1279
711
  calculateYieldProfits: (...args) => mutate(walletClient, mutation.calculateYieldProfits)(...args),
1280
712
  updatePriceAndGetUsdValue: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValue)(...args),
1281
713
  updatePriceAndGetUsdValueAndIsYieldAsset: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValueAndIsYieldAsset)(...args),
1282
- updateAndGetNormalAssetPrice: (...args) => mutate(walletClient, mutation.updateAndGetNormalAssetPrice)(...args),
1283
- updateAndGetPricePerShare: (...args) => mutate(walletClient, mutation.updateAndGetPricePerShare)(...args),
1284
714
  };
1285
715
  }