@alphafi/alphafi-sdk 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/adminFunctions.d.ts.map +1 -1
- package/dist/cjs/adminFunctions.js +9 -1
- package/dist/cjs/adminFunctions.js.map +1 -1
- package/dist/cjs/common/coins.d.ts.map +1 -1
- package/dist/cjs/common/coins.js +12 -0
- package/dist/cjs/common/coins.js.map +1 -1
- package/dist/cjs/common/constants.d.ts +135 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +98 -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 +103 -16
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/common/types.d.ts +58 -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 +2 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.js +2 -3
- package/dist/cjs/sui-sdk/functions/fetchUserVaultBalances.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js +5 -11
- package/dist/cjs/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +2 -2
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.js +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts +6 -0
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +411 -34
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/cetus.d.ts +1 -1
- package/dist/cjs/transactions/cetus.d.ts.map +1 -1
- package/dist/cjs/transactions/cetus.js +3 -3
- package/dist/cjs/transactions/cetus.js.map +1 -1
- package/dist/cjs/transactions/deposit.d.ts.map +1 -1
- package/dist/cjs/transactions/deposit.js +9 -1
- package/dist/cjs/transactions/deposit.js.map +1 -1
- package/dist/cjs/transactions/withdraw.d.ts.map +1 -1
- package/dist/cjs/transactions/withdraw.js +9 -1
- package/dist/cjs/transactions/withdraw.js.map +1 -1
- package/dist/esm/adminFunctions.d.ts.map +1 -1
- package/dist/esm/adminFunctions.js +10 -2
- package/dist/esm/adminFunctions.js.map +1 -1
- package/dist/esm/common/coins.d.ts.map +1 -1
- package/dist/esm/common/coins.js +12 -0
- package/dist/esm/common/coins.js.map +1 -1
- package/dist/esm/common/constants.d.ts +135 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +98 -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 +103 -16
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/common/types.d.ts +58 -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 +2 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.d.ts.map +1 -1
- package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.js +2 -3
- package/dist/esm/sui-sdk/functions/fetchUserVaultBalances.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getPortfolioAmounts.d.ts.map +1 -1
- package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js +5 -11
- package/dist/esm/sui-sdk/functions/getPortfolioAmounts.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts +2 -2
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.js +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts +6 -0
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +408 -33
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/cetus.d.ts +1 -1
- package/dist/esm/transactions/cetus.d.ts.map +1 -1
- package/dist/esm/transactions/cetus.js +3 -3
- package/dist/esm/transactions/cetus.js.map +1 -1
- package/dist/esm/transactions/deposit.d.ts.map +1 -1
- package/dist/esm/transactions/deposit.js +10 -2
- package/dist/esm/transactions/deposit.js.map +1 -1
- package/dist/esm/transactions/withdraw.d.ts.map +1 -1
- package/dist/esm/transactions/withdraw.js +10 -2
- package/dist/esm/transactions/withdraw.js.map +1 -1
- package/docs/assets/highlight.css +101 -0
- package/docs/assets/icons.js +21 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +2218 -0
- package/docs/assets/navigation.js +2 -0
- package/docs/assets/search.js +2 -0
- package/docs/assets/style.css +1489 -0
- package/docs/functions/alphaLpBreakdown.html +253 -0
- package/docs/functions/bucketDepositTx.html +267 -0
- package/docs/functions/bucketWithdrawTx.html +267 -0
- package/docs/functions/cetusLpBreakdown.html +253 -0
- package/docs/functions/claimRewardTxb.html +243 -0
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -0
- package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -0
- package/docs/functions/coinsInPool.html +438 -0
- package/docs/functions/collectRewards.html +242 -0
- package/docs/functions/deposit.html +246 -0
- package/docs/functions/depositAlphaTxb.html +250 -0
- package/docs/functions/depositBluefinSuiFirstTxb.html +302 -0
- package/docs/functions/depositBluefinType1Txb.html +300 -0
- package/docs/functions/depositBluefinType2Txb.html +300 -0
- package/docs/functions/depositCetusAlphaSuiTxb.html +300 -0
- package/docs/functions/depositCetusSuiTxb.html +298 -0
- package/docs/functions/depositCetusTxb.html +298 -0
- package/docs/functions/depositDoubleAssetTxb.html +270 -0
- package/docs/functions/depositSingleAssetTxb.html +263 -0
- package/docs/functions/fetchAfterTransactionEvents.html +306 -0
- package/docs/functions/fetchAutoCompoundingEvents.html +257 -0
- package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -0
- package/docs/functions/fetchCetusPools.html +231 -0
- package/docs/functions/fetchChainIdentifier.html +233 -0
- package/docs/functions/fetchCheckRatioEvents.html +249 -0
- package/docs/functions/fetchLiquidityChangeEvents.html +257 -0
- package/docs/functions/fetchMultiReceipts.html +261 -0
- package/docs/functions/fetchNftHolders.html +233 -0
- package/docs/functions/fetchPools.html +230 -0
- package/docs/functions/fetchPortfolioData.html +243 -0
- package/docs/functions/fetchProtocolData.html +231 -0
- package/docs/functions/fetchTVL.html +253 -0
- package/docs/functions/fetchUserVaultBalances.html +245 -0
- package/docs/functions/fetchUserVaults.html +243 -0
- package/docs/functions/fetchUserWalletData.html +243 -0
- package/docs/functions/fetchWithdrawV2Events.html +255 -0
- package/docs/functions/getAirdropShare.html +243 -0
- package/docs/functions/getAllDoubleAssetVaults.html +235 -0
- package/docs/functions/getAllSingleAssetVaults.html +235 -0
- package/docs/functions/getAllVaultBalances.html +265 -0
- package/docs/functions/getAllVaults.html +233 -0
- package/docs/functions/getAlphaUnlocks.html +245 -0
- package/docs/functions/getAlphaVaultBalance.html +255 -0
- package/docs/functions/getAmounts.html +272 -0
- package/docs/functions/getApr.html +243 -0
- package/docs/functions/getAprs.html +255 -0
- package/docs/functions/getApy.html +243 -0
- package/docs/functions/getApys.html +255 -0
- package/docs/functions/getCetusInvestorTicksMap.html +284 -0
- package/docs/functions/getCetusSqrtPriceMap.html +249 -0
- package/docs/functions/getCoinAmountsFromLiquidity.html +266 -0
- package/docs/functions/getConf.html +9882 -0
- package/docs/functions/getCurrentTick.html +247 -0
- package/docs/functions/getDoubleAssetVaultBalance.html +268 -0
- package/docs/functions/getDoubleAssetVaults.html +253 -0
- package/docs/functions/getHoldersFromTransactions.html +299 -0
- package/docs/functions/getInvestor.html +259 -0
- package/docs/functions/getInvestorPoolMap.html +241 -0
- package/docs/functions/getLastAutoCompoundTime.html +249 -0
- package/docs/functions/getLiquidity.html +260 -0
- package/docs/functions/getParentPool.html +256 -0
- package/docs/functions/getPool.html +262 -0
- package/docs/functions/getPoolExchangeRateMap.html +249 -0
- package/docs/functions/getPositionTicks.html +249 -0
- package/docs/functions/getPriceToTick.html +254 -0
- package/docs/functions/getRebalanceHistories.html +269 -0
- package/docs/functions/getRebalanceHistory.html +255 -0
- package/docs/functions/getReceipts.html +268 -0
- package/docs/functions/getSingleAssetVaultBalance.html +268 -0
- package/docs/functions/getSingleAssetVaults.html +253 -0
- package/docs/functions/getSuiClient.html +247 -0
- package/docs/functions/getSuiNodeUrl.html +232 -0
- package/docs/functions/getTVLs.html +243 -0
- package/docs/functions/getTickToPrice.html +254 -0
- package/docs/functions/getUserTokensFromTransactions.html +269 -0
- package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -0
- package/docs/functions/getVaultBalance.html +277 -0
- package/docs/functions/getVaultBalanceForActiveUsers.html +261 -0
- package/docs/functions/getVaults.html +250 -0
- package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -0
- package/docs/functions/lastAutocompoundTime.html +249 -0
- package/docs/functions/liquidityToTokens.html +253 -0
- package/docs/functions/loopingDeposit.html +277 -0
- package/docs/functions/loopingWithdraw.html +278 -0
- package/docs/functions/multiLiquidityToTokens.html +271 -0
- package/docs/functions/multiTokensToUsd.html +262 -0
- package/docs/functions/multiXTokensToLiquidity.html +257 -0
- package/docs/functions/naviDepositTx.html +278 -0
- package/docs/functions/naviHasuiSuiLoopDepositTx.html +271 -0
- package/docs/functions/naviHasuiSuiLoopWithdrawTx.html +271 -0
- package/docs/functions/naviSuiVsuiLoopDepositTx.html +271 -0
- package/docs/functions/naviSuiVsuiLoopWithdrawTx.html +271 -0
- package/docs/functions/naviUsdcUsdtLoopDepositTx.html +271 -0
- package/docs/functions/naviUsdcUsdtLoopWithdrawTx.html +271 -0
- package/docs/functions/naviUsdtUsdcLoopDepositTx.html +271 -0
- package/docs/functions/naviUsdtUsdcLoopWithdrawTx.html +271 -0
- package/docs/functions/naviWithdrawTx.html +278 -0
- package/docs/functions/parseUserWalletData.html +243 -0
- package/docs/functions/setSuiClient.html +255 -0
- package/docs/functions/setSuiNodeUrl.html +249 -0
- package/docs/functions/withdraw.html +249 -0
- package/docs/functions/withdrawAlphaTxb.html +257 -0
- package/docs/functions/withdrawBluefinSuiFirstTxb.html +282 -0
- package/docs/functions/withdrawBluefinType1Txb.html +280 -0
- package/docs/functions/withdrawBluefinType2Txb.html +280 -0
- package/docs/functions/withdrawCetusAlphaSuiTxb.html +282 -0
- package/docs/functions/withdrawCetusSuiTxb.html +278 -0
- package/docs/functions/withdrawCetusTxb.html +278 -0
- package/docs/functions/withdrawTxb.html +260 -0
- package/docs/index.html +622 -0
- package/docs/interfaces/Coin.html +474 -0
- package/docs/interfaces/CoinPair.html +358 -0
- package/docs/interfaces/NaviVoloData.html +514 -0
- package/docs/interfaces/RebalanceHistoryType.html +652 -0
- package/docs/modules.html +1440 -0
- package/docs/types/AfterTransactionEventNode.html +305 -0
- package/docs/types/Allocator.html +321 -0
- package/docs/types/AlphaFiDoubleAssetVault.html +258 -0
- package/docs/types/AlphaFiMultiVaultBalance.html +219 -0
- package/docs/types/AlphaFiSingleAssetVault.html +244 -0
- package/docs/types/AlphaFiVault.html +214 -0
- package/docs/types/AlphaFiVaultBalance.html +220 -0
- package/docs/types/AlphaPoolType.html +383 -0
- package/docs/types/AlphaReceipt.html +220 -0
- package/docs/types/AlphaReceiptFields.html +421 -0
- package/docs/types/AlphaVaultBalance.html +245 -0
- package/docs/types/AutoCompoundingEventNode.html +225 -0
- package/docs/types/BluefinInvestor.html +209 -0
- package/docs/types/BluefinPoolType.html +209 -0
- package/docs/types/BucketInvestor.html +249 -0
- package/docs/types/CetusInvestor.html +240 -0
- package/docs/types/CetusPoolType.html +433 -0
- package/docs/types/CetusSwapOptions.html +209 -0
- package/docs/types/CoinAmounts.html +216 -0
- package/docs/types/CoinName.html +281 -0
- package/docs/types/CoinType.html +282 -0
- package/docs/types/CommonInvestorFields.html +276 -0
- package/docs/types/CreatePoolOptions.html +246 -0
- package/docs/types/Distributor.html +341 -0
- package/docs/types/DoubleAssetMultiVaultBalance.html +236 -0
- package/docs/types/DoubleAssetPoolNames.html +267 -0
- package/docs/types/DoubleAssetTokenHoldings.html +232 -0
- package/docs/types/DoubleAssetVaultBalance.html +229 -0
- package/docs/types/GetHoldersParams.html +221 -0
- package/docs/types/GetTokenHoldingsParams.html +227 -0
- package/docs/types/GetUserTokensFromTransactionsParams.html +233 -0
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -0
- package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -0
- package/docs/types/GetVaultBalanceParams.html +217 -0
- package/docs/types/HoldingsObj.html +223 -0
- package/docs/types/Icon.html +266 -0
- package/docs/types/Investor.html +245 -0
- package/docs/types/LiquidityChangeEventNode.html +220 -0
- package/docs/types/LiquidityToTokensParams.html +255 -0
- package/docs/types/LiquidityToUsdParams.html +267 -0
- package/docs/types/LoopingDebt.html +258 -0
- package/docs/types/LpBreakdownType.html +238 -0
- package/docs/types/MemberPoolDataType.html +276 -0
- package/docs/types/MemberType.html +269 -0
- package/docs/types/MultiGetVaultBalancesParams.html +229 -0
- package/docs/types/NaviInvestor.html +235 -0
- package/docs/types/OtherReceiptFields.html +373 -0
- package/docs/types/PoolName.html +304 -0
- package/docs/types/PoolReceipt.html +253 -0
- package/docs/types/PoolType.html +388 -0
- package/docs/types/Receipt.html +475 -0
- package/docs/types/ReceiptGQL.html +374 -0
- package/docs/types/SingleAssetMultiVaultBalance.html +232 -0
- package/docs/types/SingleAssetPoolNames.html +247 -0
- package/docs/types/SingleAssetTokenHoldings.html +228 -0
- package/docs/types/SingleAssetVaultBalance.html +223 -0
- package/docs/types/SingleGetVaultBalancesParams.html +224 -0
- package/docs/types/StrategyType.html +217 -0
- package/docs/types/SuiNetwork.html +213 -0
- package/docs/types/SwapOptions.html +248 -0
- package/docs/types/TickSpacing.html +212 -0
- package/docs/types/TotalWeightType.html +246 -0
- package/docs/types/TransactionBlockType.html +358 -0
- package/docs/types/UserPoolLiquidity.html +221 -0
- package/docs/types/UserPoolTokenHoldings.html +217 -0
- package/docs/types/UserUsdHoldings.html +223 -0
- package/docs/types/VaultBalance.html +216 -0
- package/docs/types/WithdrawV2EventNode.html +208 -0
- package/docs/variables/bluefinPoolMap.html +214 -0
- package/docs/variables/cetusPoolMap.html +214 -0
- package/docs/variables/coinsList.html +220 -0
- package/docs/variables/defunctPoolsSet.html +209 -0
- package/docs/variables/doubleAssetPoolCoinMap.html +237 -0
- package/docs/variables/loopingAccountAddresses.html +219 -0
- package/docs/variables/loopingPoolCoinMap.html +233 -0
- package/docs/variables/naviAssetMap.html +215 -0
- package/docs/variables/poolIdPoolNameMap.html +218 -0
- package/docs/variables/poolInfo.html +304 -0
- package/docs/variables/singleAssetPoolCoinMap.html +229 -0
- package/docs/variables/stableCoins.html +207 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { depositAlphaTxb } from "./alpha.js";
|
|
|
4
4
|
import { naviDepositTx } from "./navi.js";
|
|
5
5
|
import { bucketDepositTx } from "./bucket.js";
|
|
6
6
|
import { depositCetusAlphaSuiTxb, depositCetusSuiTxb, depositCetusTxb, } from "./cetus.js";
|
|
7
|
-
import { depositBluefinSuiFirstTxb, depositBluefinType1Txb, depositBluefinType2Txb, } from "./bluefin.js";
|
|
7
|
+
import { depositBluefinSuiFirstTxb, depositBluefinSuiSecondTxb, depositBluefinType1Txb, depositBluefinType2Txb, } from "./bluefin.js";
|
|
8
8
|
import { loopingDeposit } from "./navi-looping.js";
|
|
9
9
|
export async function depositSingleAssetTxb(poolName, address, amount) {
|
|
10
10
|
let txb = new Transaction();
|
|
@@ -42,7 +42,10 @@ export async function depositDoubleAssetTxb(poolName, address, amount, isAmountA
|
|
|
42
42
|
}
|
|
43
43
|
else if (poolInfo[poolName].parentProtocolName === "BLUEFIN") {
|
|
44
44
|
const coin1 = doubleAssetPoolCoinMap[poolName].coin1;
|
|
45
|
-
|
|
45
|
+
const coin2 = doubleAssetPoolCoinMap[poolName].coin2;
|
|
46
|
+
if (poolName === "BLUEFIN-NAVX-VSUI" ||
|
|
47
|
+
poolName === "BLUEFIN-ALPHA-USDC" ||
|
|
48
|
+
poolName === "BLUEFIN-BLUE-USDC") {
|
|
46
49
|
txb = await depositBluefinType2Txb(amount, poolName, isAmountA, {
|
|
47
50
|
address,
|
|
48
51
|
});
|
|
@@ -52,6 +55,11 @@ export async function depositDoubleAssetTxb(poolName, address, amount, isAmountA
|
|
|
52
55
|
address,
|
|
53
56
|
});
|
|
54
57
|
}
|
|
58
|
+
else if (coin2 === "SUI") {
|
|
59
|
+
txb = await depositBluefinSuiSecondTxb(amount, poolName, isAmountA, {
|
|
60
|
+
address,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
55
63
|
else {
|
|
56
64
|
txb = await depositBluefinType1Txb(amount, poolName, isAmountA, {
|
|
57
65
|
address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deposit.js","sourceRoot":"","sources":["../../../src/transactions/deposit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,k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AAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE;gBAClE,OAAO;aACR,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,MAAM,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE;gBAC9D,OAAO;aACR,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { Transaction } from \"@mysten/sui/transactions\";\nimport { doubleAssetPoolCoinMap, poolInfo } from \"../common/maps.js\";\nimport { PoolName } from \"../common/types.js\";\nimport { depositAlphaTxb } from \"./alpha.js\";\nimport { naviDepositTx } from \"./navi.js\";\nimport { bucketDepositTx } from \"./bucket.js\";\nimport {\n depositCetusAlphaSuiTxb,\n depositCetusSuiTxb,\n depositCetusTxb,\n} from \"./cetus.js\";\nimport {\n depositBluefinSuiFirstTxb,\n depositBluefinSuiSecondTxb,\n depositBluefinType1Txb,\n depositBluefinType2Txb,\n} from \"./bluefin.js\";\nimport { loopingDeposit } from \"./navi-looping.js\";\n\nexport async function depositSingleAssetTxb(\n poolName: PoolName,\n address: string,\n amount: string,\n) {\n let txb = new Transaction();\n if (poolInfo[poolName].parentProtocolName === \"ALPHAFI\") {\n txb = await depositAlphaTxb(amount, address);\n } else if (poolInfo[poolName].parentProtocolName === \"BUCKET\") {\n txb = await bucketDepositTx(amount, { address });\n } else if (poolInfo[poolName].parentProtocolName === \"NAVI\") {\n if (poolInfo[poolName].strategyType === \"LOOPING\") {\n txb = await loopingDeposit(poolName, amount, { address });\n } else txb = await naviDepositTx(amount, poolName, { address });\n }\n return txb;\n}\n\nexport async function depositDoubleAssetTxb(\n poolName: PoolName,\n address: string,\n amount: string,\n isAmountA: boolean,\n) {\n let txb = new Transaction();\n if (poolInfo[poolName].parentProtocolName === \"CETUS\") {\n const coin1 = doubleAssetPoolCoinMap[poolName].coin1;\n const coin2 = doubleAssetPoolCoinMap[poolName].coin2;\n if (coin1 === \"CETUS\" && coin2 === \"SUI\") {\n txb = await depositCetusSuiTxb(amount, poolName, isAmountA, { address });\n } else if (coin2 === \"SUI\") {\n txb = await depositCetusAlphaSuiTxb(amount, poolName, isAmountA, {\n address,\n });\n } else {\n txb = await depositCetusTxb(amount, poolName, isAmountA, { address });\n }\n } else if (poolInfo[poolName].parentProtocolName === \"BLUEFIN\") {\n const coin1 = doubleAssetPoolCoinMap[poolName].coin1;\n const coin2 = doubleAssetPoolCoinMap[poolName].coin2;\n if (\n poolName === \"BLUEFIN-NAVX-VSUI\" ||\n poolName === \"BLUEFIN-ALPHA-USDC\" ||\n poolName === \"BLUEFIN-BLUE-USDC\"\n ) {\n txb = await depositBluefinType2Txb(amount, poolName, isAmountA, {\n address,\n });\n } else if (coin1 === \"SUI\") {\n txb = await depositBluefinSuiFirstTxb(amount, poolName, isAmountA, {\n address,\n });\n } else if (coin2 === \"SUI\") {\n txb = await depositBluefinSuiSecondTxb(amount, poolName, isAmountA, {\n address,\n });\n } else {\n txb = await depositBluefinType1Txb(amount, poolName, isAmountA, {\n address,\n });\n }\n }\n return txb;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../src/transactions/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../src/transactions/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAkB9C,wBAAsB,WAAW,CAC/B,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,wBAmDhB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,MAAM,CAAC,CAIjB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,MAAM,CAAC,CAOjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from "@mysten/sui/transactions";
|
|
2
2
|
import { doubleAssetPoolCoinMap, poolInfo } from "../common/maps.js";
|
|
3
3
|
import { getLiquidity, withdrawCetusAlphaSuiTxb, withdrawCetusSuiTxb, withdrawCetusTxb, } from "./cetus.js";
|
|
4
|
-
import { withdrawBluefinSuiFirstTxb, withdrawBluefinType1Txb, withdrawBluefinType2Txb, } from "./bluefin.js";
|
|
4
|
+
import { withdrawBluefinSuiFirstTxb, withdrawBluefinSuiSecondTxb, withdrawBluefinType1Txb, withdrawBluefinType2Txb, } from "./bluefin.js";
|
|
5
5
|
import { naviWithdrawTx } from "./navi.js";
|
|
6
6
|
import { bucketWithdrawTx } from "./bucket.js";
|
|
7
7
|
import { getPoolExchangeRate } from "../sui-sdk/functions/getReceipts.js";
|
|
@@ -29,7 +29,10 @@ export async function withdrawTxb(xTokensAmount, poolName, address) {
|
|
|
29
29
|
}
|
|
30
30
|
else if (poolInfo[poolName].parentProtocolName === "BLUEFIN") {
|
|
31
31
|
const coin1 = doubleAssetPoolCoinMap[poolName].coin1;
|
|
32
|
-
|
|
32
|
+
const coin2 = doubleAssetPoolCoinMap[poolName].coin2;
|
|
33
|
+
if (poolName === "BLUEFIN-NAVX-VSUI" ||
|
|
34
|
+
poolName === "BLUEFIN-ALPHA-USDC" ||
|
|
35
|
+
poolName === "BLUEFIN-BLUE-USDC") {
|
|
33
36
|
txb = await withdrawBluefinType2Txb(xTokensAmount, poolName, {
|
|
34
37
|
address,
|
|
35
38
|
});
|
|
@@ -39,6 +42,11 @@ export async function withdrawTxb(xTokensAmount, poolName, address) {
|
|
|
39
42
|
address,
|
|
40
43
|
});
|
|
41
44
|
}
|
|
45
|
+
else if (coin2 === "SUI") {
|
|
46
|
+
txb = await withdrawBluefinSuiSecondTxb(xTokensAmount, poolName, {
|
|
47
|
+
address,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
42
50
|
else {
|
|
43
51
|
txb = await withdrawBluefinType1Txb(xTokensAmount, poolName, {
|
|
44
52
|
address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw.js","sourceRoot":"","sources":["../../../src/transactions/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,aAAqB,EACrB,QAAkB,EAClB,OAAe;IAEf,IAAI,GAAG,GAAG,IAAI,WAAW,EAAE,CAAC;IAC5B,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,kBAAkB,KAAK,OAAO,EAAE,CAAC;QACtD,MAAM,KAAK,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;QACrD,MAAM,KAAK,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;QACrD,IAAI,KAAK,KAAK,OAAO,I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AAK,UAAU,8BAA8B,CAClD,MAAc,EACd,QAAkB,EAClB,SAAkB;IAElB,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClE,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,GAAG,YAAY,CAAC,QAAQ,EAAE,CAC3E,CAAC;IACF,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC","sourcesContent":["import { Transaction } from \"@mysten/sui/transactions\";\nimport { doubleAssetPoolCoinMap, poolInfo } from \"../common/maps.js\";\nimport { PoolName } from \"../common/types.js\";\nimport {\n getLiquidity,\n withdrawCetusAlphaSuiTxb,\n withdrawCetusSuiTxb,\n withdrawCetusTxb,\n} from \"./cetus.js\";\nimport {\n withdrawBluefinSuiFirstTxb,\n withdrawBluefinSuiSecondTxb,\n withdrawBluefinType1Txb,\n withdrawBluefinType2Txb,\n} from \"./bluefin.js\";\nimport { naviWithdrawTx } from \"./navi.js\";\nimport { bucketWithdrawTx } from \"./bucket.js\";\nimport { getPoolExchangeRate } from \"../sui-sdk/functions/getReceipts.js\";\nimport { loopingWithdraw } from \"./navi-looping.js\";\n\nexport async function withdrawTxb(\n xTokensAmount: string,\n poolName: PoolName,\n address: string,\n) {\n let txb = new Transaction();\n if (poolInfo[poolName].parentProtocolName === \"CETUS\") {\n const coin1 = doubleAssetPoolCoinMap[poolName].coin1;\n const coin2 = doubleAssetPoolCoinMap[poolName].coin2;\n if (coin1 === \"CETUS\" && coin2 === \"SUI\") {\n txb = await withdrawCetusSuiTxb(xTokensAmount, poolName, {\n address,\n });\n } else if (coin2 === \"SUI\") {\n txb = await withdrawCetusAlphaSuiTxb(xTokensAmount, poolName, {\n address,\n });\n } else {\n txb = await withdrawCetusTxb(xTokensAmount, poolName, {\n address,\n });\n }\n } else if (poolInfo[poolName].parentProtocolName === \"BLUEFIN\") {\n const coin1 = doubleAssetPoolCoinMap[poolName].coin1;\n const coin2 = doubleAssetPoolCoinMap[poolName].coin2;\n if (\n poolName === \"BLUEFIN-NAVX-VSUI\" ||\n poolName === \"BLUEFIN-ALPHA-USDC\" ||\n poolName === \"BLUEFIN-BLUE-USDC\"\n ) {\n txb = await withdrawBluefinType2Txb(xTokensAmount, poolName, {\n address,\n });\n } else if (coin1 === \"SUI\") {\n txb = await withdrawBluefinSuiFirstTxb(xTokensAmount, poolName, {\n address,\n });\n } else if (coin2 === \"SUI\") {\n txb = await withdrawBluefinSuiSecondTxb(xTokensAmount, poolName, {\n address,\n });\n } else {\n txb = await withdrawBluefinType1Txb(xTokensAmount, poolName, {\n address,\n });\n }\n } else if (poolInfo[poolName].parentProtocolName === \"NAVI\") {\n if (poolInfo[poolName].strategyType === \"LOOPING\") {\n txb = await loopingWithdraw(poolName, xTokensAmount, { address });\n } else txb = await naviWithdrawTx(xTokensAmount, poolName, { address });\n } else if (poolInfo[poolName].parentProtocolName === \"BUCKET\") {\n txb = await bucketWithdrawTx(xTokensAmount, { address });\n }\n return txb;\n}\n\nexport async function coinAmountToXTokensSingleAsset(\n amount: string,\n poolName: PoolName,\n): Promise<string> {\n const exchangeRate = await getPoolExchangeRate(poolName, true);\n const xTokens = Math.floor(parseFloat(amount) / exchangeRate.toNumber());\n return xTokens.toString();\n}\n\nexport async function coinAmountToXTokensDoubleAsset(\n amount: string,\n poolName: PoolName,\n isAmountA: boolean,\n): Promise<string> {\n const liquidity = await getLiquidity(poolName, isAmountA, amount);\n const exchangeRate = await getPoolExchangeRate(poolName, true);\n const xTokens = Math.floor(\n parseFloat(liquidity.liquidityAmount.toString()) / exchangeRate.toNumber(),\n );\n return xTokens.toString();\n}\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #795e26;
|
|
3
|
+
--dark-hl-0: #dcdcaa;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #d4d4d4;
|
|
6
|
+
--light-hl-2: #a31515;
|
|
7
|
+
--dark-hl-2: #ce9178;
|
|
8
|
+
--light-hl-3: #af00db;
|
|
9
|
+
--dark-hl-3: #c586c0;
|
|
10
|
+
--light-hl-4: #001080;
|
|
11
|
+
--dark-hl-4: #9cdcfe;
|
|
12
|
+
--light-hl-5: #0000ff;
|
|
13
|
+
--dark-hl-5: #569cd6;
|
|
14
|
+
--light-hl-6: #0070c1;
|
|
15
|
+
--dark-hl-6: #4fc1ff;
|
|
16
|
+
--light-hl-7: #267f99;
|
|
17
|
+
--dark-hl-7: #4ec9b0;
|
|
18
|
+
--light-code-background: #ffffff;
|
|
19
|
+
--dark-code-background: #1e1e1e;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (prefers-color-scheme: light) {
|
|
23
|
+
:root {
|
|
24
|
+
--hl-0: var(--light-hl-0);
|
|
25
|
+
--hl-1: var(--light-hl-1);
|
|
26
|
+
--hl-2: var(--light-hl-2);
|
|
27
|
+
--hl-3: var(--light-hl-3);
|
|
28
|
+
--hl-4: var(--light-hl-4);
|
|
29
|
+
--hl-5: var(--light-hl-5);
|
|
30
|
+
--hl-6: var(--light-hl-6);
|
|
31
|
+
--hl-7: var(--light-hl-7);
|
|
32
|
+
--code-background: var(--light-code-background);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (prefers-color-scheme: dark) {
|
|
37
|
+
:root {
|
|
38
|
+
--hl-0: var(--dark-hl-0);
|
|
39
|
+
--hl-1: var(--dark-hl-1);
|
|
40
|
+
--hl-2: var(--dark-hl-2);
|
|
41
|
+
--hl-3: var(--dark-hl-3);
|
|
42
|
+
--hl-4: var(--dark-hl-4);
|
|
43
|
+
--hl-5: var(--dark-hl-5);
|
|
44
|
+
--hl-6: var(--dark-hl-6);
|
|
45
|
+
--hl-7: var(--dark-hl-7);
|
|
46
|
+
--code-background: var(--dark-code-background);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root[data-theme="light"] {
|
|
51
|
+
--hl-0: var(--light-hl-0);
|
|
52
|
+
--hl-1: var(--light-hl-1);
|
|
53
|
+
--hl-2: var(--light-hl-2);
|
|
54
|
+
--hl-3: var(--light-hl-3);
|
|
55
|
+
--hl-4: var(--light-hl-4);
|
|
56
|
+
--hl-5: var(--light-hl-5);
|
|
57
|
+
--hl-6: var(--light-hl-6);
|
|
58
|
+
--hl-7: var(--light-hl-7);
|
|
59
|
+
--code-background: var(--light-code-background);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:root[data-theme="dark"] {
|
|
63
|
+
--hl-0: var(--dark-hl-0);
|
|
64
|
+
--hl-1: var(--dark-hl-1);
|
|
65
|
+
--hl-2: var(--dark-hl-2);
|
|
66
|
+
--hl-3: var(--dark-hl-3);
|
|
67
|
+
--hl-4: var(--dark-hl-4);
|
|
68
|
+
--hl-5: var(--dark-hl-5);
|
|
69
|
+
--hl-6: var(--dark-hl-6);
|
|
70
|
+
--hl-7: var(--dark-hl-7);
|
|
71
|
+
--code-background: var(--dark-code-background);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.hl-0 {
|
|
75
|
+
color: var(--hl-0);
|
|
76
|
+
}
|
|
77
|
+
.hl-1 {
|
|
78
|
+
color: var(--hl-1);
|
|
79
|
+
}
|
|
80
|
+
.hl-2 {
|
|
81
|
+
color: var(--hl-2);
|
|
82
|
+
}
|
|
83
|
+
.hl-3 {
|
|
84
|
+
color: var(--hl-3);
|
|
85
|
+
}
|
|
86
|
+
.hl-4 {
|
|
87
|
+
color: var(--hl-4);
|
|
88
|
+
}
|
|
89
|
+
.hl-5 {
|
|
90
|
+
color: var(--hl-5);
|
|
91
|
+
}
|
|
92
|
+
.hl-6 {
|
|
93
|
+
color: var(--hl-6);
|
|
94
|
+
}
|
|
95
|
+
.hl-7 {
|
|
96
|
+
color: var(--hl-7);
|
|
97
|
+
}
|
|
98
|
+
pre,
|
|
99
|
+
code {
|
|
100
|
+
background: var(--code-background);
|
|
101
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function () {
|
|
2
|
+
addIcons();
|
|
3
|
+
function addIcons() {
|
|
4
|
+
if (document.readyState === "loading")
|
|
5
|
+
return document.addEventListener("DOMContentLoaded", addIcons);
|
|
6
|
+
const svg = document.body.appendChild(
|
|
7
|
+
document.createElementNS("http://www.w3.org/2000/svg", "svg"),
|
|
8
|
+
);
|
|
9
|
+
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
|
|
10
|
+
svg.style.display = "none";
|
|
11
|
+
if (location.protocol === "file:") updateUseElements();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function updateUseElements() {
|
|
15
|
+
document.querySelectorAll("use").forEach((el) => {
|
|
16
|
+
if (el.getAttribute("href").includes("#icon-")) {
|
|
17
|
+
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg>
|