@0xsquid/react-hooks 8.8.1-beta-canton.2 → 8.8.1-beta-canton.4
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/hooks/store/useDepositAddressStore.d.ts +8 -2
- package/dist/hooks/swap/useDepositAddress.d.ts +4 -3
- package/dist/{index-V9dhUfwW.js → index-D5QOR7JT.js} +52 -28
- package/dist/index-D5QOR7JT.js.map +1 -0
- package/dist/{index-cJsML84P.js → index-mgE1SeE-.js} +53 -28
- package/dist/index-mgE1SeE-.js.map +1 -0
- package/dist/{index.es-DEBBJ-GV.js → index.es-3JPbTFKq.js} +2 -2
- package/dist/{index.es-DEBBJ-GV.js.map → index.es-3JPbTFKq.js.map} +1 -1
- package/dist/{index.es-D9Pry03v.js → index.es-Cq4mUT_n.js} +2 -2
- package/dist/{index.es-D9Pry03v.js.map → index.es-Cq4mUT_n.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/{secretService-Gq4sPaW9.js → secretService-DOOg6zVn.js} +2 -2
- package/dist/{secretService-Gq4sPaW9.js.map → secretService-DOOg6zVn.js.map} +1 -1
- package/dist/{secretService-CX1ATsQ9.js → secretService-DWq78rM5.js} +2 -2
- package/dist/{secretService-CX1ATsQ9.js.map → secretService-DWq78rM5.js.map} +1 -1
- package/dist/services/internal/assetsService.d.ts +10 -1
- package/dist/{stellarService.client-DqVLshhy.js → stellarService.client-C-pOt34O.js} +2 -2
- package/dist/{stellarService.client-DqVLshhy.js.map → stellarService.client-C-pOt34O.js.map} +1 -1
- package/dist/{stellarService.client-CCKxXDnB.js → stellarService.client-DBROJ4yf.js} +2 -2
- package/dist/{stellarService.client-CCKxXDnB.js.map → stellarService.client-DBROJ4yf.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-V9dhUfwW.js.map +0 -1
- package/dist/index-cJsML84P.js.map +0 -1
|
@@ -11,11 +11,17 @@ export interface DepositData {
|
|
|
11
11
|
*/
|
|
12
12
|
memo?: string;
|
|
13
13
|
}
|
|
14
|
+
export type PaymentMethod = "connectedWallet" | "depositAddress";
|
|
14
15
|
interface DepositAddressStore {
|
|
15
16
|
deposit: DepositData | null;
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Raw user intent — which payment method the user picked.
|
|
19
|
+
* NOT whether deposit is actually usable on the current source chain;
|
|
20
|
+
* that is derived in `useDepositAddress` via `isDepositAddressActive`.
|
|
21
|
+
*/
|
|
22
|
+
selectedPaymentMethod: PaymentMethod;
|
|
17
23
|
setDeposit(data: DepositData | null): void;
|
|
18
|
-
|
|
24
|
+
setPaymentMethod(method: PaymentMethod): void;
|
|
19
25
|
}
|
|
20
26
|
export declare const useDepositAddressStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DepositAddressStore>>;
|
|
21
27
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { RouteResponse } from "@0xsquid/squid-types";
|
|
2
|
+
import { PaymentMethod } from "../store/useDepositAddressStore";
|
|
2
3
|
export declare function useDepositAddress(squidRoute?: RouteResponse["route"]): {
|
|
3
|
-
|
|
4
|
+
paymentMethod: PaymentMethod;
|
|
5
|
+
isDepositAddressActive: boolean;
|
|
4
6
|
isAvailableAsPaymentMethod: boolean;
|
|
5
7
|
swapWillGenerateDepositAddress: boolean;
|
|
6
|
-
|
|
7
|
-
disable: () => void;
|
|
8
|
+
setPaymentMethod: (method: PaymentMethod) => void;
|
|
8
9
|
getRouteWithDeposit: import("@tanstack/react-query").UseMutationResult<void, unknown, {
|
|
9
10
|
route: RouteResponse["route"];
|
|
10
11
|
}, unknown>;
|
|
@@ -23354,7 +23354,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23354
23354
|
};
|
|
23355
23355
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23356
23356
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23357
|
-
const { fetchAllSecretBalances } = await import('./secretService-
|
|
23357
|
+
const { fetchAllSecretBalances } = await import('./secretService-DOOg6zVn.js');
|
|
23358
23358
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23359
23359
|
};
|
|
23360
23360
|
function getTokenAssetsKey(token) {
|
|
@@ -23381,9 +23381,29 @@ async function fetchAssetsColors() {
|
|
|
23381
23381
|
};
|
|
23382
23382
|
}
|
|
23383
23383
|
}
|
|
23384
|
-
|
|
23385
|
-
|
|
23386
|
-
|
|
23384
|
+
const supportedChainTypes = new Set(Object.values(ChainType));
|
|
23385
|
+
function isSupportedChainType(chainType) {
|
|
23386
|
+
return supportedChainTypes.has(chainType);
|
|
23387
|
+
}
|
|
23388
|
+
/**
|
|
23389
|
+
* Normalizes SDK data after each init/refetch before the rest of hooks consumes it.
|
|
23390
|
+
*
|
|
23391
|
+
* - Removes chains whose chainType is not supported by the local package.
|
|
23392
|
+
* - Drops tokens for those removed chains.
|
|
23393
|
+
* - Converts Evmos chains/tokens to EVM.
|
|
23394
|
+
* - Applies optional asset colors.
|
|
23395
|
+
*/
|
|
23396
|
+
function initializeSquidData(squid, assetsColors = {
|
|
23397
|
+
chains: {},
|
|
23398
|
+
tokens: {},
|
|
23399
|
+
}) {
|
|
23400
|
+
const supportedChains = squid.chains.filter((chain) => isSupportedChainType(chain.chainType));
|
|
23401
|
+
const supportedChainIds = new Set(supportedChains.map((chain) => chain.chainId));
|
|
23402
|
+
const evmosChainIds = supportedChains
|
|
23403
|
+
.filter(isEvmosChain)
|
|
23404
|
+
.map((c) => c.chainId);
|
|
23405
|
+
const supportedTokens = squid.tokens.filter((token) => supportedChainIds.has(token.chainId));
|
|
23406
|
+
squid.tokens = supportedTokens.map((token) => {
|
|
23387
23407
|
const isEvmosToken = evmosChainIds.includes(token.chainId);
|
|
23388
23408
|
return {
|
|
23389
23409
|
...token,
|
|
@@ -23392,7 +23412,7 @@ function initializeSquidWithAssetsColors(squid, assetsColors) {
|
|
|
23392
23412
|
textColor: assetsColors.tokens[getTokenAssetsKey(token)]?.textColor,
|
|
23393
23413
|
};
|
|
23394
23414
|
});
|
|
23395
|
-
squid.chains =
|
|
23415
|
+
squid.chains = supportedChains.map((chain) => {
|
|
23396
23416
|
const bgColor = assetsColors.chains[chain.chainId]?.bgColor;
|
|
23397
23417
|
// convert evmos cosmos chains to evm chains
|
|
23398
23418
|
// TODO: this will be fixed in the backend
|
|
@@ -25269,7 +25289,7 @@ const useSquid = () => {
|
|
|
25269
25289
|
queryFn: async () => {
|
|
25270
25290
|
if (squid) {
|
|
25271
25291
|
await squid?.init();
|
|
25272
|
-
|
|
25292
|
+
initializeSquidData(squid, assetsColors);
|
|
25273
25293
|
return squid;
|
|
25274
25294
|
}
|
|
25275
25295
|
return null;
|
|
@@ -26763,7 +26783,7 @@ function useStellarWallets() {
|
|
|
26763
26783
|
try {
|
|
26764
26784
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
26765
26785
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
|
|
26766
|
-
const { formatStellarWallet } = await import('./stellarService.client-
|
|
26786
|
+
const { formatStellarWallet } = await import('./stellarService.client-C-pOt34O.js');
|
|
26767
26787
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
26768
26788
|
const promises = modules.map(async (module) => {
|
|
26769
26789
|
const isAvailable = await module.isAvailable();
|
|
@@ -30113,7 +30133,7 @@ function hederaWalletConnect(parameters) {
|
|
|
30113
30133
|
const optionalChains = config.chains.map((x) => x.id);
|
|
30114
30134
|
if (!optionalChains.length)
|
|
30115
30135
|
return;
|
|
30116
|
-
const { EthereumProvider } = await import('./index.es-
|
|
30136
|
+
const { EthereumProvider } = await import('./index.es-Cq4mUT_n.js');
|
|
30117
30137
|
const rawProvider = await EthereumProvider.init({
|
|
30118
30138
|
...restParameters,
|
|
30119
30139
|
disableProviderPing: true,
|
|
@@ -30794,21 +30814,21 @@ const useSendTransactionStore = create((set, get) => ({
|
|
|
30794
30814
|
|
|
30795
30815
|
const useDepositAddressStore = create((set) => ({
|
|
30796
30816
|
deposit: null,
|
|
30797
|
-
|
|
30817
|
+
selectedPaymentMethod: "connectedWallet",
|
|
30798
30818
|
setDeposit: (data) => {
|
|
30799
30819
|
set({ deposit: data });
|
|
30800
30820
|
},
|
|
30801
|
-
|
|
30802
|
-
set({
|
|
30821
|
+
setPaymentMethod: (method) => {
|
|
30822
|
+
set({ selectedPaymentMethod: method });
|
|
30803
30823
|
},
|
|
30804
30824
|
}));
|
|
30805
30825
|
|
|
30806
30826
|
function useDepositAddress(squidRoute) {
|
|
30807
|
-
const {
|
|
30808
|
-
|
|
30827
|
+
const { selectedPaymentMethod, depositAddress } = useDepositAddressStore((state) => ({
|
|
30828
|
+
selectedPaymentMethod: state.selectedPaymentMethod,
|
|
30809
30829
|
depositAddress: state.deposit?.depositAddress,
|
|
30810
30830
|
}));
|
|
30811
|
-
const { setDeposit,
|
|
30831
|
+
const { setDeposit, setPaymentMethod, deposit } = useDepositAddressStore();
|
|
30812
30832
|
const { squid } = useSquidStore();
|
|
30813
30833
|
const { fromChain } = useSwap();
|
|
30814
30834
|
const isAvailableAsPaymentMethod = useMemo(() => {
|
|
@@ -30825,12 +30845,14 @@ function useDepositAddress(squidRoute) {
|
|
|
30825
30845
|
return (squidRoute?.transactionRequest?.type ===
|
|
30826
30846
|
SquidDataType.ChainflipDepositAddress);
|
|
30827
30847
|
}, [squidRoute?.transactionRequest?.type]);
|
|
30828
|
-
|
|
30829
|
-
|
|
30830
|
-
|
|
30831
|
-
|
|
30832
|
-
|
|
30833
|
-
|
|
30848
|
+
// Effective payment method: the user's intent clamped by what the current
|
|
30849
|
+
// source chain can actually do. Reading this (instead of raw intent) is what
|
|
30850
|
+
// keeps every consumer in sync — if the source chain can't use a deposit
|
|
30851
|
+
// address, the effective method is "connectedWallet" immediately at read time.
|
|
30852
|
+
const paymentMethod = isAvailableAsPaymentMethod
|
|
30853
|
+
? selectedPaymentMethod
|
|
30854
|
+
: "connectedWallet";
|
|
30855
|
+
const isDepositAddressActive = paymentMethod === "depositAddress";
|
|
30834
30856
|
const closeDepositChannel = useCallback(() => {
|
|
30835
30857
|
setDeposit(null);
|
|
30836
30858
|
}, [setDeposit]);
|
|
@@ -30862,11 +30884,11 @@ function useDepositAddress(squidRoute) {
|
|
|
30862
30884
|
}
|
|
30863
30885
|
});
|
|
30864
30886
|
return {
|
|
30865
|
-
|
|
30887
|
+
paymentMethod,
|
|
30888
|
+
isDepositAddressActive,
|
|
30866
30889
|
isAvailableAsPaymentMethod,
|
|
30867
30890
|
swapWillGenerateDepositAddress,
|
|
30868
|
-
|
|
30869
|
-
disable,
|
|
30891
|
+
setPaymentMethod,
|
|
30870
30892
|
getRouteWithDeposit,
|
|
30871
30893
|
depositAddress,
|
|
30872
30894
|
closeDepositChannel,
|
|
@@ -36956,7 +36978,7 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36956
36978
|
const squid = useSquidStore((state) => state.squid);
|
|
36957
36979
|
const fallbackAddress = useSwapRoutePersistStore((store) => store.swapRoute?.fallbackAddress);
|
|
36958
36980
|
const depositRefundAddress = useSwapRoutePersistStore((store) => store.swapRoute?.depositRefundAddress);
|
|
36959
|
-
const {
|
|
36981
|
+
const { isDepositAddressActive } = useDepositAddress();
|
|
36960
36982
|
const getRouteMutation = useGetRoute();
|
|
36961
36983
|
const { fromChain, toChain, fromPrice, destinationAddress: { address: destinationAddress } = {}, fromToken, toToken, } = useSwap();
|
|
36962
36984
|
const { connectedAddress: { address: sourceConnectedAddress }, } = useMultiChainWallet(fromChain);
|
|
@@ -36964,7 +36986,7 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36964
36986
|
// Tokens will be sent to this address in case of swap failure
|
|
36965
36987
|
//
|
|
36966
36988
|
// If deposit address is not selected, we use the connected address as the source address instead
|
|
36967
|
-
const sourceUserAddress =
|
|
36989
|
+
const sourceUserAddress = isDepositAddressActive
|
|
36968
36990
|
? depositRefundAddress ?? sourceConnectedAddress
|
|
36969
36991
|
: sourceConnectedAddress;
|
|
36970
36992
|
const squidRouteQueryKeys = useMemo(() => keys().transaction(fromChain?.chainId, toChain?.chainId, toToken?.address, fromToken?.address, fromPrice, config.slippage, sourceUserAddress, config.degenMode, destinationAddress, fallbackAddress, quoteOnly, fromChain?.chainType, config.preHook, config.postHook, config.overrideGasRefundAddress), [
|
|
@@ -37551,8 +37573,10 @@ const SquidProvider = ({ children, config, placeholder, }) => {
|
|
|
37551
37573
|
}
|
|
37552
37574
|
if (assetsColorsResponse.status === "fulfilled") {
|
|
37553
37575
|
useAssetsColorsStore.setState(assetsColorsResponse.value);
|
|
37554
|
-
initializeSquidWithAssetsColors(squid, assetsColorsResponse.value);
|
|
37555
37576
|
}
|
|
37577
|
+
initializeSquidData(squid, assetsColorsResponse.status === "fulfilled"
|
|
37578
|
+
? assetsColorsResponse.value
|
|
37579
|
+
: undefined);
|
|
37556
37580
|
const shouldResetSwapRouteStore =
|
|
37557
37581
|
// reset swap route if specified in config
|
|
37558
37582
|
!config?.loadPreviousStateFromLocalStorage ||
|
|
@@ -37629,5 +37653,5 @@ const SquidProvider = ({ children, config, placeholder, }) => {
|
|
|
37629
37653
|
React.createElement(CosmosProvider, null, children)))))))))) : (placeholder);
|
|
37630
37654
|
};
|
|
37631
37655
|
|
|
37632
|
-
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, useRecommendedQuote 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, useSendTransactionStatus as aA, useSwapTransactionStatus as aB, useAvatar as aC, useHistory as aD, useDebouncedValue as aE, useAddToken as aF, useAutoConnect as aG, useEnsDataForAddress as aH, useEnsSearch as aI, useGnosisContext as aJ, useIsSameAddressAndGnosisContext as aK, useIntegratorContext as aL, useMultiChainWallet as aM, useSigner as aN, useWallet as aO, useWallets as aP, useXrplTrustLine as aQ, TX_STATUS_CONSTANTS as aR, FINAL_TRANSACTION_STATUSES as aS, useGetFiatQuote as aT, useGetOnRampConfig as aU, useExecuteFiatQuote as aV, useFiatOnRampTxStatus as aW, useFiatTransactions as aX, useCurrencyDetails as aY, useCountryDetails as aZ, useAvailableQuotes 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, useSourceChainGasToken as ak, useSquidTokens as al, useHistoricalData as am, useTokensData as an, useEstimateSendTransaction as ao, useSendTransaction as ap, useSendTransactionGas as aq, useAllTransactionsStatus as ar, useApproval as as, useDepositTransactionStatus as at, useEstimate as au, useEstimatePriceImpact as av, useExecuteTransaction as aw, useGetRoute as ax, useGetRouteWrapper as ay, useRouteWarnings as az, chainTypeToZeroAddressMap as b,
|
|
37633
|
-
//# sourceMappingURL=index-
|
|
37656
|
+
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, useRecommendedQuote 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, useSendTransactionStatus as aA, useSwapTransactionStatus as aB, useAvatar as aC, useHistory as aD, useDebouncedValue as aE, useAddToken as aF, useAutoConnect as aG, useEnsDataForAddress as aH, useEnsSearch as aI, useGnosisContext as aJ, useIsSameAddressAndGnosisContext as aK, useIntegratorContext as aL, useMultiChainWallet as aM, useSigner as aN, useWallet as aO, useWallets as aP, useXrplTrustLine as aQ, TX_STATUS_CONSTANTS as aR, FINAL_TRANSACTION_STATUSES as aS, useGetFiatQuote as aT, useGetOnRampConfig as aU, useExecuteFiatQuote as aV, useFiatOnRampTxStatus as aW, useFiatTransactions as aX, useCurrencyDetails as aY, useCountryDetails as aZ, useAvailableQuotes 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, useSourceChainGasToken as ak, useSquidTokens as al, useHistoricalData as am, useTokensData as an, useEstimateSendTransaction as ao, useSendTransaction as ap, useSendTransactionGas as aq, useAllTransactionsStatus as ar, useApproval as as, useDepositTransactionStatus as at, useEstimate as au, useEstimatePriceImpact as av, useExecuteTransaction as aw, useGetRoute as ax, useGetRouteWrapper as ay, useRouteWarnings as az, chainTypeToZeroAddressMap as b, parseEvmAddress as b$, useGetOnrampPaymentTypes as b0, useSuggestedFiatAmounts as b1, SquidProvider as b2, EnsService as b3, getXummClient as b4, isXamanXAppContext as b5, getQueryHeaders as b6, getStatusCode as b7, is404Error as b8, assetsBaseUrl as b9, getTokensForChain as bA, getFirstAvailableChainId as bB, fetchHighestBalanceToken as bC, getInitialOrDefaultTokenAddressForChain as bD, getInitialTokenAddressForChain as bE, filterTokensForDestination as bF, getInitialChainIdFromConfig as bG, getCosmosKey as bH, getKeysSettled as bI, getAllKeysForSupportedCosmosChains as bJ, isCosmosAddressValid as bK, getCosmosSigningClient as bL, getCosmosChainInfosObject as bM, connectCosmosWallet as bN, isFallbackAddressNeeded as bO, suggestChainOrThrow as bP, normalizeError as bQ, transactionErrorCode as bR, isUserRejectionError as bS, getTransactionError as bT, handleTransactionErrorEvents as bU, isSwapRouteError as bV, isStatusError as bW, createQuoteRequestParamsHash as bX, WidgetEvents as bY, EvmNetworkNotSupportedErrorCode as bZ, addEthereumChain as b_, shareSubgraphId as ba, sortTokensBySharedSubgraphIds as bb, getSupportedChainIdsForDirection as bc, filterChains as bd, filterTokens as be, getTokenImage as bf, getNewSwapParamsFromInput as bg, sortAllTokens as bh, findToken as bi, findNativeToken as bj, normalizeIbcAddress as bk, groupTokensBySymbol as bl, groupTokensByChainId as bm, filterViewableTokens as bn, getSecretNetworkBalances as bo, getTokenAssetsKey as bp, fetchAssetsColors as bq, isSupportedChainType as br, initializeSquidData as bs, isEmptyObject as bt, normalizeTokenSymbol as bu, areTokenSymbolsCompatible as bv, isEvmosChain as bw, resolveChainIdFromAsset as bx, getConfigWithDefaults as by, randomIntFromInterval as bz, chainTypeToNativeTokenAddressMap as c, getBridgeType as c$, formatEvmWallet as c0, filterWagmiConnector as c1, waitForReceiptWithRetry as c2, getUserCountry as c3, getCountryData as c4, getCurrencyData as c5, adaptiveRound as c6, getSuggestedAmountsForCurrency as c7, HederaExtensionHelper as c8, convertHederaAccountIdToEvmAddress as c9, getStellarHorizonApiUrl as cA, isValidIssuedAsset as cB, isValidHorizonAsset as cC, formatTransactionHistoryDate as cD, getAxelarExplorerTxUrl as cE, getSourceExplorerTxUrl as cF, getMainExplorerUrl as cG, formatDistance as cH, formatSeconds as cI, formatSwapTxStatusResponseForStorage as cJ, simplifyRouteAction as cK, fetchSwapTransactionStatus as cL, compareTransactionIds as cM, isCoralBridgeAction as cN, isActionCompletedOnSourceTx as cO, sleep as cP, isChainflipDepositRoute as cQ, isChainflipBridgeTransaction as cR, isOnChainTxData as cS, isDepositAddressDirectTransferRoute as cT, getHistoryTransactionId as cU, getStepStatuses as cV, getHalfSuccessState as cW, getStepsInfos as cX, getSwapTxStatusRefetchInterval as cY, getSendTxStatusRefetchInterval as cZ, chainflipMultihopBridgeType as c_, convertEvmAddressToHederaAccountId as ca, scaleHbarToWei as cb, scaleWeiToHbar as cc, parseToBigInt as cd, roundNumericValue as ce, formatUnitsRounded as cf, formatTokenAmount as cg, formatUsdAmount as ch, trimExtraDecimals as ci, getNumericValue as cj, cleanAmount as ck, convertTokenAmountToUSD as cl, convertUSDToTokenAmount as cm, calculateTotal24hChange as cn, getRouteExpiry as co, searchTokens as cp, filterSolanaWallets as cq, isSolanaAddressValid as cr, executeSolanaSwap as cs, executeSolanaTransfer as ct, isStellarAddressValid as cu, getStellarNetwork as cv, stellarAddressToScVal as cw, getStellarTrustLineAsset as cx, isStellarToken as cy, isStellarIssuedToken as cz, definedInWindow as d, getTransactionStatus as d0, getTransactionEndStatus as d1, isHistoryTransactionPending as d2, isHistoryTransactionFailed as d3, isHistoryTransactionWarning as d4, isHistoryTransactionEnded as d5, formatHash as d6, isWalletAddressValid as d7, redirectToExtensionsStore as d8, accessProperty as d9, populateWallets as da, getDefaultChain as db, sortWallets as dc, areSameAddress as dd, sortAddressBook as de, calculateTotalUsdBalanceUSD as df, addTokenToWallet as dg, isEvmChainNotSupportedError as dh, getWalletSupportedChainTypes as di, getConnectorForChainType as dj, walletSupportsChainType as dk, connectWallet as dl, cancelConnectWallet as dm, isProblematicConnector as dn, mergeWallets as dp, isXionSmartContractAddress as dq, isXrplAddressValid as dr, buildXrplTrustSetTx as ds, getXrplNetwork as dt, parseXrplPaymentTx as du, parseXrplTokenAddress as dv, 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 };
|
|
37657
|
+
//# sourceMappingURL=index-D5QOR7JT.js.map
|