@alphafi/alphafi-sdk 0.0.80 → 0.0.81
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/constants.d.ts +6 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +25 -7
- 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 +3 -0
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +337 -9
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/bucket.d.ts.map +1 -1
- package/dist/cjs/transactions/bucket.js +24 -0
- package/dist/cjs/transactions/bucket.js.map +1 -1
- package/dist/cjs/transactions/navi-looping.d.ts.map +1 -1
- package/dist/cjs/transactions/navi-looping.js +44 -44
- package/dist/cjs/transactions/navi-looping.js.map +1 -1
- package/dist/cjs/transactions/navi.d.ts.map +1 -1
- package/dist/cjs/transactions/navi.js +66 -186
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/esm/common/constants.d.ts +6 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +25 -7
- 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 +3 -0
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +337 -9
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/bucket.d.ts.map +1 -1
- package/dist/esm/transactions/bucket.js +25 -1
- package/dist/esm/transactions/bucket.js.map +1 -1
- package/dist/esm/transactions/navi-looping.d.ts.map +1 -1
- package/dist/esm/transactions/navi-looping.js +45 -45
- package/dist/esm/transactions/navi-looping.js.map +1 -1
- package/dist/esm/transactions/navi.d.ts.map +1 -1
- package/dist/esm/transactions/navi.js +66 -186
- package/dist/esm/transactions/navi.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/alphaLpBreakdown.html +1 -1
- package/docs/functions/cetusLpBreakdown.html +1 -1
- package/docs/functions/claimBlueRewardTxb.html +1 -1
- package/docs/functions/claimRewardTxb.html +1 -1
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +1 -1
- package/docs/functions/coinAmountToXTokensSingleAsset.html +1 -1
- package/docs/functions/coinsInPool.html +1 -1
- package/docs/functions/collectRewards.html +1 -1
- package/docs/functions/deposit.html +1 -1
- package/docs/functions/depositDoubleAssetTxb.html +1 -1
- package/docs/functions/depositSingleAssetTxb.html +1 -1
- package/docs/functions/fetchAfterTransactionEvents.html +1 -1
- package/docs/functions/fetchAirdropClaimEvents.html +1 -1
- package/docs/functions/fetchAutoCompoundingEvents.html +1 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -1
- package/docs/functions/fetchCetusPools.html +1 -1
- package/docs/functions/fetchChainIdentifier.html +1 -1
- package/docs/functions/fetchCheckRatioEvents.html +1 -1
- package/docs/functions/fetchEvents.html +1 -1
- package/docs/functions/fetchLiquidityChangeEvents.html +1 -1
- package/docs/functions/fetchMultiCategoryEvents.html +1 -1
- package/docs/functions/fetchMultiReceipts.html +1 -1
- package/docs/functions/fetchNftHolders.html +1 -1
- package/docs/functions/fetchPools.html +1 -1
- package/docs/functions/fetchPortfolioData.html +1 -1
- package/docs/functions/fetchProtocolData.html +1 -1
- package/docs/functions/fetchTVL.html +1 -1
- package/docs/functions/fetchTransactions.html +1 -1
- package/docs/functions/fetchUserVaultBalances.html +1 -1
- package/docs/functions/fetchUserVaults.html +1 -1
- package/docs/functions/fetchUserWalletData.html +1 -1
- package/docs/functions/fetchVoloExchangeRate.html +1 -1
- package/docs/functions/fetchWithdrawV2Events.html +1 -1
- package/docs/functions/getAirdropShare.html +1 -1
- package/docs/functions/getAllDoubleAssetVaults.html +1 -1
- package/docs/functions/getAllSingleAssetVaults.html +1 -1
- package/docs/functions/getAllVaultBalances.html +1 -1
- package/docs/functions/getAllVaults.html +1 -1
- package/docs/functions/getAlphaUnlocks.html +1 -1
- package/docs/functions/getAlphaVaultBalance.html +1 -1
- package/docs/functions/getAmounts.html +1 -1
- package/docs/functions/getApr.html +1 -1
- package/docs/functions/getAprs.html +1 -1
- package/docs/functions/getApy.html +1 -1
- package/docs/functions/getApys.html +1 -1
- package/docs/functions/getCetusInvestorTicksMap.html +1 -1
- package/docs/functions/getCetusPool.html +1 -1
- package/docs/functions/getCetusSqrtPriceMap.html +1 -1
- package/docs/functions/getCoinAmountsFromLiquidity.html +1 -1
- package/docs/functions/getConf.html +1 -1
- package/docs/functions/getCurrentTick.html +1 -1
- package/docs/functions/getDistributor.html +1 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +1 -1
- package/docs/functions/getDoubleAssetVaults.html +1 -1
- package/docs/functions/getInvestor.html +1 -1
- package/docs/functions/getInvestorPoolMap.html +1 -1
- package/docs/functions/getLastAutoCompoundTime.html +1 -1
- package/docs/functions/getLatestPrices.html +1 -1
- package/docs/functions/getLiquidity.html +1 -1
- package/docs/functions/getMultiCetusPool.html +1 -1
- package/docs/functions/getMultiInvestor.html +1 -1
- package/docs/functions/getMultiLatestPrices.html +1 -1
- package/docs/functions/getMultiParentPool.html +1 -1
- package/docs/functions/getMultiPool.html +1 -1
- package/docs/functions/getMultiReceipts.html +1 -1
- package/docs/functions/getParentPool.html +1 -1
- package/docs/functions/getPool.html +1 -1
- package/docs/functions/getPoolExchangeRate.html +1 -1
- package/docs/functions/getPoolExchangeRateMap.html +1 -1
- package/docs/functions/getPoolsWeightDistribution.html +1 -1
- package/docs/functions/getPositionRange.html +1 -1
- package/docs/functions/getPositionRanges.html +1 -1
- package/docs/functions/getPositionTicks.html +1 -1
- package/docs/functions/getPriceToTick.html +1 -1
- package/docs/functions/getRebalanceHistories.html +1 -1
- package/docs/functions/getRebalanceHistory.html +1 -1
- package/docs/functions/getReceipts.html +1 -1
- package/docs/functions/getSingleAssetVaultBalance.html +1 -1
- package/docs/functions/getSingleAssetVaults.html +1 -1
- package/docs/functions/getSuiClient.html +2 -2
- package/docs/functions/getSuiNodeUrl.html +2 -2
- package/docs/functions/getTVLs-1.html +1 -1
- package/docs/functions/getTickSpacing.html +1 -1
- package/docs/functions/getTickToPrice.html +1 -1
- package/docs/functions/getTvls.html +1 -1
- package/docs/functions/getVaultBalance.html +1 -1
- package/docs/functions/getVaults.html +1 -1
- package/docs/functions/getZapAmounts.html +1 -1
- package/docs/functions/lastAutocompoundTime.html +1 -1
- package/docs/functions/liquidityToTokens.html +1 -1
- package/docs/functions/multiLiquidityToTokens.html +1 -1
- package/docs/functions/multiTokensToUsd.html +1 -1
- package/docs/functions/multiXTokensToLiquidity.html +1 -1
- package/docs/functions/parseUserWalletData.html +1 -1
- package/docs/functions/pendingBlueRewardAmount.html +1 -1
- package/docs/functions/setCustomSuiClient.html +2 -2
- package/docs/functions/setSuiClient.html +2 -2
- package/docs/functions/setSuiNodeUrl.html +2 -2
- package/docs/functions/setWeights.html +1 -1
- package/docs/functions/withdraw.html +1 -1
- package/docs/functions/withdrawAlphaTxb.html +1 -1
- package/docs/functions/withdrawTxb.html +1 -1
- package/docs/functions/zapDepositTxb.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/Coin.html +6 -6
- package/docs/interfaces/CoinPair.html +2 -2
- package/docs/interfaces/CommonEventAttributes.html +2 -2
- package/docs/interfaces/NaviVoloData.html +2 -2
- package/docs/interfaces/PoolData.html +2 -2
- package/docs/interfaces/PoolWeightDistribution.html +2 -2
- package/docs/interfaces/RebalanceHistoryType.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AfterTransactionEventNode.html +1 -1
- package/docs/types/AirdropClaimEventNode.html +1 -1
- package/docs/types/Allocator.html +1 -1
- package/docs/types/AlphaFiDoubleAssetVault.html +1 -1
- package/docs/types/AlphaFiMultiVaultBalance.html +1 -1
- package/docs/types/AlphaFiSingleAssetVault.html +1 -1
- package/docs/types/AlphaFiVault.html +1 -1
- package/docs/types/AlphaFiVaultBalance.html +1 -1
- package/docs/types/AlphaPoolType.html +1 -1
- package/docs/types/AlphaReceipt.html +1 -1
- package/docs/types/AlphaReceiptFields.html +1 -1
- package/docs/types/AlphaVaultBalance.html +1 -1
- package/docs/types/AutoBalancePoolNames.html +1 -1
- package/docs/types/AutoCompoundingEventNode.html +1 -1
- package/docs/types/BluefinInvestor.html +1 -1
- package/docs/types/BluefinPoolType.html +1 -1
- package/docs/types/BucketInvestor.html +1 -1
- package/docs/types/CetusInvestor.html +1 -1
- package/docs/types/CetusPoolType.html +1 -1
- package/docs/types/CetusSwapOptions.html +1 -1
- package/docs/types/CoinAmounts.html +1 -1
- package/docs/types/CoinName.html +1 -1
- package/docs/types/CoinType.html +1 -1
- package/docs/types/CommonInvestorFields.html +1 -1
- package/docs/types/CreatePoolOptions.html +1 -1
- package/docs/types/Distributor.html +1 -1
- package/docs/types/DoubleAssetMultiVaultBalance.html +1 -1
- package/docs/types/DoubleAssetPoolNames.html +1 -1
- package/docs/types/DoubleAssetTokenHoldings.html +1 -1
- package/docs/types/DoubleAssetVaultBalance.html +1 -1
- package/docs/types/EventCategory.html +1 -1
- package/docs/types/EventNode.html +1 -1
- package/docs/types/GetHoldersParams.html +1 -1
- package/docs/types/GetTokenHoldingsParams.html +1 -1
- package/docs/types/GetUserTokensFromTransactionsParams.html +1 -1
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +1 -1
- package/docs/types/GetVaultBalanceParams.html +1 -1
- package/docs/types/HoldingsObj.html +1 -1
- package/docs/types/Icon.html +1 -1
- package/docs/types/Investor.html +1 -1
- package/docs/types/LiquidityChangeEventNode.html +1 -1
- package/docs/types/LiquidityToTokensParams.html +1 -1
- package/docs/types/LiquidityToUsdParams.html +1 -1
- package/docs/types/LoopingDebt.html +1 -1
- package/docs/types/LoopingPoolNames.html +1 -1
- package/docs/types/LpBreakdownType.html +1 -1
- package/docs/types/MemberPoolDataType.html +1 -1
- package/docs/types/MemberType.html +1 -1
- package/docs/types/MultiGetVaultBalancesParams.html +1 -1
- package/docs/types/NaviInvestor.html +1 -1
- package/docs/types/OtherReceiptFields.html +1 -1
- package/docs/types/PoolName.html +1 -1
- package/docs/types/PoolReceipt.html +1 -1
- package/docs/types/PoolType.html +1 -1
- package/docs/types/Receipt.html +1 -1
- package/docs/types/ReceiptGQL.html +1 -1
- package/docs/types/SingleAssetMultiVaultBalance.html +1 -1
- package/docs/types/SingleAssetPoolNames.html +1 -1
- package/docs/types/SingleAssetTokenHoldings.html +1 -1
- package/docs/types/SingleAssetVaultBalance.html +1 -1
- package/docs/types/SingleGetVaultBalancesParams.html +1 -1
- package/docs/types/StrategyType.html +1 -1
- package/docs/types/SuiNetwork.html +1 -1
- package/docs/types/SwapOptions.html +1 -1
- package/docs/types/TickSpacing.html +1 -1
- package/docs/types/TotalWeightType.html +1 -1
- package/docs/types/TransactionBlockType.html +1 -1
- package/docs/types/UserPoolLiquidity.html +1 -1
- package/docs/types/UserPoolTokenHoldings.html +1 -1
- package/docs/types/UserUsdHoldings.html +1 -1
- package/docs/types/VaultBalance.html +1 -1
- package/docs/types/VoteCastEvent.html +1 -1
- package/docs/types/WithdrawV2EventNode.html +1 -1
- package/docs/variables/bluefinPoolMap.html +1 -1
- package/docs/variables/cetusPoolMap.html +1 -1
- package/docs/variables/coinsList.html +1 -1
- package/docs/variables/defunctPoolsSet.html +1 -1
- package/docs/variables/doubleAssetPoolCoinMap.html +1 -1
- package/docs/variables/eventCategories.html +1 -1
- package/docs/variables/ignoredWalletsForDailyRevenue.html +1 -1
- package/docs/variables/loopingAccountAddresses.html +1 -1
- package/docs/variables/loopingPoolCoinMap.html +1 -1
- package/docs/variables/naviAssetMap.html +1 -1
- package/docs/variables/poolIdPoolNameMap.html +1 -1
- package/docs/variables/poolInfo.html +1 -1
- package/docs/variables/singleAssetPoolCoinMap.html +1 -1
- package/docs/variables/stableCoins.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluefin.d.ts","sourceRoot":"","sources":["../../../src/transactions/bluefin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAUlC,OAAO,EAAE,QAAQ,EAAW,MAAM,oBAAoB,CAAC;AAKvD,eAAO,MAAM,yBAAyB,WAC5B,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CAwNrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC7B,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CA6OrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"bluefin.d.ts","sourceRoot":"","sources":["../../../src/transactions/bluefin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAUlC,OAAO,EAAE,QAAQ,EAAW,MAAM,oBAAoB,CAAC;AAKvD,eAAO,MAAM,yBAAyB,WAC5B,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CAwNrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,WAC7B,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CA6OrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CA+tBrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CAqPrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CAqTrB,CAAC;AA6CF,eAAO,MAAM,yBAAyB,WAC5B,MAAM,YACJ,QAAQ,aACP,OAAO,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,gBACf,WAAW,GAAG,SAAS,KACnC,OAAO,CAAC,WAAW,CAmFrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC5B,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBAiL7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAC7B,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBAsM7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,YACzB,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBA+pB7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,YACzB,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBAkL7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,YACzB,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBAkP7B,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC5B,MAAM,YACL,QAAQ,WACT;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,yBAwC7B,CAAC"}
|
|
@@ -538,6 +538,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
540
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
541
|
+
txb.moveCall({
|
|
542
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
543
|
+
typeArguments: [
|
|
544
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
545
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
546
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
547
|
+
coins_js_1.coinsList["SUI"].type,
|
|
548
|
+
],
|
|
549
|
+
arguments: [
|
|
550
|
+
txb.object(poolinfo.investorId),
|
|
551
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
552
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
553
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_USDT_USDC_POOL),
|
|
554
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
555
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
556
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
557
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
558
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
559
|
+
],
|
|
560
|
+
});
|
|
541
561
|
txb.moveCall({
|
|
542
562
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
543
563
|
typeArguments: [
|
|
@@ -568,6 +588,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
568
588
|
});
|
|
569
589
|
}
|
|
570
590
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
591
|
+
txb.moveCall({
|
|
592
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
593
|
+
typeArguments: [
|
|
594
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
595
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
596
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
597
|
+
coins_js_1.coinsList["SUI"].type,
|
|
598
|
+
],
|
|
599
|
+
arguments: [
|
|
600
|
+
txb.object(poolinfo.investorId),
|
|
601
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
602
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
603
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_AUSD_USDC_POOL),
|
|
604
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
605
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
606
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
607
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
608
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
609
|
+
],
|
|
610
|
+
});
|
|
571
611
|
txb.moveCall({
|
|
572
612
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
573
613
|
typeArguments: [
|
|
@@ -598,6 +638,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
598
638
|
});
|
|
599
639
|
}
|
|
600
640
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
641
|
+
txb.moveCall({
|
|
642
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
643
|
+
typeArguments: [
|
|
644
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
645
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
646
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
647
|
+
coins_js_1.coinsList["SUI"].type,
|
|
648
|
+
],
|
|
649
|
+
arguments: [
|
|
650
|
+
txb.object(poolinfo.investorId),
|
|
651
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
652
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
653
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_USDC_POOL),
|
|
654
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
655
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
656
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
657
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
658
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
659
|
+
],
|
|
660
|
+
});
|
|
601
661
|
txb.moveCall({
|
|
602
662
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
603
663
|
typeArguments: [
|
|
@@ -628,6 +688,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
628
688
|
});
|
|
629
689
|
}
|
|
630
690
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
691
|
+
txb.moveCall({
|
|
692
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
693
|
+
typeArguments: [
|
|
694
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
695
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
696
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
697
|
+
coins_js_1.coinsList["SUI"].type,
|
|
698
|
+
],
|
|
699
|
+
arguments: [
|
|
700
|
+
txb.object(poolinfo.investorId),
|
|
701
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
702
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
703
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SEND_USDC_POOL),
|
|
704
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
705
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
706
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
707
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
708
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
709
|
+
],
|
|
710
|
+
});
|
|
631
711
|
txb.moveCall({
|
|
632
712
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
633
713
|
typeArguments: [
|
|
@@ -731,6 +811,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
731
811
|
});
|
|
732
812
|
}
|
|
733
813
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
814
|
+
txb.moveCall({
|
|
815
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
816
|
+
typeArguments: [
|
|
817
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
818
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
819
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
820
|
+
coins_js_1.coinsList["SUI"].type,
|
|
821
|
+
],
|
|
822
|
+
arguments: [
|
|
823
|
+
txb.object(poolinfo.investorId),
|
|
824
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
825
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
826
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIUSDT_USDC_POOL),
|
|
827
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
828
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
829
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
830
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
831
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
832
|
+
],
|
|
833
|
+
});
|
|
734
834
|
txb.moveCall({
|
|
735
835
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
736
836
|
typeArguments: [
|
|
@@ -880,6 +980,28 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
880
980
|
});
|
|
881
981
|
}
|
|
882
982
|
else if (poolName === "BLUEFIN-SUIBTC-USDC") {
|
|
983
|
+
txb.moveCall({
|
|
984
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
985
|
+
typeArguments: [
|
|
986
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
987
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
988
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
989
|
+
coins_js_1.coinsList["SUI"].type,
|
|
990
|
+
coins_js_1.coinsList["DEEP"].type,
|
|
991
|
+
],
|
|
992
|
+
arguments: [
|
|
993
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_BLUEFIN_V2_VERSION),
|
|
994
|
+
txb.object(poolinfo.investorId),
|
|
995
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
996
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIBTC_USDC_POOL),
|
|
997
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
998
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
999
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
1000
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1001
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1002
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1003
|
+
],
|
|
1004
|
+
});
|
|
883
1005
|
txb.moveCall({
|
|
884
1006
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit`,
|
|
885
1007
|
typeArguments: [
|
|
@@ -912,6 +1034,28 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
912
1034
|
});
|
|
913
1035
|
}
|
|
914
1036
|
else if (poolName === "BLUEFIN-LBTC-SUIBTC") {
|
|
1037
|
+
txb.moveCall({
|
|
1038
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
1039
|
+
typeArguments: [
|
|
1040
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
1041
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
1042
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1043
|
+
coins_js_1.coinsList["SUI"].type,
|
|
1044
|
+
coins_js_1.coinsList["DEEP"].type,
|
|
1045
|
+
],
|
|
1046
|
+
arguments: [
|
|
1047
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_BLUEFIN_V2_VERSION),
|
|
1048
|
+
txb.object(poolinfo.investorId),
|
|
1049
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1050
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_LBTC_SUIBTC_POOL),
|
|
1051
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1052
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
1053
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-SUIBTC"]),
|
|
1054
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1055
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1056
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1057
|
+
],
|
|
1058
|
+
});
|
|
915
1059
|
txb.moveCall({
|
|
916
1060
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit`,
|
|
917
1061
|
typeArguments: [
|
|
@@ -944,6 +1088,26 @@ const depositBluefinType1Txb = async (amount, poolName, isAmountA, options, tran
|
|
|
944
1088
|
});
|
|
945
1089
|
}
|
|
946
1090
|
else if (poolName === "BLUEFIN-WAL-USDC") {
|
|
1091
|
+
txb.moveCall({
|
|
1092
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
1093
|
+
typeArguments: [
|
|
1094
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
1095
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
1096
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
1097
|
+
coins_js_1.coinsList["SUI"].type,
|
|
1098
|
+
],
|
|
1099
|
+
arguments: [
|
|
1100
|
+
txb.object(poolinfo.investorId),
|
|
1101
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
1102
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
1103
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_WAL_USDC_POOL),
|
|
1104
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
1105
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
1106
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1107
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1108
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1109
|
+
],
|
|
1110
|
+
});
|
|
947
1111
|
txb.moveCall({
|
|
948
1112
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_deposit_v2`,
|
|
949
1113
|
typeArguments: [
|
|
@@ -1402,7 +1566,7 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1402
1566
|
txb.object(maps_js_1.bluefinPoolMap["SUI-ALPHA"]),
|
|
1403
1567
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1404
1568
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1405
|
-
txb.pure.bool(
|
|
1569
|
+
txb.pure.bool(true),
|
|
1406
1570
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1407
1571
|
],
|
|
1408
1572
|
});
|
|
@@ -1432,7 +1596,7 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1432
1596
|
txb.object(maps_js_1.bluefinPoolMap["SUI-WSOL"]),
|
|
1433
1597
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1434
1598
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1435
|
-
txb.pure.bool(
|
|
1599
|
+
txb.pure.bool(true),
|
|
1436
1600
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1437
1601
|
],
|
|
1438
1602
|
});
|
|
@@ -1462,7 +1626,7 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1462
1626
|
txb.object(maps_js_1.bluefinPoolMap["SUI-ETH"]),
|
|
1463
1627
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1464
1628
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1465
|
-
txb.pure.bool(
|
|
1629
|
+
txb.pure.bool(true),
|
|
1466
1630
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1467
1631
|
],
|
|
1468
1632
|
});
|
|
@@ -1492,7 +1656,7 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1492
1656
|
txb.object(maps_js_1.bluefinPoolMap["SUI-BUCK"]),
|
|
1493
1657
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1494
1658
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1495
|
-
txb.pure.bool(
|
|
1659
|
+
txb.pure.bool(true),
|
|
1496
1660
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1497
1661
|
],
|
|
1498
1662
|
});
|
|
@@ -1552,7 +1716,7 @@ const depositBluefinStsuiTxb = async (amount, poolName, isAmountA, options, tran
|
|
|
1552
1716
|
txb.object(maps_js_1.bluefinPoolMap["SUI-WAL"]),
|
|
1553
1717
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
1554
1718
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
1555
|
-
txb.pure.bool(
|
|
1719
|
+
txb.pure.bool(true),
|
|
1556
1720
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
1557
1721
|
],
|
|
1558
1722
|
});
|
|
@@ -2295,6 +2459,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2295
2459
|
});
|
|
2296
2460
|
}
|
|
2297
2461
|
if (poolName === "BLUEFIN-USDT-USDC") {
|
|
2462
|
+
txb.moveCall({
|
|
2463
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2464
|
+
typeArguments: [
|
|
2465
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2466
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2467
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2468
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2469
|
+
],
|
|
2470
|
+
arguments: [
|
|
2471
|
+
txb.object(poolinfo.investorId),
|
|
2472
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2473
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2474
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_USDT_USDC_POOL),
|
|
2475
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2476
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2477
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2478
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2479
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2480
|
+
],
|
|
2481
|
+
});
|
|
2298
2482
|
txb.moveCall({
|
|
2299
2483
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2300
2484
|
typeArguments: [
|
|
@@ -2326,6 +2510,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2326
2510
|
});
|
|
2327
2511
|
}
|
|
2328
2512
|
else if (poolName === "BLUEFIN-AUSD-USDC") {
|
|
2513
|
+
txb.moveCall({
|
|
2514
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2515
|
+
typeArguments: [
|
|
2516
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2517
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2518
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2519
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2520
|
+
],
|
|
2521
|
+
arguments: [
|
|
2522
|
+
txb.object(poolinfo.investorId),
|
|
2523
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2524
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2525
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_AUSD_USDC_POOL),
|
|
2526
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2527
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2528
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2529
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2530
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2531
|
+
],
|
|
2532
|
+
});
|
|
2329
2533
|
txb.moveCall({
|
|
2330
2534
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2331
2535
|
typeArguments: [
|
|
@@ -2357,6 +2561,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2357
2561
|
});
|
|
2358
2562
|
}
|
|
2359
2563
|
else if (poolName === "BLUEFIN-WBTC-USDC") {
|
|
2564
|
+
txb.moveCall({
|
|
2565
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2566
|
+
typeArguments: [
|
|
2567
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2568
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2569
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2570
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2571
|
+
],
|
|
2572
|
+
arguments: [
|
|
2573
|
+
txb.object(poolinfo.investorId),
|
|
2574
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2575
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2576
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_WBTC_USDC_POOL),
|
|
2577
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2578
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2579
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2580
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2581
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2582
|
+
],
|
|
2583
|
+
});
|
|
2360
2584
|
txb.moveCall({
|
|
2361
2585
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2362
2586
|
typeArguments: [
|
|
@@ -2388,6 +2612,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2388
2612
|
});
|
|
2389
2613
|
}
|
|
2390
2614
|
else if (poolName === "BLUEFIN-SEND-USDC") {
|
|
2615
|
+
txb.moveCall({
|
|
2616
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2617
|
+
typeArguments: [
|
|
2618
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2619
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2620
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2621
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2622
|
+
],
|
|
2623
|
+
arguments: [
|
|
2624
|
+
txb.object(poolinfo.investorId),
|
|
2625
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2626
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2627
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SEND_USDC_POOL),
|
|
2628
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2629
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2630
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2631
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2632
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2633
|
+
],
|
|
2634
|
+
});
|
|
2391
2635
|
txb.moveCall({
|
|
2392
2636
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2393
2637
|
typeArguments: [
|
|
@@ -2448,6 +2692,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2448
2692
|
});
|
|
2449
2693
|
}
|
|
2450
2694
|
else if (poolName === "BLUEFIN-SUIUSDT-USDC") {
|
|
2695
|
+
txb.moveCall({
|
|
2696
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2697
|
+
typeArguments: [
|
|
2698
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2699
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2700
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2701
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2702
|
+
],
|
|
2703
|
+
arguments: [
|
|
2704
|
+
txb.object(poolinfo.investorId),
|
|
2705
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2706
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2707
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIUSDT_USDC_POOL),
|
|
2708
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2709
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2710
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2711
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2712
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2713
|
+
],
|
|
2714
|
+
});
|
|
2451
2715
|
txb.moveCall({
|
|
2452
2716
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2453
2717
|
typeArguments: [
|
|
@@ -2479,6 +2743,28 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2479
2743
|
});
|
|
2480
2744
|
}
|
|
2481
2745
|
else if (poolName === "BLUEFIN-SUIBTC-USDC") {
|
|
2746
|
+
txb.moveCall({
|
|
2747
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2748
|
+
typeArguments: [
|
|
2749
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2750
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2751
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2752
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2753
|
+
coins_js_1.coinsList["DEEP"].type,
|
|
2754
|
+
],
|
|
2755
|
+
arguments: [
|
|
2756
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_BLUEFIN_V2_VERSION),
|
|
2757
|
+
txb.object(poolinfo.investorId),
|
|
2758
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2759
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_SUIBTC_USDC_POOL),
|
|
2760
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2761
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
2762
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2763
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2764
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2765
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2766
|
+
],
|
|
2767
|
+
});
|
|
2482
2768
|
txb.moveCall({
|
|
2483
2769
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw`,
|
|
2484
2770
|
typeArguments: [
|
|
@@ -2512,6 +2798,28 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2512
2798
|
});
|
|
2513
2799
|
}
|
|
2514
2800
|
else if (poolName === "BLUEFIN-LBTC-SUIBTC") {
|
|
2801
|
+
txb.moveCall({
|
|
2802
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2803
|
+
typeArguments: [
|
|
2804
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2805
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2806
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2807
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2808
|
+
coins_js_1.coinsList["DEEP"].type,
|
|
2809
|
+
],
|
|
2810
|
+
arguments: [
|
|
2811
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_BLUEFIN_V2_VERSION),
|
|
2812
|
+
txb.object(poolinfo.investorId),
|
|
2813
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2814
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_LBTC_SUIBTC_POOL),
|
|
2815
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2816
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_DEEP_SUI_POOL),
|
|
2817
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-SUIBTC"]),
|
|
2818
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2819
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2820
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2821
|
+
],
|
|
2822
|
+
});
|
|
2515
2823
|
txb.moveCall({
|
|
2516
2824
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw`,
|
|
2517
2825
|
typeArguments: [
|
|
@@ -2545,6 +2853,26 @@ const withdrawBluefinType1Txb = async (xTokens, poolName, options) => {
|
|
|
2545
2853
|
});
|
|
2546
2854
|
}
|
|
2547
2855
|
else if (poolName === "BLUEFIN-WAL-USDC") {
|
|
2856
|
+
txb.moveCall({
|
|
2857
|
+
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_investor::collect_and_swap_rewards_to_token_b_bluefin`,
|
|
2858
|
+
typeArguments: [
|
|
2859
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin1].type,
|
|
2860
|
+
coins_js_1.coinsList[maps_js_1.doubleAssetPoolCoinMap[poolName].coin2].type,
|
|
2861
|
+
coins_js_1.coinsList["BLUE"].type,
|
|
2862
|
+
coins_js_1.coinsList["SUI"].type,
|
|
2863
|
+
],
|
|
2864
|
+
arguments: [
|
|
2865
|
+
txb.object(poolinfo.investorId),
|
|
2866
|
+
txb.object((0, constants_js_1.getConf)().ALPHA_4_VERSION),
|
|
2867
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
2868
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_WAL_USDC_POOL),
|
|
2869
|
+
txb.object((0, constants_js_1.getConf)().BLUEFIN_BLUE_SUI_POOL),
|
|
2870
|
+
txb.object(maps_js_1.bluefinPoolMap["SUI-USDC"]),
|
|
2871
|
+
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2872
|
+
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2873
|
+
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2874
|
+
],
|
|
2875
|
+
});
|
|
2548
2876
|
txb.moveCall({
|
|
2549
2877
|
target: `${poolinfo.packageId}::alphafi_bluefin_type_1_pool::user_withdraw_v2`,
|
|
2550
2878
|
typeArguments: [
|
|
@@ -2846,7 +3174,7 @@ const withdrawBluefinStsuiTxb = async (xTokens, poolName, options) => {
|
|
|
2846
3174
|
txb.object(maps_js_1.bluefinPoolMap["SUI-ALPHA"]),
|
|
2847
3175
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2848
3176
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2849
|
-
txb.pure.bool(
|
|
3177
|
+
txb.pure.bool(true),
|
|
2850
3178
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2851
3179
|
],
|
|
2852
3180
|
});
|
|
@@ -2877,7 +3205,7 @@ const withdrawBluefinStsuiTxb = async (xTokens, poolName, options) => {
|
|
|
2877
3205
|
txb.object(maps_js_1.bluefinPoolMap["SUI-WSOL"]),
|
|
2878
3206
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2879
3207
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2880
|
-
txb.pure.bool(
|
|
3208
|
+
txb.pure.bool(true),
|
|
2881
3209
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2882
3210
|
],
|
|
2883
3211
|
});
|
|
@@ -2908,7 +3236,7 @@ const withdrawBluefinStsuiTxb = async (xTokens, poolName, options) => {
|
|
|
2908
3236
|
txb.object(maps_js_1.bluefinPoolMap["SUI-ETH"]),
|
|
2909
3237
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
2910
3238
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
2911
|
-
txb.pure.bool(
|
|
3239
|
+
txb.pure.bool(true),
|
|
2912
3240
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
2913
3241
|
],
|
|
2914
3242
|
});
|
|
@@ -3001,7 +3329,7 @@ const withdrawBluefinStsuiTxb = async (xTokens, poolName, options) => {
|
|
|
3001
3329
|
txb.object(maps_js_1.bluefinPoolMap["SUI-WAL"]),
|
|
3002
3330
|
txb.object((0, constants_js_1.getConf)().LST_INFO),
|
|
3003
3331
|
txb.object((0, constants_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
3004
|
-
txb.pure.bool(
|
|
3332
|
+
txb.pure.bool(true),
|
|
3005
3333
|
txb.object((0, constants_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
3006
3334
|
],
|
|
3007
3335
|
});
|