@alphafi/alphafi-sdk 0.0.55 → 0.0.58
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.
- package/dist/cjs/common/coins.d.ts.map +1 -1
- package/dist/cjs/common/coins.js +6 -0
- package/dist/cjs/common/coins.js.map +1 -1
- package/dist/cjs/common/constants.d.ts +93 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +90 -25
- package/dist/cjs/common/constants.js.map +1 -1
- package/dist/cjs/common/maps.d.ts.map +1 -1
- package/dist/cjs/common/maps.js +91 -39
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/common/pyth.d.ts +1 -1
- package/dist/cjs/common/pyth.d.ts.map +1 -1
- package/dist/cjs/common/pyth.js.map +1 -1
- package/dist/cjs/common/types.d.ts +4 -4
- package/dist/cjs/common/types.d.ts.map +1 -1
- package/dist/cjs/common/types.js.map +1 -1
- package/dist/cjs/getLastAutoCompoundTime.js +2 -2
- package/dist/cjs/getLastAutoCompoundTime.js.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +1 -0
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/cjs/transactions/7k.d.ts +1 -1
- package/dist/cjs/transactions/7k.d.ts.map +1 -1
- package/dist/cjs/transactions/7k.js +2 -1
- package/dist/cjs/transactions/7k.js.map +1 -1
- package/dist/cjs/transactions/blueRewards.d.ts.map +1 -1
- package/dist/cjs/transactions/blueRewards.js +18 -6
- package/dist/cjs/transactions/blueRewards.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +364 -40
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/cjs/transactions/collect_rewards.js +5 -1
- package/dist/cjs/transactions/collect_rewards.js.map +1 -1
- package/dist/cjs/transactions/deposit.d.ts.map +1 -1
- package/dist/cjs/transactions/deposit.js +2 -4
- package/dist/cjs/transactions/deposit.js.map +1 -1
- package/dist/cjs/transactions/navi.d.ts.map +1 -1
- package/dist/cjs/transactions/navi.js +64 -0
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/cjs/transactions/zapDeposit.js +89 -38
- package/dist/cjs/transactions/zapDeposit.js.map +1 -1
- package/dist/cjs/utils/constants.d.ts.map +1 -1
- package/dist/cjs/utils/constants.js +5 -0
- package/dist/cjs/utils/constants.js.map +1 -1
- package/dist/esm/common/coins.d.ts.map +1 -1
- package/dist/esm/common/coins.js +6 -0
- package/dist/esm/common/coins.js.map +1 -1
- package/dist/esm/common/constants.d.ts +93 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +90 -25
- package/dist/esm/common/constants.js.map +1 -1
- package/dist/esm/common/maps.d.ts.map +1 -1
- package/dist/esm/common/maps.js +91 -39
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/common/pyth.d.ts +1 -1
- package/dist/esm/common/pyth.d.ts.map +1 -1
- package/dist/esm/common/pyth.js.map +1 -1
- package/dist/esm/common/types.d.ts +4 -4
- package/dist/esm/common/types.d.ts.map +1 -1
- package/dist/esm/common/types.js.map +1 -1
- package/dist/esm/getLastAutoCompoundTime.js +2 -2
- package/dist/esm/getLastAutoCompoundTime.js.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts +1 -0
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/esm/transactions/7k.d.ts +1 -1
- package/dist/esm/transactions/7k.d.ts.map +1 -1
- package/dist/esm/transactions/7k.js +2 -1
- package/dist/esm/transactions/7k.js.map +1 -1
- package/dist/esm/transactions/blueRewards.d.ts.map +1 -1
- package/dist/esm/transactions/blueRewards.js +18 -6
- package/dist/esm/transactions/blueRewards.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +364 -40
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/esm/transactions/collect_rewards.js +5 -1
- package/dist/esm/transactions/collect_rewards.js.map +1 -1
- package/dist/esm/transactions/deposit.d.ts.map +1 -1
- package/dist/esm/transactions/deposit.js +2 -4
- package/dist/esm/transactions/deposit.js.map +1 -1
- package/dist/esm/transactions/navi.d.ts.map +1 -1
- package/dist/esm/transactions/navi.js +64 -0
- package/dist/esm/transactions/navi.js.map +1 -1
- package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/esm/transactions/zapDeposit.js +89 -38
- package/dist/esm/transactions/zapDeposit.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +5 -0
- package/dist/esm/utils/constants.js.map +1 -1
- package/docs/assets/highlight.css +74 -51
- package/docs/assets/icons.js +20 -17
- package/docs/assets/main.js +2163 -5
- package/docs/assets/navigation.js +2 -1
- package/docs/assets/search.js +2 -1
- package/docs/assets/style.css +846 -850
- package/docs/functions/alphaLpBreakdown.html +253 -1
- package/docs/functions/cetusLpBreakdown.html +253 -1
- package/docs/functions/claimBlueRewardTxb.html +258 -1
- package/docs/functions/claimRewardTxb.html +243 -1
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -1
- package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -1
- package/docs/functions/coinsInPool.html +438 -1
- package/docs/functions/collectRewards.html +242 -1
- package/docs/functions/deposit.html +246 -1
- package/docs/functions/depositDoubleAssetTxb.html +270 -1
- package/docs/functions/depositSingleAssetTxb.html +263 -1
- package/docs/functions/fetchAfterTransactionEvents.html +328 -1
- package/docs/functions/fetchAutoCompoundingEvents.html +257 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -1
- package/docs/functions/fetchCetusPools.html +231 -1
- package/docs/functions/fetchChainIdentifier.html +233 -1
- package/docs/functions/fetchCheckRatioEvents.html +249 -1
- package/docs/functions/fetchLiquidityChangeEvents.html +257 -1
- package/docs/functions/fetchMultiCategoryEvents.html +348 -1
- package/docs/functions/fetchMultiReceipts.html +261 -1
- package/docs/functions/fetchNftHolders.html +233 -1
- package/docs/functions/fetchPools.html +230 -1
- package/docs/functions/fetchPortfolioData.html +243 -1
- package/docs/functions/fetchProtocolData.html +231 -1
- package/docs/functions/fetchTVL.html +253 -1
- package/docs/functions/fetchUserVaultBalances.html +245 -1
- package/docs/functions/fetchUserVaults.html +243 -1
- package/docs/functions/fetchUserWalletData.html +243 -1
- package/docs/functions/fetchVoloExchangeRate.html +251 -1
- package/docs/functions/fetchWithdrawV2Events.html +255 -1
- package/docs/functions/getAirdropShare.html +243 -1
- package/docs/functions/getAllDoubleAssetVaults.html +235 -1
- package/docs/functions/getAllSingleAssetVaults.html +235 -1
- package/docs/functions/getAllVaultBalances.html +265 -1
- package/docs/functions/getAllVaults.html +233 -1
- package/docs/functions/getAlphaUnlocks.html +245 -1
- package/docs/functions/getAlphaVaultBalance.html +255 -1
- package/docs/functions/getAmounts.html +272 -1
- package/docs/functions/getApr.html +243 -1
- package/docs/functions/getAprs.html +255 -1
- package/docs/functions/getApy.html +243 -1
- package/docs/functions/getApys.html +255 -1
- package/docs/functions/getCetusInvestorTicksMap.html +284 -1
- package/docs/functions/getCetusPool.html +270 -1
- package/docs/functions/getCetusSqrtPriceMap.html +249 -1
- package/docs/functions/getCoinAmountsFromLiquidity.html +273 -1
- package/docs/functions/getConf.html +13163 -1
- package/docs/functions/getCurrentTick.html +247 -1
- package/docs/functions/getDistributor.html +252 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +268 -1
- package/docs/functions/getDoubleAssetVaults.html +253 -1
- package/docs/functions/getHoldersFromTransactions.html +299 -1
- package/docs/functions/getInvestor.html +259 -1
- package/docs/functions/getInvestorPoolMap.html +241 -1
- package/docs/functions/getLastAutoCompoundTime.html +249 -1
- package/docs/functions/getLatestPrices.html +253 -1
- package/docs/functions/getLiquidity.html +260 -1
- package/docs/functions/getMultiCetusPool.html +231 -1
- package/docs/functions/getMultiInvestor.html +231 -1
- package/docs/functions/getMultiLatestPrices.html +233 -1
- package/docs/functions/getMultiParentPool.html +231 -1
- package/docs/functions/getMultiPool.html +231 -1
- package/docs/functions/getMultiReceipts.html +243 -1
- package/docs/functions/getParentPool.html +266 -1
- package/docs/functions/getPool.html +262 -1
- package/docs/functions/getPoolExchangeRate.html +254 -1
- package/docs/functions/getPoolExchangeRateMap.html +249 -1
- package/docs/functions/getPoolsWeightDistribution.html +266 -1
- package/docs/functions/getPositionRange.html +283 -1
- package/docs/functions/getPositionRanges.html +289 -1
- package/docs/functions/getPositionTicks.html +249 -1
- package/docs/functions/getPriceToTick.html +264 -1
- package/docs/functions/getRebalanceHistories.html +269 -1
- package/docs/functions/getRebalanceHistory.html +255 -1
- package/docs/functions/getReceipts.html +268 -1
- package/docs/functions/getSingleAssetVaultBalance.html +268 -1
- package/docs/functions/getSingleAssetVaults.html +253 -1
- package/docs/functions/getSuiClient.html +247 -3
- package/docs/functions/getSuiNodeUrl.html +232 -3
- package/docs/functions/getTVLs-1.html +243 -1
- package/docs/functions/getTickSpacing.html +247 -1
- package/docs/functions/getTickToPrice.html +248 -1
- package/docs/functions/getTvls.html +259 -1
- package/docs/functions/getUserTokensFromTransactions.html +269 -1
- package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -1
- package/docs/functions/getVaultBalance.html +277 -1
- package/docs/functions/getVaultBalanceForActiveUsers.html +261 -1
- package/docs/functions/getVaults.html +250 -1
- package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -1
- package/docs/functions/getZapAmounts.html +323 -1
- package/docs/functions/lastAutocompoundTime.html +249 -1
- package/docs/functions/liquidityToTokens.html +253 -1
- package/docs/functions/multiLiquidityToTokens.html +271 -1
- package/docs/functions/multiTokensToUsd.html +262 -1
- package/docs/functions/multiXTokensToLiquidity.html +257 -1
- package/docs/functions/parseUserWalletData.html +243 -1
- package/docs/functions/pendingBlueRewardAmount.html +256 -1
- package/docs/functions/setCustomSuiClient.html +251 -5
- package/docs/functions/setSuiClient.html +255 -7
- package/docs/functions/setSuiNodeUrl.html +249 -5
- package/docs/functions/setWeights.html +270 -1
- package/docs/functions/withdraw.html +249 -1
- package/docs/functions/withdrawAlphaTxb.html +257 -1
- package/docs/functions/withdrawTxb.html +260 -1
- package/docs/functions/zapDepositTxb.html +300 -1
- package/docs/index.html +587 -41
- package/docs/interfaces/Coin.html +474 -12
- package/docs/interfaces/CoinPair.html +358 -3
- package/docs/interfaces/NaviVoloData.html +514 -3
- package/docs/interfaces/PoolData.html +579 -8
- package/docs/interfaces/PoolWeightDistribution.html +414 -4
- package/docs/interfaces/RebalanceHistoryType.html +652 -9
- package/docs/modules.html +1430 -198
- package/docs/types/AfterTransactionEventNode.html +305 -1
- package/docs/types/Allocator.html +321 -1
- package/docs/types/AlphaFiDoubleAssetVault.html +258 -1
- package/docs/types/AlphaFiMultiVaultBalance.html +219 -1
- package/docs/types/AlphaFiSingleAssetVault.html +244 -1
- package/docs/types/AlphaFiVault.html +214 -1
- package/docs/types/AlphaFiVaultBalance.html +220 -1
- package/docs/types/AlphaPoolType.html +383 -1
- package/docs/types/AlphaReceipt.html +220 -1
- package/docs/types/AlphaReceiptFields.html +421 -1
- package/docs/types/AlphaVaultBalance.html +245 -1
- package/docs/types/AutoBalancePoolNames.html +226 -1
- package/docs/types/AutoCompoundingEventNode.html +230 -1
- package/docs/types/BluefinInvestor.html +209 -1
- package/docs/types/BluefinPoolType.html +440 -1
- package/docs/types/BucketInvestor.html +249 -1
- package/docs/types/CetusInvestor.html +240 -1
- package/docs/types/CetusPoolType.html +433 -1
- package/docs/types/CetusSwapOptions.html +209 -1
- package/docs/types/CoinAmounts.html +216 -1
- package/docs/types/CoinName.html +293 -1
- package/docs/types/CoinType.html +294 -1
- package/docs/types/CommonInvestorFields.html +276 -1
- package/docs/types/CreatePoolOptions.html +246 -1
- package/docs/types/Distributor.html +341 -1
- package/docs/types/DoubleAssetMultiVaultBalance.html +236 -1
- package/docs/types/DoubleAssetPoolNames.html +297 -1
- package/docs/types/DoubleAssetTokenHoldings.html +232 -1
- package/docs/types/DoubleAssetVaultBalance.html +229 -1
- package/docs/types/EventCategory.html +209 -1
- package/docs/types/EventNode.html +229 -1
- package/docs/types/GetHoldersParams.html +221 -1
- package/docs/types/GetTokenHoldingsParams.html +227 -1
- package/docs/types/GetUserTokensFromTransactionsParams.html +233 -1
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -1
- package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -1
- package/docs/types/GetVaultBalanceParams.html +217 -1
- package/docs/types/HoldingsObj.html +223 -1
- package/docs/types/Icon.html +266 -1
- package/docs/types/Investor.html +245 -1
- package/docs/types/LiquidityChangeEventNode.html +220 -1
- package/docs/types/LiquidityToTokensParams.html +255 -1
- package/docs/types/LiquidityToUsdParams.html +267 -1
- package/docs/types/LoopingDebt.html +258 -1
- package/docs/types/LoopingPoolNames.html +216 -1
- package/docs/types/LpBreakdownType.html +238 -1
- package/docs/types/MemberPoolDataType.html +276 -1
- package/docs/types/MemberType.html +269 -1
- package/docs/types/MultiGetVaultBalancesParams.html +229 -1
- package/docs/types/NaviInvestor.html +235 -1
- package/docs/types/OtherReceiptFields.html +373 -1
- package/docs/types/PoolName.html +214 -1
- package/docs/types/PoolReceipt.html +253 -1
- package/docs/types/PoolType.html +388 -1
- package/docs/types/Receipt.html +475 -1
- package/docs/types/ReceiptGQL.html +374 -1
- package/docs/types/SingleAssetMultiVaultBalance.html +232 -1
- package/docs/types/SingleAssetPoolNames.html +244 -1
- package/docs/types/SingleAssetTokenHoldings.html +228 -1
- package/docs/types/SingleAssetVaultBalance.html +223 -1
- package/docs/types/SingleGetVaultBalancesParams.html +224 -1
- package/docs/types/StrategyType.html +221 -1
- package/docs/types/SuiNetwork.html +213 -1
- package/docs/types/SwapOptions.html +248 -1
- package/docs/types/TickSpacing.html +212 -1
- package/docs/types/TotalWeightType.html +246 -1
- package/docs/types/TransactionBlockType.html +358 -1
- package/docs/types/UserPoolLiquidity.html +221 -1
- package/docs/types/UserPoolTokenHoldings.html +217 -1
- package/docs/types/UserUsdHoldings.html +223 -1
- package/docs/types/VaultBalance.html +216 -1
- package/docs/types/WithdrawV2EventNode.html +208 -1
- package/docs/variables/bluefinPoolMap.html +214 -1
- package/docs/variables/cetusPoolMap.html +214 -1
- package/docs/variables/coinsList.html +220 -1
- package/docs/variables/defunctPoolsSet.html +209 -1
- package/docs/variables/doubleAssetPoolCoinMap.html +237 -1
- package/docs/variables/eventCategories.html +210 -1
- package/docs/variables/ignoredWalletsForDailyRevenue.html +218 -1
- package/docs/variables/loopingAccountAddresses.html +219 -1
- package/docs/variables/loopingPoolCoinMap.html +233 -1
- package/docs/variables/naviAssetMap.html +215 -1
- package/docs/variables/poolIdPoolNameMap.html +218 -1
- package/docs/variables/poolInfo.html +319 -1
- package/docs/variables/singleAssetPoolCoinMap.html +229 -1
- package/docs/variables/stableCoins.html +207 -1
- package/package.json +2 -2
- package/prettier.config.js +3 -0
|
@@ -69,7 +69,7 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
69
69
|
}
|
|
70
70
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
71
71
|
txb.moveCall({
|
|
72
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
72
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
73
73
|
typeArguments: [
|
|
74
74
|
coins_js_1.coinsList[pool1].type,
|
|
75
75
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -90,13 +90,15 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
90
90
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
91
91
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
92
92
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
93
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
94
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
93
95
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
94
96
|
],
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
98
100
|
txb.moveCall({
|
|
99
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
101
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
100
102
|
typeArguments: [
|
|
101
103
|
coins_js_1.coinsList[pool1].type,
|
|
102
104
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -117,13 +119,15 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
117
119
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_BUCK_POOL),
|
|
118
120
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
119
121
|
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
122
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
123
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
120
124
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
121
125
|
],
|
|
122
126
|
});
|
|
123
127
|
}
|
|
124
128
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
125
129
|
txb.moveCall({
|
|
126
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
130
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
127
131
|
typeArguments: [
|
|
128
132
|
coins_js_1.coinsList[pool1].type,
|
|
129
133
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -144,13 +148,15 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
144
148
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_AUSD_POOL),
|
|
145
149
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
146
150
|
txb.object(maps_js_1.cetusPoolMap["AUSD-SUI"]),
|
|
151
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
152
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
147
153
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
148
154
|
],
|
|
149
155
|
});
|
|
150
156
|
}
|
|
151
157
|
else if (poolName === "BLUEFIN-AUTOBALANCE-SUI-USDC") {
|
|
152
158
|
txb.moveCall({
|
|
153
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
159
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_deposit_v2`,
|
|
154
160
|
typeArguments: [
|
|
155
161
|
coins_js_1.coinsList[pool1].type,
|
|
156
162
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -170,6 +176,8 @@ const depositBluefinSuiFirstTxb = async (amount, poolName, isAmountA, options, t
|
|
|
170
176
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
171
177
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
172
178
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
179
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
180
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
173
181
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
174
182
|
],
|
|
175
183
|
});
|
|
@@ -244,7 +252,7 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
244
252
|
}
|
|
245
253
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
246
254
|
txb.moveCall({
|
|
247
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
255
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
248
256
|
typeArguments: [
|
|
249
257
|
coins_js_1.coinsList[pool1].type,
|
|
250
258
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -265,13 +273,15 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
265
273
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
266
274
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
267
275
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
276
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
277
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
268
278
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
269
279
|
],
|
|
270
280
|
});
|
|
271
281
|
}
|
|
272
282
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
273
283
|
txb.moveCall({
|
|
274
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
284
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
275
285
|
typeArguments: [
|
|
276
286
|
coins_js_1.coinsList[pool1].type,
|
|
277
287
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -292,13 +302,15 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
292
302
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_SUI_POOL),
|
|
293
303
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
294
304
|
txb.object(maps_js_1.cetusPoolMap["WBTC-SUI"]),
|
|
305
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
306
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
295
307
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
296
308
|
],
|
|
297
309
|
});
|
|
298
310
|
}
|
|
299
311
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
300
312
|
txb.moveCall({
|
|
301
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
313
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
302
314
|
typeArguments: [
|
|
303
315
|
coins_js_1.coinsList[pool1].type,
|
|
304
316
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -319,6 +331,8 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
319
331
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
320
332
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
321
333
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
334
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
335
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
322
336
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
323
337
|
],
|
|
324
338
|
});
|
|
@@ -351,7 +365,7 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
351
365
|
}
|
|
352
366
|
else if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-SUI") {
|
|
353
367
|
txb.moveCall({
|
|
354
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
368
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
355
369
|
typeArguments: [
|
|
356
370
|
coins_js_1.coinsList[pool1].type,
|
|
357
371
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -370,13 +384,15 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
370
384
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
371
385
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
372
386
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
387
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
388
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
373
389
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
374
390
|
],
|
|
375
391
|
});
|
|
376
392
|
}
|
|
377
393
|
else if (poolName === "BLUEFIN-AUTOBALANCE-BLUE-SUI") {
|
|
378
394
|
txb.moveCall({
|
|
379
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
395
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_deposit_v2`,
|
|
380
396
|
typeArguments: [
|
|
381
397
|
coins_js_1.coinsList[pool1].type,
|
|
382
398
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -395,6 +411,8 @@ const depositBluefinSuiSecondTxb = async (amount, poolName, isAmountA, options,
|
|
|
395
411
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
396
412
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
397
413
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
414
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
415
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
398
416
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
399
417
|
],
|
|
400
418
|
});
|
|
@@ -491,7 +509,7 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
491
509
|
}
|
|
492
510
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
493
511
|
txb.moveCall({
|
|
494
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
512
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
495
513
|
typeArguments: [
|
|
496
514
|
coins_js_1.coinsList[pool1].type,
|
|
497
515
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -513,13 +531,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
513
531
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
514
532
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
515
533
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
534
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
535
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
516
536
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
517
537
|
],
|
|
518
538
|
});
|
|
519
539
|
}
|
|
520
540
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
521
541
|
txb.moveCall({
|
|
522
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
542
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
523
543
|
typeArguments: [
|
|
524
544
|
coins_js_1.coinsList[pool1].type,
|
|
525
545
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -541,13 +561,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
541
561
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
542
562
|
txb.object(maps_js_1.cetusPoolMap["USDC-AUSD"]),
|
|
543
563
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
564
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
565
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
544
566
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
545
567
|
],
|
|
546
568
|
});
|
|
547
569
|
}
|
|
548
570
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
549
571
|
txb.moveCall({
|
|
550
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
572
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
551
573
|
typeArguments: [
|
|
552
574
|
coins_js_1.coinsList[pool1].type,
|
|
553
575
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -569,13 +591,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
569
591
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
570
592
|
txb.object(maps_js_1.cetusPoolMap["USDC-WBTC"]),
|
|
571
593
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
594
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
595
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
572
596
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
573
597
|
],
|
|
574
598
|
});
|
|
575
599
|
}
|
|
576
600
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
577
601
|
txb.moveCall({
|
|
578
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
602
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
579
603
|
typeArguments: [
|
|
580
604
|
coins_js_1.coinsList[pool1].type,
|
|
581
605
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -597,6 +621,8 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
597
621
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
598
622
|
txb.object(maps_js_1.cetusPoolMap["USDC-SEND"]),
|
|
599
623
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
624
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
625
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
600
626
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
601
627
|
],
|
|
602
628
|
});
|
|
@@ -631,7 +657,7 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
631
657
|
}
|
|
632
658
|
else if (poolName === "BLUEFIN-AUTOBALANCE-USDT-USDC") {
|
|
633
659
|
txb.moveCall({
|
|
634
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
660
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
635
661
|
typeArguments: [
|
|
636
662
|
coins_js_1.coinsList["USDT"].type,
|
|
637
663
|
coins_js_1.coinsList["USDC"].type,
|
|
@@ -652,13 +678,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
652
678
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
653
679
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
654
680
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
681
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
682
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
655
683
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
656
684
|
],
|
|
657
685
|
});
|
|
658
686
|
}
|
|
659
687
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
660
688
|
txb.moveCall({
|
|
661
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
689
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
662
690
|
typeArguments: [
|
|
663
691
|
coins_js_1.coinsList[pool1].type,
|
|
664
692
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -680,13 +708,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
680
708
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
681
709
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
682
710
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
711
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
712
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
683
713
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
684
714
|
],
|
|
685
715
|
});
|
|
686
716
|
}
|
|
687
717
|
else if (poolName === "BLUEFIN-AUTOBALANCE-SUIUSDT-USDC") {
|
|
688
718
|
txb.moveCall({
|
|
689
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
719
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
690
720
|
typeArguments: [
|
|
691
721
|
coins_js_1.coinsList["SUIUSDT"].type,
|
|
692
722
|
coins_js_1.coinsList["USDC"].type,
|
|
@@ -707,13 +737,15 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
707
737
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
708
738
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
709
739
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
740
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
741
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
710
742
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
711
743
|
],
|
|
712
744
|
});
|
|
713
745
|
}
|
|
714
746
|
else if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-BLUE") {
|
|
715
747
|
txb.moveCall({
|
|
716
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
748
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
717
749
|
typeArguments: [
|
|
718
750
|
coins_js_1.coinsList["DEEP"].type,
|
|
719
751
|
coins_js_1.coinsList["BLUE"].type,
|
|
@@ -734,6 +766,8 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
734
766
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
735
767
|
txb.object(maps_js_1.cetusPoolMap["BLUE-DEEP"]),
|
|
736
768
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
769
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
770
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
737
771
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
738
772
|
],
|
|
739
773
|
});
|
|
@@ -831,7 +865,7 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
831
865
|
}
|
|
832
866
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
833
867
|
txb.moveCall({
|
|
834
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
868
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
835
869
|
typeArguments: [
|
|
836
870
|
coins_js_1.coinsList[pool1].type,
|
|
837
871
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -853,13 +887,15 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
853
887
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
854
888
|
txb.object(maps_js_1.cetusPoolMap["ALPHA-USDC"]),
|
|
855
889
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
890
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
891
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
856
892
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
857
893
|
],
|
|
858
894
|
});
|
|
859
895
|
}
|
|
860
896
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
861
897
|
txb.moveCall({
|
|
862
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
898
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
863
899
|
typeArguments: [
|
|
864
900
|
coins_js_1.coinsList[pool1].type,
|
|
865
901
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -881,13 +917,15 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
881
917
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
882
918
|
txb.object(maps_js_1.cetusPoolMap["NAVX-VSUI"]),
|
|
883
919
|
txb.object(maps_js_1.cetusPoolMap["VSUI-SUI"]),
|
|
920
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
921
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
884
922
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
885
923
|
],
|
|
886
924
|
});
|
|
887
925
|
}
|
|
888
926
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
889
927
|
txb.moveCall({
|
|
890
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
928
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_deposit_v2`,
|
|
891
929
|
typeArguments: [
|
|
892
930
|
coins_js_1.coinsList[pool1].type,
|
|
893
931
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -909,6 +947,8 @@ const depositBluefinType2Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
909
947
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
910
948
|
txb.object(maps_js_1.cetusPoolMap["BLUE-USDC"]),
|
|
911
949
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
950
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
951
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
912
952
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
913
953
|
],
|
|
914
954
|
});
|
|
@@ -1121,6 +1161,126 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1121
1161
|
],
|
|
1122
1162
|
});
|
|
1123
1163
|
}
|
|
1164
|
+
else if (poolName === "BLUEFIN-STSUI-WSOL") {
|
|
1165
|
+
txb.moveCall({
|
|
1166
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1167
|
+
typeArguments: [
|
|
1168
|
+
coins_js_1.coinsList[pool1].type,
|
|
1169
|
+
coins_js_1.coinsList[pool2].type,
|
|
1170
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1171
|
+
],
|
|
1172
|
+
arguments: [
|
|
1173
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
1174
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
1175
|
+
someReceipt,
|
|
1176
|
+
txb.object(poolinfo.poolId),
|
|
1177
|
+
depositCoinA,
|
|
1178
|
+
depositCoinB,
|
|
1179
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
1180
|
+
txb.object(poolinfo.investorId),
|
|
1181
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1182
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
1183
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_WSOL_POOL),
|
|
1184
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1185
|
+
txb.object(maps_js_1.cetusPoolMap["WSOL-SUI"]),
|
|
1186
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-WSOL"]),
|
|
1187
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1188
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1189
|
+
txb.pure.bool(false),
|
|
1190
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1191
|
+
],
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
else if (poolName === "BLUEFIN-STSUI-ETH") {
|
|
1195
|
+
txb.moveCall({
|
|
1196
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1197
|
+
typeArguments: [
|
|
1198
|
+
coins_js_1.coinsList[pool1].type,
|
|
1199
|
+
coins_js_1.coinsList[pool2].type,
|
|
1200
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1201
|
+
],
|
|
1202
|
+
arguments: [
|
|
1203
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
1204
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
1205
|
+
someReceipt,
|
|
1206
|
+
txb.object(poolinfo.poolId),
|
|
1207
|
+
depositCoinA,
|
|
1208
|
+
depositCoinB,
|
|
1209
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
1210
|
+
txb.object(poolinfo.investorId),
|
|
1211
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1212
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
1213
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_ETH_POOL),
|
|
1214
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1215
|
+
txb.object(maps_js_1.cetusPoolMap["ETH-SUI"]),
|
|
1216
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-ETH"]),
|
|
1217
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1218
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1219
|
+
txb.pure.bool(false),
|
|
1220
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1221
|
+
],
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
else if (poolName === "BLUEFIN-STSUI-BUCK") {
|
|
1225
|
+
txb.moveCall({
|
|
1226
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1227
|
+
typeArguments: [
|
|
1228
|
+
coins_js_1.coinsList[pool1].type,
|
|
1229
|
+
coins_js_1.coinsList[pool2].type,
|
|
1230
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1231
|
+
],
|
|
1232
|
+
arguments: [
|
|
1233
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
1234
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
1235
|
+
someReceipt,
|
|
1236
|
+
txb.object(poolinfo.poolId),
|
|
1237
|
+
depositCoinA,
|
|
1238
|
+
depositCoinB,
|
|
1239
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
1240
|
+
txb.object(poolinfo.investorId),
|
|
1241
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1242
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
1243
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_BUCK_POOL),
|
|
1244
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1245
|
+
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
1246
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-BUCK"]),
|
|
1247
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1248
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1249
|
+
txb.pure.bool(false),
|
|
1250
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1251
|
+
],
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
else if (poolName === "BLUEFIN-STSUI-MUSD") {
|
|
1255
|
+
txb.moveCall({
|
|
1256
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_deposit`,
|
|
1257
|
+
typeArguments: [
|
|
1258
|
+
coins_js_1.coinsList[pool1].type,
|
|
1259
|
+
coins_js_1.coinsList[pool2].type,
|
|
1260
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1261
|
+
],
|
|
1262
|
+
arguments: [
|
|
1263
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
1264
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
1265
|
+
someReceipt,
|
|
1266
|
+
txb.object(poolinfo.poolId),
|
|
1267
|
+
depositCoinA,
|
|
1268
|
+
depositCoinB,
|
|
1269
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
1270
|
+
txb.object(poolinfo.investorId),
|
|
1271
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1272
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
1273
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_MUSD_POOL),
|
|
1274
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1275
|
+
txb.object(maps_js_1.cetusPoolMap["MUSD-SUI"]),
|
|
1276
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-MUSD"]),
|
|
1277
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1278
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1279
|
+
txb.pure.bool(true),
|
|
1280
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1281
|
+
],
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1124
1284
|
txb.transferObjects([coin1], address);
|
|
1125
1285
|
txb.transferObjects([coin2], address);
|
|
1126
1286
|
}
|
|
@@ -1143,7 +1303,7 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1143
1303
|
if (poolName.toString().includes("AUTOBALANCE")) {
|
|
1144
1304
|
if (poolName === "BLUEFIN-AUTOBALANCE-SUI-USDC") {
|
|
1145
1305
|
txb.moveCall({
|
|
1146
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1306
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1147
1307
|
typeArguments: [
|
|
1148
1308
|
coins_js_1.coinsList[pool1].type,
|
|
1149
1309
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1162,6 +1322,8 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1162
1322
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
1163
1323
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1164
1324
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1325
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1326
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1165
1327
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1166
1328
|
],
|
|
1167
1329
|
});
|
|
@@ -1185,7 +1347,7 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1185
1347
|
}
|
|
1186
1348
|
if (poolName === "BLUEFIN-SUI-USDC") {
|
|
1187
1349
|
txb.moveCall({
|
|
1188
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1350
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1189
1351
|
typeArguments: [
|
|
1190
1352
|
coins_js_1.coinsList[pool1].type,
|
|
1191
1353
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1207,13 +1369,15 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1207
1369
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_USDC_POOL),
|
|
1208
1370
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1209
1371
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1372
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1373
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1210
1374
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1211
1375
|
],
|
|
1212
1376
|
});
|
|
1213
1377
|
}
|
|
1214
1378
|
else if (poolName === "BLUEFIN-SUI-BUCK") {
|
|
1215
1379
|
txb.moveCall({
|
|
1216
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1380
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1217
1381
|
typeArguments: [
|
|
1218
1382
|
coins_js_1.coinsList[pool1].type,
|
|
1219
1383
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1235,13 +1399,15 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1235
1399
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_BUCK_POOL),
|
|
1236
1400
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1237
1401
|
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
1402
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1403
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1238
1404
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1239
1405
|
],
|
|
1240
1406
|
});
|
|
1241
1407
|
}
|
|
1242
1408
|
else if (poolName === "BLUEFIN-SUI-AUSD") {
|
|
1243
1409
|
txb.moveCall({
|
|
1244
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::
|
|
1410
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_first_pool::user_withdraw_v2`,
|
|
1245
1411
|
typeArguments: [
|
|
1246
1412
|
coins_js_1.coinsList[pool1].type,
|
|
1247
1413
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1263,6 +1429,8 @@ const withdrawBluefinSuiFirstTxb = async (xTokens, poolName, options) => {
|
|
|
1263
1429
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUI_AUSD_POOL),
|
|
1264
1430
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1265
1431
|
txb.object(maps_js_1.cetusPoolMap["AUSD-SUI"]),
|
|
1432
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1433
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1266
1434
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1267
1435
|
],
|
|
1268
1436
|
});
|
|
@@ -1287,7 +1455,7 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1287
1455
|
if (poolName.toString().includes("AUTOBALANCE")) {
|
|
1288
1456
|
if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-SUI") {
|
|
1289
1457
|
txb.moveCall({
|
|
1290
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1458
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1291
1459
|
typeArguments: [
|
|
1292
1460
|
coins_js_1.coinsList[pool1].type,
|
|
1293
1461
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1305,13 +1473,15 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1305
1473
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1306
1474
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1307
1475
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
1476
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1477
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1308
1478
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1309
1479
|
],
|
|
1310
1480
|
});
|
|
1311
1481
|
}
|
|
1312
1482
|
else if (poolName === "BLUEFIN-AUTOBALANCE-BLUE-SUI") {
|
|
1313
1483
|
txb.moveCall({
|
|
1314
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1484
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1315
1485
|
typeArguments: [
|
|
1316
1486
|
coins_js_1.coinsList[pool1].type,
|
|
1317
1487
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1329,6 +1499,8 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1329
1499
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1330
1500
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1331
1501
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
1502
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1503
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1332
1504
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1333
1505
|
],
|
|
1334
1506
|
});
|
|
@@ -1352,7 +1524,7 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1352
1524
|
}
|
|
1353
1525
|
if (poolName === "BLUEFIN-BLUE-SUI") {
|
|
1354
1526
|
txb.moveCall({
|
|
1355
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1527
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1356
1528
|
typeArguments: [
|
|
1357
1529
|
coins_js_1.coinsList[pool1].type,
|
|
1358
1530
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1374,13 +1546,15 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1374
1546
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1375
1547
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1376
1548
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
1549
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1550
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1377
1551
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1378
1552
|
],
|
|
1379
1553
|
});
|
|
1380
1554
|
}
|
|
1381
1555
|
else if (poolName === "BLUEFIN-WBTC-SUI") {
|
|
1382
1556
|
txb.moveCall({
|
|
1383
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1557
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1384
1558
|
typeArguments: [
|
|
1385
1559
|
coins_js_1.coinsList[pool1].type,
|
|
1386
1560
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1402,13 +1576,15 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1402
1576
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_SUI_POOL),
|
|
1403
1577
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1404
1578
|
txb.object(maps_js_1.cetusPoolMap["WBTC-SUI"]),
|
|
1579
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1580
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1405
1581
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1406
1582
|
],
|
|
1407
1583
|
});
|
|
1408
1584
|
}
|
|
1409
1585
|
else if (poolName === "BLUEFIN-DEEP-SUI") {
|
|
1410
1586
|
txb.moveCall({
|
|
1411
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::
|
|
1587
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_sui_second_pool::user_withdraw_v2`,
|
|
1412
1588
|
typeArguments: [
|
|
1413
1589
|
coins_js_1.coinsList[pool1].type,
|
|
1414
1590
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1430,6 +1606,8 @@ const withdrawBluefinSuiSecondTxb = async (xTokens, poolName, options) => {
|
|
|
1430
1606
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1431
1607
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1432
1608
|
txb.object(maps_js_1.cetusPoolMap["DEEP-SUI"]),
|
|
1609
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1610
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1433
1611
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1434
1612
|
],
|
|
1435
1613
|
});
|
|
@@ -1481,7 +1659,7 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1481
1659
|
if (poolName.toString().includes("AUTOBALANCE")) {
|
|
1482
1660
|
if (poolName === "BLUEFIN-AUTOBALANCE-USDT-USDC") {
|
|
1483
1661
|
txb.moveCall({
|
|
1484
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1662
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1485
1663
|
typeArguments: [
|
|
1486
1664
|
coins_js_1.coinsList[pool1].type,
|
|
1487
1665
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1501,13 +1679,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1501
1679
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1502
1680
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
1503
1681
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1682
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1683
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1504
1684
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1505
1685
|
],
|
|
1506
1686
|
});
|
|
1507
1687
|
}
|
|
1508
1688
|
else if (poolName === "BLUEFIN-AUTOBALANCE-SUIUSDT-USDC") {
|
|
1509
1689
|
txb.moveCall({
|
|
1510
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1690
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1511
1691
|
typeArguments: [
|
|
1512
1692
|
coins_js_1.coinsList[pool1].type,
|
|
1513
1693
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1527,13 +1707,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1527
1707
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1528
1708
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
1529
1709
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1710
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1711
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1530
1712
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1531
1713
|
],
|
|
1532
1714
|
});
|
|
1533
1715
|
}
|
|
1534
1716
|
else if (poolName === "BLUEFIN-AUTOBALANCE-DEEP-BLUE") {
|
|
1535
1717
|
txb.moveCall({
|
|
1536
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1718
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1537
1719
|
typeArguments: [
|
|
1538
1720
|
coins_js_1.coinsList[pool1].type,
|
|
1539
1721
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1553,6 +1735,8 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1553
1735
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1554
1736
|
txb.object(maps_js_1.cetusPoolMap["BLUE-DEEP"]),
|
|
1555
1737
|
txb.object(maps_js_1.cetusPoolMap["BLUE-SUI"]),
|
|
1738
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1739
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1556
1740
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1557
1741
|
],
|
|
1558
1742
|
});
|
|
@@ -1576,7 +1760,7 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1576
1760
|
}
|
|
1577
1761
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
1578
1762
|
txb.moveCall({
|
|
1579
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1763
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1580
1764
|
typeArguments: [
|
|
1581
1765
|
coins_js_1.coinsList[pool1].type,
|
|
1582
1766
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1599,13 +1783,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1599
1783
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1600
1784
|
txb.object(maps_js_1.cetusPoolMap["USDC-USDT"]),
|
|
1601
1785
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1786
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1787
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1602
1788
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1603
1789
|
],
|
|
1604
1790
|
});
|
|
1605
1791
|
}
|
|
1606
1792
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
1607
1793
|
txb.moveCall({
|
|
1608
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1794
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1609
1795
|
typeArguments: [
|
|
1610
1796
|
coins_js_1.coinsList[pool1].type,
|
|
1611
1797
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1628,13 +1814,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1628
1814
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1629
1815
|
txb.object(maps_js_1.cetusPoolMap["USDC-AUSD"]),
|
|
1630
1816
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1817
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1818
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1631
1819
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1632
1820
|
],
|
|
1633
1821
|
});
|
|
1634
1822
|
}
|
|
1635
1823
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
1636
1824
|
txb.moveCall({
|
|
1637
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1825
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1638
1826
|
typeArguments: [
|
|
1639
1827
|
coins_js_1.coinsList[pool1].type,
|
|
1640
1828
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1657,13 +1845,15 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1657
1845
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1658
1846
|
txb.object(maps_js_1.cetusPoolMap["USDC-WBTC"]),
|
|
1659
1847
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1848
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1849
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1660
1850
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1661
1851
|
],
|
|
1662
1852
|
});
|
|
1663
1853
|
}
|
|
1664
1854
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
1665
1855
|
txb.moveCall({
|
|
1666
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1856
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1667
1857
|
typeArguments: [
|
|
1668
1858
|
coins_js_1.coinsList[pool1].type,
|
|
1669
1859
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1686,6 +1876,8 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1686
1876
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1687
1877
|
txb.object(maps_js_1.cetusPoolMap["USDC-SEND"]),
|
|
1688
1878
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1879
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1880
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1689
1881
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1690
1882
|
],
|
|
1691
1883
|
});
|
|
@@ -1721,7 +1913,7 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1721
1913
|
}
|
|
1722
1914
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
1723
1915
|
txb.moveCall({
|
|
1724
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::
|
|
1916
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
1725
1917
|
typeArguments: [
|
|
1726
1918
|
coins_js_1.coinsList[pool1].type,
|
|
1727
1919
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1744,6 +1936,8 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
1744
1936
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1745
1937
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUIUSDT"]),
|
|
1746
1938
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
1939
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1940
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1747
1941
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1748
1942
|
],
|
|
1749
1943
|
});
|
|
@@ -1782,7 +1976,7 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1782
1976
|
const poolinfo = maps_js_1.poolInfo[poolName];
|
|
1783
1977
|
if (poolName === "BLUEFIN-ALPHA-USDC") {
|
|
1784
1978
|
txb.moveCall({
|
|
1785
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
1979
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1786
1980
|
typeArguments: [
|
|
1787
1981
|
coins_js_1.coinsList[pool1].type,
|
|
1788
1982
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1805,13 +1999,15 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1805
1999
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1806
2000
|
txb.object(maps_js_1.cetusPoolMap["ALPHA-USDC"]),
|
|
1807
2001
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
2002
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2003
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1808
2004
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1809
2005
|
],
|
|
1810
2006
|
});
|
|
1811
2007
|
}
|
|
1812
2008
|
else if (poolName === "BLUEFIN-NAVX-VSUI") {
|
|
1813
2009
|
txb.moveCall({
|
|
1814
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
2010
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1815
2011
|
typeArguments: [
|
|
1816
2012
|
coins_js_1.coinsList[pool1].type,
|
|
1817
2013
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1834,13 +2030,15 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1834
2030
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1835
2031
|
txb.object(maps_js_1.cetusPoolMap["NAVX-VSUI"]),
|
|
1836
2032
|
txb.object(maps_js_1.cetusPoolMap["VSUI-SUI"]),
|
|
2033
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2034
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1837
2035
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1838
2036
|
],
|
|
1839
2037
|
});
|
|
1840
2038
|
}
|
|
1841
2039
|
else if (poolName === "BLUEFIN-BLUE-USDC") {
|
|
1842
2040
|
txb.moveCall({
|
|
1843
|
-
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::
|
|
2041
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_2_pool::user_withdraw_v2`,
|
|
1844
2042
|
typeArguments: [
|
|
1845
2043
|
coins_js_1.coinsList[pool1].type,
|
|
1846
2044
|
coins_js_1.coinsList[pool2].type,
|
|
@@ -1863,6 +2061,8 @@ const withdrawBluefinType2Txb = async (xTokens, poolName, options) => {
|
|
|
1863
2061
|
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1864
2062
|
txb.object(maps_js_1.cetusPoolMap["BLUE-USDC"]),
|
|
1865
2063
|
txb.object(maps_js_1.cetusPoolMap["USDC-SUI"]),
|
|
2064
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2065
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1866
2066
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1867
2067
|
],
|
|
1868
2068
|
});
|
|
@@ -2018,6 +2218,130 @@ const withdrawBluefinStsuiTxb = async (xTokens, poolName, options) => {
|
|
|
2018
2218
|
],
|
|
2019
2219
|
});
|
|
2020
2220
|
}
|
|
2221
|
+
else if (poolName === "BLUEFIN-STSUI-WSOL") {
|
|
2222
|
+
txb.moveCall({
|
|
2223
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_withdraw`,
|
|
2224
|
+
typeArguments: [
|
|
2225
|
+
coins_js_1.coinsList[pool1].type,
|
|
2226
|
+
coins_js_1.coinsList[pool2].type,
|
|
2227
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2228
|
+
],
|
|
2229
|
+
arguments: [
|
|
2230
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
2231
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
2232
|
+
txb.object(receipt[0].objectId),
|
|
2233
|
+
alpha_receipt,
|
|
2234
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_POOL),
|
|
2235
|
+
txb.object(poolinfo.poolId),
|
|
2236
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
2237
|
+
txb.object(poolinfo.investorId),
|
|
2238
|
+
txb.pure.u128(xTokens),
|
|
2239
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2240
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
2241
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_WSOL_POOL),
|
|
2242
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2243
|
+
txb.object(maps_js_1.cetusPoolMap["WSOL-SUI"]),
|
|
2244
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-WSOL"]),
|
|
2245
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2246
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2247
|
+
txb.pure.bool(false),
|
|
2248
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2249
|
+
],
|
|
2250
|
+
});
|
|
2251
|
+
}
|
|
2252
|
+
else if (poolName === "BLUEFIN-STSUI-ETH") {
|
|
2253
|
+
txb.moveCall({
|
|
2254
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_withdraw`,
|
|
2255
|
+
typeArguments: [
|
|
2256
|
+
coins_js_1.coinsList[pool1].type,
|
|
2257
|
+
coins_js_1.coinsList[pool2].type,
|
|
2258
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2259
|
+
],
|
|
2260
|
+
arguments: [
|
|
2261
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
2262
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
2263
|
+
txb.object(receipt[0].objectId),
|
|
2264
|
+
alpha_receipt,
|
|
2265
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_POOL),
|
|
2266
|
+
txb.object(poolinfo.poolId),
|
|
2267
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
2268
|
+
txb.object(poolinfo.investorId),
|
|
2269
|
+
txb.pure.u128(xTokens),
|
|
2270
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2271
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
2272
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_ETH_POOL),
|
|
2273
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2274
|
+
txb.object(maps_js_1.cetusPoolMap["ETH-SUI"]),
|
|
2275
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-ETH"]),
|
|
2276
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2277
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2278
|
+
txb.pure.bool(false),
|
|
2279
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2280
|
+
],
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
else if (poolName === "BLUEFIN-STSUI-BUCK") {
|
|
2284
|
+
txb.moveCall({
|
|
2285
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_withdraw`,
|
|
2286
|
+
typeArguments: [
|
|
2287
|
+
coins_js_1.coinsList[pool1].type,
|
|
2288
|
+
coins_js_1.coinsList[pool2].type,
|
|
2289
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2290
|
+
],
|
|
2291
|
+
arguments: [
|
|
2292
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
2293
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
2294
|
+
txb.object(receipt[0].objectId),
|
|
2295
|
+
alpha_receipt,
|
|
2296
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_POOL),
|
|
2297
|
+
txb.object(poolinfo.poolId),
|
|
2298
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
2299
|
+
txb.object(poolinfo.investorId),
|
|
2300
|
+
txb.pure.u128(xTokens),
|
|
2301
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2302
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
2303
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_BUCK_POOL),
|
|
2304
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2305
|
+
txb.object(maps_js_1.cetusPoolMap["BUCK-SUI"]),
|
|
2306
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-BUCK"]),
|
|
2307
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2308
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2309
|
+
txb.pure.bool(true),
|
|
2310
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2311
|
+
],
|
|
2312
|
+
});
|
|
2313
|
+
}
|
|
2314
|
+
else if (poolName === "BLUEFIN-STSUI-MUSD") {
|
|
2315
|
+
txb.moveCall({
|
|
2316
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_stsui_first_pool::user_withdraw`,
|
|
2317
|
+
typeArguments: [
|
|
2318
|
+
coins_js_1.coinsList[pool1].type,
|
|
2319
|
+
coins_js_1.coinsList[pool2].type,
|
|
2320
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2321
|
+
],
|
|
2322
|
+
arguments: [
|
|
2323
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_STSUI_VERSION),
|
|
2324
|
+
txb.object((0, constants_js_1.getConf)().VERSION),
|
|
2325
|
+
txb.object(receipt[0].objectId),
|
|
2326
|
+
alpha_receipt,
|
|
2327
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_POOL),
|
|
2328
|
+
txb.object(poolinfo.poolId),
|
|
2329
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
2330
|
+
txb.object(poolinfo.investorId),
|
|
2331
|
+
txb.pure.u128(xTokens),
|
|
2332
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2333
|
+
txb.object((0, constants_js_1.getConf)().CETUS_GLOBAL_CONFIG_ID),
|
|
2334
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_STSUI_MUSD_POOL),
|
|
2335
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2336
|
+
txb.object(maps_js_1.cetusPoolMap["MUSD-SUI"]),
|
|
2337
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-MUSD"]),
|
|
2338
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2339
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2340
|
+
txb.pure.bool(true),
|
|
2341
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2342
|
+
],
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2021
2345
|
}
|
|
2022
2346
|
else {
|
|
2023
2347
|
throw new Error("No receipt found!");
|