@0xsquid/react-hooks 8.6.0 → 8.6.1
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/{index-Ck3Byj7H.js → index--gt66OVO.js} +7 -6
- package/dist/{index-Ck3Byj7H.js.map → index--gt66OVO.js.map} +1 -1
- package/dist/{index-BvAot66c.js → index-uxBoqobR.js} +7 -6
- package/dist/{index-BvAot66c.js.map → index-uxBoqobR.js.map} +1 -1
- package/dist/{index.es-C_BgGjLx.js → index.es-DXYyLkwM.js} +2 -2
- package/dist/{index.es-C_BgGjLx.js.map → index.es-DXYyLkwM.js.map} +1 -1
- package/dist/{index.es-83oSJcJe.js → index.es-zgttb4RJ.js} +2 -2
- package/dist/{index.es-83oSJcJe.js.map → index.es-zgttb4RJ.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{secretService-zFFQM-jC.js → secretService-BoIRJAyQ.js} +2 -2
- package/dist/{secretService-zFFQM-jC.js.map → secretService-BoIRJAyQ.js.map} +1 -1
- package/dist/{secretService-Cj_HK_on.js → secretService-C3pLXo0u.js} +2 -2
- package/dist/{secretService-Cj_HK_on.js.map → secretService-C3pLXo0u.js.map} +1 -1
- package/dist/{stellarService.client-CBzr6pLs.js → stellarService.client-8vhPwFQb.js} +2 -2
- package/dist/{stellarService.client-CBzr6pLs.js.map → stellarService.client-8vhPwFQb.js.map} +1 -1
- package/dist/{stellarService.client-CI86BfjV.js → stellarService.client-DYLHIsR1.js} +2 -2
- package/dist/{stellarService.client-CI86BfjV.js.map → stellarService.client-DYLHIsR1.js.map} +1 -1
- package/package.json +1 -1
|
@@ -23292,7 +23292,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23292
23292
|
};
|
|
23293
23293
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23294
23294
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23295
|
-
const { fetchAllSecretBalances } = await import('./secretService-
|
|
23295
|
+
const { fetchAllSecretBalances } = await import('./secretService-BoIRJAyQ.js');
|
|
23296
23296
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23297
23297
|
};
|
|
23298
23298
|
function getTokenAssetsKey(token) {
|
|
@@ -26690,7 +26690,7 @@ function useStellarWallets() {
|
|
|
26690
26690
|
try {
|
|
26691
26691
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
26692
26692
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module');
|
|
26693
|
-
const { formatStellarWallet } = await import('./stellarService.client-
|
|
26693
|
+
const { formatStellarWallet } = await import('./stellarService.client-DYLHIsR1.js');
|
|
26694
26694
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
26695
26695
|
const promises = modules.map(async (module) => {
|
|
26696
26696
|
const isAvailable = await module.isAvailable();
|
|
@@ -30008,7 +30008,7 @@ function hederaWalletConnect(parameters) {
|
|
|
30008
30008
|
const optionalChains = config.chains.map((x) => x.id);
|
|
30009
30009
|
if (!optionalChains.length)
|
|
30010
30010
|
return;
|
|
30011
|
-
const { EthereumProvider } = await import('./index.es-
|
|
30011
|
+
const { EthereumProvider } = await import('./index.es-zgttb4RJ.js');
|
|
30012
30012
|
const rawProvider = await EthereumProvider.init({
|
|
30013
30013
|
...restParameters,
|
|
30014
30014
|
disableProviderPing: true,
|
|
@@ -30584,8 +30584,9 @@ function useStellarTrustLine({ address, chain, token, amount }) {
|
|
|
30584
30584
|
if (token?.type !== ChainType.STELLAR) {
|
|
30585
30585
|
return true;
|
|
30586
30586
|
}
|
|
30587
|
-
//
|
|
30588
|
-
|
|
30587
|
+
// Only stellar issued tokens need a trust line
|
|
30588
|
+
// (e.g. not needed for native or contract tokens)
|
|
30589
|
+
if (!isStellarIssuedToken(token)) {
|
|
30589
30590
|
return true;
|
|
30590
30591
|
}
|
|
30591
30592
|
if (!amount) {
|
|
@@ -37328,4 +37329,4 @@ const SquidProvider = ({ children, config, placeholder, }) => {
|
|
|
37328
37329
|
};
|
|
37329
37330
|
|
|
37330
37331
|
export { useDepositAddress as $, AxelarStatusResponseType as A, useHederaTokenAssociations as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useKeyboardNavigation as E, useSquidQueryClient as F, useSquid as G, HistoryTxType as H, useStellarAccountActivation as I, useStellarTrustLine as J, useAddressBookStore as K, useAssetsColorsStore as L, useFavoriteTokensStore as M, Nr as N, useHistoryStore as O, useSendTransactionStore as P, QueryKeys as Q, useConfigStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useSquidStore as U, useSwapRoutePersistStore as V, Wo as W, XamanXrplNetwork as X, useTransactionStore as Y, ConnectingWalletStatus as Z, useWalletStore as _, WindowWalletFlag as a, useGetOnrampPaymentTypes as a$, useSwap as a0, buildUrlSearchParamsFromSwapEvent as a1, parseInitialAssetsFromUrl as a2, useUrlSwapParams as a3, useAllConnectedWalletBalances as a4, useAllTokensWithBalanceForChainType as a5, useCosmosBalance as a6, useEvmBalance as a7, useMultiChainBalance as a8, useMultipleTokenPrices as a9, useAvatar as aA, useHistory as aB, useUserParams as aC, useDebouncedValue as aD, useAddToken as aE, useAutoConnect as aF, useEnsDataForAddress as aG, useEnsSearch as aH, useGnosisContext as aI, useIsSameAddressAndGnosisContext as aJ, useIntegratorContext as aK, useMultiChainWallet as aL, useSigner as aM, useWallet as aN, useWallets as aO, useXrplTrustLine as aP, TX_STATUS_CONSTANTS as aQ, FINAL_TRANSACTION_STATUSES as aR, useGetFiatQuote as aS, useGetOnRampConfig as aT, useExecuteFiatQuote as aU, useFiatOnRampTxStatus as aV, useFiatTransactions as aW, useCurrencyDetails as aX, useCountryDetails as aY, useAvailableQuotes as aZ, useRecommendedQuote as a_, useBitcoinNativeBalance as aa, useCosmosNativeBalance as ab, useEvmNativeBalance as ac, useNativeBalance as ad, useSolanaNativeBalance as ae, useStellarNativeBalance as af, useSuiNativeBalance as ag, useXrplNativeBalance as ah, useNativeTokenForChain as ai, useSingleTokenPrice as aj, useSquidTokens as ak, useHistoricalData as al, useTokensData as am, useEstimateSendTransaction as an, useSendTransaction as ao, useSendTransactionGas as ap, useAllTransactionsStatus as aq, useApproval as ar, useEstimate as as, useEstimatePriceImpact as at, useExecuteTransaction as au, useGetRoute as av, useGetRouteWrapper as aw, useRouteWarnings as ax, useSendTransactionStatus as ay, useSwapTransactionStatus as az, chainTypeToZeroAddressMap as b, filterWagmiConnector as b$, useSuggestedFiatAmounts as b0, SquidProvider as b1, EnsService as b2, getXummClient as b3, isXamanXAppContext as b4, getQueryHeaders as b5, getStatusCode as b6, is404Error as b7, assetsBaseUrl as b8, shareSubgraphId as b9, fetchHighestBalanceToken as bA, getInitialOrDefaultTokenAddressForChain as bB, getInitialTokenAddressForChain as bC, filterTokensForDestination as bD, getInitialChainIdFromConfig as bE, getCosmosKey as bF, getKeysSettled as bG, getAllKeysForSupportedCosmosChains as bH, isCosmosAddressValid as bI, getCosmosSigningClient as bJ, getCosmosChainInfosObject as bK, connectCosmosWallet as bL, isFallbackAddressNeeded as bM, suggestChainOrThrow as bN, normalizeError as bO, transactionErrorCode as bP, isUserRejectionError as bQ, getTransactionError as bR, handleTransactionErrorEvents as bS, isSwapRouteError as bT, isStatusError as bU, createQuoteRequestParamsHash as bV, WidgetEvents as bW, EvmNetworkNotSupportedErrorCode as bX, addEthereumChain as bY, parseEvmAddress as bZ, formatEvmWallet as b_, sortTokensBySharedSubgraphIds as ba, getSupportedChainIdsForDirection as bb, filterChains as bc, filterTokens as bd, getTokenImage as be, getNewSwapParamsFromInput as bf, sortAllTokens as bg, findToken as bh, findNativeToken as bi, normalizeIbcAddress as bj, groupTokensBySymbol as bk, groupTokensByChainId as bl, filterViewableTokens as bm, getSecretNetworkBalances as bn, getTokenAssetsKey as bo, fetchAssetsColors as bp, initializeSquidWithAssetsColors as bq, isEmptyObject as br, normalizeTokenSymbol as bs, areTokenSymbolsCompatible as bt, isEvmosChain as bu, resolveChainIdFromAsset as bv, getConfigWithDefaults as bw, randomIntFromInterval as bx, getTokensForChain as by, getFirstAvailableChainId as bz, chainTypeToNativeTokenAddressMap as c, isHistoryTransactionFailed as c$, waitForReceiptWithRetry as c0, getUserCountry as c1, getCountryData as c2, getCurrencyData as c3, adaptiveRound as c4, getSuggestedAmountsForCurrency as c5, HederaExtensionHelper as c6, convertHederaAccountIdToEvmAddress as c7, convertEvmAddressToHederaAccountId as c8, scaleHbarToWei as c9, isValidHorizonAsset as cA, formatTransactionHistoryDate as cB, getAxelarExplorerTxUrl as cC, getSourceExplorerTxUrl as cD, getMainExplorerUrl as cE, formatDistance as cF, formatSeconds as cG, formatSwapTxStatusResponseForStorage as cH, simplifyRouteAction as cI, fetchSwapTransactionStatus as cJ, compareTransactionIds as cK, isCoralBridgeAction as cL, sleep as cM, isDepositRoute as cN, isChainflipBridgeTransaction as cO, isOnChainTxData as cP, getHistoryTransactionId as cQ, getStepStatuses as cR, getHalfSuccessState as cS, getStepsInfos as cT, getSwapTxStatusRefetchInterval as cU, getSendTxStatusRefetchInterval as cV, chainflipMultihopBridgeType as cW, getBridgeType as cX, getTransactionStatus as cY, getTransactionEndStatus as cZ, isHistoryTransactionPending as c_, scaleWeiToHbar as ca, parseToBigInt as cb, roundNumericValue as cc, formatUnitsRounded as cd, formatTokenAmount as ce, formatUsdAmount as cf, trimExtraDecimals as cg, getNumericValue as ch, cleanAmount as ci, convertTokenAmountToUSD as cj, convertUSDToTokenAmount as ck, calculateTotal24hChange as cl, getRouteExpiry as cm, searchTokens as cn, filterSolanaWallets as co, isSolanaAddressValid as cp, executeSolanaSwap as cq, executeSolanaTransfer as cr, isStellarAddressValid as cs, getStellarNetwork as ct, stellarAddressToScVal as cu, getStellarTrustLineAsset as cv, isStellarToken as cw, isStellarIssuedToken as cx, getStellarHorizonApiUrl as cy, isValidIssuedAsset as cz, definedInWindow as d, isHistoryTransactionWarning as d0, isHistoryTransactionEnded as d1, formatHash as d2, isWalletAddressValid as d3, redirectToExtensionsStore as d4, accessProperty as d5, populateWallets as d6, getDefaultChain as d7, sortWallets as d8, areSameAddress as d9, sortAddressBook as da, calculateTotalUsdBalanceUSD as db, addTokenToWallet as dc, isEvmChainNotSupportedError as dd, getWalletSupportedChainTypes as de, getConnectorForChainType as df, walletSupportsChainType as dg, connectWallet as dh, cancelConnectWallet as di, isProblematicConnector as dj, mergeWallets as dk, isXionSmartContractAddress as dl, isXrplAddressValid as dm, buildXrplTrustSetTx as dn, getXrplNetwork as dp, parseXrplPaymentTx as dq, parseXrplTokenAddress as dr, er as e, formatBNToReadable as f, DEFAULT_ROUTE_REFETCH_INTERVAL as g, destinationAddressResetValue as h, fallbackAddressResetValue as i, nativeCosmosTokenAddress as j, nativeEvmTokenAddress as k, nativeSolanaTokenAddress as l, nativeStellarTokenAddress as m, nativeBitcoinTokenAddress as n, nativeSuiTokenAddress as o, nativeXrplTokenAddress as p, CosmosProvider as q, SendTransactionStatus as r, TransactionStatus as s, useTrackSearchEmpty as t, useCosmosContext as u, useSquidChains as v, walletIconBaseUrl as w, useClient as x, useCosmosForChain as y, useHederaAccountActivation as z };
|
|
37331
|
-
//# sourceMappingURL=index
|
|
37332
|
+
//# sourceMappingURL=index--gt66OVO.js.map
|