@alphafi/alphafi-sdk 0.0.55 → 0.0.57

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 (303) hide show
  1. package/dist/cjs/common/coins.d.ts.map +1 -1
  2. package/dist/cjs/common/coins.js +6 -0
  3. package/dist/cjs/common/coins.js.map +1 -1
  4. package/dist/cjs/common/constants.d.ts +62 -0
  5. package/dist/cjs/common/constants.d.ts.map +1 -1
  6. package/dist/cjs/common/constants.js +55 -22
  7. package/dist/cjs/common/constants.js.map +1 -1
  8. package/dist/cjs/common/maps.d.ts.map +1 -1
  9. package/dist/cjs/common/maps.js +91 -39
  10. package/dist/cjs/common/maps.js.map +1 -1
  11. package/dist/cjs/common/pyth.d.ts +1 -1
  12. package/dist/cjs/common/pyth.d.ts.map +1 -1
  13. package/dist/cjs/common/pyth.js.map +1 -1
  14. package/dist/cjs/common/types.d.ts +4 -4
  15. package/dist/cjs/common/types.d.ts.map +1 -1
  16. package/dist/cjs/common/types.js.map +1 -1
  17. package/dist/cjs/getLastAutoCompoundTime.js +2 -2
  18. package/dist/cjs/getLastAutoCompoundTime.js.map +1 -1
  19. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  20. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
  21. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  22. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +1 -0
  23. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  24. package/dist/cjs/transactions/7k.d.ts +1 -1
  25. package/dist/cjs/transactions/7k.d.ts.map +1 -1
  26. package/dist/cjs/transactions/7k.js +2 -1
  27. package/dist/cjs/transactions/7k.js.map +1 -1
  28. package/dist/cjs/transactions/blueRewards.d.ts.map +1 -1
  29. package/dist/cjs/transactions/blueRewards.js +18 -6
  30. package/dist/cjs/transactions/blueRewards.js.map +1 -1
  31. package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
  32. package/dist/cjs/transactions/bluefin.js +280 -12
  33. package/dist/cjs/transactions/bluefin.js.map +1 -1
  34. package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
  35. package/dist/cjs/transactions/collect_rewards.js +5 -1
  36. package/dist/cjs/transactions/collect_rewards.js.map +1 -1
  37. package/dist/cjs/transactions/deposit.d.ts.map +1 -1
  38. package/dist/cjs/transactions/deposit.js +2 -4
  39. package/dist/cjs/transactions/deposit.js.map +1 -1
  40. package/dist/cjs/transactions/navi.d.ts.map +1 -1
  41. package/dist/cjs/transactions/navi.js +64 -0
  42. package/dist/cjs/transactions/navi.js.map +1 -1
  43. package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
  44. package/dist/cjs/transactions/zapDeposit.js +89 -38
  45. package/dist/cjs/transactions/zapDeposit.js.map +1 -1
  46. package/dist/cjs/utils/constants.d.ts.map +1 -1
  47. package/dist/cjs/utils/constants.js +5 -0
  48. package/dist/cjs/utils/constants.js.map +1 -1
  49. package/dist/esm/common/coins.d.ts.map +1 -1
  50. package/dist/esm/common/coins.js +6 -0
  51. package/dist/esm/common/coins.js.map +1 -1
  52. package/dist/esm/common/constants.d.ts +62 -0
  53. package/dist/esm/common/constants.d.ts.map +1 -1
  54. package/dist/esm/common/constants.js +55 -22
  55. package/dist/esm/common/constants.js.map +1 -1
  56. package/dist/esm/common/maps.d.ts.map +1 -1
  57. package/dist/esm/common/maps.js +91 -39
  58. package/dist/esm/common/maps.js.map +1 -1
  59. package/dist/esm/common/pyth.d.ts +1 -1
  60. package/dist/esm/common/pyth.d.ts.map +1 -1
  61. package/dist/esm/common/pyth.js.map +1 -1
  62. package/dist/esm/common/types.d.ts +4 -4
  63. package/dist/esm/common/types.d.ts.map +1 -1
  64. package/dist/esm/common/types.js.map +1 -1
  65. package/dist/esm/getLastAutoCompoundTime.js +2 -2
  66. package/dist/esm/getLastAutoCompoundTime.js.map +1 -1
  67. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  68. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
  69. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  70. package/dist/esm/sui-sdk/functions/getReceipts.d.ts +1 -0
  71. package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  72. package/dist/esm/transactions/7k.d.ts +1 -1
  73. package/dist/esm/transactions/7k.d.ts.map +1 -1
  74. package/dist/esm/transactions/7k.js +2 -1
  75. package/dist/esm/transactions/7k.js.map +1 -1
  76. package/dist/esm/transactions/blueRewards.d.ts.map +1 -1
  77. package/dist/esm/transactions/blueRewards.js +18 -6
  78. package/dist/esm/transactions/blueRewards.js.map +1 -1
  79. package/dist/esm/transactions/bluefin.d.ts.map +1 -1
  80. package/dist/esm/transactions/bluefin.js +280 -12
  81. package/dist/esm/transactions/bluefin.js.map +1 -1
  82. package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
  83. package/dist/esm/transactions/collect_rewards.js +5 -1
  84. package/dist/esm/transactions/collect_rewards.js.map +1 -1
  85. package/dist/esm/transactions/deposit.d.ts.map +1 -1
  86. package/dist/esm/transactions/deposit.js +2 -4
  87. package/dist/esm/transactions/deposit.js.map +1 -1
  88. package/dist/esm/transactions/navi.d.ts.map +1 -1
  89. package/dist/esm/transactions/navi.js +64 -0
  90. package/dist/esm/transactions/navi.js.map +1 -1
  91. package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
  92. package/dist/esm/transactions/zapDeposit.js +89 -38
  93. package/dist/esm/transactions/zapDeposit.js.map +1 -1
  94. package/dist/esm/utils/constants.d.ts.map +1 -1
  95. package/dist/esm/utils/constants.js +5 -0
  96. package/dist/esm/utils/constants.js.map +1 -1
  97. package/docs/assets/highlight.css +74 -51
  98. package/docs/assets/icons.js +20 -17
  99. package/docs/assets/main.js +2163 -5
  100. package/docs/assets/navigation.js +2 -1
  101. package/docs/assets/search.js +2 -1
  102. package/docs/assets/style.css +846 -850
  103. package/docs/functions/alphaLpBreakdown.html +253 -1
  104. package/docs/functions/cetusLpBreakdown.html +253 -1
  105. package/docs/functions/claimBlueRewardTxb.html +258 -1
  106. package/docs/functions/claimRewardTxb.html +243 -1
  107. package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -1
  108. package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -1
  109. package/docs/functions/coinsInPool.html +438 -1
  110. package/docs/functions/collectRewards.html +242 -1
  111. package/docs/functions/deposit.html +246 -1
  112. package/docs/functions/depositDoubleAssetTxb.html +270 -1
  113. package/docs/functions/depositSingleAssetTxb.html +263 -1
  114. package/docs/functions/fetchAfterTransactionEvents.html +328 -1
  115. package/docs/functions/fetchAutoCompoundingEvents.html +257 -1
  116. package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -1
  117. package/docs/functions/fetchCetusPools.html +231 -1
  118. package/docs/functions/fetchChainIdentifier.html +233 -1
  119. package/docs/functions/fetchCheckRatioEvents.html +249 -1
  120. package/docs/functions/fetchLiquidityChangeEvents.html +257 -1
  121. package/docs/functions/fetchMultiCategoryEvents.html +348 -1
  122. package/docs/functions/fetchMultiReceipts.html +261 -1
  123. package/docs/functions/fetchNftHolders.html +233 -1
  124. package/docs/functions/fetchPools.html +230 -1
  125. package/docs/functions/fetchPortfolioData.html +243 -1
  126. package/docs/functions/fetchProtocolData.html +231 -1
  127. package/docs/functions/fetchTVL.html +253 -1
  128. package/docs/functions/fetchUserVaultBalances.html +245 -1
  129. package/docs/functions/fetchUserVaults.html +243 -1
  130. package/docs/functions/fetchUserWalletData.html +243 -1
  131. package/docs/functions/fetchVoloExchangeRate.html +251 -1
  132. package/docs/functions/fetchWithdrawV2Events.html +255 -1
  133. package/docs/functions/getAirdropShare.html +243 -1
  134. package/docs/functions/getAllDoubleAssetVaults.html +235 -1
  135. package/docs/functions/getAllSingleAssetVaults.html +235 -1
  136. package/docs/functions/getAllVaultBalances.html +265 -1
  137. package/docs/functions/getAllVaults.html +233 -1
  138. package/docs/functions/getAlphaUnlocks.html +245 -1
  139. package/docs/functions/getAlphaVaultBalance.html +255 -1
  140. package/docs/functions/getAmounts.html +272 -1
  141. package/docs/functions/getApr.html +243 -1
  142. package/docs/functions/getAprs.html +255 -1
  143. package/docs/functions/getApy.html +243 -1
  144. package/docs/functions/getApys.html +255 -1
  145. package/docs/functions/getCetusInvestorTicksMap.html +284 -1
  146. package/docs/functions/getCetusPool.html +270 -1
  147. package/docs/functions/getCetusSqrtPriceMap.html +249 -1
  148. package/docs/functions/getCoinAmountsFromLiquidity.html +273 -1
  149. package/docs/functions/getConf.html +13163 -1
  150. package/docs/functions/getCurrentTick.html +247 -1
  151. package/docs/functions/getDistributor.html +252 -1
  152. package/docs/functions/getDoubleAssetVaultBalance.html +268 -1
  153. package/docs/functions/getDoubleAssetVaults.html +253 -1
  154. package/docs/functions/getHoldersFromTransactions.html +299 -1
  155. package/docs/functions/getInvestor.html +259 -1
  156. package/docs/functions/getInvestorPoolMap.html +241 -1
  157. package/docs/functions/getLastAutoCompoundTime.html +249 -1
  158. package/docs/functions/getLatestPrices.html +253 -1
  159. package/docs/functions/getLiquidity.html +260 -1
  160. package/docs/functions/getMultiCetusPool.html +231 -1
  161. package/docs/functions/getMultiInvestor.html +231 -1
  162. package/docs/functions/getMultiLatestPrices.html +233 -1
  163. package/docs/functions/getMultiParentPool.html +231 -1
  164. package/docs/functions/getMultiPool.html +231 -1
  165. package/docs/functions/getMultiReceipts.html +243 -1
  166. package/docs/functions/getParentPool.html +266 -1
  167. package/docs/functions/getPool.html +262 -1
  168. package/docs/functions/getPoolExchangeRate.html +254 -1
  169. package/docs/functions/getPoolExchangeRateMap.html +249 -1
  170. package/docs/functions/getPoolsWeightDistribution.html +266 -1
  171. package/docs/functions/getPositionRange.html +283 -1
  172. package/docs/functions/getPositionRanges.html +289 -1
  173. package/docs/functions/getPositionTicks.html +249 -1
  174. package/docs/functions/getPriceToTick.html +264 -1
  175. package/docs/functions/getRebalanceHistories.html +269 -1
  176. package/docs/functions/getRebalanceHistory.html +255 -1
  177. package/docs/functions/getReceipts.html +268 -1
  178. package/docs/functions/getSingleAssetVaultBalance.html +268 -1
  179. package/docs/functions/getSingleAssetVaults.html +253 -1
  180. package/docs/functions/getSuiClient.html +247 -3
  181. package/docs/functions/getSuiNodeUrl.html +232 -3
  182. package/docs/functions/getTVLs-1.html +243 -1
  183. package/docs/functions/getTickSpacing.html +247 -1
  184. package/docs/functions/getTickToPrice.html +248 -1
  185. package/docs/functions/getTvls.html +259 -1
  186. package/docs/functions/getUserTokensFromTransactions.html +269 -1
  187. package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -1
  188. package/docs/functions/getVaultBalance.html +277 -1
  189. package/docs/functions/getVaultBalanceForActiveUsers.html +261 -1
  190. package/docs/functions/getVaults.html +250 -1
  191. package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -1
  192. package/docs/functions/getZapAmounts.html +323 -1
  193. package/docs/functions/lastAutocompoundTime.html +249 -1
  194. package/docs/functions/liquidityToTokens.html +253 -1
  195. package/docs/functions/multiLiquidityToTokens.html +271 -1
  196. package/docs/functions/multiTokensToUsd.html +262 -1
  197. package/docs/functions/multiXTokensToLiquidity.html +257 -1
  198. package/docs/functions/parseUserWalletData.html +243 -1
  199. package/docs/functions/pendingBlueRewardAmount.html +256 -1
  200. package/docs/functions/setCustomSuiClient.html +251 -5
  201. package/docs/functions/setSuiClient.html +255 -7
  202. package/docs/functions/setSuiNodeUrl.html +249 -5
  203. package/docs/functions/setWeights.html +270 -1
  204. package/docs/functions/withdraw.html +249 -1
  205. package/docs/functions/withdrawAlphaTxb.html +257 -1
  206. package/docs/functions/withdrawTxb.html +260 -1
  207. package/docs/functions/zapDepositTxb.html +300 -1
  208. package/docs/index.html +587 -41
  209. package/docs/interfaces/Coin.html +474 -12
  210. package/docs/interfaces/CoinPair.html +358 -3
  211. package/docs/interfaces/NaviVoloData.html +514 -3
  212. package/docs/interfaces/PoolData.html +579 -8
  213. package/docs/interfaces/PoolWeightDistribution.html +414 -4
  214. package/docs/interfaces/RebalanceHistoryType.html +652 -9
  215. package/docs/modules.html +1430 -198
  216. package/docs/types/AfterTransactionEventNode.html +305 -1
  217. package/docs/types/Allocator.html +321 -1
  218. package/docs/types/AlphaFiDoubleAssetVault.html +258 -1
  219. package/docs/types/AlphaFiMultiVaultBalance.html +219 -1
  220. package/docs/types/AlphaFiSingleAssetVault.html +244 -1
  221. package/docs/types/AlphaFiVault.html +214 -1
  222. package/docs/types/AlphaFiVaultBalance.html +220 -1
  223. package/docs/types/AlphaPoolType.html +383 -1
  224. package/docs/types/AlphaReceipt.html +220 -1
  225. package/docs/types/AlphaReceiptFields.html +421 -1
  226. package/docs/types/AlphaVaultBalance.html +245 -1
  227. package/docs/types/AutoBalancePoolNames.html +226 -1
  228. package/docs/types/AutoCompoundingEventNode.html +230 -1
  229. package/docs/types/BluefinInvestor.html +209 -1
  230. package/docs/types/BluefinPoolType.html +440 -1
  231. package/docs/types/BucketInvestor.html +249 -1
  232. package/docs/types/CetusInvestor.html +240 -1
  233. package/docs/types/CetusPoolType.html +433 -1
  234. package/docs/types/CetusSwapOptions.html +209 -1
  235. package/docs/types/CoinAmounts.html +216 -1
  236. package/docs/types/CoinName.html +293 -1
  237. package/docs/types/CoinType.html +294 -1
  238. package/docs/types/CommonInvestorFields.html +276 -1
  239. package/docs/types/CreatePoolOptions.html +246 -1
  240. package/docs/types/Distributor.html +341 -1
  241. package/docs/types/DoubleAssetMultiVaultBalance.html +236 -1
  242. package/docs/types/DoubleAssetPoolNames.html +297 -1
  243. package/docs/types/DoubleAssetTokenHoldings.html +232 -1
  244. package/docs/types/DoubleAssetVaultBalance.html +229 -1
  245. package/docs/types/EventCategory.html +209 -1
  246. package/docs/types/EventNode.html +229 -1
  247. package/docs/types/GetHoldersParams.html +221 -1
  248. package/docs/types/GetTokenHoldingsParams.html +227 -1
  249. package/docs/types/GetUserTokensFromTransactionsParams.html +233 -1
  250. package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -1
  251. package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -1
  252. package/docs/types/GetVaultBalanceParams.html +217 -1
  253. package/docs/types/HoldingsObj.html +223 -1
  254. package/docs/types/Icon.html +266 -1
  255. package/docs/types/Investor.html +245 -1
  256. package/docs/types/LiquidityChangeEventNode.html +220 -1
  257. package/docs/types/LiquidityToTokensParams.html +255 -1
  258. package/docs/types/LiquidityToUsdParams.html +267 -1
  259. package/docs/types/LoopingDebt.html +258 -1
  260. package/docs/types/LoopingPoolNames.html +216 -1
  261. package/docs/types/LpBreakdownType.html +238 -1
  262. package/docs/types/MemberPoolDataType.html +276 -1
  263. package/docs/types/MemberType.html +269 -1
  264. package/docs/types/MultiGetVaultBalancesParams.html +229 -1
  265. package/docs/types/NaviInvestor.html +235 -1
  266. package/docs/types/OtherReceiptFields.html +373 -1
  267. package/docs/types/PoolName.html +214 -1
  268. package/docs/types/PoolReceipt.html +253 -1
  269. package/docs/types/PoolType.html +388 -1
  270. package/docs/types/Receipt.html +475 -1
  271. package/docs/types/ReceiptGQL.html +374 -1
  272. package/docs/types/SingleAssetMultiVaultBalance.html +232 -1
  273. package/docs/types/SingleAssetPoolNames.html +244 -1
  274. package/docs/types/SingleAssetTokenHoldings.html +228 -1
  275. package/docs/types/SingleAssetVaultBalance.html +223 -1
  276. package/docs/types/SingleGetVaultBalancesParams.html +224 -1
  277. package/docs/types/StrategyType.html +221 -1
  278. package/docs/types/SuiNetwork.html +213 -1
  279. package/docs/types/SwapOptions.html +248 -1
  280. package/docs/types/TickSpacing.html +212 -1
  281. package/docs/types/TotalWeightType.html +246 -1
  282. package/docs/types/TransactionBlockType.html +358 -1
  283. package/docs/types/UserPoolLiquidity.html +221 -1
  284. package/docs/types/UserPoolTokenHoldings.html +217 -1
  285. package/docs/types/UserUsdHoldings.html +223 -1
  286. package/docs/types/VaultBalance.html +216 -1
  287. package/docs/types/WithdrawV2EventNode.html +208 -1
  288. package/docs/variables/bluefinPoolMap.html +214 -1
  289. package/docs/variables/cetusPoolMap.html +214 -1
  290. package/docs/variables/coinsList.html +220 -1
  291. package/docs/variables/defunctPoolsSet.html +209 -1
  292. package/docs/variables/doubleAssetPoolCoinMap.html +237 -1
  293. package/docs/variables/eventCategories.html +210 -1
  294. package/docs/variables/ignoredWalletsForDailyRevenue.html +218 -1
  295. package/docs/variables/loopingAccountAddresses.html +219 -1
  296. package/docs/variables/loopingPoolCoinMap.html +233 -1
  297. package/docs/variables/naviAssetMap.html +215 -1
  298. package/docs/variables/poolIdPoolNameMap.html +218 -1
  299. package/docs/variables/poolInfo.html +319 -1
  300. package/docs/variables/singleAssetPoolCoinMap.html +229 -1
  301. package/docs/variables/stableCoins.html +207 -1
  302. package/package.json +2 -2
  303. package/prettier.config.js +3 -0
@@ -1 +1,273 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>getCoinAmountsFromLiquidity | @alphafi/alphafi-sdk - v0.0.55</title><meta name="description" content="Documentation for @alphafi/alphafi-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@alphafi/alphafi-sdk - v0.0.55</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@alphafi/alphafi-sdk</a></li><li><a href="getCoinAmountsFromLiquidity.html">getCoinAmountsFromLiquidity</a></li></ul><h1>Function getCoinAmountsFromLiquidity</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getCoinAmountsFromLiquidity" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Coin<wbr/>Amounts<wbr/>From<wbr/>Liquidity</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">poolName</span>, <span class="tsd-kind-parameter">liquidity</span>, <span class="tsd-kind-parameter">ignoreCache</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getCoinAmountsFromLiquidity" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">poolName</span>: <a href="../types/PoolName.html" class="tsd-signature-type tsd-kind-type-alias">PoolName</a></span></li><li><span><span class="tsd-kind-parameter">liquidity</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">ignoreCache</span>: <span class="tsd-signature-type">boolean</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/AlphaFiTech/alphafi-sdk/blob/dc1fe3ae785e0151d6e001ebfddc559845f426f0/src/transactions/deposit.ts#L164">transactions/deposit.ts:164</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@alphafi/alphafi-sdk - v0.0.55</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!doctype html>
2
+ <html class="default" lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="x-ua-compatible" content="IE=edge" />
6
+ <title>getCoinAmountsFromLiquidity | @alphafi/alphafi-sdk - v0.0.56</title>
7
+ <meta name="description" content="Documentation for @alphafi/alphafi-sdk" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <link rel="stylesheet" href="../assets/style.css" />
10
+ <link rel="stylesheet" href="../assets/highlight.css" />
11
+ <script defer src="../assets/main.js"></script>
12
+ <script async src="../assets/icons.js" id="tsd-icons-script"></script>
13
+ <script async src="../assets/search.js" id="tsd-search-script"></script>
14
+ <script async src="../assets/navigation.js" id="tsd-nav-script"></script>
15
+ </head>
16
+ <body>
17
+ <script>
18
+ document.documentElement.dataset.theme =
19
+ localStorage.getItem("tsd-theme") || "os";
20
+ document.body.style.display = "none";
21
+ setTimeout(
22
+ () =>
23
+ app ? app.showPage() : document.body.style.removeProperty("display"),
24
+ 500,
25
+ );
26
+ </script>
27
+ <header class="tsd-page-toolbar">
28
+ <div class="tsd-toolbar-contents container">
29
+ <div class="table-cell" id="tsd-search" data-base="..">
30
+ <div class="field">
31
+ <label
32
+ for="tsd-search-field"
33
+ class="tsd-widget tsd-toolbar-icon search no-caption"
34
+ ><svg width="16" height="16" viewBox="0 0 16 16" fill="none">
35
+ <use href="../assets/icons.svg#icon-search"></use></svg></label
36
+ ><input type="text" id="tsd-search-field" aria-label="Search" />
37
+ </div>
38
+ <div class="field"><div id="tsd-toolbar-links"></div></div>
39
+ <ul class="results">
40
+ <li class="state loading">Preparing search index...</li>
41
+ <li class="state failure">The search index is not available</li>
42
+ </ul>
43
+ <a href="../index.html" class="title"
44
+ >@alphafi/alphafi-sdk - v0.0.56</a
45
+ >
46
+ </div>
47
+ <div class="table-cell" id="tsd-widgets">
48
+ <a
49
+ href="#"
50
+ class="tsd-widget tsd-toolbar-icon menu no-caption"
51
+ data-toggle="menu"
52
+ aria-label="Menu"
53
+ ><svg width="16" height="16" viewBox="0 0 16 16" fill="none">
54
+ <use href="../assets/icons.svg#icon-menu"></use></svg
55
+ ></a>
56
+ </div>
57
+ </div>
58
+ </header>
59
+ <div class="container container-main">
60
+ <div class="col-content">
61
+ <div class="tsd-page-title">
62
+ <ul class="tsd-breadcrumb">
63
+ <li><a href="../modules.html">@alphafi/alphafi-sdk</a></li>
64
+ <li>
65
+ <a href="getCoinAmountsFromLiquidity.html"
66
+ >getCoinAmountsFromLiquidity</a
67
+ >
68
+ </li>
69
+ </ul>
70
+ <h1>Function getCoinAmountsFromLiquidity</h1>
71
+ </div>
72
+ <section class="tsd-panel">
73
+ <ul class="tsd-signatures">
74
+ <li class="tsd-signature tsd-anchor-link">
75
+ <a id="getCoinAmountsFromLiquidity" class="tsd-anchor"></a
76
+ ><span class="tsd-kind-call-signature"
77
+ >get<wbr />Coin<wbr />Amounts<wbr />From<wbr />Liquidity</span
78
+ ><span class="tsd-signature-symbol">(</span
79
+ ><span class="tsd-kind-parameter">poolName</span>,
80
+ <span class="tsd-kind-parameter">liquidity</span>,
81
+ <span class="tsd-kind-parameter">ignoreCache</span
82
+ ><span class="tsd-signature-symbol">)</span
83
+ ><span class="tsd-signature-symbol">: </span
84
+ ><span class="tsd-signature-type">Promise</span
85
+ ><span class="tsd-signature-symbol">&lt;</span
86
+ ><span class="tsd-signature-symbol">[</span
87
+ ><span class="tsd-signature-type">string</span
88
+ ><span class="tsd-signature-symbol">, </span
89
+ ><span class="tsd-signature-type">string</span
90
+ ><span class="tsd-signature-symbol">]</span
91
+ ><span class="tsd-signature-symbol">&gt;</span
92
+ ><a
93
+ href="#getCoinAmountsFromLiquidity"
94
+ aria-label="Permalink"
95
+ class="tsd-anchor-icon"
96
+ ><svg viewBox="0 0 24 24">
97
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
98
+ ></a>
99
+ </li>
100
+ <li class="tsd-description">
101
+ <div class="tsd-parameters">
102
+ <h4 class="tsd-parameters-title">Parameters</h4>
103
+ <ul class="tsd-parameter-list">
104
+ <li>
105
+ <span
106
+ ><span class="tsd-kind-parameter">poolName</span>:
107
+ <a
108
+ href="../types/PoolName.html"
109
+ class="tsd-signature-type tsd-kind-type-alias"
110
+ >PoolName</a
111
+ ></span
112
+ >
113
+ </li>
114
+ <li>
115
+ <span
116
+ ><span class="tsd-kind-parameter">liquidity</span>:
117
+ <span class="tsd-signature-type">string</span></span
118
+ >
119
+ </li>
120
+ <li>
121
+ <span
122
+ ><span class="tsd-kind-parameter">ignoreCache</span>:
123
+ <span class="tsd-signature-type">boolean</span></span
124
+ >
125
+ </li>
126
+ </ul>
127
+ </div>
128
+ <h4 class="tsd-returns-title">
129
+ Returns <span class="tsd-signature-type">Promise</span
130
+ ><span class="tsd-signature-symbol">&lt;</span
131
+ ><span class="tsd-signature-symbol">[</span
132
+ ><span class="tsd-signature-type">string</span
133
+ ><span class="tsd-signature-symbol">, </span
134
+ ><span class="tsd-signature-type">string</span
135
+ ><span class="tsd-signature-symbol">]</span
136
+ ><span class="tsd-signature-symbol">&gt;</span>
137
+ </h4>
138
+ <aside class="tsd-sources">
139
+ <ul>
140
+ <li>
141
+ Defined in
142
+ <a
143
+ href="https://github.com/AlphaFiTech/alphafi-sdk/blob/d5c5baf4d5ffcf340653cbe7a9a3424d44d5a976/src/transactions/deposit.ts#L162"
144
+ >transactions/deposit.ts:162</a
145
+ >
146
+ </li>
147
+ </ul>
148
+ </aside>
149
+ </li>
150
+ </ul>
151
+ </section>
152
+ </div>
153
+ <div class="col-sidebar">
154
+ <div class="page-menu">
155
+ <div class="tsd-navigation settings">
156
+ <details class="tsd-accordion">
157
+ <summary class="tsd-accordion-summary">
158
+ <h3>
159
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
160
+ <use href="../assets/icons.svg#icon-chevronDown"></use></svg
161
+ >Settings
162
+ </h3>
163
+ </summary>
164
+ <div class="tsd-accordion-details">
165
+ <div class="tsd-filter-visibility">
166
+ <span class="settings-label">Member Visibility</span>
167
+ <ul id="tsd-filter-options">
168
+ <li class="tsd-filter-item">
169
+ <label class="tsd-filter-input"
170
+ ><input
171
+ type="checkbox"
172
+ id="tsd-filter-inherited"
173
+ name="inherited"
174
+ checked
175
+ /><svg
176
+ width="32"
177
+ height="32"
178
+ viewBox="0 0 32 32"
179
+ aria-hidden="true"
180
+ >
181
+ <rect
182
+ class="tsd-checkbox-background"
183
+ width="30"
184
+ height="30"
185
+ x="1"
186
+ y="1"
187
+ rx="6"
188
+ fill="none"
189
+ ></rect>
190
+ <path
191
+ class="tsd-checkbox-checkmark"
192
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
193
+ stroke="none"
194
+ stroke-width="3.5"
195
+ stroke-linejoin="round"
196
+ fill="none"
197
+ ></path></svg
198
+ ><span>Inherited</span></label
199
+ >
200
+ </li>
201
+ <li class="tsd-filter-item">
202
+ <label class="tsd-filter-input"
203
+ ><input
204
+ type="checkbox"
205
+ id="tsd-filter-external"
206
+ name="external"
207
+ /><svg
208
+ width="32"
209
+ height="32"
210
+ viewBox="0 0 32 32"
211
+ aria-hidden="true"
212
+ >
213
+ <rect
214
+ class="tsd-checkbox-background"
215
+ width="30"
216
+ height="30"
217
+ x="1"
218
+ y="1"
219
+ rx="6"
220
+ fill="none"
221
+ ></rect>
222
+ <path
223
+ class="tsd-checkbox-checkmark"
224
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
225
+ stroke="none"
226
+ stroke-width="3.5"
227
+ stroke-linejoin="round"
228
+ fill="none"
229
+ ></path></svg
230
+ ><span>External</span></label
231
+ >
232
+ </li>
233
+ </ul>
234
+ </div>
235
+ <div class="tsd-theme-toggle">
236
+ <label class="settings-label" for="tsd-theme">Theme</label
237
+ ><select id="tsd-theme">
238
+ <option value="os">OS</option>
239
+ <option value="light">Light</option>
240
+ <option value="dark">Dark</option>
241
+ </select>
242
+ </div>
243
+ </div>
244
+ </details>
245
+ </div>
246
+ </div>
247
+ <div class="site-menu">
248
+ <nav class="tsd-navigation">
249
+ <a href="../modules.html"
250
+ ><svg class="tsd-kind-icon" viewBox="0 0 24 24">
251
+ <use href="../assets/icons.svg#icon-1"></use></svg
252
+ ><span>@alphafi/alphafi-sdk - v0.0.56</span></a
253
+ >
254
+ <ul
255
+ class="tsd-small-nested-navigation"
256
+ id="tsd-nav-container"
257
+ data-base=".."
258
+ >
259
+ <li>Loading...</li>
260
+ </ul>
261
+ </nav>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ <footer>
266
+ <p class="tsd-generator">
267
+ Generated using
268
+ <a href="https://typedoc.org/" target="_blank">TypeDoc</a>
269
+ </p>
270
+ </footer>
271
+ <div class="overlay"></div>
272
+ </body>
273
+ </html>