@0xsquid/react-hooks 8.4.1-beta-interactive-to-amount.0 → 8.5.0
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/core/queries/queries-keys.d.ts +1 -1
- package/dist/core/types/route.d.ts +1 -1
- package/dist/hooks/store/useSquidStore.d.ts +1 -2
- package/dist/hooks/swap/useSwap.d.ts +2 -4
- package/dist/hooks/transaction/useAllTransactionsStatus.d.ts +1 -0
- package/dist/hooks/transaction/useGetRoute.d.ts +0 -1
- package/dist/{index-Bg7CS2Uo.js → index-5cyMUZhY.js} +26 -54
- package/dist/index-5cyMUZhY.js.map +1 -0
- package/dist/{index-DnkELFs9.js → index-BGVXRZI6.js} +27 -54
- package/dist/index-BGVXRZI6.js.map +1 -0
- package/dist/{index.es-tWag56u3.js → index.es-BfdAGErV.js} +2 -2
- package/dist/{index.es-tWag56u3.js.map → index.es-BfdAGErV.js.map} +1 -1
- package/dist/{index.es-BQGUcysL.js → index.es-CeHwkxPw.js} +2 -2
- package/dist/{index.es-BQGUcysL.js.map → index.es-CeHwkxPw.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/{secretService-Bs5SPC6i.js → secretService-BMYOBXhv.js} +2 -2
- package/dist/{secretService-Bs5SPC6i.js.map → secretService-BMYOBXhv.js.map} +1 -1
- package/dist/{secretService-BXleHutG.js → secretService-D_d3CFdp.js} +2 -2
- package/dist/{secretService-BXleHutG.js.map → secretService-D_d3CFdp.js.map} +1 -1
- package/dist/services/internal/transactionService.d.ts +0 -7
- package/dist/{stellarService.client-li6iEHAu.js → stellarService.client-CIkvwxPo.js} +2 -2
- package/dist/{stellarService.client-li6iEHAu.js.map → stellarService.client-CIkvwxPo.js.map} +1 -1
- package/dist/{stellarService.client-TTYw1-aB.js → stellarService.client-DOrCdvCd.js} +2 -2
- package/dist/{stellarService.client-TTYw1-aB.js.map → stellarService.client-DOrCdvCd.js.map} +1 -1
- package/package.json +3 -3
- package/dist/index-Bg7CS2Uo.js.map +0 -1
- package/dist/index-DnkELFs9.js.map +0 -1
|
@@ -21116,17 +21116,9 @@ function isOnChainTxData(squidData) {
|
|
|
21116
21116
|
return [
|
|
21117
21117
|
SquidDataType.OnChainExecution,
|
|
21118
21118
|
SquidDataType.DepositAddressWithSignature,
|
|
21119
|
+
SquidDataType.OnChainExecutionWithSignature,
|
|
21119
21120
|
].includes(squidData.type);
|
|
21120
21121
|
}
|
|
21121
|
-
/**
|
|
21122
|
-
* Checks if a route is of type deposit-with-signature
|
|
21123
|
-
*
|
|
21124
|
-
* deposit-with-signature routes are on-chain routes
|
|
21125
|
-
* that require a signature from the user to execute
|
|
21126
|
-
*/
|
|
21127
|
-
function isDepositWithSignatureTxData(squidData) {
|
|
21128
|
-
return squidData.type === SquidDataType.DepositAddressWithSignature;
|
|
21129
|
-
}
|
|
21130
21122
|
function getHistoryTransactionId(tx) {
|
|
21131
21123
|
switch (tx.txType) {
|
|
21132
21124
|
case HistoryTxType.SWAP:
|
|
@@ -22285,15 +22277,14 @@ const keys = () => ({
|
|
|
22285
22277
|
// ============
|
|
22286
22278
|
// Transactions
|
|
22287
22279
|
// ============
|
|
22288
|
-
transaction: (fromChainId, toChainId, toTokenAddress, fromTokenAddress,
|
|
22280
|
+
transaction: (fromChainId, toChainId, toTokenAddress, fromTokenAddress, price, slippage, getGasOnDestination, sourceUserAddress, degenMode, destinationAddress, fallbackAddress, quoteOnly, fromChainType, preHook, postHook, overrideGasRefundAddress) => [
|
|
22289
22281
|
...keys().transactions(),
|
|
22290
22282
|
QueryKeys.Transaction,
|
|
22291
22283
|
fromChainId,
|
|
22292
22284
|
toChainId,
|
|
22293
22285
|
toTokenAddress,
|
|
22294
22286
|
fromTokenAddress,
|
|
22295
|
-
|
|
22296
|
-
toAmount,
|
|
22287
|
+
price,
|
|
22297
22288
|
slippage,
|
|
22298
22289
|
getGasOnDestination,
|
|
22299
22290
|
sourceUserAddress,
|
|
@@ -23158,7 +23149,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23158
23149
|
};
|
|
23159
23150
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23160
23151
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23161
|
-
const { fetchAllSecretBalances } = await import('./secretService-
|
|
23152
|
+
const { fetchAllSecretBalances } = await import('./secretService-BMYOBXhv.js');
|
|
23162
23153
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23163
23154
|
};
|
|
23164
23155
|
function getTokenAssetsKey(token) {
|
|
@@ -25015,7 +25006,10 @@ const useConfigStore = create(() => ({
|
|
|
25015
25006
|
isInitialized: false,
|
|
25016
25007
|
}));
|
|
25017
25008
|
const useTransactionStore = create((set, get) => ({
|
|
25009
|
+
fromPrice: undefined,
|
|
25010
|
+
txLocalId: undefined,
|
|
25018
25011
|
transactions: {},
|
|
25012
|
+
currentTransaction: undefined,
|
|
25019
25013
|
setTransactionState(txId, tx) {
|
|
25020
25014
|
if (!txId)
|
|
25021
25015
|
return;
|
|
@@ -26471,7 +26465,7 @@ function useStellarWallets() {
|
|
|
26471
26465
|
try {
|
|
26472
26466
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
26473
26467
|
const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module');
|
|
26474
|
-
const { formatStellarWallet } = await import('./stellarService.client-
|
|
26468
|
+
const { formatStellarWallet } = await import('./stellarService.client-DOrCdvCd.js');
|
|
26475
26469
|
const modules = [...initializeAllModules(), new LedgerModule()];
|
|
26476
26470
|
const promises = modules.map(async (module) => {
|
|
26477
26471
|
const isAvailable = await module.isAvailable();
|
|
@@ -27370,8 +27364,7 @@ const useMultiChainWallet = (chain) => {
|
|
|
27370
27364
|
|
|
27371
27365
|
const useSwap = () => {
|
|
27372
27366
|
const { initialAssets, defaultTokensPerChain, disabledChains, availableChains, } = useConfigStore((state) => state.config);
|
|
27373
|
-
const
|
|
27374
|
-
const toAmount = useTransactionStore((state) => state.toAmount);
|
|
27367
|
+
const fromPrice = useTransactionStore((state) => state.fromPrice);
|
|
27375
27368
|
const { swapRoute } = useSwapRoutePersistStore();
|
|
27376
27369
|
const { tokens } = useSquidTokens();
|
|
27377
27370
|
const queryClient = useQueryClient();
|
|
@@ -27429,17 +27422,8 @@ const useSwap = () => {
|
|
|
27429
27422
|
}),
|
|
27430
27423
|
};
|
|
27431
27424
|
}, [destAddressData, destAddressEnsData.data, toChain?.chainType]);
|
|
27432
|
-
const
|
|
27433
|
-
useTransactionStore.setState({
|
|
27434
|
-
fromAmount: amount || undefined,
|
|
27435
|
-
toAmount: undefined,
|
|
27436
|
-
});
|
|
27437
|
-
}, []);
|
|
27438
|
-
const toAmountChanged = useCallback((amount) => {
|
|
27439
|
-
useTransactionStore.setState({
|
|
27440
|
-
toAmount: amount || undefined,
|
|
27441
|
-
fromAmount: undefined,
|
|
27442
|
-
});
|
|
27425
|
+
const fromPriceChanged = useCallback((price) => {
|
|
27426
|
+
useTransactionStore.setState({ fromPrice: price || undefined });
|
|
27443
27427
|
}, []);
|
|
27444
27428
|
/**
|
|
27445
27429
|
* When user changes something from the SwapView
|
|
@@ -27580,10 +27564,8 @@ const useSwap = () => {
|
|
|
27580
27564
|
tokenItems,
|
|
27581
27565
|
onSwapChange,
|
|
27582
27566
|
invertSwaps,
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
fromAmountChanged,
|
|
27586
|
-
toAmountChanged,
|
|
27567
|
+
fromPrice,
|
|
27568
|
+
fromPriceChanged,
|
|
27587
27569
|
toToken,
|
|
27588
27570
|
fromToken,
|
|
27589
27571
|
fromChain,
|
|
@@ -27983,7 +27965,7 @@ function hederaWalletConnect(parameters) {
|
|
|
27983
27965
|
const optionalChains = config.chains.map((x) => x.id);
|
|
27984
27966
|
if (!optionalChains.length)
|
|
27985
27967
|
return;
|
|
27986
|
-
const { EthereumProvider } = await import('./index.es-
|
|
27968
|
+
const { EthereumProvider } = await import('./index.es-BfdAGErV.js');
|
|
27987
27969
|
const rawProvider = await EthereumProvider.init({
|
|
27988
27970
|
...restParameters,
|
|
27989
27971
|
disableProviderPing: true,
|
|
@@ -32107,7 +32089,7 @@ const useApproval = ({ squidRoute, }) => {
|
|
|
32107
32089
|
const publicClient = usePublicClient();
|
|
32108
32090
|
const queryClient = useQueryClient();
|
|
32109
32091
|
const squid = useSquidStore((state) => state.squid);
|
|
32110
|
-
const { fromChain, fromToken,
|
|
32092
|
+
const { fromChain, fromToken, fromPrice, isSameChain } = useSwap();
|
|
32111
32093
|
const { evmSigner } = useSigner({ chain: fromChain });
|
|
32112
32094
|
const { connector: activeConnector } = useAccount();
|
|
32113
32095
|
const { getChainType } = useSquidChains();
|
|
@@ -32280,7 +32262,7 @@ const useApproval = ({ squidRoute, }) => {
|
|
|
32280
32262
|
// This is to ensure we're using the latest expiry timestamp
|
|
32281
32263
|
if (squidRoute) {
|
|
32282
32264
|
queryClient.refetchQueries({
|
|
32283
|
-
queryKey: keys().transaction(squidRoute.params.fromChain, squidRoute.params.toChain, squidRoute.params.toToken, squidRoute.params.fromToken,
|
|
32265
|
+
queryKey: keys().transaction(squidRoute.params.fromChain, squidRoute.params.toChain, squidRoute.params.toToken, squidRoute.params.fromToken, fromPrice, squidRoute.params.slippage, squidRoute.params.receiveGasOnDestination, squidRoute.params.fromAddress, squidRoute.params.bypassGuardrails, squidRoute.params.toAddress, squidRoute.params.fallbackAddresses?.[0]?.address, squidRoute.params.quoteOnly, getChainType(squidRoute.params.fromChain), squidRoute.params.preHook, squidRoute.params.postHook,
|
|
32284
32266
|
// TODO: update types
|
|
32285
32267
|
squidRoute.params?.overrideGasRefundAddress),
|
|
32286
32268
|
});
|
|
@@ -36093,12 +36075,8 @@ const useGetRoute = () => {
|
|
|
36093
36075
|
* These data will be used to trigger the transaction
|
|
36094
36076
|
* @returns {Route} Route data
|
|
36095
36077
|
*/
|
|
36096
|
-
return useMutation(async ({ fromChain, toChain, fromToken, toToken, sourceUserAddress, destinationAddress, fromPrice
|
|
36097
|
-
if (!fromChain ||
|
|
36098
|
-
!toChain ||
|
|
36099
|
-
!fromToken ||
|
|
36100
|
-
!toToken ||
|
|
36101
|
-
(!fromPrice && !toPrice)) {
|
|
36078
|
+
return useMutation(async ({ fromChain, toChain, fromToken, toToken, sourceUserAddress, destinationAddress, fromPrice, bypassGuardrails, quoteOnly, fromChainType, postHook, preHook, overrideGasRefundAddress, }) => {
|
|
36079
|
+
if (!fromChain || !toChain || !fromToken || !toToken || !fromPrice) {
|
|
36102
36080
|
return undefined;
|
|
36103
36081
|
}
|
|
36104
36082
|
// Dispatch requestQuote event
|
|
@@ -36108,7 +36086,6 @@ const useGetRoute = () => {
|
|
|
36108
36086
|
fromToken: fromToken.address,
|
|
36109
36087
|
toToken: toToken.address,
|
|
36110
36088
|
fromAmount: fromPrice,
|
|
36111
|
-
toAmount: toPrice,
|
|
36112
36089
|
fromAddress: sourceUserAddress,
|
|
36113
36090
|
toAddress: destinationAddress,
|
|
36114
36091
|
});
|
|
@@ -36117,7 +36094,6 @@ const useGetRoute = () => {
|
|
|
36117
36094
|
const fromTokenAddress = fromToken.address;
|
|
36118
36095
|
const toTokenAddress = toToken.address;
|
|
36119
36096
|
const fromAmount = parseToBigInt(fromPrice?.toString() ?? "0", fromToken?.decimals).toString();
|
|
36120
|
-
const toAmount = parseToBigInt(toPrice?.toString() ?? "0", toToken?.decimals).toString();
|
|
36121
36097
|
const fromAddress = sourceUserAddress ??
|
|
36122
36098
|
chainTypeToZeroAddressMap[fromChainType ?? ChainType.EVM];
|
|
36123
36099
|
const params = {
|
|
@@ -36125,7 +36101,6 @@ const useGetRoute = () => {
|
|
|
36125
36101
|
fromToken: fromTokenAddress,
|
|
36126
36102
|
fromAddress,
|
|
36127
36103
|
fromAmount,
|
|
36128
|
-
toAmount,
|
|
36129
36104
|
toChain,
|
|
36130
36105
|
toToken: toTokenAddress,
|
|
36131
36106
|
toAddress: destinationAddress ?? "",
|
|
@@ -36147,7 +36122,7 @@ const useGetRoute = () => {
|
|
|
36147
36122
|
});
|
|
36148
36123
|
// Cache the route data
|
|
36149
36124
|
// Useful when the getRoute mutation is called from another hook
|
|
36150
|
-
queryClient.setQueryData(keys().transaction(fromChain, toChain, toToken.address, fromToken.address, fromPrice,
|
|
36125
|
+
queryClient.setQueryData(keys().transaction(fromChain, toChain, toToken.address, fromToken.address, fromPrice, config.slippage, config.enableGetGasOnDestination, sourceUserAddress, config.degenMode, destinationAddress, swapRoute?.fallbackAddress, quoteOnly, fromChainType, config.preHook, config.postHook, overrideGasRefundAddress), route);
|
|
36151
36126
|
return route;
|
|
36152
36127
|
});
|
|
36153
36128
|
};
|
|
@@ -36161,7 +36136,7 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36161
36136
|
const depositRefundAddress = useSwapRoutePersistStore((store) => store.swapRoute?.depositRefundAddress);
|
|
36162
36137
|
const { isAvailableAsPaymentMethod, isEnabled: isDepositAddressEnabled } = useDepositAddress();
|
|
36163
36138
|
const getRouteMutation = useGetRoute();
|
|
36164
|
-
const { fromChain, toChain,
|
|
36139
|
+
const { fromChain, toChain, fromPrice, destinationAddress: { address: destinationAddress } = {}, fromToken, toToken, } = useSwap();
|
|
36165
36140
|
const { connectedAddress: { address: sourceConnectedAddress }, } = useMultiChainWallet(fromChain);
|
|
36166
36141
|
// When the payment method is deposit address, users can specify a refund address on the source chain
|
|
36167
36142
|
// Tokens will be sent to this address in case of swap failure
|
|
@@ -36170,13 +36145,12 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36170
36145
|
const sourceUserAddress = isDepositAddressEnabled && isAvailableAsPaymentMethod
|
|
36171
36146
|
? depositRefundAddress ?? sourceConnectedAddress
|
|
36172
36147
|
: sourceConnectedAddress;
|
|
36173
|
-
const squidRouteQueryKeys = useMemo(() => keys().transaction(fromChain?.chainId, toChain?.chainId, toToken?.address, fromToken?.address,
|
|
36148
|
+
const squidRouteQueryKeys = useMemo(() => keys().transaction(fromChain?.chainId, toChain?.chainId, toToken?.address, fromToken?.address, fromPrice, config.slippage, config.enableGetGasOnDestination, sourceUserAddress, config.degenMode, destinationAddress, fallbackAddress, quoteOnly, fromChain?.chainType, config.preHook, config.postHook, config.overrideGasRefundAddress), [
|
|
36174
36149
|
fromChain?.chainId,
|
|
36175
36150
|
toChain?.chainId,
|
|
36176
36151
|
toToken?.address,
|
|
36177
36152
|
fromToken?.address,
|
|
36178
|
-
|
|
36179
|
-
toAmount,
|
|
36153
|
+
fromPrice,
|
|
36180
36154
|
config.slippage,
|
|
36181
36155
|
config.enableGetGasOnDestination,
|
|
36182
36156
|
sourceUserAddress,
|
|
@@ -36192,8 +36166,8 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36192
36166
|
const queryEnabled = enabled != undefined
|
|
36193
36167
|
? enabled
|
|
36194
36168
|
: squid !== undefined &&
|
|
36195
|
-
|
|
36196
|
-
|
|
36169
|
+
fromPrice !== undefined &&
|
|
36170
|
+
fromPrice !== "0" &&
|
|
36197
36171
|
toChain?.chainId !== undefined &&
|
|
36198
36172
|
toToken?.address !== undefined;
|
|
36199
36173
|
const queryClient = useQueryClient();
|
|
@@ -36211,8 +36185,7 @@ refetchIntervalInBackground = false, refetchInterval = 30000, quoteOnly = true,
|
|
|
36211
36185
|
toToken,
|
|
36212
36186
|
sourceUserAddress,
|
|
36213
36187
|
destinationAddress,
|
|
36214
|
-
fromPrice
|
|
36215
|
-
toPrice: toAmount,
|
|
36188
|
+
fromPrice,
|
|
36216
36189
|
bypassGuardrails: config.degenMode,
|
|
36217
36190
|
quoteOnly,
|
|
36218
36191
|
fromChainType: fromChain?.chainType,
|
|
@@ -36907,5 +36880,5 @@ const SquidProvider = ({ children, config, placeholder, }) => {
|
|
|
36907
36880
|
React.createElement(CosmosProvider, null, children)))))))))) : (placeholder);
|
|
36908
36881
|
};
|
|
36909
36882
|
|
|
36910
|
-
export { useSwap as $, AxelarStatusResponseType as A, useKeyboardNavigation as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useSquidQueryClient as E, useSquid as F, useStellarAccountActivation as G, HistoryTxType as H, useHederaAccountActivation as I, useAddressBookStore as J, useAssetsColorsStore as K, useFavoriteTokensStore as L, useHistoryStore as M, Nr as N, useSendTransactionStore as O, useConfigStore as P, QueryKeys as Q, useSquidStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useSwapRoutePersistStore as U, useTransactionStore as V, Wo as W, XamanXrplNetwork as X, ConnectingWalletStatus as Y, useWalletStore as Z, useDepositAddress as _, WindowWalletFlag as a, getXummClient as a$, useAllConnectedWalletBalances as a0, useAllTokensWithBalanceForChainType as a1, useCosmosBalance as a2, useEvmBalance as a3, useMultiChainBalance as a4, useMultipleTokenPrices as a5, useBitcoinNativeBalance as a6, useCosmosNativeBalance as a7, useEvmNativeBalance as a8, useNativeBalance as a9, useAddToken as aA, useAutoConnect as aB, useEnsDataForAddress as aC, useEnsSearch as aD, useGnosisContext as aE, useIsSameAddressAndGnosisContext as aF, useIntegratorContext as aG, useMultiChainWallet as aH, useSigner as aI, useWallet as aJ, useWallets as aK, useXrplTrustLine as aL, TX_STATUS_CONSTANTS as aM, FINAL_TRANSACTION_STATUSES as aN, useGetFiatQuote as aO, useGetOnRampConfig as aP, useExecuteFiatQuote as aQ, useFiatOnRampTxStatus as aR, useFiatTransactions as aS, useCurrencyDetails as aT, useCountryDetails as aU, useAvailableQuotes as aV, useRecommendedQuote as aW, useGetOnrampPaymentTypes as aX, useSuggestedFiatAmounts as aY, SquidProvider as aZ, EnsService as a_, useSolanaNativeBalance as aa, useStellarNativeBalance as ab, useSuiNativeBalance as ac, useXrplNativeBalance as ad, useNativeTokenForChain as ae, useSingleTokenPrice as af, useSquidTokens as ag, useHistoricalData as ah, useTokensData as ai, useEstimateSendTransaction as aj, useSendTransaction as ak, useSendTransactionGas as al, useAllTransactionsStatus as am, useApproval as an, useEstimate as ao, useEstimatePriceImpact as ap, useExecuteTransaction as aq, useGetRoute as ar, useGetRouteWrapper as as, useRouteWarnings as at, useSendTransactionStatus as au, useSwapTransactionStatus as av, useAvatar as aw, useHistory as ax, useUserParams as ay, useDebouncedValue as az, chainTypeToZeroAddressMap as b, adaptiveRound as b$, isXamanXAppContext as b0, getQueryHeaders as b1, getStatusCode as b2, is404Error as b3, assetsBaseUrl as b4, shareSubgraphId as b5, sortTokensBySharedSubgraphIds as b6, getSupportedChainIdsForDirection as b7, filterChains as b8, filterTokens as b9, getCosmosKey as bA, getKeysSettled as bB, getAllKeysForSupportedCosmosChains as bC, isCosmosAddressValid as bD, getCosmosSigningClient as bE, getCosmosChainInfosObject as bF, connectCosmosWallet as bG, isFallbackAddressNeeded as bH, suggestChainOrThrow as bI, normalizeError as bJ, transactionErrorCode as bK, isUserRejectionError as bL, getTransactionError as bM, handleTransactionErrorEvents as bN, isSwapRouteError as bO, isStatusError as bP, createQuoteRequestParamsHash as bQ, WidgetEvents as bR, EvmNetworkNotSupportedErrorCode as bS, addEthereumChain as bT, parseEvmAddress as bU, formatEvmWallet as bV, filterWagmiConnector as bW, waitForReceiptWithRetry as bX, getUserCountry as bY, getCountryData as bZ, getCurrencyData as b_, getTokenImage as ba, getNewSwapParamsFromInput as bb, sortAllTokens as bc, findToken as bd, findNativeToken as be, normalizeIbcAddress as bf, groupTokensBySymbol as bg, groupTokensByChainId as bh, filterViewableTokens as bi, getSecretNetworkBalances as bj, getTokenAssetsKey as bk, fetchAssetsColors as bl, initializeSquidWithAssetsColors as bm, isEmptyObject as bn, normalizeTokenSymbol as bo, areTokenSymbolsCompatible as bp, isEvmosChain as bq, getConfigWithDefaults as br, randomIntFromInterval as bs, getTokensForChain as bt, getFirstAvailableChainId as bu, fetchHighestBalanceToken as bv, getInitialOrDefaultTokenAddressForChain as bw, getInitialTokenAddressForChain as bx, filterTokensForDestination as by, getInitialChainIdFromConfig as bz, chainTypeToNativeTokenAddressMap as c,
|
|
36911
|
-
//# sourceMappingURL=index-
|
|
36883
|
+
export { useSwap as $, AxelarStatusResponseType as A, useKeyboardNavigation as B, CHAIN_IDS as C, DEFAULT_LOCALE as D, useSquidQueryClient as E, useSquid as F, useStellarAccountActivation as G, HistoryTxType as H, useHederaAccountActivation as I, useAddressBookStore as J, useAssetsColorsStore as K, useFavoriteTokensStore as L, useHistoryStore as M, Nr as N, useSendTransactionStore as O, useConfigStore as P, QueryKeys as Q, useSquidStore as R, SquidStatusErrorType as S, TransactionErrorType as T, useSwapRoutePersistStore as U, useTransactionStore as V, Wo as W, XamanXrplNetwork as X, ConnectingWalletStatus as Y, useWalletStore as Z, useDepositAddress as _, WindowWalletFlag as a, getXummClient as a$, useAllConnectedWalletBalances as a0, useAllTokensWithBalanceForChainType as a1, useCosmosBalance as a2, useEvmBalance as a3, useMultiChainBalance as a4, useMultipleTokenPrices as a5, useBitcoinNativeBalance as a6, useCosmosNativeBalance as a7, useEvmNativeBalance as a8, useNativeBalance as a9, useAddToken as aA, useAutoConnect as aB, useEnsDataForAddress as aC, useEnsSearch as aD, useGnosisContext as aE, useIsSameAddressAndGnosisContext as aF, useIntegratorContext as aG, useMultiChainWallet as aH, useSigner as aI, useWallet as aJ, useWallets as aK, useXrplTrustLine as aL, TX_STATUS_CONSTANTS as aM, FINAL_TRANSACTION_STATUSES as aN, useGetFiatQuote as aO, useGetOnRampConfig as aP, useExecuteFiatQuote as aQ, useFiatOnRampTxStatus as aR, useFiatTransactions as aS, useCurrencyDetails as aT, useCountryDetails as aU, useAvailableQuotes as aV, useRecommendedQuote as aW, useGetOnrampPaymentTypes as aX, useSuggestedFiatAmounts as aY, SquidProvider as aZ, EnsService as a_, useSolanaNativeBalance as aa, useStellarNativeBalance as ab, useSuiNativeBalance as ac, useXrplNativeBalance as ad, useNativeTokenForChain as ae, useSingleTokenPrice as af, useSquidTokens as ag, useHistoricalData as ah, useTokensData as ai, useEstimateSendTransaction as aj, useSendTransaction as ak, useSendTransactionGas as al, useAllTransactionsStatus as am, useApproval as an, useEstimate as ao, useEstimatePriceImpact as ap, useExecuteTransaction as aq, useGetRoute as ar, useGetRouteWrapper as as, useRouteWarnings as at, useSendTransactionStatus as au, useSwapTransactionStatus as av, useAvatar as aw, useHistory as ax, useUserParams as ay, useDebouncedValue as az, chainTypeToZeroAddressMap as b, adaptiveRound as b$, isXamanXAppContext as b0, getQueryHeaders as b1, getStatusCode as b2, is404Error as b3, assetsBaseUrl as b4, shareSubgraphId as b5, sortTokensBySharedSubgraphIds as b6, getSupportedChainIdsForDirection as b7, filterChains as b8, filterTokens as b9, getCosmosKey as bA, getKeysSettled as bB, getAllKeysForSupportedCosmosChains as bC, isCosmosAddressValid as bD, getCosmosSigningClient as bE, getCosmosChainInfosObject as bF, connectCosmosWallet as bG, isFallbackAddressNeeded as bH, suggestChainOrThrow as bI, normalizeError as bJ, transactionErrorCode as bK, isUserRejectionError as bL, getTransactionError as bM, handleTransactionErrorEvents as bN, isSwapRouteError as bO, isStatusError as bP, createQuoteRequestParamsHash as bQ, WidgetEvents as bR, EvmNetworkNotSupportedErrorCode as bS, addEthereumChain as bT, parseEvmAddress as bU, formatEvmWallet as bV, filterWagmiConnector as bW, waitForReceiptWithRetry as bX, getUserCountry as bY, getCountryData as bZ, getCurrencyData as b_, getTokenImage as ba, getNewSwapParamsFromInput as bb, sortAllTokens as bc, findToken as bd, findNativeToken as be, normalizeIbcAddress as bf, groupTokensBySymbol as bg, groupTokensByChainId as bh, filterViewableTokens as bi, getSecretNetworkBalances as bj, getTokenAssetsKey as bk, fetchAssetsColors as bl, initializeSquidWithAssetsColors as bm, isEmptyObject as bn, normalizeTokenSymbol as bo, areTokenSymbolsCompatible as bp, isEvmosChain as bq, getConfigWithDefaults as br, randomIntFromInterval as bs, getTokensForChain as bt, getFirstAvailableChainId as bu, fetchHighestBalanceToken as bv, getInitialOrDefaultTokenAddressForChain as bw, getInitialTokenAddressForChain as bx, filterTokensForDestination as by, getInitialChainIdFromConfig as bz, chainTypeToNativeTokenAddressMap as c, isEvmChainNotSupportedError as c$, getSuggestedAmountsForCurrency as c0, HederaExtensionHelper as c1, convertHederaAccountIdToEvmAddress as c2, convertEvmAddressToHederaAccountId as c3, scaleHbarToWei as c4, scaleWeiToHbar as c5, parseToBigInt as c6, roundNumericValue as c7, formatUnitsRounded as c8, formatTokenAmount as c9, isChainflipBridgeTransaction as cA, isOnChainTxData as cB, getHistoryTransactionId as cC, getStepStatuses as cD, getHalfSuccessState as cE, getStepsInfos as cF, getSwapTxStatusRefetchInterval as cG, getSendTxStatusRefetchInterval as cH, chainflipMultihopBridgeType as cI, getBridgeType as cJ, getTransactionStatus as cK, getTransactionEndStatus as cL, isHistoryTransactionPending as cM, isHistoryTransactionFailed as cN, isHistoryTransactionWarning as cO, isHistoryTransactionEnded as cP, formatHash as cQ, isWalletAddressValid as cR, redirectToExtensionsStore as cS, accessProperty as cT, populateWallets as cU, getDefaultChain as cV, sortWallets as cW, areSameAddress as cX, sortAddressBook as cY, calculateTotalUsdBalanceUSD as cZ, addTokenToWallet as c_, formatUsdAmount as ca, trimExtraDecimals as cb, getNumericValue as cc, cleanAmount as cd, convertTokenAmountToUSD as ce, convertUSDToTokenAmount as cf, calculateTotal24hChange as cg, getRouteExpiry as ch, searchTokens as ci, filterSolanaWallets as cj, isSolanaAddressValid as ck, executeSolanaSwap as cl, executeSolanaTransfer as cm, formatTransactionHistoryDate as cn, getAxelarExplorerTxUrl as co, getSourceExplorerTxUrl as cp, getMainExplorerUrl as cq, formatDistance as cr, formatSeconds as cs, formatSwapTxStatusResponseForStorage as ct, simplifyRouteAction as cu, fetchSwapTransactionStatus as cv, compareTransactionIds as cw, isCoralBridgeAction as cx, sleep as cy, isDepositRoute as cz, definedInWindow as d, getWalletSupportedChainTypes as d0, getConnectorForChainType as d1, walletSupportsChainType as d2, connectWallet as d3, cancelConnectWallet as d4, isProblematicConnector as d5, mergeWallets as d6, isXionSmartContractAddress as d7, isXrplAddressValid as d8, buildXrplTrustSetTx as d9, getXrplNetwork as da, parseXrplPaymentTx as db, 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, useHederaTokenAssociations as z };
|
|
36884
|
+
//# sourceMappingURL=index-BGVXRZI6.js.map
|