@alphafi/alphafi-sdk 0.0.39 → 0.0.40

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 (291) hide show
  1. package/dist/cjs/adminFunctions.d.ts.map +1 -1
  2. package/dist/cjs/adminFunctions.js +9 -1
  3. package/dist/cjs/adminFunctions.js.map +1 -1
  4. package/dist/cjs/common/coins.d.ts.map +1 -1
  5. package/dist/cjs/common/coins.js +12 -0
  6. package/dist/cjs/common/coins.js.map +1 -1
  7. package/dist/cjs/common/constants.d.ts +135 -0
  8. package/dist/cjs/common/constants.d.ts.map +1 -1
  9. package/dist/cjs/common/constants.js +98 -7
  10. package/dist/cjs/common/constants.js.map +1 -1
  11. package/dist/cjs/common/maps.d.ts.map +1 -1
  12. package/dist/cjs/common/maps.js +103 -16
  13. package/dist/cjs/common/maps.js.map +1 -1
  14. package/dist/cjs/common/types.d.ts +58 -5
  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/index.d.ts +2 -1
  18. package/dist/cjs/index.d.ts.map +1 -1
  19. package/dist/cjs/index.js +9 -2
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.d.ts.map +1 -1
  22. package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.js +2 -3
  23. package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.js.map +1 -1
  24. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
  25. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js +5 -11
  26. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
  27. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +2 -2
  28. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  29. package/dist/cjs/sui-sdk/functions/getReceipts.js +1 -1
  30. package/dist/cjs/sui-sdk/functions/getReceipts.js.map +1 -1
  31. package/dist/cjs/transactions/bluefin.d.ts +6 -0
  32. package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
  33. package/dist/cjs/transactions/bluefin.js +411 -34
  34. package/dist/cjs/transactions/bluefin.js.map +1 -1
  35. package/dist/cjs/transactions/cetus.d.ts +1 -1
  36. package/dist/cjs/transactions/cetus.d.ts.map +1 -1
  37. package/dist/cjs/transactions/cetus.js +3 -3
  38. package/dist/cjs/transactions/cetus.js.map +1 -1
  39. package/dist/cjs/transactions/deposit.d.ts.map +1 -1
  40. package/dist/cjs/transactions/deposit.js +9 -1
  41. package/dist/cjs/transactions/deposit.js.map +1 -1
  42. package/dist/cjs/transactions/withdraw.d.ts.map +1 -1
  43. package/dist/cjs/transactions/withdraw.js +9 -1
  44. package/dist/cjs/transactions/withdraw.js.map +1 -1
  45. package/dist/esm/adminFunctions.d.ts.map +1 -1
  46. package/dist/esm/adminFunctions.js +10 -2
  47. package/dist/esm/adminFunctions.js.map +1 -1
  48. package/dist/esm/common/coins.d.ts.map +1 -1
  49. package/dist/esm/common/coins.js +12 -0
  50. package/dist/esm/common/coins.js.map +1 -1
  51. package/dist/esm/common/constants.d.ts +135 -0
  52. package/dist/esm/common/constants.d.ts.map +1 -1
  53. package/dist/esm/common/constants.js +98 -7
  54. package/dist/esm/common/constants.js.map +1 -1
  55. package/dist/esm/common/maps.d.ts.map +1 -1
  56. package/dist/esm/common/maps.js +103 -16
  57. package/dist/esm/common/maps.js.map +1 -1
  58. package/dist/esm/common/types.d.ts +58 -5
  59. package/dist/esm/common/types.d.ts.map +1 -1
  60. package/dist/esm/common/types.js.map +1 -1
  61. package/dist/esm/index.d.ts +2 -1
  62. package/dist/esm/index.d.ts.map +1 -1
  63. package/dist/esm/index.js +2 -1
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.d.ts.map +1 -1
  66. package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.js +2 -3
  67. package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.js.map +1 -1
  68. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
  69. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js +5 -11
  70. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
  71. package/dist/esm/sui-sdk/functions/getReceipts.d.ts +2 -2
  72. package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  73. package/dist/esm/sui-sdk/functions/getReceipts.js +1 -1
  74. package/dist/esm/sui-sdk/functions/getReceipts.js.map +1 -1
  75. package/dist/esm/transactions/bluefin.d.ts +6 -0
  76. package/dist/esm/transactions/bluefin.d.ts.map +1 -1
  77. package/dist/esm/transactions/bluefin.js +408 -33
  78. package/dist/esm/transactions/bluefin.js.map +1 -1
  79. package/dist/esm/transactions/cetus.d.ts +1 -1
  80. package/dist/esm/transactions/cetus.d.ts.map +1 -1
  81. package/dist/esm/transactions/cetus.js +3 -3
  82. package/dist/esm/transactions/cetus.js.map +1 -1
  83. package/dist/esm/transactions/deposit.d.ts.map +1 -1
  84. package/dist/esm/transactions/deposit.js +10 -2
  85. package/dist/esm/transactions/deposit.js.map +1 -1
  86. package/dist/esm/transactions/withdraw.d.ts.map +1 -1
  87. package/dist/esm/transactions/withdraw.js +10 -2
  88. package/dist/esm/transactions/withdraw.js.map +1 -1
  89. package/docs/assets/highlight.css +101 -0
  90. package/docs/assets/icons.js +21 -0
  91. package/docs/assets/icons.svg +1 -0
  92. package/docs/assets/main.js +2218 -0
  93. package/docs/assets/navigation.js +2 -0
  94. package/docs/assets/search.js +2 -0
  95. package/docs/assets/style.css +1489 -0
  96. package/docs/functions/alphaLpBreakdown.html +253 -0
  97. package/docs/functions/bucketDepositTx.html +267 -0
  98. package/docs/functions/bucketWithdrawTx.html +267 -0
  99. package/docs/functions/cetusLpBreakdown.html +253 -0
  100. package/docs/functions/claimRewardTxb.html +243 -0
  101. package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -0
  102. package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -0
  103. package/docs/functions/coinsInPool.html +438 -0
  104. package/docs/functions/collectRewards.html +242 -0
  105. package/docs/functions/deposit.html +246 -0
  106. package/docs/functions/depositAlphaTxb.html +250 -0
  107. package/docs/functions/depositBluefinSuiFirstTxb.html +302 -0
  108. package/docs/functions/depositBluefinType1Txb.html +300 -0
  109. package/docs/functions/depositBluefinType2Txb.html +300 -0
  110. package/docs/functions/depositCetusAlphaSuiTxb.html +300 -0
  111. package/docs/functions/depositCetusSuiTxb.html +298 -0
  112. package/docs/functions/depositCetusTxb.html +298 -0
  113. package/docs/functions/depositDoubleAssetTxb.html +270 -0
  114. package/docs/functions/depositSingleAssetTxb.html +263 -0
  115. package/docs/functions/fetchAfterTransactionEvents.html +306 -0
  116. package/docs/functions/fetchAutoCompoundingEvents.html +257 -0
  117. package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -0
  118. package/docs/functions/fetchCetusPools.html +231 -0
  119. package/docs/functions/fetchChainIdentifier.html +233 -0
  120. package/docs/functions/fetchCheckRatioEvents.html +249 -0
  121. package/docs/functions/fetchLiquidityChangeEvents.html +257 -0
  122. package/docs/functions/fetchMultiReceipts.html +261 -0
  123. package/docs/functions/fetchNftHolders.html +233 -0
  124. package/docs/functions/fetchPools.html +230 -0
  125. package/docs/functions/fetchPortfolioData.html +243 -0
  126. package/docs/functions/fetchProtocolData.html +231 -0
  127. package/docs/functions/fetchTVL.html +253 -0
  128. package/docs/functions/fetchUserVaultBalances.html +245 -0
  129. package/docs/functions/fetchUserVaults.html +243 -0
  130. package/docs/functions/fetchUserWalletData.html +243 -0
  131. package/docs/functions/fetchWithdrawV2Events.html +255 -0
  132. package/docs/functions/getAirdropShare.html +243 -0
  133. package/docs/functions/getAllDoubleAssetVaults.html +235 -0
  134. package/docs/functions/getAllSingleAssetVaults.html +235 -0
  135. package/docs/functions/getAllVaultBalances.html +265 -0
  136. package/docs/functions/getAllVaults.html +233 -0
  137. package/docs/functions/getAlphaUnlocks.html +245 -0
  138. package/docs/functions/getAlphaVaultBalance.html +255 -0
  139. package/docs/functions/getAmounts.html +272 -0
  140. package/docs/functions/getApr.html +243 -0
  141. package/docs/functions/getAprs.html +255 -0
  142. package/docs/functions/getApy.html +243 -0
  143. package/docs/functions/getApys.html +255 -0
  144. package/docs/functions/getCetusInvestorTicksMap.html +284 -0
  145. package/docs/functions/getCetusSqrtPriceMap.html +249 -0
  146. package/docs/functions/getCoinAmountsFromLiquidity.html +266 -0
  147. package/docs/functions/getConf.html +9882 -0
  148. package/docs/functions/getCurrentTick.html +247 -0
  149. package/docs/functions/getDoubleAssetVaultBalance.html +268 -0
  150. package/docs/functions/getDoubleAssetVaults.html +253 -0
  151. package/docs/functions/getHoldersFromTransactions.html +299 -0
  152. package/docs/functions/getInvestor.html +259 -0
  153. package/docs/functions/getInvestorPoolMap.html +241 -0
  154. package/docs/functions/getLastAutoCompoundTime.html +249 -0
  155. package/docs/functions/getLiquidity.html +260 -0
  156. package/docs/functions/getParentPool.html +256 -0
  157. package/docs/functions/getPool.html +262 -0
  158. package/docs/functions/getPoolExchangeRateMap.html +249 -0
  159. package/docs/functions/getPositionTicks.html +249 -0
  160. package/docs/functions/getPriceToTick.html +254 -0
  161. package/docs/functions/getRebalanceHistories.html +269 -0
  162. package/docs/functions/getRebalanceHistory.html +255 -0
  163. package/docs/functions/getReceipts.html +268 -0
  164. package/docs/functions/getSingleAssetVaultBalance.html +268 -0
  165. package/docs/functions/getSingleAssetVaults.html +253 -0
  166. package/docs/functions/getSuiClient.html +247 -0
  167. package/docs/functions/getSuiNodeUrl.html +232 -0
  168. package/docs/functions/getTVLs.html +243 -0
  169. package/docs/functions/getTickToPrice.html +254 -0
  170. package/docs/functions/getUserTokensFromTransactions.html +269 -0
  171. package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -0
  172. package/docs/functions/getVaultBalance.html +277 -0
  173. package/docs/functions/getVaultBalanceForActiveUsers.html +261 -0
  174. package/docs/functions/getVaults.html +250 -0
  175. package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -0
  176. package/docs/functions/lastAutocompoundTime.html +249 -0
  177. package/docs/functions/liquidityToTokens.html +253 -0
  178. package/docs/functions/loopingDeposit.html +277 -0
  179. package/docs/functions/loopingWithdraw.html +278 -0
  180. package/docs/functions/multiLiquidityToTokens.html +271 -0
  181. package/docs/functions/multiTokensToUsd.html +262 -0
  182. package/docs/functions/multiXTokensToLiquidity.html +257 -0
  183. package/docs/functions/naviDepositTx.html +278 -0
  184. package/docs/functions/naviHasuiSuiLoopDepositTx.html +271 -0
  185. package/docs/functions/naviHasuiSuiLoopWithdrawTx.html +271 -0
  186. package/docs/functions/naviSuiVsuiLoopDepositTx.html +271 -0
  187. package/docs/functions/naviSuiVsuiLoopWithdrawTx.html +271 -0
  188. package/docs/functions/naviUsdcUsdtLoopDepositTx.html +271 -0
  189. package/docs/functions/naviUsdcUsdtLoopWithdrawTx.html +271 -0
  190. package/docs/functions/naviUsdtUsdcLoopDepositTx.html +271 -0
  191. package/docs/functions/naviUsdtUsdcLoopWithdrawTx.html +271 -0
  192. package/docs/functions/naviWithdrawTx.html +278 -0
  193. package/docs/functions/parseUserWalletData.html +243 -0
  194. package/docs/functions/setSuiClient.html +255 -0
  195. package/docs/functions/setSuiNodeUrl.html +249 -0
  196. package/docs/functions/withdraw.html +249 -0
  197. package/docs/functions/withdrawAlphaTxb.html +257 -0
  198. package/docs/functions/withdrawBluefinSuiFirstTxb.html +282 -0
  199. package/docs/functions/withdrawBluefinType1Txb.html +280 -0
  200. package/docs/functions/withdrawBluefinType2Txb.html +280 -0
  201. package/docs/functions/withdrawCetusAlphaSuiTxb.html +282 -0
  202. package/docs/functions/withdrawCetusSuiTxb.html +278 -0
  203. package/docs/functions/withdrawCetusTxb.html +278 -0
  204. package/docs/functions/withdrawTxb.html +260 -0
  205. package/docs/index.html +622 -0
  206. package/docs/interfaces/Coin.html +474 -0
  207. package/docs/interfaces/CoinPair.html +358 -0
  208. package/docs/interfaces/NaviVoloData.html +514 -0
  209. package/docs/interfaces/RebalanceHistoryType.html +652 -0
  210. package/docs/modules.html +1440 -0
  211. package/docs/types/AfterTransactionEventNode.html +305 -0
  212. package/docs/types/Allocator.html +321 -0
  213. package/docs/types/AlphaFiDoubleAssetVault.html +258 -0
  214. package/docs/types/AlphaFiMultiVaultBalance.html +219 -0
  215. package/docs/types/AlphaFiSingleAssetVault.html +244 -0
  216. package/docs/types/AlphaFiVault.html +214 -0
  217. package/docs/types/AlphaFiVaultBalance.html +220 -0
  218. package/docs/types/AlphaPoolType.html +383 -0
  219. package/docs/types/AlphaReceipt.html +220 -0
  220. package/docs/types/AlphaReceiptFields.html +421 -0
  221. package/docs/types/AlphaVaultBalance.html +245 -0
  222. package/docs/types/AutoCompoundingEventNode.html +225 -0
  223. package/docs/types/BluefinInvestor.html +209 -0
  224. package/docs/types/BluefinPoolType.html +209 -0
  225. package/docs/types/BucketInvestor.html +249 -0
  226. package/docs/types/CetusInvestor.html +240 -0
  227. package/docs/types/CetusPoolType.html +433 -0
  228. package/docs/types/CetusSwapOptions.html +209 -0
  229. package/docs/types/CoinAmounts.html +216 -0
  230. package/docs/types/CoinName.html +281 -0
  231. package/docs/types/CoinType.html +282 -0
  232. package/docs/types/CommonInvestorFields.html +276 -0
  233. package/docs/types/CreatePoolOptions.html +246 -0
  234. package/docs/types/Distributor.html +341 -0
  235. package/docs/types/DoubleAssetMultiVaultBalance.html +236 -0
  236. package/docs/types/DoubleAssetPoolNames.html +267 -0
  237. package/docs/types/DoubleAssetTokenHoldings.html +232 -0
  238. package/docs/types/DoubleAssetVaultBalance.html +229 -0
  239. package/docs/types/GetHoldersParams.html +221 -0
  240. package/docs/types/GetTokenHoldingsParams.html +227 -0
  241. package/docs/types/GetUserTokensFromTransactionsParams.html +233 -0
  242. package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -0
  243. package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -0
  244. package/docs/types/GetVaultBalanceParams.html +217 -0
  245. package/docs/types/HoldingsObj.html +223 -0
  246. package/docs/types/Icon.html +266 -0
  247. package/docs/types/Investor.html +245 -0
  248. package/docs/types/LiquidityChangeEventNode.html +220 -0
  249. package/docs/types/LiquidityToTokensParams.html +255 -0
  250. package/docs/types/LiquidityToUsdParams.html +267 -0
  251. package/docs/types/LoopingDebt.html +258 -0
  252. package/docs/types/LpBreakdownType.html +238 -0
  253. package/docs/types/MemberPoolDataType.html +276 -0
  254. package/docs/types/MemberType.html +269 -0
  255. package/docs/types/MultiGetVaultBalancesParams.html +229 -0
  256. package/docs/types/NaviInvestor.html +235 -0
  257. package/docs/types/OtherReceiptFields.html +373 -0
  258. package/docs/types/PoolName.html +304 -0
  259. package/docs/types/PoolReceipt.html +253 -0
  260. package/docs/types/PoolType.html +388 -0
  261. package/docs/types/Receipt.html +475 -0
  262. package/docs/types/ReceiptGQL.html +374 -0
  263. package/docs/types/SingleAssetMultiVaultBalance.html +232 -0
  264. package/docs/types/SingleAssetPoolNames.html +247 -0
  265. package/docs/types/SingleAssetTokenHoldings.html +228 -0
  266. package/docs/types/SingleAssetVaultBalance.html +223 -0
  267. package/docs/types/SingleGetVaultBalancesParams.html +224 -0
  268. package/docs/types/StrategyType.html +217 -0
  269. package/docs/types/SuiNetwork.html +213 -0
  270. package/docs/types/SwapOptions.html +248 -0
  271. package/docs/types/TickSpacing.html +212 -0
  272. package/docs/types/TotalWeightType.html +246 -0
  273. package/docs/types/TransactionBlockType.html +358 -0
  274. package/docs/types/UserPoolLiquidity.html +221 -0
  275. package/docs/types/UserPoolTokenHoldings.html +217 -0
  276. package/docs/types/UserUsdHoldings.html +223 -0
  277. package/docs/types/VaultBalance.html +216 -0
  278. package/docs/types/WithdrawV2EventNode.html +208 -0
  279. package/docs/variables/bluefinPoolMap.html +214 -0
  280. package/docs/variables/cetusPoolMap.html +214 -0
  281. package/docs/variables/coinsList.html +220 -0
  282. package/docs/variables/defunctPoolsSet.html +209 -0
  283. package/docs/variables/doubleAssetPoolCoinMap.html +237 -0
  284. package/docs/variables/loopingAccountAddresses.html +219 -0
  285. package/docs/variables/loopingPoolCoinMap.html +233 -0
  286. package/docs/variables/naviAssetMap.html +215 -0
  287. package/docs/variables/poolIdPoolNameMap.html +218 -0
  288. package/docs/variables/poolInfo.html +304 -0
  289. package/docs/variables/singleAssetPoolCoinMap.html +229 -0
  290. package/docs/variables/stableCoins.html +207 -0
  291. package/package.json +1 -1
@@ -0,0 +1,249 @@
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>withdraw | @alphafi/alphafi-sdk - v0.0.39</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.39</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><a href="withdraw.html">withdraw</a></li>
65
+ </ul>
66
+ <h1>Function withdraw</h1>
67
+ </div>
68
+ <section class="tsd-panel">
69
+ <ul class="tsd-signatures">
70
+ <li class="tsd-signature tsd-anchor-link">
71
+ <a id="withdraw" class="tsd-anchor"></a
72
+ ><span class="tsd-kind-call-signature">withdraw</span
73
+ ><span class="tsd-signature-symbol">(</span
74
+ ><span class="tsd-kind-parameter">amount</span>,
75
+ <span class="tsd-kind-parameter">poolId</span
76
+ ><span class="tsd-signature-symbol">)</span
77
+ ><span class="tsd-signature-symbol">: </span
78
+ ><span class="tsd-signature-type">Promise</span
79
+ ><span class="tsd-signature-symbol">&lt;</span
80
+ ><span class="tsd-signature-type">any</span
81
+ ><span class="tsd-signature-symbol">&gt;</span
82
+ ><a
83
+ href="#withdraw"
84
+ aria-label="Permalink"
85
+ class="tsd-anchor-icon"
86
+ ><svg viewBox="0 0 24 24">
87
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
88
+ ></a>
89
+ </li>
90
+ <li class="tsd-description">
91
+ <div class="tsd-parameters">
92
+ <h4 class="tsd-parameters-title">Parameters</h4>
93
+ <ul class="tsd-parameter-list">
94
+ <li>
95
+ <span
96
+ ><span class="tsd-kind-parameter">amount</span>:
97
+ <span class="tsd-signature-type">number</span></span
98
+ >
99
+ </li>
100
+ <li>
101
+ <span
102
+ ><span class="tsd-kind-parameter">poolId</span>:
103
+ <span class="tsd-signature-type">string</span></span
104
+ >
105
+ </li>
106
+ </ul>
107
+ </div>
108
+ <h4 class="tsd-returns-title">
109
+ Returns <span class="tsd-signature-type">Promise</span
110
+ ><span class="tsd-signature-symbol">&lt;</span
111
+ ><span class="tsd-signature-type">any</span
112
+ ><span class="tsd-signature-symbol">&gt;</span>
113
+ </h4>
114
+ <aside class="tsd-sources">
115
+ <ul>
116
+ <li>
117
+ Defined in
118
+ <a
119
+ href="https://github.com/AlphaFiTech/alphafi-sdk/blob/8d127b965a29120c71291bb27e989d4b06161cbc/src/graphql/executeMutations.ts#L17"
120
+ >graphql/executeMutations.ts:17</a
121
+ >
122
+ </li>
123
+ </ul>
124
+ </aside>
125
+ </li>
126
+ </ul>
127
+ </section>
128
+ </div>
129
+ <div class="col-sidebar">
130
+ <div class="page-menu">
131
+ <div class="tsd-navigation settings">
132
+ <details class="tsd-accordion">
133
+ <summary class="tsd-accordion-summary">
134
+ <h3>
135
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
136
+ <use href="../assets/icons.svg#icon-chevronDown"></use></svg
137
+ >Settings
138
+ </h3>
139
+ </summary>
140
+ <div class="tsd-accordion-details">
141
+ <div class="tsd-filter-visibility">
142
+ <span class="settings-label">Member Visibility</span>
143
+ <ul id="tsd-filter-options">
144
+ <li class="tsd-filter-item">
145
+ <label class="tsd-filter-input"
146
+ ><input
147
+ type="checkbox"
148
+ id="tsd-filter-inherited"
149
+ name="inherited"
150
+ checked
151
+ /><svg
152
+ width="32"
153
+ height="32"
154
+ viewBox="0 0 32 32"
155
+ aria-hidden="true"
156
+ >
157
+ <rect
158
+ class="tsd-checkbox-background"
159
+ width="30"
160
+ height="30"
161
+ x="1"
162
+ y="1"
163
+ rx="6"
164
+ fill="none"
165
+ ></rect>
166
+ <path
167
+ class="tsd-checkbox-checkmark"
168
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
169
+ stroke="none"
170
+ stroke-width="3.5"
171
+ stroke-linejoin="round"
172
+ fill="none"
173
+ ></path></svg
174
+ ><span>Inherited</span></label
175
+ >
176
+ </li>
177
+ <li class="tsd-filter-item">
178
+ <label class="tsd-filter-input"
179
+ ><input
180
+ type="checkbox"
181
+ id="tsd-filter-external"
182
+ name="external"
183
+ /><svg
184
+ width="32"
185
+ height="32"
186
+ viewBox="0 0 32 32"
187
+ aria-hidden="true"
188
+ >
189
+ <rect
190
+ class="tsd-checkbox-background"
191
+ width="30"
192
+ height="30"
193
+ x="1"
194
+ y="1"
195
+ rx="6"
196
+ fill="none"
197
+ ></rect>
198
+ <path
199
+ class="tsd-checkbox-checkmark"
200
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
201
+ stroke="none"
202
+ stroke-width="3.5"
203
+ stroke-linejoin="round"
204
+ fill="none"
205
+ ></path></svg
206
+ ><span>External</span></label
207
+ >
208
+ </li>
209
+ </ul>
210
+ </div>
211
+ <div class="tsd-theme-toggle">
212
+ <label class="settings-label" for="tsd-theme">Theme</label
213
+ ><select id="tsd-theme">
214
+ <option value="os">OS</option>
215
+ <option value="light">Light</option>
216
+ <option value="dark">Dark</option>
217
+ </select>
218
+ </div>
219
+ </div>
220
+ </details>
221
+ </div>
222
+ </div>
223
+ <div class="site-menu">
224
+ <nav class="tsd-navigation">
225
+ <a href="../modules.html"
226
+ ><svg class="tsd-kind-icon" viewBox="0 0 24 24">
227
+ <use href="../assets/icons.svg#icon-1"></use></svg
228
+ ><span>@alphafi/alphafi-sdk - v0.0.39</span></a
229
+ >
230
+ <ul
231
+ class="tsd-small-nested-navigation"
232
+ id="tsd-nav-container"
233
+ data-base=".."
234
+ >
235
+ <li>Loading...</li>
236
+ </ul>
237
+ </nav>
238
+ </div>
239
+ </div>
240
+ </div>
241
+ <footer>
242
+ <p class="tsd-generator">
243
+ Generated using
244
+ <a href="https://typedoc.org/" target="_blank">TypeDoc</a>
245
+ </p>
246
+ </footer>
247
+ <div class="overlay"></div>
248
+ </body>
249
+ </html>
@@ -0,0 +1,257 @@
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>withdrawAlphaTxb | @alphafi/alphafi-sdk - v0.0.39</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.39</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><a href="withdrawAlphaTxb.html">withdrawAlphaTxb</a></li>
65
+ </ul>
66
+ <h1>Function withdrawAlphaTxb</h1>
67
+ </div>
68
+ <section class="tsd-panel">
69
+ <ul class="tsd-signatures">
70
+ <li class="tsd-signature tsd-anchor-link">
71
+ <a id="withdrawAlphaTxb" class="tsd-anchor"></a
72
+ ><span class="tsd-kind-call-signature"
73
+ >withdraw<wbr />Alpha<wbr />Txb</span
74
+ ><span class="tsd-signature-symbol">(</span
75
+ ><span class="tsd-kind-parameter">xTokens</span>,
76
+ <span class="tsd-kind-parameter">withdrawFromLocked</span>,
77
+ <span class="tsd-kind-parameter">address</span
78
+ ><span class="tsd-signature-symbol">)</span
79
+ ><span class="tsd-signature-symbol">: </span
80
+ ><span class="tsd-signature-type">Promise</span
81
+ ><span class="tsd-signature-symbol">&lt;</span
82
+ ><span class="tsd-signature-type">Transaction</span
83
+ ><span class="tsd-signature-symbol">&gt;</span
84
+ ><a
85
+ href="#withdrawAlphaTxb"
86
+ aria-label="Permalink"
87
+ class="tsd-anchor-icon"
88
+ ><svg viewBox="0 0 24 24">
89
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
90
+ ></a>
91
+ </li>
92
+ <li class="tsd-description">
93
+ <div class="tsd-parameters">
94
+ <h4 class="tsd-parameters-title">Parameters</h4>
95
+ <ul class="tsd-parameter-list">
96
+ <li>
97
+ <span
98
+ ><span class="tsd-kind-parameter">xTokens</span>:
99
+ <span class="tsd-signature-type">string</span></span
100
+ >
101
+ </li>
102
+ <li>
103
+ <span
104
+ ><span class="tsd-kind-parameter">withdrawFromLocked</span
105
+ >: <span class="tsd-signature-type">boolean</span></span
106
+ >
107
+ </li>
108
+ <li>
109
+ <span
110
+ ><span class="tsd-kind-parameter">address</span>:
111
+ <span class="tsd-signature-type">string</span></span
112
+ >
113
+ </li>
114
+ </ul>
115
+ </div>
116
+ <h4 class="tsd-returns-title">
117
+ Returns <span class="tsd-signature-type">Promise</span
118
+ ><span class="tsd-signature-symbol">&lt;</span
119
+ ><span class="tsd-signature-type">Transaction</span
120
+ ><span class="tsd-signature-symbol">&gt;</span>
121
+ </h4>
122
+ <aside class="tsd-sources">
123
+ <ul>
124
+ <li>
125
+ Defined in
126
+ <a
127
+ href="https://github.com/AlphaFiTech/alphafi-sdk/blob/8d127b965a29120c71291bb27e989d4b06161cbc/src/transactions/alpha.ts#L91"
128
+ >transactions/alpha.ts:91</a
129
+ >
130
+ </li>
131
+ </ul>
132
+ </aside>
133
+ </li>
134
+ </ul>
135
+ </section>
136
+ </div>
137
+ <div class="col-sidebar">
138
+ <div class="page-menu">
139
+ <div class="tsd-navigation settings">
140
+ <details class="tsd-accordion">
141
+ <summary class="tsd-accordion-summary">
142
+ <h3>
143
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
144
+ <use href="../assets/icons.svg#icon-chevronDown"></use></svg
145
+ >Settings
146
+ </h3>
147
+ </summary>
148
+ <div class="tsd-accordion-details">
149
+ <div class="tsd-filter-visibility">
150
+ <span class="settings-label">Member Visibility</span>
151
+ <ul id="tsd-filter-options">
152
+ <li class="tsd-filter-item">
153
+ <label class="tsd-filter-input"
154
+ ><input
155
+ type="checkbox"
156
+ id="tsd-filter-inherited"
157
+ name="inherited"
158
+ checked
159
+ /><svg
160
+ width="32"
161
+ height="32"
162
+ viewBox="0 0 32 32"
163
+ aria-hidden="true"
164
+ >
165
+ <rect
166
+ class="tsd-checkbox-background"
167
+ width="30"
168
+ height="30"
169
+ x="1"
170
+ y="1"
171
+ rx="6"
172
+ fill="none"
173
+ ></rect>
174
+ <path
175
+ class="tsd-checkbox-checkmark"
176
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
177
+ stroke="none"
178
+ stroke-width="3.5"
179
+ stroke-linejoin="round"
180
+ fill="none"
181
+ ></path></svg
182
+ ><span>Inherited</span></label
183
+ >
184
+ </li>
185
+ <li class="tsd-filter-item">
186
+ <label class="tsd-filter-input"
187
+ ><input
188
+ type="checkbox"
189
+ id="tsd-filter-external"
190
+ name="external"
191
+ /><svg
192
+ width="32"
193
+ height="32"
194
+ viewBox="0 0 32 32"
195
+ aria-hidden="true"
196
+ >
197
+ <rect
198
+ class="tsd-checkbox-background"
199
+ width="30"
200
+ height="30"
201
+ x="1"
202
+ y="1"
203
+ rx="6"
204
+ fill="none"
205
+ ></rect>
206
+ <path
207
+ class="tsd-checkbox-checkmark"
208
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
209
+ stroke="none"
210
+ stroke-width="3.5"
211
+ stroke-linejoin="round"
212
+ fill="none"
213
+ ></path></svg
214
+ ><span>External</span></label
215
+ >
216
+ </li>
217
+ </ul>
218
+ </div>
219
+ <div class="tsd-theme-toggle">
220
+ <label class="settings-label" for="tsd-theme">Theme</label
221
+ ><select id="tsd-theme">
222
+ <option value="os">OS</option>
223
+ <option value="light">Light</option>
224
+ <option value="dark">Dark</option>
225
+ </select>
226
+ </div>
227
+ </div>
228
+ </details>
229
+ </div>
230
+ </div>
231
+ <div class="site-menu">
232
+ <nav class="tsd-navigation">
233
+ <a href="../modules.html"
234
+ ><svg class="tsd-kind-icon" viewBox="0 0 24 24">
235
+ <use href="../assets/icons.svg#icon-1"></use></svg
236
+ ><span>@alphafi/alphafi-sdk - v0.0.39</span></a
237
+ >
238
+ <ul
239
+ class="tsd-small-nested-navigation"
240
+ id="tsd-nav-container"
241
+ data-base=".."
242
+ >
243
+ <li>Loading...</li>
244
+ </ul>
245
+ </nav>
246
+ </div>
247
+ </div>
248
+ </div>
249
+ <footer>
250
+ <p class="tsd-generator">
251
+ Generated using
252
+ <a href="https://typedoc.org/" target="_blank">TypeDoc</a>
253
+ </p>
254
+ </footer>
255
+ <div class="overlay"></div>
256
+ </body>
257
+ </html>