@alphafi/alphafi-sdk 0.0.55 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/common/coins.d.ts.map +1 -1
- package/dist/cjs/common/coins.js +6 -0
- package/dist/cjs/common/coins.js.map +1 -1
- package/dist/cjs/common/constants.d.ts +62 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +55 -22
- package/dist/cjs/common/constants.js.map +1 -1
- package/dist/cjs/common/maps.d.ts.map +1 -1
- package/dist/cjs/common/maps.js +91 -39
- package/dist/cjs/common/maps.js.map +1 -1
- package/dist/cjs/common/pyth.d.ts +1 -1
- package/dist/cjs/common/pyth.d.ts.map +1 -1
- package/dist/cjs/common/pyth.js.map +1 -1
- package/dist/cjs/common/types.d.ts +4 -4
- package/dist/cjs/common/types.d.ts.map +1 -1
- package/dist/cjs/common/types.js.map +1 -1
- package/dist/cjs/getLastAutoCompoundTime.js +2 -2
- package/dist/cjs/getLastAutoCompoundTime.js.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
- package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +1 -0
- package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/cjs/transactions/7k.d.ts +1 -1
- package/dist/cjs/transactions/7k.d.ts.map +1 -1
- package/dist/cjs/transactions/7k.js +2 -1
- package/dist/cjs/transactions/7k.js.map +1 -1
- package/dist/cjs/transactions/blueRewards.d.ts.map +1 -1
- package/dist/cjs/transactions/blueRewards.js +18 -6
- package/dist/cjs/transactions/blueRewards.js.map +1 -1
- package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
- package/dist/cjs/transactions/bluefin.js +280 -12
- package/dist/cjs/transactions/bluefin.js.map +1 -1
- package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/cjs/transactions/collect_rewards.js +5 -1
- package/dist/cjs/transactions/collect_rewards.js.map +1 -1
- package/dist/cjs/transactions/deposit.d.ts.map +1 -1
- package/dist/cjs/transactions/deposit.js +2 -4
- package/dist/cjs/transactions/deposit.js.map +1 -1
- package/dist/cjs/transactions/navi.d.ts.map +1 -1
- package/dist/cjs/transactions/navi.js +64 -0
- package/dist/cjs/transactions/navi.js.map +1 -1
- package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/cjs/transactions/zapDeposit.js +89 -38
- package/dist/cjs/transactions/zapDeposit.js.map +1 -1
- package/dist/cjs/utils/constants.d.ts.map +1 -1
- package/dist/cjs/utils/constants.js +5 -0
- package/dist/cjs/utils/constants.js.map +1 -1
- package/dist/esm/common/coins.d.ts.map +1 -1
- package/dist/esm/common/coins.js +6 -0
- package/dist/esm/common/coins.js.map +1 -1
- package/dist/esm/common/constants.d.ts +62 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +55 -22
- package/dist/esm/common/constants.js.map +1 -1
- package/dist/esm/common/maps.d.ts.map +1 -1
- package/dist/esm/common/maps.js +91 -39
- package/dist/esm/common/maps.js.map +1 -1
- package/dist/esm/common/pyth.d.ts +1 -1
- package/dist/esm/common/pyth.d.ts.map +1 -1
- package/dist/esm/common/pyth.js.map +1 -1
- package/dist/esm/common/types.d.ts +4 -4
- package/dist/esm/common/types.d.ts.map +1 -1
- package/dist/esm/common/types.js.map +1 -1
- package/dist/esm/getLastAutoCompoundTime.js +2 -2
- package/dist/esm/getLastAutoCompoundTime.js.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
- package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts +1 -0
- package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
- package/dist/esm/transactions/7k.d.ts +1 -1
- package/dist/esm/transactions/7k.d.ts.map +1 -1
- package/dist/esm/transactions/7k.js +2 -1
- package/dist/esm/transactions/7k.js.map +1 -1
- package/dist/esm/transactions/blueRewards.d.ts.map +1 -1
- package/dist/esm/transactions/blueRewards.js +18 -6
- package/dist/esm/transactions/blueRewards.js.map +1 -1
- package/dist/esm/transactions/bluefin.d.ts.map +1 -1
- package/dist/esm/transactions/bluefin.js +280 -12
- package/dist/esm/transactions/bluefin.js.map +1 -1
- package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
- package/dist/esm/transactions/collect_rewards.js +5 -1
- package/dist/esm/transactions/collect_rewards.js.map +1 -1
- package/dist/esm/transactions/deposit.d.ts.map +1 -1
- package/dist/esm/transactions/deposit.js +2 -4
- package/dist/esm/transactions/deposit.js.map +1 -1
- package/dist/esm/transactions/navi.d.ts.map +1 -1
- package/dist/esm/transactions/navi.js +64 -0
- package/dist/esm/transactions/navi.js.map +1 -1
- package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
- package/dist/esm/transactions/zapDeposit.js +89 -38
- package/dist/esm/transactions/zapDeposit.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +5 -0
- package/dist/esm/utils/constants.js.map +1 -1
- package/docs/assets/highlight.css +74 -51
- package/docs/assets/icons.js +20 -17
- package/docs/assets/main.js +2163 -5
- package/docs/assets/navigation.js +2 -1
- package/docs/assets/search.js +2 -1
- package/docs/assets/style.css +846 -850
- package/docs/functions/alphaLpBreakdown.html +253 -1
- package/docs/functions/cetusLpBreakdown.html +253 -1
- package/docs/functions/claimBlueRewardTxb.html +258 -1
- package/docs/functions/claimRewardTxb.html +243 -1
- package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -1
- package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -1
- package/docs/functions/coinsInPool.html +438 -1
- package/docs/functions/collectRewards.html +242 -1
- package/docs/functions/deposit.html +246 -1
- package/docs/functions/depositDoubleAssetTxb.html +270 -1
- package/docs/functions/depositSingleAssetTxb.html +263 -1
- package/docs/functions/fetchAfterTransactionEvents.html +328 -1
- package/docs/functions/fetchAutoCompoundingEvents.html +257 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -1
- package/docs/functions/fetchCetusPools.html +231 -1
- package/docs/functions/fetchChainIdentifier.html +233 -1
- package/docs/functions/fetchCheckRatioEvents.html +249 -1
- package/docs/functions/fetchLiquidityChangeEvents.html +257 -1
- package/docs/functions/fetchMultiCategoryEvents.html +348 -1
- package/docs/functions/fetchMultiReceipts.html +261 -1
- package/docs/functions/fetchNftHolders.html +233 -1
- package/docs/functions/fetchPools.html +230 -1
- package/docs/functions/fetchPortfolioData.html +243 -1
- package/docs/functions/fetchProtocolData.html +231 -1
- package/docs/functions/fetchTVL.html +253 -1
- package/docs/functions/fetchUserVaultBalances.html +245 -1
- package/docs/functions/fetchUserVaults.html +243 -1
- package/docs/functions/fetchUserWalletData.html +243 -1
- package/docs/functions/fetchVoloExchangeRate.html +251 -1
- package/docs/functions/fetchWithdrawV2Events.html +255 -1
- package/docs/functions/getAirdropShare.html +243 -1
- package/docs/functions/getAllDoubleAssetVaults.html +235 -1
- package/docs/functions/getAllSingleAssetVaults.html +235 -1
- package/docs/functions/getAllVaultBalances.html +265 -1
- package/docs/functions/getAllVaults.html +233 -1
- package/docs/functions/getAlphaUnlocks.html +245 -1
- package/docs/functions/getAlphaVaultBalance.html +255 -1
- package/docs/functions/getAmounts.html +272 -1
- package/docs/functions/getApr.html +243 -1
- package/docs/functions/getAprs.html +255 -1
- package/docs/functions/getApy.html +243 -1
- package/docs/functions/getApys.html +255 -1
- package/docs/functions/getCetusInvestorTicksMap.html +284 -1
- package/docs/functions/getCetusPool.html +270 -1
- package/docs/functions/getCetusSqrtPriceMap.html +249 -1
- package/docs/functions/getCoinAmountsFromLiquidity.html +273 -1
- package/docs/functions/getConf.html +13163 -1
- package/docs/functions/getCurrentTick.html +247 -1
- package/docs/functions/getDistributor.html +252 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +268 -1
- package/docs/functions/getDoubleAssetVaults.html +253 -1
- package/docs/functions/getHoldersFromTransactions.html +299 -1
- package/docs/functions/getInvestor.html +259 -1
- package/docs/functions/getInvestorPoolMap.html +241 -1
- package/docs/functions/getLastAutoCompoundTime.html +249 -1
- package/docs/functions/getLatestPrices.html +253 -1
- package/docs/functions/getLiquidity.html +260 -1
- package/docs/functions/getMultiCetusPool.html +231 -1
- package/docs/functions/getMultiInvestor.html +231 -1
- package/docs/functions/getMultiLatestPrices.html +233 -1
- package/docs/functions/getMultiParentPool.html +231 -1
- package/docs/functions/getMultiPool.html +231 -1
- package/docs/functions/getMultiReceipts.html +243 -1
- package/docs/functions/getParentPool.html +266 -1
- package/docs/functions/getPool.html +262 -1
- package/docs/functions/getPoolExchangeRate.html +254 -1
- package/docs/functions/getPoolExchangeRateMap.html +249 -1
- package/docs/functions/getPoolsWeightDistribution.html +266 -1
- package/docs/functions/getPositionRange.html +283 -1
- package/docs/functions/getPositionRanges.html +289 -1
- package/docs/functions/getPositionTicks.html +249 -1
- package/docs/functions/getPriceToTick.html +264 -1
- package/docs/functions/getRebalanceHistories.html +269 -1
- package/docs/functions/getRebalanceHistory.html +255 -1
- package/docs/functions/getReceipts.html +268 -1
- package/docs/functions/getSingleAssetVaultBalance.html +268 -1
- package/docs/functions/getSingleAssetVaults.html +253 -1
- package/docs/functions/getSuiClient.html +247 -3
- package/docs/functions/getSuiNodeUrl.html +232 -3
- package/docs/functions/getTVLs-1.html +243 -1
- package/docs/functions/getTickSpacing.html +247 -1
- package/docs/functions/getTickToPrice.html +248 -1
- package/docs/functions/getTvls.html +259 -1
- package/docs/functions/getUserTokensFromTransactions.html +269 -1
- package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -1
- package/docs/functions/getVaultBalance.html +277 -1
- package/docs/functions/getVaultBalanceForActiveUsers.html +261 -1
- package/docs/functions/getVaults.html +250 -1
- package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -1
- package/docs/functions/getZapAmounts.html +323 -1
- package/docs/functions/lastAutocompoundTime.html +249 -1
- package/docs/functions/liquidityToTokens.html +253 -1
- package/docs/functions/multiLiquidityToTokens.html +271 -1
- package/docs/functions/multiTokensToUsd.html +262 -1
- package/docs/functions/multiXTokensToLiquidity.html +257 -1
- package/docs/functions/parseUserWalletData.html +243 -1
- package/docs/functions/pendingBlueRewardAmount.html +256 -1
- package/docs/functions/setCustomSuiClient.html +251 -5
- package/docs/functions/setSuiClient.html +255 -7
- package/docs/functions/setSuiNodeUrl.html +249 -5
- package/docs/functions/setWeights.html +270 -1
- package/docs/functions/withdraw.html +249 -1
- package/docs/functions/withdrawAlphaTxb.html +257 -1
- package/docs/functions/withdrawTxb.html +260 -1
- package/docs/functions/zapDepositTxb.html +300 -1
- package/docs/index.html +587 -41
- package/docs/interfaces/Coin.html +474 -12
- package/docs/interfaces/CoinPair.html +358 -3
- package/docs/interfaces/NaviVoloData.html +514 -3
- package/docs/interfaces/PoolData.html +579 -8
- package/docs/interfaces/PoolWeightDistribution.html +414 -4
- package/docs/interfaces/RebalanceHistoryType.html +652 -9
- package/docs/modules.html +1430 -198
- package/docs/types/AfterTransactionEventNode.html +305 -1
- package/docs/types/Allocator.html +321 -1
- package/docs/types/AlphaFiDoubleAssetVault.html +258 -1
- package/docs/types/AlphaFiMultiVaultBalance.html +219 -1
- package/docs/types/AlphaFiSingleAssetVault.html +244 -1
- package/docs/types/AlphaFiVault.html +214 -1
- package/docs/types/AlphaFiVaultBalance.html +220 -1
- package/docs/types/AlphaPoolType.html +383 -1
- package/docs/types/AlphaReceipt.html +220 -1
- package/docs/types/AlphaReceiptFields.html +421 -1
- package/docs/types/AlphaVaultBalance.html +245 -1
- package/docs/types/AutoBalancePoolNames.html +226 -1
- package/docs/types/AutoCompoundingEventNode.html +230 -1
- package/docs/types/BluefinInvestor.html +209 -1
- package/docs/types/BluefinPoolType.html +440 -1
- package/docs/types/BucketInvestor.html +249 -1
- package/docs/types/CetusInvestor.html +240 -1
- package/docs/types/CetusPoolType.html +433 -1
- package/docs/types/CetusSwapOptions.html +209 -1
- package/docs/types/CoinAmounts.html +216 -1
- package/docs/types/CoinName.html +293 -1
- package/docs/types/CoinType.html +294 -1
- package/docs/types/CommonInvestorFields.html +276 -1
- package/docs/types/CreatePoolOptions.html +246 -1
- package/docs/types/Distributor.html +341 -1
- package/docs/types/DoubleAssetMultiVaultBalance.html +236 -1
- package/docs/types/DoubleAssetPoolNames.html +297 -1
- package/docs/types/DoubleAssetTokenHoldings.html +232 -1
- package/docs/types/DoubleAssetVaultBalance.html +229 -1
- package/docs/types/EventCategory.html +209 -1
- package/docs/types/EventNode.html +229 -1
- package/docs/types/GetHoldersParams.html +221 -1
- package/docs/types/GetTokenHoldingsParams.html +227 -1
- package/docs/types/GetUserTokensFromTransactionsParams.html +233 -1
- package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -1
- package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -1
- package/docs/types/GetVaultBalanceParams.html +217 -1
- package/docs/types/HoldingsObj.html +223 -1
- package/docs/types/Icon.html +266 -1
- package/docs/types/Investor.html +245 -1
- package/docs/types/LiquidityChangeEventNode.html +220 -1
- package/docs/types/LiquidityToTokensParams.html +255 -1
- package/docs/types/LiquidityToUsdParams.html +267 -1
- package/docs/types/LoopingDebt.html +258 -1
- package/docs/types/LoopingPoolNames.html +216 -1
- package/docs/types/LpBreakdownType.html +238 -1
- package/docs/types/MemberPoolDataType.html +276 -1
- package/docs/types/MemberType.html +269 -1
- package/docs/types/MultiGetVaultBalancesParams.html +229 -1
- package/docs/types/NaviInvestor.html +235 -1
- package/docs/types/OtherReceiptFields.html +373 -1
- package/docs/types/PoolName.html +214 -1
- package/docs/types/PoolReceipt.html +253 -1
- package/docs/types/PoolType.html +388 -1
- package/docs/types/Receipt.html +475 -1
- package/docs/types/ReceiptGQL.html +374 -1
- package/docs/types/SingleAssetMultiVaultBalance.html +232 -1
- package/docs/types/SingleAssetPoolNames.html +244 -1
- package/docs/types/SingleAssetTokenHoldings.html +228 -1
- package/docs/types/SingleAssetVaultBalance.html +223 -1
- package/docs/types/SingleGetVaultBalancesParams.html +224 -1
- package/docs/types/StrategyType.html +221 -1
- package/docs/types/SuiNetwork.html +213 -1
- package/docs/types/SwapOptions.html +248 -1
- package/docs/types/TickSpacing.html +212 -1
- package/docs/types/TotalWeightType.html +246 -1
- package/docs/types/TransactionBlockType.html +358 -1
- package/docs/types/UserPoolLiquidity.html +221 -1
- package/docs/types/UserPoolTokenHoldings.html +217 -1
- package/docs/types/UserUsdHoldings.html +223 -1
- package/docs/types/VaultBalance.html +216 -1
- package/docs/types/WithdrawV2EventNode.html +208 -1
- package/docs/variables/bluefinPoolMap.html +214 -1
- package/docs/variables/cetusPoolMap.html +214 -1
- package/docs/variables/coinsList.html +220 -1
- package/docs/variables/defunctPoolsSet.html +209 -1
- package/docs/variables/doubleAssetPoolCoinMap.html +237 -1
- package/docs/variables/eventCategories.html +210 -1
- package/docs/variables/ignoredWalletsForDailyRevenue.html +218 -1
- package/docs/variables/loopingAccountAddresses.html +219 -1
- package/docs/variables/loopingPoolCoinMap.html +233 -1
- package/docs/variables/naviAssetMap.html +215 -1
- package/docs/variables/poolIdPoolNameMap.html +218 -1
- package/docs/variables/poolInfo.html +319 -1
- package/docs/variables/singleAssetPoolCoinMap.html +229 -1
- package/docs/variables/stableCoins.html +207 -1
- package/package.json +2 -2
- package/prettier.config.js +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB;QACxB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,KAAK;KACZ;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,mBAAmB;QAC3B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,QAAQ;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,4CAA4C;IAC5C,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,4CAA4C;IAC5C,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;CACF,CAAC","sourcesContent":["import { PythPriceFeed } from \"../common/pyth.js\";\n\n// TODO: add more pairs\nexport const pythPriceFeed: PythPriceFeed = {\n \"SUI/USD\": {\n symbol: \"Crypto.SUI/USD\",\n priceId:\n \"0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744\",\n name: \"SUI\",\n },\n \"VSUI/USD\": {\n symbol: \"Crypto.VSUI/USD\",\n priceId:\n \"0x57ff7100a282e4af0c91154679c5dae2e5dcacb93fd467ea9cb7e58afdcfde27\",\n name: \"VSUI\",\n },\n \"AFSUI/USD\": {\n symbol: \"Crypto.AFSUI/USD\",\n priceId:\n \"0x17cd845b16e874485b2684f8b8d1517d744105dbb904eec30222717f4bc9ee0d\",\n name: \"AFSUI\",\n },\n \"HASUI/USD\": {\n symbol: \"Crypto.HASUI/USD\",\n priceId:\n \"0x6120ffcf96395c70aa77e72dcb900bf9d40dccab228efca59a17b90ce423d5e8\",\n name: \"HASUI\",\n },\n \"USDC/USD\": {\n symbol: \"Crypto.USDC/USD\",\n priceId:\n \"0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a\",\n name: \"USDC\",\n },\n \"USDT/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n \"NAVX/USD\": {\n symbol: \"Crypto.NAVX/USD\",\n priceId:\n \"0x88250f854c019ef4f88a5c073d52a18bb1c6ac437033f5932cd017d24917ab46\",\n name: \"NAVX\",\n },\n \"CETUS/USD\": {\n symbol: \"Crypto.CETUS/USD\",\n priceId:\n \"0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef\",\n name: \"CETUS\",\n },\n \"TURBOS/USD\": {\n symbol: \"Crypto.TURBOS/USD\",\n priceId:\n \"0xf9c2e890443dd995d0baafc08eea3358be1ffb874f93f99c30b3816c460bbac3\",\n name: \"TURBOS\",\n },\n \"SCA/USD\": {\n name: \"SCA\",\n priceId:\n \"0x7e17f0ac105abe9214deb9944c30264f5986bf292869c6bd8e8da3ccd92d79bc\",\n symbol: \"Crypto.SCA/USD\",\n },\n \"WETH/USD\": {\n name: \"WETH\",\n priceId:\n \"0x9d4294bbcd1174d6f2003ec365831e64cc31d9f6f15a2b85399db8d5000960f6\",\n symbol: \"Crypto.WETH/USD\",\n },\n \"APT/USD\": {\n name: \"APT\",\n priceId:\n \"0x03ae4db29ed4ae33d323568895aa00337e658e348b37509f5372ae51f0af00d5\",\n symbol: \"Crypto.APT/USD\",\n },\n \"SOL/USD\": {\n name: \"SOL\",\n priceId:\n \"0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d\",\n symbol: \"Crypto.SOL/USD\",\n },\n \"SLP/USD\": {\n name: \"SLP\",\n priceId:\n \"0xfba17701be318087db58d9797d5f1e89dcf5b95773ae2227c8a8eb4cf1d4e554\",\n symbol: \"Crypto.SLP/USD\",\n },\n \"WBTC/USD\": {\n name: \"WBTC\",\n priceId:\n \"0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33\",\n symbol: \"Crypto.WBTC/USD\",\n },\n \"CELO/USD\": {\n name: \"CELO\",\n priceId:\n \"0x7d669ddcdd23d9ef1fa9a9cc022ba055ec900e91c4cb960f3c20429d4447a411\",\n symbol: \"Crypto.CELO/USD\",\n },\n //TODO --> to change priceId when its listed\n \"ALPHA/USD\": {\n symbol: \"Crypto.ALPHA/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"ALPHA\",\n },\n //TODO --> to change priceId when its listed\n \"USDY/USD\": {\n symbol: \"Crypto.USDY/USD\",\n priceId:\n \"0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326\",\n name: \"USDY\",\n },\n \"BUCK/USD\": {\n symbol: \"Crypto.BUCK/USD\",\n priceId:\n \"0xfdf28a46570252b25fd31cb257973f865afc5ca2f320439e45d95e0394bc7382\",\n name: \"BUCK\",\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB;QACxB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,KAAK;KACZ;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,mBAAmB;QAC3B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,QAAQ;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,4CAA4C;IAC5C,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,4CAA4C;IAC5C,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;CACF,CAAC","sourcesContent":["import { PythPriceFeed } from \"../common/pyth.js\";\n\n// TODO: add more pairs\nexport const pythPriceFeed: PythPriceFeed = {\n \"SUI/USD\": {\n symbol: \"Crypto.SUI/USD\",\n priceId:\n \"0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744\",\n name: \"SUI\",\n },\n \"VSUI/USD\": {\n symbol: \"Crypto.VSUI/USD\",\n priceId:\n \"0x57ff7100a282e4af0c91154679c5dae2e5dcacb93fd467ea9cb7e58afdcfde27\",\n name: \"VSUI\",\n },\n \"AFSUI/USD\": {\n symbol: \"Crypto.AFSUI/USD\",\n priceId:\n \"0x17cd845b16e874485b2684f8b8d1517d744105dbb904eec30222717f4bc9ee0d\",\n name: \"AFSUI\",\n },\n \"HASUI/USD\": {\n symbol: \"Crypto.HASUI/USD\",\n priceId:\n \"0x6120ffcf96395c70aa77e72dcb900bf9d40dccab228efca59a17b90ce423d5e8\",\n name: \"HASUI\",\n },\n \"USDC/USD\": {\n symbol: \"Crypto.USDC/USD\",\n priceId:\n \"0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a\",\n name: \"USDC\",\n },\n \"USDT/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n \"NAVX/USD\": {\n symbol: \"Crypto.NAVX/USD\",\n priceId:\n \"0x88250f854c019ef4f88a5c073d52a18bb1c6ac437033f5932cd017d24917ab46\",\n name: \"NAVX\",\n },\n \"CETUS/USD\": {\n symbol: \"Crypto.CETUS/USD\",\n priceId:\n \"0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef\",\n name: \"CETUS\",\n },\n \"TURBOS/USD\": {\n symbol: \"Crypto.TURBOS/USD\",\n priceId:\n \"0xf9c2e890443dd995d0baafc08eea3358be1ffb874f93f99c30b3816c460bbac3\",\n name: \"TURBOS\",\n },\n \"SCA/USD\": {\n name: \"SCA\",\n priceId:\n \"0x7e17f0ac105abe9214deb9944c30264f5986bf292869c6bd8e8da3ccd92d79bc\",\n symbol: \"Crypto.SCA/USD\",\n },\n \"WETH/USD\": {\n name: \"WETH\",\n priceId:\n \"0x9d4294bbcd1174d6f2003ec365831e64cc31d9f6f15a2b85399db8d5000960f6\",\n symbol: \"Crypto.WETH/USD\",\n },\n \"APT/USD\": {\n name: \"APT\",\n priceId:\n \"0x03ae4db29ed4ae33d323568895aa00337e658e348b37509f5372ae51f0af00d5\",\n symbol: \"Crypto.APT/USD\",\n },\n \"SOL/USD\": {\n name: \"SOL\",\n priceId:\n \"0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d\",\n symbol: \"Crypto.SOL/USD\",\n },\n \"SLP/USD\": {\n name: \"SLP\",\n priceId:\n \"0xfba17701be318087db58d9797d5f1e89dcf5b95773ae2227c8a8eb4cf1d4e554\",\n symbol: \"Crypto.SLP/USD\",\n },\n \"WBTC/USD\": {\n name: \"WBTC\",\n priceId:\n \"0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33\",\n symbol: \"Crypto.WBTC/USD\",\n },\n \"CELO/USD\": {\n name: \"CELO\",\n priceId:\n \"0x7d669ddcdd23d9ef1fa9a9cc022ba055ec900e91c4cb960f3c20429d4447a411\",\n symbol: \"Crypto.CELO/USD\",\n },\n //TODO --> to change priceId when its listed\n \"ALPHA/USD\": {\n symbol: \"Crypto.ALPHA/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"ALPHA\",\n },\n //TODO --> to change priceId when its listed\n \"USDY/USD\": {\n symbol: \"Crypto.USDY/USD\",\n priceId:\n \"0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326\",\n name: \"USDY\",\n },\n \"BUCK/USD\": {\n symbol: \"Crypto.BUCK/USD\",\n priceId:\n \"0xfdf28a46570252b25fd31cb257973f865afc5ca2f320439e45d95e0394bc7382\",\n name: \"BUCK\",\n },\n \"MUSD/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n};\n"]}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
20
|
}
|
|
21
21
|
|
|
22
|
-
@media (prefers-color-scheme: light) {
|
|
22
|
+
@media (prefers-color-scheme: light) {
|
|
23
|
+
:root {
|
|
23
24
|
--hl-0: var(--light-hl-0);
|
|
24
25
|
--hl-1: var(--light-hl-1);
|
|
25
26
|
--hl-2: var(--light-hl-2);
|
|
@@ -29,9 +30,11 @@
|
|
|
29
30
|
--hl-6: var(--light-hl-6);
|
|
30
31
|
--hl-7: var(--light-hl-7);
|
|
31
32
|
--code-background: var(--light-code-background);
|
|
32
|
-
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
33
35
|
|
|
34
|
-
@media (prefers-color-scheme: dark) {
|
|
36
|
+
@media (prefers-color-scheme: dark) {
|
|
37
|
+
:root {
|
|
35
38
|
--hl-0: var(--dark-hl-0);
|
|
36
39
|
--hl-1: var(--dark-hl-1);
|
|
37
40
|
--hl-2: var(--dark-hl-2);
|
|
@@ -41,38 +44,58 @@
|
|
|
41
44
|
--hl-6: var(--dark-hl-6);
|
|
42
45
|
--hl-7: var(--dark-hl-7);
|
|
43
46
|
--code-background: var(--dark-code-background);
|
|
44
|
-
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
45
49
|
|
|
46
|
-
:root[data-theme=
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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);
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
:root[data-theme=
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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);
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
.hl-0 {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
.hl-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.hl-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
+
}
|
package/docs/assets/icons.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
}
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})()
|
|
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
|
+
})();
|