@alphafi/alphafi-sdk 0.0.101 → 0.0.103

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 (382) hide show
  1. package/#package.json# +98 -0
  2. package/FETCH_OVERRIDE_FIX.md +222 -0
  3. package/dist/cjs/adminFunctions.d.ts +8 -0
  4. package/dist/cjs/adminFunctions.d.ts.map +1 -1
  5. package/dist/cjs/adminFunctions.js +121 -1
  6. package/dist/cjs/adminFunctions.js.map +1 -1
  7. package/dist/cjs/common/constants.d.ts +79 -0
  8. package/dist/cjs/common/constants.d.ts.map +1 -1
  9. package/dist/cjs/common/constants.js +130 -35
  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 +72 -4
  13. package/dist/cjs/common/maps.js.map +1 -1
  14. package/dist/cjs/common/types.d.ts +76 -26
  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/getAprs.d.ts.map +1 -1
  18. package/dist/cjs/getAprs.js +0 -27
  19. package/dist/cjs/getAprs.js.map +1 -1
  20. package/dist/cjs/graphql/getMultiReceipts.js +1 -1
  21. package/dist/cjs/graphql/getMultiReceipts.js.map +1 -1
  22. package/dist/cjs/index.d.ts +3 -1
  23. package/dist/cjs/index.d.ts.map +1 -1
  24. package/dist/cjs/index.js +13 -3
  25. package/dist/cjs/index.js.map +1 -1
  26. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
  27. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js +7 -1
  28. package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
  29. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +4 -0
  30. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  31. package/dist/cjs/sui-sdk/functions/getReceipts.js +31 -15
  32. package/dist/cjs/sui-sdk/functions/getReceipts.js.map +1 -1
  33. package/dist/cjs/transactions/7k.js +1 -1
  34. package/dist/cjs/transactions/7k.js.map +1 -1
  35. package/dist/cjs/transactions/alphaVault.d.ts +26 -0
  36. package/dist/cjs/transactions/alphaVault.d.ts.map +1 -0
  37. package/dist/cjs/transactions/alphaVault.js +385 -0
  38. package/dist/cjs/transactions/alphaVault.js.map +1 -0
  39. package/dist/cjs/transactions/alphalend.d.ts.map +1 -1
  40. package/dist/cjs/transactions/alphalend.js +10 -32
  41. package/dist/cjs/transactions/alphalend.js.map +1 -1
  42. package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
  43. package/dist/cjs/transactions/bluefin.js +68 -83
  44. package/dist/cjs/transactions/bluefin.js.map +1 -1
  45. package/dist/cjs/transactions/bucket.d.ts.map +1 -1
  46. package/dist/cjs/transactions/bucket.js +5 -16
  47. package/dist/cjs/transactions/bucket.js.map +1 -1
  48. package/dist/cjs/transactions/cetus.d.ts.map +1 -1
  49. package/dist/cjs/transactions/cetus.js +17 -50
  50. package/dist/cjs/transactions/cetus.js.map +1 -1
  51. package/dist/cjs/transactions/collect_rewards.d.ts +1 -0
  52. package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
  53. package/dist/cjs/transactions/collect_rewards.js +145 -40
  54. package/dist/cjs/transactions/collect_rewards.js.map +1 -1
  55. package/dist/cjs/transactions/deposit.d.ts.map +1 -1
  56. package/dist/cjs/transactions/deposit.js +4 -0
  57. package/dist/cjs/transactions/deposit.js.map +1 -1
  58. package/dist/cjs/transactions/navi-looping.d.ts +11 -11
  59. package/dist/cjs/transactions/navi-looping.d.ts.map +1 -1
  60. package/dist/cjs/transactions/navi-looping.js +65 -138
  61. package/dist/cjs/transactions/navi-looping.js.map +1 -1
  62. package/dist/cjs/transactions/navi.d.ts.map +1 -1
  63. package/dist/cjs/transactions/navi.js +63 -108
  64. package/dist/cjs/transactions/navi.js.map +1 -1
  65. package/dist/cjs/transactions/naviOracle.d.ts +2 -1
  66. package/dist/cjs/transactions/naviOracle.d.ts.map +1 -1
  67. package/dist/cjs/transactions/naviOracle.js +11 -2
  68. package/dist/cjs/transactions/naviOracle.js.map +1 -1
  69. package/dist/cjs/transactions/slush.d.ts +12 -0
  70. package/dist/cjs/transactions/slush.d.ts.map +1 -0
  71. package/dist/cjs/transactions/slush.js +143 -0
  72. package/dist/cjs/transactions/slush.js.map +1 -0
  73. package/dist/cjs/transactions/withdraw.d.ts.map +1 -1
  74. package/dist/cjs/transactions/withdraw.js +14 -2
  75. package/dist/cjs/transactions/withdraw.js.map +1 -1
  76. package/dist/cjs/transactions/zapDeposit.js +4 -4
  77. package/dist/cjs/transactions/zapDeposit.js.map +1 -1
  78. package/dist/esm/adminFunctions.d.ts +8 -0
  79. package/dist/esm/adminFunctions.d.ts.map +1 -1
  80. package/dist/esm/adminFunctions.js +119 -3
  81. package/dist/esm/adminFunctions.js.map +1 -1
  82. package/dist/esm/common/constants.d.ts +79 -0
  83. package/dist/esm/common/constants.d.ts.map +1 -1
  84. package/dist/esm/common/constants.js +130 -35
  85. package/dist/esm/common/constants.js.map +1 -1
  86. package/dist/esm/common/maps.d.ts.map +1 -1
  87. package/dist/esm/common/maps.js +72 -4
  88. package/dist/esm/common/maps.js.map +1 -1
  89. package/dist/esm/common/types.d.ts +76 -26
  90. package/dist/esm/common/types.d.ts.map +1 -1
  91. package/dist/esm/common/types.js.map +1 -1
  92. package/dist/esm/getAprs.d.ts.map +1 -1
  93. package/dist/esm/getAprs.js +0 -27
  94. package/dist/esm/getAprs.js.map +1 -1
  95. package/dist/esm/graphql/getMultiReceipts.js +1 -1
  96. package/dist/esm/graphql/getMultiReceipts.js.map +1 -1
  97. package/dist/esm/index.d.ts +3 -1
  98. package/dist/esm/index.d.ts.map +1 -1
  99. package/dist/esm/index.js +3 -1
  100. package/dist/esm/index.js.map +1 -1
  101. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
  102. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js +7 -1
  103. package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
  104. package/dist/esm/sui-sdk/functions/getReceipts.d.ts +4 -0
  105. package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  106. package/dist/esm/sui-sdk/functions/getReceipts.js +31 -15
  107. package/dist/esm/sui-sdk/functions/getReceipts.js.map +1 -1
  108. package/dist/esm/transactions/7k.js +1 -1
  109. package/dist/esm/transactions/7k.js.map +1 -1
  110. package/dist/esm/transactions/alphaVault.d.ts +26 -0
  111. package/dist/esm/transactions/alphaVault.d.ts.map +1 -0
  112. package/dist/esm/transactions/alphaVault.js +377 -0
  113. package/dist/esm/transactions/alphaVault.js.map +1 -0
  114. package/dist/esm/transactions/alphalend.d.ts.map +1 -1
  115. package/dist/esm/transactions/alphalend.js +10 -32
  116. package/dist/esm/transactions/alphalend.js.map +1 -1
  117. package/dist/esm/transactions/bluefin.d.ts.map +1 -1
  118. package/dist/esm/transactions/bluefin.js +68 -83
  119. package/dist/esm/transactions/bluefin.js.map +1 -1
  120. package/dist/esm/transactions/bucket.d.ts.map +1 -1
  121. package/dist/esm/transactions/bucket.js +5 -16
  122. package/dist/esm/transactions/bucket.js.map +1 -1
  123. package/dist/esm/transactions/cetus.d.ts.map +1 -1
  124. package/dist/esm/transactions/cetus.js +17 -50
  125. package/dist/esm/transactions/cetus.js.map +1 -1
  126. package/dist/esm/transactions/collect_rewards.d.ts +1 -0
  127. package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
  128. package/dist/esm/transactions/collect_rewards.js +144 -40
  129. package/dist/esm/transactions/collect_rewards.js.map +1 -1
  130. package/dist/esm/transactions/deposit.d.ts.map +1 -1
  131. package/dist/esm/transactions/deposit.js +4 -0
  132. package/dist/esm/transactions/deposit.js.map +1 -1
  133. package/dist/esm/transactions/navi-looping.d.ts +11 -11
  134. package/dist/esm/transactions/navi-looping.d.ts.map +1 -1
  135. package/dist/esm/transactions/navi-looping.js +65 -138
  136. package/dist/esm/transactions/navi-looping.js.map +1 -1
  137. package/dist/esm/transactions/navi.d.ts.map +1 -1
  138. package/dist/esm/transactions/navi.js +63 -108
  139. package/dist/esm/transactions/navi.js.map +1 -1
  140. package/dist/esm/transactions/naviOracle.d.ts +2 -1
  141. package/dist/esm/transactions/naviOracle.d.ts.map +1 -1
  142. package/dist/esm/transactions/naviOracle.js +11 -2
  143. package/dist/esm/transactions/naviOracle.js.map +1 -1
  144. package/dist/esm/transactions/slush.d.ts +12 -0
  145. package/dist/esm/transactions/slush.d.ts.map +1 -0
  146. package/dist/esm/transactions/slush.js +137 -0
  147. package/dist/esm/transactions/slush.js.map +1 -0
  148. package/dist/esm/transactions/withdraw.d.ts.map +1 -1
  149. package/dist/esm/transactions/withdraw.js +15 -3
  150. package/dist/esm/transactions/withdraw.js.map +1 -1
  151. package/dist/esm/transactions/zapDeposit.js +4 -4
  152. package/dist/esm/transactions/zapDeposit.js.map +1 -1
  153. package/docs/assets/highlight.css +1 -1
  154. package/docs/assets/navigation.js +1 -1
  155. package/docs/assets/search.js +1 -1
  156. package/docs/functions/addAirdropCoin.html +1 -0
  157. package/docs/functions/alphaLpBreakdown.html +1 -1
  158. package/docs/functions/cetusLpBreakdown.html +1 -1
  159. package/docs/functions/claimAirdropTx.html +1 -0
  160. package/docs/functions/claimRewardTxb.html +1 -1
  161. package/docs/functions/claimRewardsTxb.html +1 -1
  162. package/docs/functions/claimWithdrawAlphaTx.html +1 -0
  163. package/docs/functions/coinAmountToXTokensDoubleAsset.html +1 -1
  164. package/docs/functions/coinAmountToXTokensSingleAsset.html +1 -1
  165. package/docs/functions/coinsInPool.html +1 -1
  166. package/docs/functions/collectAndSwapRewardsLyf.html +1 -1
  167. package/docs/functions/collectAndSwapRewardsSingleLoop.html +1 -1
  168. package/docs/functions/collectRewardTxb.html +1 -1
  169. package/docs/functions/collectRewards.html +1 -1
  170. package/docs/functions/collectRewardsAndSwapSlush.html +1 -0
  171. package/docs/functions/collectUnsuppliedBalance.html +1 -0
  172. package/docs/functions/deposit.html +1 -1
  173. package/docs/functions/depositAlphaTx.html +1 -0
  174. package/docs/functions/depositDoubleAssetTxb.html +1 -1
  175. package/docs/functions/depositSingleAssetTxb.html +1 -1
  176. package/docs/functions/fetchAfterTransactionEvents.html +1 -1
  177. package/docs/functions/fetchAirdropClaimEvents.html +1 -1
  178. package/docs/functions/fetchAutoCompoundingEvents.html +1 -1
  179. package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -1
  180. package/docs/functions/fetchCetusPools.html +1 -1
  181. package/docs/functions/fetchChainIdentifier.html +1 -1
  182. package/docs/functions/fetchCheckRatioEvents.html +1 -1
  183. package/docs/functions/fetchEvents.html +1 -1
  184. package/docs/functions/fetchLiquidityChangeEvents.html +1 -1
  185. package/docs/functions/fetchMultiCategoryEvents.html +1 -1
  186. package/docs/functions/fetchMultiReceipts.html +1 -1
  187. package/docs/functions/fetchNftHolders.html +1 -1
  188. package/docs/functions/fetchPools.html +1 -1
  189. package/docs/functions/fetchPortfolioData.html +1 -1
  190. package/docs/functions/fetchProtocolData.html +1 -1
  191. package/docs/functions/fetchRequiredPrices.html +1 -1
  192. package/docs/functions/fetchTVL.html +1 -1
  193. package/docs/functions/fetchTransactions.html +1 -1
  194. package/docs/functions/fetchUserVaultBalances.html +1 -1
  195. package/docs/functions/fetchUserVaults.html +1 -1
  196. package/docs/functions/fetchUserWalletData.html +1 -1
  197. package/docs/functions/fetchVoloExchangeRate.html +1 -1
  198. package/docs/functions/fetchWithdrawV2Events.html +1 -1
  199. package/docs/functions/getAirdropShare.html +1 -1
  200. package/docs/functions/getAllDoubleAssetVaults.html +1 -1
  201. package/docs/functions/getAllSingleAssetVaults.html +1 -1
  202. package/docs/functions/getAllVaultBalances.html +1 -1
  203. package/docs/functions/getAllVaults.html +1 -1
  204. package/docs/functions/getAlphaUnlocks.html +1 -1
  205. package/docs/functions/getAlphaVaultBalance.html +1 -1
  206. package/docs/functions/getAmounts.html +1 -1
  207. package/docs/functions/getApr.html +1 -1
  208. package/docs/functions/getAprs.html +1 -1
  209. package/docs/functions/getApy.html +1 -1
  210. package/docs/functions/getApys.html +1 -1
  211. package/docs/functions/getCetusInvestorTicksMap.html +1 -1
  212. package/docs/functions/getCetusPool.html +1 -1
  213. package/docs/functions/getCetusSqrtPriceMap.html +1 -1
  214. package/docs/functions/getCoinAmountsFromLiquidity.html +1 -1
  215. package/docs/functions/getConf.html +1 -1
  216. package/docs/functions/getCurrentTick.html +1 -1
  217. package/docs/functions/getDistributor.html +1 -1
  218. package/docs/functions/getDoubleAssetVaultBalance.html +1 -1
  219. package/docs/functions/getDoubleAssetVaults.html +1 -1
  220. package/docs/functions/getInvestor.html +1 -1
  221. package/docs/functions/getInvestorPoolMap.html +1 -1
  222. package/docs/functions/getLastAutoCompoundTime.html +1 -1
  223. package/docs/functions/getLatestPrices.html +1 -1
  224. package/docs/functions/getLiquidity.html +1 -1
  225. package/docs/functions/getMultiCetusPool.html +1 -1
  226. package/docs/functions/getMultiInvestor.html +1 -1
  227. package/docs/functions/getMultiLatestPrices.html +1 -1
  228. package/docs/functions/getMultiParentPool.html +1 -1
  229. package/docs/functions/getMultiPool.html +1 -1
  230. package/docs/functions/getMultiReceipts.html +1 -1
  231. package/docs/functions/getParentPool.html +1 -1
  232. package/docs/functions/getPool.html +1 -1
  233. package/docs/functions/getPoolExchangeRate.html +1 -1
  234. package/docs/functions/getPoolExchangeRateMap.html +1 -1
  235. package/docs/functions/getPoolsWeightDistribution.html +1 -1
  236. package/docs/functions/getPositionRange.html +1 -1
  237. package/docs/functions/getPositionRanges.html +1 -1
  238. package/docs/functions/getPositionTicks.html +1 -1
  239. package/docs/functions/getPriceToTick.html +1 -1
  240. package/docs/functions/getRebalanceHistories.html +1 -1
  241. package/docs/functions/getRebalanceHistory.html +1 -1
  242. package/docs/functions/getReceipts.html +1 -1
  243. package/docs/functions/getSingleAssetVaultBalance.html +1 -1
  244. package/docs/functions/getSingleAssetVaults.html +1 -1
  245. package/docs/functions/getSlushUserTotalXtokens.html +1 -0
  246. package/docs/functions/getSuiClient.html +2 -2
  247. package/docs/functions/getSuiNodeUrl.html +2 -2
  248. package/docs/functions/getTVLs-1.html +1 -1
  249. package/docs/functions/getTickSpacing.html +1 -1
  250. package/docs/functions/getTickToPrice.html +1 -1
  251. package/docs/functions/getTvls.html +1 -1
  252. package/docs/functions/getVaultBalance.html +1 -1
  253. package/docs/functions/getVaults.html +1 -1
  254. package/docs/functions/getWithdrawRequestAndUnsuppliedAmounts.html +1 -0
  255. package/docs/functions/initiateWithdrawAlpha.html +1 -0
  256. package/docs/functions/lastAutocompoundTime.html +1 -1
  257. package/docs/functions/liquidityToTokens.html +1 -1
  258. package/docs/functions/migrateBoostedToLoop.html +1 -1
  259. package/docs/functions/multiLiquidityToTokens.html +1 -1
  260. package/docs/functions/multiTokensToUsd.html +1 -1
  261. package/docs/functions/multiXTokensToLiquidity.html +1 -1
  262. package/docs/functions/parseUserWalletData.html +1 -1
  263. package/docs/functions/pendingRewardAmount.html +1 -1
  264. package/docs/functions/processWithdrawRequestsManual.html +1 -0
  265. package/docs/functions/setCustomSuiClient.html +3 -3
  266. package/docs/functions/setSuiClient.html +2 -2
  267. package/docs/functions/setSuiNodeUrl.html +2 -2
  268. package/docs/functions/setWeights.html +1 -1
  269. package/docs/functions/slushDeposit.html +1 -0
  270. package/docs/functions/slushWithdraw.html +1 -0
  271. package/docs/functions/withdraw.html +1 -1
  272. package/docs/functions/withdrawAlphaTxb.html +1 -1
  273. package/docs/functions/withdrawTxb.html +1 -1
  274. package/docs/functions/zapDepositQuoteTxb.html +1 -1
  275. package/docs/functions/zapDepositTxb.html +1 -1
  276. package/docs/hierarchy.html +1 -1
  277. package/docs/index.html +19 -19
  278. package/docs/interfaces/Coin.html +6 -6
  279. package/docs/interfaces/CoinPair.html +2 -2
  280. package/docs/interfaces/CommonEventAttributes.html +2 -2
  281. package/docs/interfaces/NaviVoloData.html +2 -2
  282. package/docs/interfaces/PoolData.html +2 -2
  283. package/docs/interfaces/PoolWeightDistribution.html +2 -2
  284. package/docs/interfaces/RebalanceHistoryType.html +2 -2
  285. package/docs/modules.html +1 -1
  286. package/docs/types/AfterTransactionEventNode.html +1 -1
  287. package/docs/types/AirdropClaimEventNode.html +1 -1
  288. package/docs/types/Allocator.html +2 -2
  289. package/docs/types/AlphaFiDoubleAssetVault.html +2 -2
  290. package/docs/types/AlphaFiMultiVaultBalance.html +1 -1
  291. package/docs/types/AlphaFiSingleAssetVault.html +2 -2
  292. package/docs/types/AlphaFiVault.html +1 -1
  293. package/docs/types/AlphaFiVaultBalance.html +1 -1
  294. package/docs/types/AlphaLendInvestor.html +1 -1
  295. package/docs/types/AlphaPoolType.html +2 -2
  296. package/docs/types/AlphaReceipt.html +2 -2
  297. package/docs/types/AlphaReceiptFields.html +2 -2
  298. package/docs/types/AlphaVaultBalance.html +2 -2
  299. package/docs/types/AutoBalancePoolNames.html +1 -1
  300. package/docs/types/AutoCompoundingEventNode.html +1 -1
  301. package/docs/types/Bag.html +3 -0
  302. package/docs/types/BluefinInvestor.html +1 -1
  303. package/docs/types/BluefinLyfInvestor.html +1 -1
  304. package/docs/types/BluefinPoolType.html +2 -2
  305. package/docs/types/BucketInvestor.html +2 -2
  306. package/docs/types/CetusInvestor.html +2 -2
  307. package/docs/types/CetusPoolType.html +2 -2
  308. package/docs/types/CetusSwapOptions.html +1 -1
  309. package/docs/types/CoinAmounts.html +2 -2
  310. package/docs/types/CoinName.html +1 -1
  311. package/docs/types/CoinType.html +1 -1
  312. package/docs/types/CommonInvestorFields.html +2 -2
  313. package/docs/types/CreatePoolOptions.html +2 -2
  314. package/docs/types/Distributor.html +2 -2
  315. package/docs/types/DoubleAssetMultiVaultBalance.html +2 -2
  316. package/docs/types/DoubleAssetPoolNames.html +1 -1
  317. package/docs/types/DoubleAssetTokenHoldings.html +2 -2
  318. package/docs/types/DoubleAssetVaultBalance.html +2 -2
  319. package/docs/types/EventCategory.html +1 -1
  320. package/docs/types/EventNode.html +1 -1
  321. package/docs/types/GetHoldersParams.html +2 -2
  322. package/docs/types/GetTokenHoldingsParams.html +2 -2
  323. package/docs/types/GetUserTokensFromTransactionsParams.html +2 -2
  324. package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +2 -2
  325. package/docs/types/GetVaultBalanceParams.html +1 -1
  326. package/docs/types/HoldingsObj.html +2 -2
  327. package/docs/types/Icon.html +1 -1
  328. package/docs/types/Investor.html +1 -1
  329. package/docs/types/LiquidityChangeEventNode.html +1 -1
  330. package/docs/types/LiquidityToTokensParams.html +2 -2
  331. package/docs/types/LiquidityToUsdParams.html +2 -2
  332. package/docs/types/LoopingDebt.html +2 -2
  333. package/docs/types/LoopingPoolNames.html +1 -1
  334. package/docs/types/LpBreakdownType.html +2 -2
  335. package/docs/types/MemberPoolDataType.html +2 -2
  336. package/docs/types/MemberType.html +2 -2
  337. package/docs/types/MultiGetVaultBalancesParams.html +2 -2
  338. package/docs/types/NaviInvestor.html +2 -2
  339. package/docs/types/ObjectTable.html +1 -0
  340. package/docs/types/OtherReceiptFields.html +2 -2
  341. package/docs/types/PoolName.html +1 -1
  342. package/docs/types/PoolReceipt.html +1 -1
  343. package/docs/types/PoolType.html +2 -2
  344. package/docs/types/Receipt.html +2 -2
  345. package/docs/types/ReceiptGQL.html +2 -2
  346. package/docs/types/SingleAssetMultiVaultBalance.html +2 -2
  347. package/docs/types/SingleAssetPoolNames.html +1 -1
  348. package/docs/types/SingleAssetTokenHoldings.html +2 -2
  349. package/docs/types/SingleAssetVaultBalance.html +2 -2
  350. package/docs/types/SingleGetVaultBalancesParams.html +2 -2
  351. package/docs/types/StrategyType.html +1 -1
  352. package/docs/types/SuiNetwork.html +1 -1
  353. package/docs/types/SwapOptions.html +1 -1
  354. package/docs/types/TickSpacing.html +1 -1
  355. package/docs/types/TotalWeightType.html +2 -2
  356. package/docs/types/TransactionBlockType.html +2 -2
  357. package/docs/types/UserPoolLiquidity.html +2 -2
  358. package/docs/types/UserPoolTokenHoldings.html +1 -1
  359. package/docs/types/UserUsdHoldings.html +2 -2
  360. package/docs/types/VaultBalance.html +1 -1
  361. package/docs/types/VecMap.html +3 -0
  362. package/docs/types/VoteCastEvent.html +1 -1
  363. package/docs/types/WithdrawV2EventNode.html +1 -1
  364. package/docs/variables/AUTOBALANCE_SUI_FIRST_POOLS.html +1 -1
  365. package/docs/variables/AUTOBALANCE_SUI_SECOND_POOLS.html +1 -1
  366. package/docs/variables/AUTOBALANCE_TYPE_1_POOLS.html +1 -1
  367. package/docs/variables/alphalendMarketIdMap.html +1 -1
  368. package/docs/variables/bluefinPoolMap.html +1 -1
  369. package/docs/variables/cetusPoolMap.html +1 -1
  370. package/docs/variables/coinsList.html +1 -1
  371. package/docs/variables/defunctPoolsSet.html +1 -1
  372. package/docs/variables/doubleAssetPoolCoinMap.html +1 -1
  373. package/docs/variables/eventCategories.html +1 -1
  374. package/docs/variables/ignoredWalletsForDailyRevenue.html +1 -1
  375. package/docs/variables/loopingAccountAddresses.html +1 -1
  376. package/docs/variables/loopingPoolCoinMap.html +1 -1
  377. package/docs/variables/naviAssetMap.html +1 -1
  378. package/docs/variables/poolIdPoolNameMap.html +1 -1
  379. package/docs/variables/poolInfo.html +1 -1
  380. package/docs/variables/singleAssetPoolCoinMap.html +1 -1
  381. package/docs/variables/stableCoins.html +1 -1
  382. package/package.json +6 -4
@@ -3,27 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.claimRewardTxb = claimRewardTxb;
4
4
  exports.collectAndSwapRewardsSingleLoop = collectAndSwapRewardsSingleLoop;
5
5
  exports.collectAndSwapRewardsLyf = collectAndSwapRewardsLyf;
6
+ exports.collectRewardsAndSwapSlush = collectRewardsAndSwapSlush;
6
7
  const transactions_1 = require("@mysten/sui/transactions");
7
8
  const index_js_1 = require("../index.js");
8
9
  async function claimRewardTxb(address) {
9
10
  const txb = new transactions_1.Transaction();
10
11
  await (0, index_js_1.getMultiReceipts)(address);
11
- const alphaReceipt = await (0, index_js_1.getReceipts)("ALPHA", address, false);
12
12
  let alpha_receipt;
13
- if (alphaReceipt.length == 0) {
14
- [alpha_receipt] = txb.moveCall({
15
- target: `0x1::option::none`,
16
- typeArguments: [(0, index_js_1.getConf)().ALPHA_POOL_RECEIPT],
17
- arguments: [],
18
- });
19
- }
20
- else {
21
- [alpha_receipt] = txb.moveCall({
22
- target: `0x1::option::some`,
23
- typeArguments: [alphaReceipt[0].content.type],
24
- arguments: [txb.object(alphaReceipt[0].objectId)],
25
- });
26
- }
13
+ [alpha_receipt] = txb.moveCall({
14
+ target: `0x1::option::none`,
15
+ typeArguments: [(0, index_js_1.getConf)().ALPHA_POOL_RECEIPT],
16
+ arguments: [],
17
+ });
27
18
  const keys = Object.keys(index_js_1.poolInfo);
28
19
  for (const poolName of keys) {
29
20
  if (index_js_1.poolInfo[poolName].poolId == "") {
@@ -45,7 +36,7 @@ async function claimRewardTxb(address) {
45
36
  txb.object(receipt.objectId),
46
37
  alpha_receipt,
47
38
  txb.object(index_js_1.poolInfo[poolName].poolId),
48
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
39
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
49
40
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
50
41
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
51
42
  ],
@@ -69,7 +60,7 @@ async function claimRewardTxb(address) {
69
60
  txb.object(receipt.objectId),
70
61
  alpha_receipt,
71
62
  txb.object(index_js_1.poolInfo[poolName].poolId),
72
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
63
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
73
64
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
74
65
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
75
66
  ],
@@ -88,7 +79,7 @@ async function claimRewardTxb(address) {
88
79
  txb.object(receipt.objectId),
89
80
  alpha_receipt,
90
81
  txb.object(index_js_1.poolInfo[poolName].poolId),
91
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
82
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
92
83
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
93
84
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
94
85
  ],
@@ -105,7 +96,7 @@ async function claimRewardTxb(address) {
105
96
  txb.object(receipt.objectId),
106
97
  alpha_receipt,
107
98
  txb.object(index_js_1.poolInfo[poolName].poolId),
108
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
99
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
109
100
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
110
101
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
111
102
  ],
@@ -133,7 +124,7 @@ async function claimRewardTxb(address) {
133
124
  txb.object(receipt.objectId),
134
125
  alpha_receipt,
135
126
  txb.object(index_js_1.poolInfo[poolName].poolId),
136
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
127
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
137
128
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
138
129
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
139
130
  ],
@@ -156,7 +147,7 @@ async function claimRewardTxb(address) {
156
147
  txb.object(receipt.objectId),
157
148
  alpha_receipt,
158
149
  txb.object(index_js_1.poolInfo[poolName].poolId),
159
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
150
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
160
151
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
161
152
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
162
153
  ],
@@ -176,7 +167,7 @@ async function claimRewardTxb(address) {
176
167
  txb.object(receipt.objectId),
177
168
  alpha_receipt,
178
169
  txb.object(index_js_1.poolInfo[poolName].poolId),
179
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
170
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
180
171
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
181
172
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
182
173
  ],
@@ -196,7 +187,7 @@ async function claimRewardTxb(address) {
196
187
  txb.object(receipt.objectId),
197
188
  alpha_receipt,
198
189
  txb.object(index_js_1.poolInfo[poolName].poolId),
199
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
190
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
200
191
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
201
192
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
202
193
  ],
@@ -214,7 +205,7 @@ async function claimRewardTxb(address) {
214
205
  txb.object(receipt.objectId),
215
206
  alpha_receipt,
216
207
  txb.object(index_js_1.poolInfo[poolName].poolId),
217
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
208
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
218
209
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
219
210
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
220
211
  ],
@@ -236,7 +227,7 @@ async function claimRewardTxb(address) {
236
227
  txb.object(receipt.objectId),
237
228
  alpha_receipt,
238
229
  txb.object(index_js_1.poolInfo[poolName].poolId),
239
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
230
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
240
231
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
241
232
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
242
233
  ],
@@ -255,7 +246,7 @@ async function claimRewardTxb(address) {
255
246
  txb.object(receipt.objectId),
256
247
  alpha_receipt,
257
248
  txb.object(index_js_1.poolInfo[poolName].poolId),
258
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
249
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
259
250
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
260
251
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
261
252
  ],
@@ -278,7 +269,7 @@ async function claimRewardTxb(address) {
278
269
  txb.object(receipt.objectId),
279
270
  alpha_receipt,
280
271
  txb.object(index_js_1.poolInfo[poolName].poolId),
281
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
272
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
282
273
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
283
274
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
284
275
  ],
@@ -295,7 +286,7 @@ async function claimRewardTxb(address) {
295
286
  txb.object(receipt.objectId),
296
287
  alpha_receipt,
297
288
  txb.object(index_js_1.poolInfo[poolName].poolId),
298
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
289
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
299
290
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
300
291
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
301
292
  ],
@@ -319,7 +310,7 @@ async function claimRewardTxb(address) {
319
310
  txb.object(receipt.objectId),
320
311
  alpha_receipt,
321
312
  txb.object(index_js_1.poolInfo[poolName].poolId),
322
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
313
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
323
314
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
324
315
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
325
316
  ],
@@ -336,7 +327,7 @@ async function claimRewardTxb(address) {
336
327
  txb.object(receipt.objectId),
337
328
  alpha_receipt,
338
329
  txb.object(index_js_1.poolInfo[poolName].poolId),
339
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
330
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
340
331
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
341
332
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
342
333
  ],
@@ -353,7 +344,7 @@ async function claimRewardTxb(address) {
353
344
  txb.object(receipt.objectId),
354
345
  alpha_receipt,
355
346
  txb.object(index_js_1.poolInfo[poolName].poolId),
356
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
347
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
357
348
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
358
349
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
359
350
  ],
@@ -370,7 +361,7 @@ async function claimRewardTxb(address) {
370
361
  txb.object(receipt.objectId),
371
362
  alpha_receipt,
372
363
  txb.object(index_js_1.poolInfo[poolName].poolId),
373
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
364
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
374
365
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
375
366
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
376
367
  ],
@@ -409,7 +400,7 @@ async function claimRewardTxb(address) {
409
400
  txb.object(receipt.objectId),
410
401
  alpha_receipt,
411
402
  txb.object(index_js_1.poolInfo[poolName].poolId),
412
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
403
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
413
404
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
414
405
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
415
406
  ],
@@ -429,7 +420,7 @@ async function claimRewardTxb(address) {
429
420
  txb.object(receipt.objectId),
430
421
  alpha_receipt,
431
422
  txb.object(index_js_1.poolInfo[poolName].poolId),
432
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
423
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
433
424
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
434
425
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
435
426
  ],
@@ -446,7 +437,7 @@ async function claimRewardTxb(address) {
446
437
  txb.object(receipt.objectId),
447
438
  alpha_receipt,
448
439
  txb.object(index_js_1.poolInfo[poolName].poolId),
449
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
440
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
450
441
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
451
442
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
452
443
  ],
@@ -482,7 +473,7 @@ async function claimRewardTxb(address) {
482
473
  txb.object(receipt.objectId),
483
474
  alpha_receipt,
484
475
  txb.object(index_js_1.poolInfo[poolName].poolId),
485
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
476
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
486
477
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
487
478
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
488
479
  ],
@@ -502,7 +493,7 @@ async function claimRewardTxb(address) {
502
493
  txb.object(receipt.objectId),
503
494
  alpha_receipt,
504
495
  txb.object(index_js_1.poolInfo[poolName].poolId),
505
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
496
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
506
497
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
507
498
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
508
499
  ],
@@ -524,7 +515,7 @@ async function claimRewardTxb(address) {
524
515
  txb.object(receipt.objectId),
525
516
  alpha_receipt,
526
517
  txb.object(index_js_1.poolInfo[poolName].poolId),
527
- txb.object(index_js_1.poolInfo["ALPHA"].poolId),
518
+ txb.object((0, index_js_1.getConf)().ALPHA_POOL),
528
519
  txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
529
520
  txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
530
521
  ],
@@ -628,7 +619,7 @@ async function collectAndSwapRewardsSingleLoop(poolName, tx) {
628
619
  txb.object(C.ALPHA_ALPHALEND_VERSION),
629
620
  txb.object(poolData.investorId),
630
621
  txb.object(C.LENDING_PROTOCOL_ID),
631
- txb.object(index_js_1.bluefinPoolMap[`SUI-USDC`]),
622
+ txb.object(index_js_1.bluefinPoolMap[`SUI-USDC-175`]),
632
623
  txb.object(C.BLUEFIN_GLOBAL_CONFIG),
633
624
  txb.pure.bool(true),
634
625
  txb.pure.bool(true),
@@ -794,7 +785,7 @@ async function collectAndSwapRewardsSingleLoop(poolName, tx) {
794
785
  txb.object(C.ALPHA_ALPHALEND_VERSION),
795
786
  txb.object(poolData.investorId),
796
787
  txb.object(C.LENDING_PROTOCOL_ID),
797
- txb.object(index_js_1.bluefinPoolMap[`SUI-USDC`]),
788
+ txb.object(index_js_1.bluefinPoolMap[`SUI-USDC-175`]),
798
789
  txb.object(C.BLUEFIN_GLOBAL_CONFIG),
799
790
  txb.pure.bool(true),
800
791
  txb.pure.bool(true),
@@ -900,4 +891,118 @@ async function collectAndSwapRewardsLyf(poolname, tx) {
900
891
  }
901
892
  return txb;
902
893
  }
894
+ async function collectRewardsAndSwapSlush(poolName, tx) {
895
+ const txb = tx ? tx : new transactions_1.Transaction();
896
+ const C = (0, index_js_1.getConf)();
897
+ const poolData = index_js_1.poolInfo[poolName];
898
+ const coinName = index_js_1.singleAssetPoolCoinMap[poolName].coin;
899
+ const coinType = index_js_1.coinsList[coinName].type;
900
+ txb.moveCall({
901
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
902
+ typeArguments: [coinType, index_js_1.coinsList["ALPHA"].type, index_js_1.coinsList["STSUI"].type],
903
+ arguments: [
904
+ txb.object(C.ALPHA_SLUSH_VERSION),
905
+ txb.object(poolData.poolId),
906
+ txb.object(C.LENDING_PROTOCOL_ID),
907
+ txb.object(index_js_1.bluefinPoolMap["ALPHA-STSUI"]),
908
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
909
+ txb.pure.bool(true),
910
+ txb.pure.bool(true),
911
+ txb.object(C.CLOCK_PACKAGE_ID),
912
+ ],
913
+ });
914
+ txb.moveCall({
915
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
916
+ typeArguments: [coinType, index_js_1.coinsList["STSUI"].type, index_js_1.coinsList["SUI"].type],
917
+ arguments: [
918
+ txb.object(C.ALPHA_SLUSH_VERSION),
919
+ txb.object(poolData.poolId),
920
+ txb.object(C.LENDING_PROTOCOL_ID),
921
+ txb.object(index_js_1.bluefinPoolMap["STSUI-SUI"]),
922
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
923
+ txb.pure.bool(true),
924
+ txb.pure.bool(true),
925
+ txb.object(C.CLOCK_PACKAGE_ID),
926
+ ],
927
+ });
928
+ txb.moveCall({
929
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
930
+ typeArguments: [coinType, index_js_1.coinsList["BLUE"].type, index_js_1.coinsList["SUI"].type],
931
+ arguments: [
932
+ txb.object(C.ALPHA_SLUSH_VERSION),
933
+ txb.object(poolData.poolId),
934
+ txb.object(C.LENDING_PROTOCOL_ID),
935
+ txb.object(index_js_1.bluefinPoolMap["BLUE-SUI"]),
936
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
937
+ txb.pure.bool(true),
938
+ txb.pure.bool(true),
939
+ txb.object(C.CLOCK_PACKAGE_ID),
940
+ ],
941
+ });
942
+ if (coinType !== index_js_1.coinsList["DEEP"].type) {
943
+ txb.moveCall({
944
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
945
+ typeArguments: [coinType, index_js_1.coinsList["DEEP"].type, index_js_1.coinsList["SUI"].type],
946
+ arguments: [
947
+ txb.object(C.ALPHA_SLUSH_VERSION),
948
+ txb.object(poolData.poolId),
949
+ txb.object(C.LENDING_PROTOCOL_ID),
950
+ txb.object(index_js_1.bluefinPoolMap["DEEP-SUI"]),
951
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
952
+ txb.pure.bool(true),
953
+ txb.pure.bool(true),
954
+ txb.object(C.CLOCK_PACKAGE_ID),
955
+ ],
956
+ });
957
+ }
958
+ if (coinType === index_js_1.coinsList["USDC"].type) {
959
+ txb.moveCall({
960
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
961
+ typeArguments: [coinType, index_js_1.coinsList["SUI"].type, coinType],
962
+ arguments: [
963
+ txb.object(C.ALPHA_SLUSH_VERSION),
964
+ txb.object(poolData.poolId),
965
+ txb.object(C.LENDING_PROTOCOL_ID),
966
+ txb.object(index_js_1.bluefinPoolMap["SUI-USDC"]),
967
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
968
+ txb.pure.bool(true),
969
+ txb.pure.bool(false),
970
+ txb.object(C.CLOCK_PACKAGE_ID),
971
+ ],
972
+ });
973
+ }
974
+ else if (coinType === index_js_1.coinsList["WAL"].type) {
975
+ txb.moveCall({
976
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
977
+ typeArguments: [coinType, index_js_1.coinsList["WAL"].type, index_js_1.coinsList["SUI"].type],
978
+ arguments: [
979
+ txb.object(C.ALPHA_SLUSH_VERSION),
980
+ txb.object(poolData.poolId),
981
+ txb.object(C.LENDING_PROTOCOL_ID),
982
+ txb.object(index_js_1.bluefinPoolMap["WAL-SUI"]),
983
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
984
+ txb.pure.bool(false),
985
+ txb.pure.bool(true),
986
+ txb.object(C.CLOCK_PACKAGE_ID),
987
+ ],
988
+ });
989
+ }
990
+ else if (coinType === index_js_1.coinsList["DEEP"].type) {
991
+ txb.moveCall({
992
+ target: `${C.ALPHA_SLUSH_LATEST_PACKAGE_ID}::alphalend_slush_pool::collect_reward_and_swap_bluefin`,
993
+ typeArguments: [coinType, index_js_1.coinsList["DEEP"].type, index_js_1.coinsList["SUI"].type],
994
+ arguments: [
995
+ txb.object(C.ALPHA_SLUSH_VERSION),
996
+ txb.object(poolData.poolId),
997
+ txb.object(C.LENDING_PROTOCOL_ID),
998
+ txb.object(index_js_1.bluefinPoolMap["DEEP-SUI"]),
999
+ txb.object(C.BLUEFIN_GLOBAL_CONFIG),
1000
+ txb.pure.bool(false),
1001
+ txb.pure.bool(true),
1002
+ txb.object(C.CLOCK_PACKAGE_ID),
1003
+ ],
1004
+ });
1005
+ }
1006
+ return txb;
1007
+ }
903
1008
  //# sourceMappingURL=collect_rewards.js.map