@alphafi/alphafi-sdk 0.0.97 → 0.0.99
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/FETCH_OVERRIDE_FIX.md +222 -0
- package/dist/cjs/common/coins.d.ts.map +1 -1
- package/dist/cjs/common/coins.js +18 -0
- package/dist/cjs/common/coins.js.map +1 -1
- package/dist/cjs/common/constants.d.ts +63 -6
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +76 -20
- 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 +17 -0
- 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 +20 -5
- package/dist/cjs/common/types.d.ts.map +1 -1
- package/dist/cjs/common/types.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +32 -0
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchEvents.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchEvents.js +28 -0
- package/dist/cjs/sui-sdk/events/fetchEvents.js.map +1 -1
- package/dist/cjs/sui-sdk/events/types.d.ts +7 -1
- package/dist/cjs/sui-sdk/events/types.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/events/types.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.js +15 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.js.map +1 -1
- package/dist/cjs/transactions/alpha.js +3 -4
- package/dist/cjs/transactions/alpha.js.map +1 -1
- package/dist/cjs/transactions/alphalend.d.ts +0 -1
- package/dist/cjs/transactions/alphalend.d.ts.map +1 -1
- package/dist/cjs/transactions/alphalend.js +2 -285
- package/dist/cjs/transactions/alphalend.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +53 -0
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/collect_rewards.d.ts +3 -0
- package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/cjs/transactions/collect_rewards.js +384 -0
- 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.map +1 -1
- package/dist/cjs/transactions/get_navi_rewards.d.ts +8 -0
- package/dist/cjs/transactions/get_navi_rewards.d.ts.map +1 -1
- package/dist/cjs/transactions/get_navi_rewards.js +28 -45
- package/dist/cjs/transactions/get_navi_rewards.js.map +1 -1
- package/dist/cjs/utils/prices.d.ts.map +1 -1
- package/dist/cjs/utils/prices.js +8 -2
- package/dist/cjs/utils/prices.js.map +1 -1
- package/dist/esm/common/coins.d.ts.map +1 -1
- package/dist/esm/common/coins.js +18 -0
- package/dist/esm/common/coins.js.map +1 -1
- package/dist/esm/common/constants.d.ts +63 -6
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +76 -20
- 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 +17 -0
- 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 +20 -5
- package/dist/esm/common/types.d.ts.map +1 -1
- package/dist/esm/common/types.js.map +1 -1
- package/dist/esm/index.d.ts +1 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +32 -0
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/esm/sui-sdk/events/fetchEvents.d.ts.map +1 -1
- package/dist/esm/sui-sdk/events/fetchEvents.js +28 -0
- package/dist/esm/sui-sdk/events/fetchEvents.js.map +1 -1
- package/dist/esm/sui-sdk/events/types.d.ts +7 -1
- package/dist/esm/sui-sdk/events/types.d.ts.map +1 -1
- package/dist/esm/sui-sdk/events/types.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.js +15 -1
- package/dist/esm/sui-sdk/functions/getReceipts.js.map +1 -1
- package/dist/esm/transactions/alpha.js +3 -4
- package/dist/esm/transactions/alpha.js.map +1 -1
- package/dist/esm/transactions/alphalend.d.ts +0 -1
- package/dist/esm/transactions/alphalend.d.ts.map +1 -1
- package/dist/esm/transactions/alphalend.js +1 -283
- package/dist/esm/transactions/alphalend.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +53 -0
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/collect_rewards.d.ts +3 -0
- package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/esm/transactions/collect_rewards.js +383 -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.map +1 -1
- package/dist/esm/transactions/get_navi_rewards.d.ts +8 -0
- package/dist/esm/transactions/get_navi_rewards.d.ts.map +1 -1
- package/dist/esm/transactions/get_navi_rewards.js +28 -45
- package/dist/esm/transactions/get_navi_rewards.js.map +1 -1
- package/dist/esm/utils/prices.d.ts.map +1 -1
- package/dist/esm/utils/prices.js +8 -2
- package/dist/esm/utils/prices.js.map +1 -1
- package/docs/assets/navigation.js +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/claimRewardTxb.html +1 -1
- package/docs/functions/claimRewardsTxb.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/collectAndSwapRewardsLyf.html +1 -0
- package/docs/functions/collectAndSwapRewardsSingleLoop.html +1 -1
- package/docs/functions/collectRewardTxb.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/fetchRequiredPrices.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/lastAutocompoundTime.html +1 -1
- package/docs/functions/liquidityToTokens.html +1 -1
- package/docs/functions/migrateBoostedToLoop.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/pendingRewardAmount.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/zapDepositQuoteTxb.html +1 -1
- package/docs/functions/zapDepositTxb.html +1 -1
- package/docs/hierarchy.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 +1 -1
- package/docs/types/AfterTransactionEventNode.html +1 -1
- package/docs/types/AirdropClaimEventNode.html +1 -1
- package/docs/types/Allocator.html +2 -2
- package/docs/types/AlphaFiDoubleAssetVault.html +2 -2
- package/docs/types/AlphaFiMultiVaultBalance.html +1 -1
- package/docs/types/AlphaFiSingleAssetVault.html +2 -2
- package/docs/types/AlphaFiVault.html +1 -1
- package/docs/types/AlphaFiVaultBalance.html +1 -1
- package/docs/types/AlphaLendInvestor.html +1 -1
- package/docs/types/AlphaPoolType.html +2 -2
- package/docs/types/AlphaReceipt.html +2 -2
- package/docs/types/AlphaReceiptFields.html +2 -2
- package/docs/types/AlphaVaultBalance.html +2 -2
- package/docs/types/AutoBalancePoolNames.html +1 -1
- package/docs/types/AutoCompoundingEventNode.html +1 -1
- package/docs/types/BluefinInvestor.html +1 -1
- package/docs/types/BluefinLyfInvestor.html +1 -0
- package/docs/types/BluefinPoolType.html +2 -2
- package/docs/types/BucketInvestor.html +2 -2
- package/docs/types/CetusInvestor.html +2 -2
- package/docs/types/CetusPoolType.html +2 -2
- package/docs/types/CetusSwapOptions.html +1 -1
- package/docs/types/CoinAmounts.html +2 -2
- package/docs/types/CoinName.html +1 -1
- package/docs/types/CoinType.html +1 -1
- package/docs/types/CommonInvestorFields.html +2 -2
- package/docs/types/CreatePoolOptions.html +2 -2
- package/docs/types/Distributor.html +2 -2
- package/docs/types/DoubleAssetMultiVaultBalance.html +2 -2
- package/docs/types/DoubleAssetPoolNames.html +1 -1
- package/docs/types/DoubleAssetTokenHoldings.html +2 -2
- package/docs/types/DoubleAssetVaultBalance.html +2 -2
- package/docs/types/EventCategory.html +1 -1
- package/docs/types/EventNode.html +1 -1
- package/docs/types/GetHoldersParams.html +2 -2
- package/docs/types/GetTokenHoldingsParams.html +2 -2
- package/docs/types/GetUserTokensFromTransactionsParams.html +2 -2
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +2 -2
- package/docs/types/GetVaultBalanceParams.html +1 -1
- package/docs/types/HoldingsObj.html +2 -2
- 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 +2 -2
- package/docs/types/LiquidityToUsdParams.html +2 -2
- package/docs/types/LoopingDebt.html +2 -2
- package/docs/types/LoopingPoolNames.html +1 -1
- package/docs/types/LpBreakdownType.html +2 -2
- package/docs/types/MemberPoolDataType.html +2 -2
- package/docs/types/MemberType.html +2 -2
- package/docs/types/MultiGetVaultBalancesParams.html +2 -2
- package/docs/types/NaviInvestor.html +2 -2
- package/docs/types/OtherReceiptFields.html +2 -2
- package/docs/types/PoolName.html +1 -1
- package/docs/types/PoolReceipt.html +1 -1
- package/docs/types/PoolType.html +2 -2
- package/docs/types/Receipt.html +2 -2
- package/docs/types/ReceiptGQL.html +2 -2
- package/docs/types/SingleAssetMultiVaultBalance.html +2 -2
- package/docs/types/SingleAssetPoolNames.html +1 -1
- package/docs/types/SingleAssetTokenHoldings.html +2 -2
- package/docs/types/SingleAssetVaultBalance.html +2 -2
- package/docs/types/SingleGetVaultBalancesParams.html +2 -2
- 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 +2 -2
- package/docs/types/TransactionBlockType.html +2 -2
- package/docs/types/UserPoolLiquidity.html +2 -2
- package/docs/types/UserPoolTokenHoldings.html +1 -1
- package/docs/types/UserUsdHoldings.html +2 -2
- package/docs/types/VaultBalance.html +1 -1
- package/docs/types/VoteCastEvent.html +1 -1
- package/docs/types/WithdrawV2EventNode.html +1 -1
- package/docs/variables/AUTOBALANCE_SUI_FIRST_POOLS.html +1 -1
- package/docs/variables/AUTOBALANCE_SUI_SECOND_POOLS.html +1 -1
- package/docs/variables/AUTOBALANCE_TYPE_1_POOLS.html +1 -1
- package/docs/variables/alphalendMarketIdMap.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 +3 -4
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Transaction } from "@mysten/sui/transactions";
|
|
2
|
+
import { PoolName } from "../index.js";
|
|
2
3
|
export declare function claimRewardTxb(address: string): Promise<Transaction>;
|
|
4
|
+
export declare function collectAndSwapRewardsSingleLoop(poolName: PoolName, tx?: Transaction): Promise<Transaction>;
|
|
5
|
+
export declare function collectAndSwapRewardsLyf(poolname: PoolName, tx?: Transaction): Promise<Transaction>;
|
|
3
6
|
//# sourceMappingURL=collect_rewards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collect_rewards.d.ts","sourceRoot":"","sources":["../../../src/transactions/collect_rewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"collect_rewards.d.ts","sourceRoot":"","sources":["../../../src/transactions/collect_rewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAQL,QAAQ,EAET,MAAM,aAAa,CAAC;AAErB,wBAAsB,cAAc,CAAC,OAAO,EAAE,MAAM,wBAshBnD;AAED,wBAAsB,+BAA+B,CACnD,QAAQ,EAAE,QAAQ,EAClB,EAAE,CAAC,EAAE,WAAW,GACf,OAAO,CAAC,WAAW,CAAC,CAwRtB;AAED,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,QAAQ,EAClB,EAAE,CAAC,EAAE,WAAW,GACf,OAAO,CAAC,WAAW,CAAC,CA4EtB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.claimRewardTxb = claimRewardTxb;
|
|
4
|
+
exports.collectAndSwapRewardsSingleLoop = collectAndSwapRewardsSingleLoop;
|
|
5
|
+
exports.collectAndSwapRewardsLyf = collectAndSwapRewardsLyf;
|
|
4
6
|
const transactions_1 = require("@mysten/sui/transactions");
|
|
5
7
|
const index_js_1 = require("../index.js");
|
|
6
8
|
async function claimRewardTxb(address) {
|
|
@@ -507,6 +509,28 @@ async function claimRewardTxb(address) {
|
|
|
507
509
|
});
|
|
508
510
|
});
|
|
509
511
|
}
|
|
512
|
+
else if (index_js_1.poolInfo[poolName].strategyType === "LEVERAGE-YIELD-FARMING") {
|
|
513
|
+
const coinAName = index_js_1.doubleAssetPoolCoinMap[poolName].coin1;
|
|
514
|
+
const coinA = index_js_1.coinsList[coinAName];
|
|
515
|
+
const coinBName = index_js_1.doubleAssetPoolCoinMap[poolName].coin2;
|
|
516
|
+
const coinB = index_js_1.coinsList[coinBName];
|
|
517
|
+
receipts.forEach((receipt) => {
|
|
518
|
+
alpha_receipt = txb.moveCall({
|
|
519
|
+
target: `${index_js_1.poolInfo[poolName].packageId}::alphafi_lyf_pool::get_user_rewards_all`,
|
|
520
|
+
typeArguments: [coinA.type, coinB.type],
|
|
521
|
+
arguments: [
|
|
522
|
+
txb.object((0, index_js_1.getConf)().ALPHA_LYF_VERSION),
|
|
523
|
+
txb.object((0, index_js_1.getConf)().VERSION),
|
|
524
|
+
txb.object(receipt.objectId),
|
|
525
|
+
alpha_receipt,
|
|
526
|
+
txb.object(index_js_1.poolInfo[poolName].poolId),
|
|
527
|
+
txb.object(index_js_1.poolInfo["ALPHA"].poolId),
|
|
528
|
+
txb.object((0, index_js_1.getConf)().ALPHA_DISTRIBUTOR),
|
|
529
|
+
txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
530
|
+
],
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
}
|
|
510
534
|
}
|
|
511
535
|
}
|
|
512
536
|
}
|
|
@@ -516,4 +540,364 @@ async function claimRewardTxb(address) {
|
|
|
516
540
|
});
|
|
517
541
|
return txb;
|
|
518
542
|
}
|
|
543
|
+
async function collectAndSwapRewardsSingleLoop(poolName, tx) {
|
|
544
|
+
const txb = tx ? tx : new transactions_1.Transaction();
|
|
545
|
+
const C = (0, index_js_1.getConf)();
|
|
546
|
+
const poolData = index_js_1.poolInfo[poolName];
|
|
547
|
+
if (poolName === "ALPHALEND-SINGLE-LOOP-TBTC") {
|
|
548
|
+
txb.moveCall({
|
|
549
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
550
|
+
typeArguments: [
|
|
551
|
+
index_js_1.coinsList["TBTC"].type,
|
|
552
|
+
index_js_1.coinsList["ALPHA"].type,
|
|
553
|
+
index_js_1.coinsList["STSUI"].type,
|
|
554
|
+
],
|
|
555
|
+
arguments: [
|
|
556
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
557
|
+
txb.object(poolData.investorId),
|
|
558
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
559
|
+
txb.object(index_js_1.bluefinPoolMap[`ALPHA-STSUI`]),
|
|
560
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
561
|
+
txb.pure.bool(true),
|
|
562
|
+
txb.pure.bool(false),
|
|
563
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
564
|
+
],
|
|
565
|
+
});
|
|
566
|
+
txb.moveCall({
|
|
567
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
568
|
+
typeArguments: [
|
|
569
|
+
index_js_1.coinsList["TBTC"].type,
|
|
570
|
+
index_js_1.coinsList["STSUI"].type,
|
|
571
|
+
index_js_1.coinsList["SUI"].type,
|
|
572
|
+
],
|
|
573
|
+
arguments: [
|
|
574
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
575
|
+
txb.object(poolData.investorId),
|
|
576
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
577
|
+
txb.object(index_js_1.bluefinPoolMap[`STSUI-SUI`]),
|
|
578
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
579
|
+
txb.pure.bool(true),
|
|
580
|
+
txb.pure.bool(true),
|
|
581
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
582
|
+
],
|
|
583
|
+
});
|
|
584
|
+
txb.moveCall({
|
|
585
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
586
|
+
typeArguments: [
|
|
587
|
+
index_js_1.coinsList["TBTC"].type,
|
|
588
|
+
index_js_1.coinsList["BLUE"].type,
|
|
589
|
+
index_js_1.coinsList["SUI"].type,
|
|
590
|
+
],
|
|
591
|
+
arguments: [
|
|
592
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
593
|
+
txb.object(poolData.investorId),
|
|
594
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
595
|
+
txb.object(index_js_1.bluefinPoolMap[`BLUE-SUI`]),
|
|
596
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
597
|
+
txb.pure.bool(true),
|
|
598
|
+
txb.pure.bool(true),
|
|
599
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
600
|
+
],
|
|
601
|
+
});
|
|
602
|
+
txb.moveCall({
|
|
603
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
604
|
+
typeArguments: [
|
|
605
|
+
index_js_1.coinsList["TBTC"].type,
|
|
606
|
+
index_js_1.coinsList["DEEP"].type,
|
|
607
|
+
index_js_1.coinsList["SUI"].type,
|
|
608
|
+
],
|
|
609
|
+
arguments: [
|
|
610
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
611
|
+
txb.object(poolData.investorId),
|
|
612
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
613
|
+
txb.object(index_js_1.bluefinPoolMap[`DEEP-SUI`]),
|
|
614
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
615
|
+
txb.pure.bool(true),
|
|
616
|
+
txb.pure.bool(true),
|
|
617
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
618
|
+
],
|
|
619
|
+
});
|
|
620
|
+
txb.moveCall({
|
|
621
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
622
|
+
typeArguments: [
|
|
623
|
+
index_js_1.coinsList["TBTC"].type,
|
|
624
|
+
index_js_1.coinsList["SUI"].type,
|
|
625
|
+
index_js_1.coinsList["USDC"].type,
|
|
626
|
+
],
|
|
627
|
+
arguments: [
|
|
628
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
629
|
+
txb.object(poolData.investorId),
|
|
630
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
631
|
+
txb.object(index_js_1.bluefinPoolMap[`SUI-USDC`]),
|
|
632
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
633
|
+
txb.pure.bool(true),
|
|
634
|
+
txb.pure.bool(true),
|
|
635
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
636
|
+
],
|
|
637
|
+
});
|
|
638
|
+
txb.moveCall({
|
|
639
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
640
|
+
typeArguments: [
|
|
641
|
+
index_js_1.coinsList["TBTC"].type,
|
|
642
|
+
index_js_1.coinsList["TBTC"].type,
|
|
643
|
+
index_js_1.coinsList["USDC"].type,
|
|
644
|
+
],
|
|
645
|
+
arguments: [
|
|
646
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
647
|
+
txb.object(poolData.investorId),
|
|
648
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
649
|
+
txb.object(index_js_1.bluefinPoolMap[`TBTC-USDC`]),
|
|
650
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
651
|
+
txb.pure.bool(false),
|
|
652
|
+
txb.pure.bool(true),
|
|
653
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
654
|
+
],
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
else if (poolName === "ALPHALEND-SINGLE-LOOP-SUIBTC") {
|
|
658
|
+
txb.moveCall({
|
|
659
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
660
|
+
typeArguments: [
|
|
661
|
+
index_js_1.coinsList["SUIBTC"].type,
|
|
662
|
+
index_js_1.coinsList["ALPHA"].type,
|
|
663
|
+
index_js_1.coinsList["STSUI"].type,
|
|
664
|
+
],
|
|
665
|
+
arguments: [
|
|
666
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
667
|
+
txb.object(poolData.investorId),
|
|
668
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
669
|
+
txb.object(index_js_1.bluefinPoolMap[`ALPHA-STSUI`]),
|
|
670
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
671
|
+
txb.pure.bool(true),
|
|
672
|
+
txb.pure.bool(false),
|
|
673
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
674
|
+
],
|
|
675
|
+
});
|
|
676
|
+
txb.moveCall({
|
|
677
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
678
|
+
typeArguments: [
|
|
679
|
+
index_js_1.coinsList["SUIBTC"].type,
|
|
680
|
+
index_js_1.coinsList["BLUE"].type,
|
|
681
|
+
index_js_1.coinsList["SUI"].type,
|
|
682
|
+
],
|
|
683
|
+
arguments: [
|
|
684
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
685
|
+
txb.object(poolData.investorId),
|
|
686
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
687
|
+
txb.object(index_js_1.bluefinPoolMap[`BLUE-SUI`]),
|
|
688
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
689
|
+
txb.pure.bool(true),
|
|
690
|
+
txb.pure.bool(true),
|
|
691
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
692
|
+
],
|
|
693
|
+
});
|
|
694
|
+
txb.moveCall({
|
|
695
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
696
|
+
typeArguments: [
|
|
697
|
+
index_js_1.coinsList["SUIBTC"].type,
|
|
698
|
+
index_js_1.coinsList["DEEP"].type,
|
|
699
|
+
index_js_1.coinsList["SUI"].type,
|
|
700
|
+
],
|
|
701
|
+
arguments: [
|
|
702
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
703
|
+
txb.object(poolData.investorId),
|
|
704
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
705
|
+
txb.object(index_js_1.bluefinPoolMap[`DEEP-SUI`]),
|
|
706
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
707
|
+
txb.pure.bool(true),
|
|
708
|
+
txb.pure.bool(true),
|
|
709
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
710
|
+
],
|
|
711
|
+
});
|
|
712
|
+
txb.moveCall({
|
|
713
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
714
|
+
typeArguments: [
|
|
715
|
+
index_js_1.coinsList["SUIBTC"].type,
|
|
716
|
+
index_js_1.coinsList["SUI"].type,
|
|
717
|
+
index_js_1.coinsList["SUIBTC"].type,
|
|
718
|
+
],
|
|
719
|
+
arguments: [
|
|
720
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
721
|
+
txb.object(poolData.investorId),
|
|
722
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
723
|
+
txb.object(index_js_1.bluefinPoolMap[`SUI-SUIBTC`]),
|
|
724
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
725
|
+
txb.pure.bool(true),
|
|
726
|
+
txb.pure.bool(true),
|
|
727
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
728
|
+
],
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
else if (poolName === "ALPHALEND-SINGLE-LOOP-XAUM") {
|
|
732
|
+
txb.moveCall({
|
|
733
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
734
|
+
typeArguments: [
|
|
735
|
+
index_js_1.coinsList["XAUM"].type,
|
|
736
|
+
index_js_1.coinsList["ALPHA"].type,
|
|
737
|
+
index_js_1.coinsList["USDC"].type,
|
|
738
|
+
],
|
|
739
|
+
arguments: [
|
|
740
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
741
|
+
txb.object(poolData.investorId),
|
|
742
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
743
|
+
txb.object(index_js_1.bluefinPoolMap[`ALPHA-USDC`]),
|
|
744
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
745
|
+
txb.pure.bool(true),
|
|
746
|
+
txb.pure.bool(true),
|
|
747
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
748
|
+
],
|
|
749
|
+
});
|
|
750
|
+
txb.moveCall({
|
|
751
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
752
|
+
typeArguments: [
|
|
753
|
+
index_js_1.coinsList["XAUM"].type,
|
|
754
|
+
index_js_1.coinsList["DEEP"].type,
|
|
755
|
+
index_js_1.coinsList["SUI"].type,
|
|
756
|
+
],
|
|
757
|
+
arguments: [
|
|
758
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
759
|
+
txb.object(poolData.investorId),
|
|
760
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
761
|
+
txb.object(index_js_1.bluefinPoolMap[`DEEP-SUI`]),
|
|
762
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
763
|
+
txb.pure.bool(true),
|
|
764
|
+
txb.pure.bool(true),
|
|
765
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
766
|
+
],
|
|
767
|
+
});
|
|
768
|
+
txb.moveCall({
|
|
769
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
770
|
+
typeArguments: [
|
|
771
|
+
index_js_1.coinsList["XAUM"].type,
|
|
772
|
+
index_js_1.coinsList["BLUE"].type,
|
|
773
|
+
index_js_1.coinsList["SUI"].type,
|
|
774
|
+
],
|
|
775
|
+
arguments: [
|
|
776
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
777
|
+
txb.object(poolData.investorId),
|
|
778
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
779
|
+
txb.object(index_js_1.bluefinPoolMap[`BLUE-SUI`]),
|
|
780
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
781
|
+
txb.pure.bool(true),
|
|
782
|
+
txb.pure.bool(true),
|
|
783
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
784
|
+
],
|
|
785
|
+
});
|
|
786
|
+
txb.moveCall({
|
|
787
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_bluefin`,
|
|
788
|
+
typeArguments: [
|
|
789
|
+
index_js_1.coinsList["XAUM"].type,
|
|
790
|
+
index_js_1.coinsList["SUI"].type,
|
|
791
|
+
index_js_1.coinsList["USDC"].type,
|
|
792
|
+
],
|
|
793
|
+
arguments: [
|
|
794
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
795
|
+
txb.object(poolData.investorId),
|
|
796
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
797
|
+
txb.object(index_js_1.bluefinPoolMap[`SUI-USDC`]),
|
|
798
|
+
txb.object(C.BLUEFIN_GLOBAL_CONFIG),
|
|
799
|
+
txb.pure.bool(true),
|
|
800
|
+
txb.pure.bool(true),
|
|
801
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
802
|
+
],
|
|
803
|
+
});
|
|
804
|
+
txb.moveCall({
|
|
805
|
+
target: `${poolData.packageId}::alphafi_alphalend_single_loop_pool::collect_reward_and_swap_mmt`,
|
|
806
|
+
typeArguments: [
|
|
807
|
+
index_js_1.coinsList["XAUM"].type,
|
|
808
|
+
index_js_1.coinsList["XAUM"].type,
|
|
809
|
+
index_js_1.coinsList["USDC"].type,
|
|
810
|
+
],
|
|
811
|
+
arguments: [
|
|
812
|
+
txb.object(C.ALPHA_ALPHALEND_VERSION),
|
|
813
|
+
txb.object(poolData.investorId),
|
|
814
|
+
txb.object(C.LENDING_PROTOCOL_ID),
|
|
815
|
+
txb.object(C.MMT_XAUM_USDC_POOL),
|
|
816
|
+
txb.object(C.MMT_VERSION),
|
|
817
|
+
txb.pure.bool(false),
|
|
818
|
+
txb.pure.bool(true),
|
|
819
|
+
txb.pure.u64(10),
|
|
820
|
+
txb.object(C.CLOCK_PACKAGE_ID),
|
|
821
|
+
],
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
return txb;
|
|
825
|
+
}
|
|
826
|
+
async function collectAndSwapRewardsLyf(poolname, tx) {
|
|
827
|
+
const txb = tx ? tx : new transactions_1.Transaction();
|
|
828
|
+
const pool = index_js_1.poolInfo[poolname];
|
|
829
|
+
const coin1 = index_js_1.doubleAssetPoolCoinMap[poolname].coin1;
|
|
830
|
+
const coin2 = index_js_1.doubleAssetPoolCoinMap[poolname].coin2;
|
|
831
|
+
if (pool.strategyType === "LEVERAGE-YIELD-FARMING") {
|
|
832
|
+
if (poolname === "BLUEFIN-LYF-STSUI-SUI") {
|
|
833
|
+
txb.moveCall({
|
|
834
|
+
target: `${pool.packageId}::alphafi_lyf_pool::collect_reward_and_swap_bluefin`,
|
|
835
|
+
typeArguments: [
|
|
836
|
+
index_js_1.coinsList[coin1].type,
|
|
837
|
+
index_js_1.coinsList[coin2].type,
|
|
838
|
+
index_js_1.coinsList["BLUE"].type,
|
|
839
|
+
index_js_1.coinsList["SUI"].type,
|
|
840
|
+
],
|
|
841
|
+
arguments: [
|
|
842
|
+
txb.object((0, index_js_1.getConf)().ALPHA_LYF_VERSION),
|
|
843
|
+
txb.object(pool.poolId),
|
|
844
|
+
txb.object((0, index_js_1.getConf)().LENDING_PROTOCOL_ID),
|
|
845
|
+
txb.object(pool.parentPoolId),
|
|
846
|
+
txb.object(index_js_1.bluefinPoolMap["BLUE-SUI"]),
|
|
847
|
+
txb.object((0, index_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
848
|
+
txb.pure.bool(true),
|
|
849
|
+
txb.pure.bool(true),
|
|
850
|
+
txb.pure.bool(true),
|
|
851
|
+
txb.object((0, index_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
852
|
+
txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
853
|
+
],
|
|
854
|
+
});
|
|
855
|
+
txb.moveCall({
|
|
856
|
+
target: `${pool.packageId}::alphafi_lyf_pool::collect_reward_and_swap_bluefin`,
|
|
857
|
+
typeArguments: [
|
|
858
|
+
index_js_1.coinsList[coin1].type,
|
|
859
|
+
index_js_1.coinsList[coin2].type,
|
|
860
|
+
index_js_1.coinsList["BLUE"].type,
|
|
861
|
+
index_js_1.coinsList["SUI"].type,
|
|
862
|
+
],
|
|
863
|
+
arguments: [
|
|
864
|
+
txb.object((0, index_js_1.getConf)().ALPHA_LYF_VERSION),
|
|
865
|
+
txb.object(pool.poolId),
|
|
866
|
+
txb.object((0, index_js_1.getConf)().LENDING_PROTOCOL_ID),
|
|
867
|
+
txb.object(pool.parentPoolId),
|
|
868
|
+
txb.object(index_js_1.bluefinPoolMap["BLUE-SUI"]),
|
|
869
|
+
txb.object((0, index_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
870
|
+
txb.pure.bool(true),
|
|
871
|
+
txb.pure.bool(true),
|
|
872
|
+
txb.pure.bool(false),
|
|
873
|
+
txb.object((0, index_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
874
|
+
txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
875
|
+
],
|
|
876
|
+
});
|
|
877
|
+
txb.moveCall({
|
|
878
|
+
target: `${pool.packageId}::alphafi_lyf_pool::collect_reward_and_swap_bluefin`,
|
|
879
|
+
typeArguments: [
|
|
880
|
+
index_js_1.coinsList[coin1].type,
|
|
881
|
+
index_js_1.coinsList[coin2].type,
|
|
882
|
+
index_js_1.coinsList["ALPHA"].type,
|
|
883
|
+
index_js_1.coinsList["STSUI"].type,
|
|
884
|
+
],
|
|
885
|
+
arguments: [
|
|
886
|
+
txb.object((0, index_js_1.getConf)().ALPHA_LYF_VERSION),
|
|
887
|
+
txb.object(pool.poolId),
|
|
888
|
+
txb.object((0, index_js_1.getConf)().LENDING_PROTOCOL_ID),
|
|
889
|
+
txb.object(pool.parentPoolId),
|
|
890
|
+
txb.object(index_js_1.bluefinPoolMap["ALPHA-STSUI"]),
|
|
891
|
+
txb.object((0, index_js_1.getConf)().BLUEFIN_GLOBAL_CONFIG),
|
|
892
|
+
txb.pure.bool(true),
|
|
893
|
+
txb.pure.bool(true),
|
|
894
|
+
txb.pure.bool(false),
|
|
895
|
+
txb.object((0, index_js_1.getConf)().SUI_SYSTEM_STATE),
|
|
896
|
+
txb.object((0, index_js_1.getConf)().CLOCK_PACKAGE_ID),
|
|
897
|
+
],
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return txb;
|
|
902
|
+
}
|
|
519
903
|
//# sourceMappingURL=collect_rewards.js.map
|