@0xsquid/react-hooks 8.9.0 → 8.9.1-beta.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.
Files changed (26) hide show
  1. package/dist/core/connectors/bitcoin/bitcoinFeatures.d.ts +53 -0
  2. package/dist/core/connectors/bitcoin/errors/index.d.ts +3 -0
  3. package/dist/core/connectors/bitcoin/wallets/index.d.ts +1 -0
  4. package/dist/core/connectors/bitcoin/wallets/phantom.d.ts +10 -26
  5. package/dist/core/connectors/bitcoin/wallets/standard.d.ts +30 -0
  6. package/dist/{index-BL_AUWQg.js → index-Ypw6i6uY.js} +103 -39
  7. package/dist/index-Ypw6i6uY.js.map +1 -0
  8. package/dist/{index-DcBFug8t.js → index-sCLxPcqi.js} +103 -39
  9. package/dist/index-sCLxPcqi.js.map +1 -0
  10. package/dist/{index.es-1XEAWjab.js → index.es-B2QD8f3q.js} +3 -3
  11. package/dist/{index.es-1XEAWjab.js.map → index.es-B2QD8f3q.js.map} +1 -1
  12. package/dist/{index.es-DSQHpime.js → index.es-Bot12hgd.js} +3 -3
  13. package/dist/{index.es-DSQHpime.js.map → index.es-Bot12hgd.js.map} +1 -1
  14. package/dist/index.esm.js +2 -2
  15. package/dist/index.js +2 -2
  16. package/dist/{secretService-DxQ78j5I.js → secretService-BAK4sBb7.js} +3 -3
  17. package/dist/{secretService-DxQ78j5I.js.map → secretService-BAK4sBb7.js.map} +1 -1
  18. package/dist/{secretService-B1SDXLS1.js → secretService-C3jMjsK0.js} +3 -3
  19. package/dist/{secretService-B1SDXLS1.js.map → secretService-C3jMjsK0.js.map} +1 -1
  20. package/dist/{stellarService.client-CkP5ng2n.js → stellarService.client-DkJ6WAdl.js} +3 -3
  21. package/dist/{stellarService.client-CkP5ng2n.js.map → stellarService.client-DkJ6WAdl.js.map} +1 -1
  22. package/dist/{stellarService.client-C4TLBEpm.js → stellarService.client-SrhXgRGB.js} +3 -3
  23. package/dist/{stellarService.client-C4TLBEpm.js.map → stellarService.client-SrhXgRGB.js.map} +1 -1
  24. package/package.json +1 -1
  25. package/dist/index-BL_AUWQg.js.map +0 -1
  26. package/dist/index-DcBFug8t.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ import type { IdentifierString, WalletAccount, WalletWithFeatures } from "@wallet-standard/core";
2
+ /**
3
+ * Local mirror of the Bitcoin extension to the Wallet Standard.
4
+ *
5
+ * These identifiers and shapes are defined by the cross-wallet Bitcoin Wallet
6
+ * Standard (github.com/ExodusMovement/bitcoin-wallet-standard, the spec Phantom
7
+ * points integrators at). They're kept here instead of pulling the `0.0.x`
8
+ * `@exodus/bitcoin-wallet-standard-*` packages so the SDK depends only on the
9
+ * already-present `@wallet-standard/core`.
10
+ */
11
+ export type BitcoinAddressPurpose = "ordinals" | "payment";
12
+ export declare const BitcoinConnect = "bitcoin:connect";
13
+ export interface BitcoinConnectInput {
14
+ purposes: BitcoinAddressPurpose[];
15
+ }
16
+ export interface BitcoinConnectOutput {
17
+ accounts: readonly WalletAccount[];
18
+ }
19
+ export type BitcoinConnectFeature = {
20
+ readonly [BitcoinConnect]: {
21
+ readonly version: "1.0.0";
22
+ readonly connect: (input: BitcoinConnectInput) => Promise<BitcoinConnectOutput>;
23
+ };
24
+ };
25
+ export declare const BitcoinSignTransaction = "bitcoin:signTransaction";
26
+ export interface BitcoinInputToSign {
27
+ account: WalletAccount;
28
+ signingIndexes: number[];
29
+ }
30
+ export interface BitcoinSignTransactionInput {
31
+ /** PSBT as raw bytes. */
32
+ psbt: Uint8Array;
33
+ inputsToSign: BitcoinInputToSign[];
34
+ chain?: IdentifierString;
35
+ }
36
+ export interface BitcoinSignTransactionOutput {
37
+ /** Signed PSBT as raw bytes. */
38
+ signedPsbt: Uint8Array;
39
+ }
40
+ export type BitcoinSignTransactionFeature = {
41
+ readonly [BitcoinSignTransaction]: {
42
+ readonly version: "1.0.0";
43
+ readonly signTransaction: (...inputs: readonly BitcoinSignTransactionInput[]) => Promise<readonly BitcoinSignTransactionOutput[]>;
44
+ };
45
+ };
46
+ export type BitcoinStandardFeatures = BitcoinConnectFeature & BitcoinSignTransactionFeature;
47
+ export type WalletWithBitcoinFeatures = WalletWithFeatures<Partial<BitcoinStandardFeatures>>;
48
+ export declare const REQUIRED_BITCOIN_FEATURES: readonly ["bitcoin:connect", "bitcoin:signTransaction"];
49
+ /**
50
+ * Type guard: the wallet exposes the Bitcoin features this SDK needs (connect +
51
+ * signTransaction). Wallets advertising only a subset are treated as unsupported.
52
+ */
53
+ export declare function hasBitcoinFeatures(wallet: WalletWithBitcoinFeatures): wallet is WalletWithFeatures<BitcoinStandardFeatures>;
@@ -10,4 +10,7 @@ export declare class BitcoinConnectorTransactionFailedError extends BitcoinConne
10
10
  export declare class BitcoinConnectorInvalidAccountError extends BitcoinConnectorError {
11
11
  constructor();
12
12
  }
13
+ export declare class BitcoinConnectorFeatureNotSupportedError extends BitcoinConnectorError {
14
+ constructor(providerName: string, feature: string);
15
+ }
13
16
  export {};
@@ -1,3 +1,4 @@
1
1
  export { KeplrConnector } from "./keplr";
2
2
  export { PhantomConnector } from "./phantom";
3
+ export { BitcoinStandardConnector } from "./standard";
3
4
  export { UnisatConnector } from "./unisat";
@@ -1,27 +1,11 @@
1
- import { BitcoinConnector } from "../../../../core/types/bitcoin";
2
- export interface PhantomBitcoinAccount {
3
- address: string;
4
- publicKey: string;
5
- addressType: "p2tr" | "p2wpkh" | "p2sh" | "p2pkh";
6
- purpose: "payment" | "ordinals";
1
+ import { BitcoinStandardConnector } from "./standard";
2
+ /**
3
+ * Phantom Bitcoin connector via the Bitcoin Wallet Standard.
4
+ *
5
+ * Phantom deprecated the injected `window.phantom.bitcoin` provider in favour of
6
+ * the Wallet Standard; this resolves Phantom from the registry by name and signs
7
+ * through the standard Bitcoin features. See {@link BitcoinStandardConnector}.
8
+ */
9
+ export declare class PhantomConnector extends BitcoinStandardConnector {
10
+ constructor();
7
11
  }
8
- interface PhantomProvider {
9
- requestAccounts: () => Promise<PhantomBitcoinAccount[]>;
10
- signPSBT: (psbt: Uint8Array, options: {
11
- inputsToSign: {
12
- address: string;
13
- signingIndexes: number[];
14
- }[];
15
- }) => Promise<Uint8Array>;
16
- }
17
- export declare class PhantomConnector implements BitcoinConnector {
18
- get getProvider(): PhantomProvider;
19
- requestAccount(): Promise<{
20
- address: string;
21
- }>;
22
- sendBTC(to: string, amount: number): Promise<{
23
- txHash: string;
24
- }>;
25
- private signPsbt;
26
- }
27
- export {};
@@ -0,0 +1,30 @@
1
+ import { BitcoinConnector } from "../../../../core/types/bitcoin";
2
+ export interface BitcoinStandardConnectorParams {
3
+ /**
4
+ * Name the wallet registers under the Wallet Standard (`wallet.name`),
5
+ * e.g. "Phantom". Matched case-insensitively against the registry.
6
+ */
7
+ walletName: string;
8
+ }
9
+ /**
10
+ * Bitcoin connector backed by the Bitcoin Wallet Standard.
11
+ *
12
+ * Discovers the wallet from the Wallet Standard registry at call time (mirroring
13
+ * how Solana/Sui wallets are resolved) and connects/signs through the
14
+ * `bitcoin:connect` and `bitcoin:signTransaction` features instead of a
15
+ * wallet-specific injected provider. Configure it with a `walletName` to support
16
+ * any wallet exposing the Bitcoin Wallet Standard — Phantom is the first consumer.
17
+ */
18
+ export declare class BitcoinStandardConnector implements BitcoinConnector {
19
+ private readonly walletName;
20
+ constructor({ walletName }: BitcoinStandardConnectorParams);
21
+ private getWallet;
22
+ private connectAccount;
23
+ requestAccount(): Promise<{
24
+ address: string;
25
+ }>;
26
+ sendBTC(to: string, amount: number): Promise<{
27
+ txHash: string;
28
+ }>;
29
+ private signAndBroadcast;
30
+ }
@@ -3,6 +3,7 @@ import { zeroAddress as zeroAddress$1, parseUnits, formatUnits, isAddress, Switc
3
3
  import React, { useMemo, useCallback, useState, useEffect, createContext, useContext, useRef } from 'react';
4
4
  import { useQuery, useMutation, useQueries, useQueryClient, QueryClient, QueryClientProvider } from '@tanstack/react-query';
5
5
  import { fromBech32 } from '@cosmjs/encoding';
6
+ import { getWallets } from '@wallet-standard/core';
6
7
  import * as bitcoin from 'bitcoinjs-lib';
7
8
  import { address } from 'bitcoinjs-lib';
8
9
  import * as ecc from '@bitcoinerlab/secp256k1';
@@ -24,7 +25,6 @@ import { create } from 'zustand';
24
25
  import { persist } from 'zustand/middleware';
25
26
  import { useAccount, useConnectors, useConnect, useDisconnect, useSwitchChain, useBalance, useReadContract, createConfig, http, useWalletClient, usePublicClient, WagmiProvider } from 'wagmi';
26
27
  import SafeAppsSDK, { TransactionStatus as TransactionStatus$1 } from '@safe-global/safe-apps-sdk';
27
- import { getWallets } from '@wallet-standard/core';
28
28
  import { SlushWallet } from '@mysten/slush-wallet';
29
29
  import { StargateClient, SigningStargateClient } from '@cosmjs/stargate';
30
30
  import { SuiClient } from '@mysten/sui/client';
@@ -4709,6 +4709,11 @@ class BitcoinConnectorInvalidAccountError extends BitcoinConnectorError {
4709
4709
  super("Bitcoin account is invalid");
4710
4710
  }
4711
4711
  }
4712
+ class BitcoinConnectorFeatureNotSupportedError extends BitcoinConnectorError {
4713
+ constructor(providerName, feature) {
4714
+ super(`Bitcoin provider ${providerName} does not support ${feature}`);
4715
+ }
4716
+ }
4712
4717
 
4713
4718
  class KeplrConnector {
4714
4719
  get getProvider() {
@@ -4737,6 +4742,20 @@ class KeplrConnector {
4737
4742
  }
4738
4743
  }
4739
4744
 
4745
+ const BitcoinConnect = "bitcoin:connect";
4746
+ const BitcoinSignTransaction = "bitcoin:signTransaction";
4747
+ const REQUIRED_BITCOIN_FEATURES = [
4748
+ BitcoinConnect,
4749
+ BitcoinSignTransaction,
4750
+ ];
4751
+ /**
4752
+ * Type guard: the wallet exposes the Bitcoin features this SDK needs (connect +
4753
+ * signTransaction). Wallets advertising only a subset are treated as unsupported.
4754
+ */
4755
+ function hasBitcoinFeatures(wallet) {
4756
+ return REQUIRED_BITCOIN_FEATURES.every((feature) => feature in wallet.features);
4757
+ }
4758
+
4740
4759
  bitcoin.initEccLib(ecc);
4741
4760
  const network = bitcoin.networks.bitcoin;
4742
4761
  const fromHexString = (hexString) => {
@@ -4826,55 +4845,100 @@ async function getTransactionStatus$1(txHash) {
4826
4845
  }
4827
4846
 
4828
4847
  const MAINNET = bitcoin.networks.bitcoin;
4829
- class PhantomConnector {
4830
- get getProvider() {
4831
- const provider = window?.phantom?.bitcoin;
4832
- if (!provider) {
4833
- throw new BitcoinConnectorProviderNotFoundError("Phantom");
4848
+ /**
4849
+ * Bitcoin connector backed by the Bitcoin Wallet Standard.
4850
+ *
4851
+ * Discovers the wallet from the Wallet Standard registry at call time (mirroring
4852
+ * how Solana/Sui wallets are resolved) and connects/signs through the
4853
+ * `bitcoin:connect` and `bitcoin:signTransaction` features instead of a
4854
+ * wallet-specific injected provider. Configure it with a `walletName` to support
4855
+ * any wallet exposing the Bitcoin Wallet Standard — Phantom is the first consumer.
4856
+ */
4857
+ class BitcoinStandardConnector {
4858
+ walletName;
4859
+ constructor({ walletName }) {
4860
+ this.walletName = walletName;
4861
+ }
4862
+ getWallet() {
4863
+ const wallet = getWallets()
4864
+ .get()
4865
+ .find((candidate) => candidate.name.toLowerCase() === this.walletName.toLowerCase());
4866
+ if (!wallet) {
4867
+ throw new BitcoinConnectorProviderNotFoundError(this.walletName);
4834
4868
  }
4835
- return provider;
4869
+ const bitcoinWallet = wallet;
4870
+ if (!hasBitcoinFeatures(bitcoinWallet)) {
4871
+ throw new BitcoinConnectorFeatureNotSupportedError(this.walletName, "Bitcoin Wallet Standard");
4872
+ }
4873
+ return bitcoinWallet;
4836
4874
  }
4837
- async requestAccount() {
4838
- const phantomAccounts = await this.getProvider.requestAccounts();
4839
- if (!phantomAccounts)
4840
- throw new BitcoinConnectorInvalidAccountError();
4841
- const paymentAccount = phantomAccounts.find((account) => account.purpose === "payment");
4842
- if (typeof paymentAccount?.address !== "string") {
4875
+ async connectAccount(purpose) {
4876
+ const wallet = this.getWallet();
4877
+ const connect = wallet.features[BitcoinConnect]?.connect;
4878
+ if (!connect) {
4879
+ throw new BitcoinConnectorFeatureNotSupportedError(this.walletName, BitcoinConnect);
4880
+ }
4881
+ const { accounts } = await connect({ purposes: [purpose] });
4882
+ // `purpose` is a user preference, not a guarantee (per Phantom's docs), but
4883
+ // requesting a single purpose returns the matching account first.
4884
+ const account = accounts[0];
4885
+ if (typeof account?.address !== "string") {
4843
4886
  throw new BitcoinConnectorInvalidAccountError();
4844
4887
  }
4888
+ return account;
4889
+ }
4890
+ async requestAccount() {
4891
+ const account = await this.connectAccount("payment");
4845
4892
  return {
4846
- address: paymentAccount.address,
4893
+ address: account.address,
4847
4894
  };
4848
4895
  }
4849
4896
  async sendBTC(to, amount) {
4850
- const { address } = await this.requestAccount();
4851
- const { psbtHex } = await createSendBtcPsbt(address, to, amount);
4852
- const { txId } = await this.signPsbt(psbtHex);
4897
+ const account = await this.connectAccount("payment");
4898
+ const { psbtHex } = await createSendBtcPsbt(account.address, to, amount);
4899
+ const txId = await this.signAndBroadcast(psbtHex, account);
4853
4900
  if (!txId)
4854
4901
  throw new BitcoinConnectorTransactionFailedError();
4855
4902
  return { txHash: txId };
4856
4903
  }
4857
- async signPsbt(psbtHex) {
4858
- const { address: paymentAddress } = await this.requestAccount();
4859
- const toSignPsbt = bitcoin.Psbt.fromHex(String(psbtHex), {
4860
- network: MAINNET,
4861
- });
4862
- const inputs = toSignPsbt.data.inputs;
4863
- const inputsToSign = [
4864
- {
4865
- // Need to sign each input with the payment address
4866
- address: paymentAddress,
4867
- signingIndexes: inputs.map((_, index) => index),
4868
- },
4869
- ];
4870
- const signedPsbtBytes = await this.getProvider.signPSBT(fromHexString(psbtHex), {
4871
- inputsToSign,
4904
+ async signAndBroadcast(psbtHex, account) {
4905
+ const wallet = this.getWallet();
4906
+ const signTransaction = wallet.features[BitcoinSignTransaction]?.signTransaction;
4907
+ if (!signTransaction) {
4908
+ throw new BitcoinConnectorFeatureNotSupportedError(this.walletName, BitcoinSignTransaction);
4909
+ }
4910
+ const unsignedPsbt = bitcoin.Psbt.fromHex(psbtHex, { network: MAINNET });
4911
+ const signingIndexes = unsignedPsbt.data.inputs.map((_, index) => index);
4912
+ const [result] = await signTransaction({
4913
+ psbt: fromHexString(psbtHex),
4914
+ inputsToSign: [
4915
+ {
4916
+ // All inputs are funded from the payment account.
4917
+ account,
4918
+ signingIndexes,
4919
+ },
4920
+ ],
4872
4921
  });
4873
- const signedPsbt = bitcoin.Psbt.fromBuffer(signedPsbtBytes);
4922
+ if (!result?.signedPsbt) {
4923
+ throw new BitcoinConnectorTransactionFailedError();
4924
+ }
4925
+ const signedPsbt = bitcoin.Psbt.fromBuffer(result.signedPsbt);
4874
4926
  signedPsbt.finalizeAllInputs();
4875
4927
  const tx = signedPsbt.extractTransaction();
4876
- const txId = await broadcastTx(tx.toHex());
4877
- return { txId };
4928
+ return broadcastTx(tx.toHex());
4929
+ }
4930
+ }
4931
+
4932
+ /**
4933
+ * Phantom Bitcoin connector via the Bitcoin Wallet Standard.
4934
+ *
4935
+ * Phantom deprecated the injected `window.phantom.bitcoin` provider in favour of
4936
+ * the Wallet Standard; this resolves Phantom from the registry by name and signs
4937
+ * through the standard Bitcoin features. See {@link BitcoinStandardConnector}.
4938
+ */
4939
+ class PhantomConnector extends BitcoinStandardConnector {
4940
+ constructor() {
4941
+ super({ walletName: "Phantom" });
4878
4942
  }
4879
4943
  }
4880
4944
 
@@ -23347,7 +23411,7 @@ const filterViewableTokens = (tokens, config, direction) => {
23347
23411
  };
23348
23412
  const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
23349
23413
  const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
23350
- const { fetchAllSecretBalances } = await import('./secretService-DxQ78j5I.js');
23414
+ const { fetchAllSecretBalances } = await import('./secretService-BAK4sBb7.js');
23351
23415
  return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
23352
23416
  };
23353
23417
  function getTokenAssetsKey(token) {
@@ -26745,7 +26809,7 @@ function useStellarWallets() {
26745
26809
  try {
26746
26810
  const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
26747
26811
  const { LedgerModule } = await import('@creit.tech/stellar-wallets-kit/modules/ledger.module.mjs');
26748
- const { formatStellarWallet } = await import('./stellarService.client-CkP5ng2n.js');
26812
+ const { formatStellarWallet } = await import('./stellarService.client-DkJ6WAdl.js');
26749
26813
  const modules = [...initializeAllModules(), new LedgerModule()];
26750
26814
  const promises = modules.map(async (module) => {
26751
26815
  const isAvailable = await module.isAvailable();
@@ -30077,7 +30141,7 @@ function hederaWalletConnect(parameters) {
30077
30141
  const optionalChains = config.chains.map((x) => x.id);
30078
30142
  if (!optionalChains.length)
30079
30143
  return;
30080
- const { EthereumProvider } = await import('./index.es-DSQHpime.js');
30144
+ const { EthereumProvider } = await import('./index.es-Bot12hgd.js');
30081
30145
  const rawProvider = await EthereumProvider.init({
30082
30146
  ...restParameters,
30083
30147
  disableProviderPing: true,
@@ -37477,4 +37541,4 @@ const SquidProvider = ({ children, config, placeholder, }) => {
37477
37541
  };
37478
37542
 
37479
37543
  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, useSwapTransactionStatus as aA, useAvatar as aB, useHistory 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, 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, useEstimate as at, useEstimatePriceImpact as au, useExecuteTransaction as av, useGetRoute as aw, useGetRouteWrapper as ax, useRouteWarnings as ay, useSendTransactionStatus 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, isHistoryTransactionPending 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, isActionCompletedOnSourceTx as cM, sleep as cN, isDepositRoute as cO, isChainflipBridgeTransaction as cP, isOnChainTxData as cQ, getHistoryTransactionId as cR, getStepStatuses as cS, getHalfSuccessState as cT, getStepsInfos as cU, getSwapTxStatusRefetchInterval as cV, getSendTxStatusRefetchInterval as cW, chainflipMultihopBridgeType as cX, getBridgeType as cY, getTransactionStatus as cZ, getTransactionEndStatus 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, isHistoryTransactionFailed as d0, isHistoryTransactionWarning as d1, isHistoryTransactionEnded as d2, formatHash as d3, isWalletAddressValid as d4, redirectToExtensionsStore as d5, accessProperty as d6, populateWallets as d7, getDefaultChain as d8, sortWallets as d9, areSameAddress as da, sortAddressBook as db, calculateTotalUsdBalanceUSD as dc, addTokenToWallet as dd, isEvmChainNotSupportedError as de, getWalletSupportedChainTypes as df, getConnectorForChainType as dg, walletSupportsChainType as dh, connectWallet as di, cancelConnectWallet as dj, isProblematicConnector as dk, mergeWallets as dl, isXionSmartContractAddress as dm, isXrplAddressValid as dn, buildXrplTrustSetTx as dp, getXrplNetwork as dq, parseXrplPaymentTx as dr, parseXrplTokenAddress as ds, 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 };
37480
- //# sourceMappingURL=index-BL_AUWQg.js.map
37544
+ //# sourceMappingURL=index-Ypw6i6uY.js.map