@0xsquid/react-hooks 8.11.1-beta-danal.1 → 8.11.1-beta-danal.2

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.
Files changed (24) hide show
  1. package/dist/core/types/index.d.ts +1 -1
  2. package/dist/core/types/tokens.d.ts +8 -1
  3. package/dist/{index-D6rznmR_.js → index-ByakOYXP.js} +6 -5
  4. package/dist/index-ByakOYXP.js.map +1 -0
  5. package/dist/{index-BT6G_mgr.js → index-nTqoaD0B.js} +6 -5
  6. package/dist/index-nTqoaD0B.js.map +1 -0
  7. package/dist/{index.es-Dl19u5sy.js → index.es--AR2n7a0.js} +2 -2
  8. package/dist/{index.es-Dl19u5sy.js.map → index.es--AR2n7a0.js.map} +1 -1
  9. package/dist/{index.es-BZb8tg2z.js → index.es-DtFDz6qc.js} +2 -2
  10. package/dist/{index.es-BZb8tg2z.js.map → index.es-DtFDz6qc.js.map} +1 -1
  11. package/dist/index.esm.js +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/{secretService-TP5V9Jwg.js → secretService-29Ak2qp5.js} +2 -2
  14. package/dist/{secretService-TP5V9Jwg.js.map → secretService-29Ak2qp5.js.map} +1 -1
  15. package/dist/{secretService-Dvc9Dg4U.js → secretService-cgr3P1zw.js} +2 -2
  16. package/dist/{secretService-Dvc9Dg4U.js.map → secretService-cgr3P1zw.js.map} +1 -1
  17. package/dist/services/internal/searchService.d.ts +2 -1
  18. package/dist/{stellarService.client-c48cnGgL.js → stellarService.client-B__dTUBZ.js} +2 -2
  19. package/dist/{stellarService.client-c48cnGgL.js.map → stellarService.client-B__dTUBZ.js.map} +1 -1
  20. package/dist/{stellarService.client-WTkVJJhn.js → stellarService.client-D-zkMI5s.js} +2 -2
  21. package/dist/{stellarService.client-WTkVJJhn.js.map → stellarService.client-D-zkMI5s.js.map} +1 -1
  22. package/package.json +1 -1
  23. package/dist/index-BT6G_mgr.js.map +0 -1
  24. package/dist/index-D6rznmR_.js.map +0 -1
@@ -4,7 +4,7 @@ export type { QrCodeData } from "./event";
4
4
  export * from "./history";
5
5
  export type * from "./onramps/";
6
6
  export type { SwapParams } from "./swap";
7
- export type { Chain, Token, TrustLineAsset } from "./tokens";
7
+ export type { Chain, ChainData, Token, TrustLineAsset } from "./tokens";
8
8
  export { AxelarStatusResponseType, SendTransactionStatus, TransactionStatus, type PatchedRouteActionResponse, type TransactionParams, } from "./transaction";
9
9
  export type { AddressWithEns, BitcoinWallet, ConnectorID, CosmosWallet, EnsData, EnsSearchResult, FullAddressData, NetworkConfig, SolanaWallet, SupportedChain, Wallet, } from "./wallet";
10
10
  export { XamanXrplNetwork } from "./xrpl";
@@ -1,8 +1,14 @@
1
- import type { ChainData as BaseChain, Token as BaseToken } from "@0xsquid/squid-types";
1
+ import type { ChainData as BaseChain, ChainName, Token as BaseToken } from "@0xsquid/squid-types";
2
2
  export type Token = BaseToken & {
3
3
  bgColor?: string;
4
4
  textColor?: string;
5
5
  };
6
+ type WithOptionalAxelarChainName<T> = T extends {
7
+ axelarChainName: ChainName;
8
+ } ? Omit<T, "axelarChainName"> & {
9
+ axelarChainName?: ChainName;
10
+ } : T;
11
+ export type ChainData = WithOptionalAxelarChainName<BaseChain>;
6
12
  export type Chain = BaseChain & {
7
13
  bgColor?: string;
8
14
  };
@@ -80,3 +86,4 @@ export interface TrustLineAsset {
80
86
  code: string;
81
87
  issuer: string;
82
88
  }
89
+ export {};
@@ -23714,7 +23714,7 @@ const filterViewableTokens = (tokens, config, direction) => {
23714
23714
  };
23715
23715
  const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
23716
23716
  const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
23717
- const { fetchAllSecretBalances } = await import('./secretService-Dvc9Dg4U.js');
23717
+ const { fetchAllSecretBalances } = await import('./secretService-cgr3P1zw.js');
23718
23718
  return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
23719
23719
  };
23720
23720
  function getTokenAssetsKey(token) {
@@ -25295,7 +25295,8 @@ const searchTokens = (query, tokens, chains) => {
25295
25295
  .filter((chain) => chain.nativeCurrency.symbol.toLowerCase() === query.toLowerCase() ||
25296
25296
  chain.nativeCurrency.name.toLowerCase().includes(query.toLowerCase()) ||
25297
25297
  chain.networkName.toLowerCase().includes(query.toLowerCase()) ||
25298
- chain.axelarChainName.toLowerCase().includes(query.toLowerCase()))
25298
+ (chain.axelarChainName?.toLowerCase().includes(query.toLowerCase()) ??
25299
+ false))
25299
25300
  .map((chain) => tokens.find((token) => token.chainId === chain.chainId &&
25300
25301
  token.address.toLowerCase() === nativeEvmTokenAddress))
25301
25302
  .filter((token) => token !== undefined);
@@ -27473,7 +27474,7 @@ function useStellarWallets() {
27473
27474
  try {
27474
27475
  const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
27475
27476
  const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
27476
- const { formatStellarWallet } = await import('./stellarService.client-c48cnGgL.js');
27477
+ const { formatStellarWallet } = await import('./stellarService.client-B__dTUBZ.js');
27477
27478
  const modules = [...initializeAllModules(), new LedgerModule()];
27478
27479
  const promises = modules.map(async (module) => {
27479
27480
  const isAvailable = await module.isAvailable();
@@ -30943,7 +30944,7 @@ function hederaWalletConnect(parameters) {
30943
30944
  const optionalChains = config.chains.map((x) => x.id);
30944
30945
  if (!optionalChains.length)
30945
30946
  return;
30946
- const { EthereumProvider } = await import('./index.es-Dl19u5sy.js');
30947
+ const { EthereumProvider } = await import('./index.es--AR2n7a0.js');
30947
30948
  const rawProvider = await EthereumProvider.init({
30948
30949
  ...restParameters,
30949
30950
  disableProviderPing: true,
@@ -38947,4 +38948,4 @@ const SquidProvider = ({ children, config, placeholder, }) => {
38947
38948
  };
38948
38949
 
38949
38950
  export { useWalletStore as $, AxelarStatusResponseType as A, useHederaAccountActivation as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useHederaTokenAssociations as E, useKeyboardNavigation as F, useSquidQueryClient as G, HistoryTxType as H, useSquid as I, useStellarAccountActivation as J, useStellarTrustLine as K, useAddressBookStore as L, useAssetsColorsStore as M, Nr as N, useFavoriteTokensStore as O, useHistoryStore as P, QueryKeys as Q, useSendTransactionStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useConfigStore as U, useSquidStore as V, Wo as W, XamanXrplNetwork as X, useSwapRoutePersistStore as Y, useTransactionStore as Z, ConnectingWalletStatus as _, WindowWalletFlag as a, useAvailableQuotes as a$, useDepositAddress as a0, useSwap as a1, buildUrlSearchParamsFromSwapEvent as a2, parseInitialAssetsFromUrl as a3, useUrlSwapParams as a4, useAllConnectedWalletBalances as a5, useAllTokensWithBalanceForChainType as a6, useCosmosBalance as a7, useEvmBalance as a8, useMultiChainBalance as a9, useRouteWarnings as aA, useSendTransactionStatus as aB, useSwapTransactionStatus as aC, useAvatar as aD, useHistory as aE, useDebouncedValue as aF, useAddToken as aG, useAutoConnect as aH, useEnsDataForAddress as aI, useEnsSearch as aJ, useGnosisContext as aK, useIsSameAddressAndGnosisContext as aL, useIntegratorContext as aM, useMultiChainWallet as aN, useSigner as aO, useWallet as aP, useWallets as aQ, useXrplTrustLine as aR, TX_STATUS_CONSTANTS as aS, FINAL_TRANSACTION_STATUSES as aT, useGetFiatQuote as aU, useGetOnRampConfig as aV, useExecuteFiatQuote as aW, useFiatOnRampTxStatus as aX, useFiatTransactions as aY, useCurrencyDetails as aZ, useCountryDetails as a_, useMultipleTokenPrices as aa, useBitcoinNativeBalance as ab, useCosmosNativeBalance as ac, useEvmNativeBalance as ad, useNativeBalance as ae, useSolanaNativeBalance as af, useStellarNativeBalance as ag, useSuiNativeBalance as ah, useXrplNativeBalance as ai, useNativeTokenForChain as aj, useSingleTokenPrice as ak, useSourceChainGasToken as al, useSquidTokens as am, useHistoricalData as an, useTokensData as ao, useEstimateSendTransaction as ap, useSendTransaction as aq, useSendTransactionGas as ar, useAllTransactionsStatus as as, useApproval as at, useDepositTransactionStatus as au, useEstimate as av, useEstimatePriceImpact as aw, useExecuteTransaction as ax, useGetRoute as ay, useGetRouteWrapper as az, DEFAULT_ROUTE_REFETCH_INTERVAL as b, createQuoteRequestParamsHash as b$, useRecommendedQuote as b0, useGetOnrampPaymentTypes as b1, useSuggestedFiatAmounts as b2, SquidProvider as b3, EnsService as b4, getXummClient as b5, isXamanXAppContext as b6, getQueryHeaders as b7, getStatusCode as b8, is404Error as b9, randomIntFromInterval as bA, getTokensForChain as bB, getFirstAvailableChainId as bC, fetchHighestBalanceToken as bD, getInitialOrDefaultTokenAddressForChain as bE, getInitialTokenAddressForChain as bF, filterTokensForDestination as bG, getInitialChainIdFromConfig as bH, getCosmosKey as bI, getKeysSettled as bJ, getAllKeysForSupportedCosmosChains as bK, isCosmosAddressValid as bL, getCosmosSigningClient as bM, getCosmosChainInfosObject as bN, connectCosmosWallet as bO, isFallbackAddressNeeded as bP, suggestChainOrThrow as bQ, isDanalAddressValid as bR, isDanalTxHashValid as bS, parseDanalTransferBody as bT, normalizeError as bU, transactionErrorCode as bV, isUserRejectionError as bW, getTransactionError as bX, handleTransactionErrorEvents as bY, isSwapRouteError as bZ, isStatusError as b_, assetsBaseUrl as ba, shareSubgraphId as bb, sortTokensBySharedSubgraphIds as bc, getSupportedChainIdsForDirection as bd, filterChains as be, filterTokens as bf, getTokenImage as bg, getNewSwapParamsFromInput as bh, sortAllTokens as bi, findToken as bj, findNativeToken as bk, normalizeIbcAddress as bl, groupTokensBySymbol as bm, groupTokensByChainId as bn, filterViewableTokens as bo, getSecretNetworkBalances as bp, getTokenAssetsKey as bq, fetchAssetsColors as br, isSupportedChainType as bs, initializeSquidData as bt, isEmptyObject as bu, normalizeTokenSymbol as bv, areTokenSymbolsCompatible as bw, isEvmosChain as bx, resolveChainIdFromAsset as by, getConfigWithDefaults as bz, chainTypeToNativeTokenAddressMap as c, getHalfSuccessState as c$, WidgetEvents as c0, EvmNetworkNotSupportedErrorCode as c1, addEthereumChain as c2, parseEvmAddress as c3, formatEvmWallet as c4, filterWagmiConnector as c5, waitForReceiptWithRetry as c6, getUserCountry as c7, getCountryData as c8, getCurrencyData as c9, stellarAddressToScVal as cA, getStellarTrustLineAsset as cB, isStellarToken as cC, isStellarIssuedToken as cD, getStellarHorizonApiUrl as cE, isValidIssuedAsset as cF, isValidHorizonAsset as cG, formatTransactionHistoryDate as cH, getAxelarExplorerTxUrl as cI, getSourceExplorerTxUrl as cJ, getMainExplorerUrl as cK, formatDistance as cL, formatSeconds as cM, formatSwapTxStatusResponseForStorage as cN, simplifyRouteAction as cO, fetchSwapTransactionStatus as cP, compareTransactionIds as cQ, isCoralBridgeAction as cR, isActionCompletedOnSourceTx as cS, sleep as cT, isChainflipDepositRoute as cU, isChainflipBridgeTransaction as cV, isOnChainTxData as cW, isDepositAddressDirectTransferRoute as cX, isDanalDepositRoute as cY, getHistoryTransactionId as cZ, getStepStatuses as c_, adaptiveRound as ca, getSuggestedAmountsForCurrency as cb, HederaExtensionHelper as cc, convertHederaAccountIdToEvmAddress as cd, convertEvmAddressToHederaAccountId as ce, scaleHbarToWei as cf, scaleWeiToHbar as cg, parseToBigInt as ch, roundNumericValue as ci, formatUnitsRounded as cj, formatTokenAmount as ck, formatUsdAmount as cl, trimExtraDecimals as cm, getNumericValue as cn, cleanAmount as co, convertTokenAmountToUSD as cp, convertUSDToTokenAmount as cq, calculateTotal24hChange as cr, getRouteExpiry as cs, searchTokens as ct, filterSolanaWallets as cu, isSolanaAddressValid as cv, executeSolanaSwap as cw, executeSolanaTransfer as cx, isStellarAddressValid as cy, getStellarNetwork as cz, definedInWindow as d, getStepsInfos as d0, getSwapTxStatusRefetchInterval as d1, getSendTxStatusRefetchInterval as d2, chainflipMultihopBridgeType as d3, getBridgeType as d4, getTransactionStatus as d5, getTransactionEndStatus as d6, isHistoryTransactionPending as d7, isHistoryTransactionFailed as d8, isHistoryTransactionWarning as d9, parseXrplTokenAddress as dA, isHistoryTransactionEnded as da, formatHash as db, isWalletAddressValid as dc, redirectToExtensionsStore as dd, populateWallets as de, buildFallbackWallets as df, getDefaultChain as dg, sortWallets as dh, areSameAddress as di, sortAddressBook as dj, calculateTotalUsdBalanceUSD as dk, addTokenToWallet as dl, isEvmChainNotSupportedError as dm, getWalletSupportedChainTypes as dn, getConnectorForChainType as dp, walletSupportsChainType as dq, connectWallet as dr, cancelConnectWallet as ds, isProblematicConnector as dt, mergeWallets as du, isXionSmartContractAddress as dv, isXrplAddressValid as dw, buildXrplTrustSetTx as dx, getXrplNetwork as dy, parseXrplPaymentTx as dz, er as e, formatBNToReadable as f, chainTypeToZeroAddressMap as g, destinationAddressResetValue as h, fallbackAddressResetValue as i, nativeCantonTokenAddress as j, nativeCosmosTokenAddress as k, nativeEvmTokenAddress as l, nativeSolanaTokenAddress as m, nativeBitcoinTokenAddress as n, nativeStellarTokenAddress as o, nativeSuiTokenAddress as p, nativeXrplTokenAddress as q, CosmosProvider as r, SendTransactionStatus as s, TransactionStatus as t, useCosmosContext as u, useTrackSearchEmpty as v, walletIconBaseUrl as w, useSquidChains as x, useClient as y, useCosmosForChain as z };
38950
- //# sourceMappingURL=index-D6rznmR_.js.map
38951
+ //# sourceMappingURL=index-ByakOYXP.js.map