@0xsquid/react-hooks 8.0.0-beta.3 → 8.0.0-beta.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.
Files changed (49) hide show
  1. package/dist/core/client/index.d.ts +2 -0
  2. package/dist/core/constants.d.ts +3 -0
  3. package/dist/core/externalLinks.d.ts +0 -16
  4. package/dist/core/index.d.ts +1 -1
  5. package/dist/core/providers/StellarProvider.d.ts +18 -0
  6. package/dist/core/queries/queries-keys.d.ts +5 -1
  7. package/dist/core/types/config.d.ts +4 -1
  8. package/dist/core/types/error.d.ts +0 -16
  9. package/dist/core/types/stellar.d.ts +3 -0
  10. package/dist/core/types/wallet.d.ts +12 -2
  11. package/dist/core/types/xrpl.d.ts +15 -2
  12. package/dist/core/wallets.d.ts +1 -1
  13. package/dist/hooks/chains/useSquidChains.d.ts +3 -1
  14. package/dist/hooks/index.d.ts +1 -0
  15. package/dist/hooks/stellar/useStellar.d.ts +2 -0
  16. package/dist/hooks/stellar/useStellarAccountActivation.d.ts +14 -0
  17. package/dist/hooks/stellar/useStellarWallets.d.ts +4 -0
  18. package/dist/hooks/tokens/useBalance.d.ts +1 -0
  19. package/dist/hooks/tokens/useNativeBalance.d.ts +1 -0
  20. package/dist/hooks/tokens/useSquidTokens.d.ts +1 -0
  21. package/dist/hooks/transaction/useGetRoute.d.ts +3 -0
  22. package/dist/hooks/wallet/useMultiChainWallet.d.ts +52 -6
  23. package/dist/hooks/wallet/useSigner.d.ts +1 -0
  24. package/dist/hooks/wallet/useWallet.d.ts +54 -0
  25. package/dist/hooks/xrpl/useXrplWallets.d.ts +2 -0
  26. package/dist/index.esm.js +40883 -35
  27. package/dist/index.esm.js.map +1 -1
  28. package/dist/index.js +41127 -294
  29. package/dist/index.js.map +1 -1
  30. package/dist/{secretService-BsGfZUxs.js → secretService-Cpow6OzM.js} +12 -2
  31. package/dist/{secretService-BsGfZUxs.js.map → secretService-Cpow6OzM.js.map} +1 -1
  32. package/dist/{secretService-BkpBdhVj.js → secretService-DEnA8PcE.js} +12 -2
  33. package/dist/{secretService-BkpBdhVj.js.map → secretService-DEnA8PcE.js.map} +1 -1
  34. package/dist/services/external/rpcService.d.ts +2 -0
  35. package/dist/services/external/stellarApiClient.d.ts +5 -0
  36. package/dist/services/external/stellarRpcClient.d.ts +26 -0
  37. package/dist/services/internal/assetsService.d.ts +2 -3
  38. package/dist/services/internal/sendTransaction.d.ts +13 -0
  39. package/dist/services/internal/stellarService.d.ts +10 -0
  40. package/dist/services/internal/walletService.d.ts +3 -0
  41. package/package.json +7 -2
  42. package/dist/index-Bp9Cc-ku.js +0 -6021
  43. package/dist/index-Bp9Cc-ku.js.map +0 -1
  44. package/dist/index-C5g8RJzs.js +0 -41268
  45. package/dist/index-C5g8RJzs.js.map +0 -1
  46. package/dist/index-CFmQoIzk.js +0 -6021
  47. package/dist/index-CFmQoIzk.js.map +0 -1
  48. package/dist/index-DGBju8ZH.js +0 -41015
  49. package/dist/index-DGBju8ZH.js.map +0 -1
@@ -3,6 +3,7 @@ import { StargateClient } from "@cosmjs/stargate";
3
3
  import { SuiClient } from "@mysten/sui/client";
4
4
  import { Connection as SolanaConnection } from "@solana/web3.js";
5
5
  import { JsonRpcProvider } from "ethers";
6
+ import { StellarRpcClient } from "../../services/external/stellarRpcClient";
6
7
  import { XrplRpcClient } from "../../services/external/xrplRpcClient";
7
8
  type ChainTypeToClient = {
8
9
  [ChainType.EVM]: JsonRpcProvider;
@@ -11,6 +12,7 @@ type ChainTypeToClient = {
11
12
  [ChainType.BTC]: null;
12
13
  [ChainType.SUI]: SuiClient;
13
14
  [ChainType.XRPL]: XrplRpcClient;
15
+ [ChainType.STELLAR]: StellarRpcClient;
14
16
  };
15
17
  export declare function getClient<T extends ChainType>(chain: ChainData): Promise<ChainTypeToClient[T]>;
16
18
  export {};
@@ -20,6 +20,7 @@ export declare const nativeSolanaTokenAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeee
20
20
  export declare const nativeBitcoinTokenAddress = "satoshi";
21
21
  export declare const nativeSuiTokenAddress = "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
22
22
  export declare const nativeXrplTokenAddress = "xrp";
23
+ export declare const nativeStellarTokenAddress = "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
23
24
  export declare const defaultSlippage: SlippageOption;
24
25
  export declare const destinationAddressResetValue = "null";
25
26
  export declare const fallbackAddressResetValue = "null";
@@ -71,6 +72,8 @@ export declare const CHAIN_IDS: {
71
72
  readonly SUI_TESTNET: "sui-testnet";
72
73
  readonly XRPL: "xrpl-mainnet";
73
74
  readonly XRPL_TESTNET: "xrpl-testnet";
75
+ readonly STELLAR: "stellar-mainnet";
76
+ readonly STELLAR_TESTNET: "stellar-testnet";
74
77
  };
75
78
  export declare const chainTypeToDefaultChainIdMap: Record<ChainType, string>;
76
79
  export declare const chainTypeToNativeTokenAddressMap: Record<ChainType, string>;
@@ -1,17 +1 @@
1
- export declare const squidMainLink = "https://www.squidrouter.com/";
2
- export declare const squidDocLink = "https://docs.widget.squidrouter.com/";
3
1
  export declare const squidApiBaseUrl = "https://api.uatsquidrouter.com";
4
- export declare const squidDiscordLink = "https://discord.gg/squidrouter";
5
- export declare const squidSupportLink = "https://support.squidrouter.com";
6
- export declare const squidHelpLink: string;
7
- export declare const squidSlippageToleranceLink: string;
8
- export declare const squidAxlUSDCWarningLink: string;
9
- export declare const squidTrackingDataUnavailableLink: string;
10
- export declare const squidGasFeesRefundLink: string;
11
- export declare const axelarTokenDataUrl = "https://axelar-mainnet.s3.us-east-2.amazonaws.com/mainnet-config.json";
12
- export declare const axelarMainLink = "https://axelar.network/";
13
- export declare const axelarPoweredByLink = "https://axelar.network/?utm_source=dynamic&utm_medium=referral&utm_campaign=squidrouter-widget";
14
- export declare const defaultFiatOnRamp: {
15
- name: string;
16
- link: string;
17
- };
@@ -1,3 +1,3 @@
1
- export { CHAIN_IDS, chainTypeToNativeTokenAddressMap, chainTypeToZeroAddressMap, DEFAULT_LOCALE, destinationAddressResetValue, fallbackAddressResetValue, nativeBitcoinTokenAddress, nativeCosmosTokenAddress, nativeEvmTokenAddress, nativeSolanaTokenAddress, nativeSuiTokenAddress, nativeXrplTokenAddress, } from "./constants";
1
+ export { CHAIN_IDS, chainTypeToNativeTokenAddressMap, chainTypeToZeroAddressMap, DEFAULT_LOCALE, destinationAddressResetValue, fallbackAddressResetValue, nativeBitcoinTokenAddress, nativeCosmosTokenAddress, nativeEvmTokenAddress, nativeSolanaTokenAddress, nativeStellarTokenAddress, nativeSuiTokenAddress, nativeXrplTokenAddress, } from "./constants";
2
2
  export { CosmosProvider, useCosmosContext } from "./providers/CosmosProvider";
3
3
  export * from "./types";
@@ -0,0 +1,18 @@
1
+ import { ChainType } from "@0xsquid/squid-types";
2
+ import { UseMutationResult } from "@tanstack/react-query";
3
+ import React from "react";
4
+ import { StellarConnector } from "../types/stellar";
5
+ import { ConnectWalletResult, StellarWallet } from "../types/wallet";
6
+ export interface IStellarContextData {
7
+ connectStellar: UseMutationResult<ConnectWalletResult<ChainType.STELLAR>, unknown, {
8
+ wallet: StellarWallet;
9
+ }, unknown>;
10
+ disconnectStellar: () => Promise<void>;
11
+ signer: StellarConnector | undefined;
12
+ wallets: StellarWallet[];
13
+ }
14
+ export declare const StellarContext: React.Context<IStellarContextData | undefined>;
15
+ export declare const StellarProvider: React.FC<{
16
+ children: React.ReactNode;
17
+ }>;
18
+ export declare const useStellarContext: () => IStellarContextData;
@@ -32,7 +32,9 @@ export declare enum QueryKeys {
32
32
  XrplTrustLine = "xrplTrustLine",
33
33
  IsXrplTrustLineApproved = "isXrplTrustLineApproved",
34
34
  XrplAccountActivatedInfo = "xrplAccountActivatedInfo",
35
- FiatToCryptoPaymentMethods = "fiatToCryptoPaymentMethods"
35
+ FiatToCryptoPaymentMethods = "fiatToCryptoPaymentMethods",
36
+ Stellar = "stellar",
37
+ StellarAccountActivatedInfo = "stellarAccountActivatedInfo"
36
38
  }
37
39
  export declare const keys: () => {
38
40
  all: QueryKeys;
@@ -42,6 +44,7 @@ export declare const keys: () => {
42
44
  balances: () => QueryKeys[];
43
45
  transactions: () => QueryKeys[];
44
46
  xrpl: () => QueryKeys[];
47
+ stellar: () => QueryKeys[];
45
48
  coinGeckoPrices: (coingeckoIds?: string[]) => (string | undefined)[];
46
49
  historicalData: (coingeckoId?: string, timeFrame?: Timeframe) => (string | undefined)[];
47
50
  tokensData: (tokens?: TokenWithBalance[]) => (string | undefined)[];
@@ -65,5 +68,6 @@ export declare const keys: () => {
65
68
  xrplTrustLine: (tokenAddress: string | undefined, chainId: string | undefined, address: string | undefined) => (string | undefined)[];
66
69
  isXrplTrustLineApproved: (address: string | undefined, chainId: string | undefined, chainType: ChainType | undefined, tokenAddress: string | undefined, trustLineLimit: string | undefined, amountToApprove: bigint | undefined) => (string | undefined)[];
67
70
  xrplAccountActivatedInfo: (destinationAddress: string | undefined, toChainId: string | undefined, toChainType: ChainType | undefined) => (string | undefined)[];
71
+ stellarAccountActivatedInfo: (address: string | undefined, chainId: string | undefined, chainType: ChainType | undefined) => (string | undefined)[];
68
72
  };
69
73
  export declare const getPrefixKey: (key: QueryKeys) => QueryKeys[];
@@ -42,7 +42,10 @@ export interface AppConfig {
42
42
  /**
43
43
  * Allows to whitelist tokens on specific chains.
44
44
  */
45
- availableTokensPerChain?: Record<string, string[]>;
45
+ availableTokens?: {
46
+ source?: Record<string, string[]>;
47
+ destination?: Record<string, string[]>;
48
+ };
46
49
  collectFees?: {
47
50
  integratorAddress: string;
48
51
  fee: number;
@@ -8,22 +8,6 @@ export type TransactionErrorWithMessage = {
8
8
  type: TransactionErrorType;
9
9
  internalLabel: string;
10
10
  };
11
- export interface TransactionError {
12
- reason: string;
13
- code: string;
14
- action: string;
15
- message: string;
16
- transaction: {
17
- to: string;
18
- data: string;
19
- gasLimit: number;
20
- value: {
21
- type: bigint;
22
- hex: string;
23
- };
24
- from: string;
25
- };
26
- }
27
11
  export interface SquidRouteError {
28
12
  message: string;
29
13
  statusCode: number;
@@ -0,0 +1,3 @@
1
+ import type { ModuleInterface } from "@creit.tech/stellar-wallets-kit";
2
+ export interface StellarConnector extends ModuleInterface {
3
+ }
@@ -2,6 +2,7 @@ import type { ChainType } from "@0xsquid/squid-types";
2
2
  import { BitcoinConnector } from "./bitcoin";
3
3
  import { EvmConnector } from "./evm";
4
4
  import { SolanaConnector } from "./solana";
5
+ import { StellarConnector } from "./stellar";
5
6
  import { SuiAccount, SuiConnector } from "./sui";
6
7
  import { XrplConnector } from "./xrpl";
7
8
  export type TypedWindow = Window & typeof globalThis & {
@@ -22,9 +23,11 @@ export declare enum WindowWalletFlag {
22
23
  XrplWalletConnect = "xrpl-wallet-connect",
23
24
  XrplJoey = "xrpl-joey",
24
25
  XrplGirin = "xrpl-girin",
25
- XrplBifrost = "xrpl-bifrost"
26
+ XrplBifrost = "xrpl-bifrost",
27
+ HotWallet = "hotWallet",
28
+ XBull = "xBullSDK"
26
29
  }
27
- export type ConnectorID = "metamask" | "coinbase" | "walletConnect" | "blockchaindotcom" | "keplr" | "cosmostation" | "leap" | "ctrl" | "bitget" | "coin98" | "rabby" | "okx" | "injected" | "zerion" | "deficonnect" | "trustwallet" | "exodus" | "rainbow" | "phantom" | "backpack" | "unisat" | "xrpl-metamask-snap" | "crossmark" | "xaman-xapp" | "xaman-qr" | "joey" | "girin" | "bifrost" | "brave" | "tokenpocket" | "nightly" | "cryptodotcom";
30
+ export type ConnectorID = "metamask" | "coinbase" | "walletConnect" | "keplr" | "cosmostation" | "leap" | "ctrl" | "bitget" | "rabby" | "okx" | "injected" | "trustwallet" | "exodus" | "rainbow" | "phantom" | "backpack" | "unisat" | "xrpl-metamask-snap" | "crossmark" | "xaman-xapp" | "xaman-qr" | "joey" | "girin" | "bifrost" | "brave" | "tokenpocket" | "nightly" | "cryptodotcom" | "freighter" | "xBull" | "lobstr" | "albedo" | "hanaWallet" | "hotWallet";
28
31
  export type EvmWallet = Wallet & {
29
32
  type: ChainType.EVM;
30
33
  connector: EvmConnector;
@@ -54,6 +57,10 @@ export type XrplWallet = Wallet & {
54
57
  type: ChainType.XRPL;
55
58
  connector: ConnectorByChainType[ChainType.XRPL];
56
59
  };
60
+ export type StellarWallet = Wallet & {
61
+ type: ChainType.STELLAR;
62
+ connector: ConnectorByChainType[ChainType.STELLAR];
63
+ };
57
64
  export type SupportedChain = {
58
65
  chainType: ChainType;
59
66
  chains?: string[];
@@ -75,6 +82,7 @@ export type Wallet = {
75
82
  isInstalled?: () => boolean;
76
83
  skipInstallCheck?: boolean;
77
84
  rdns?: string;
85
+ url?: string;
78
86
  } & ({
79
87
  isMultiChain: true;
80
88
  supportedNetworks: NetworkConfig[];
@@ -128,6 +136,7 @@ export interface ChainTypeToWalletState {
128
136
  [ChainType.BTC]: BaseWalletState<BitcoinWallet>;
129
137
  [ChainType.SUI]: BaseWalletState<SuiWallet> & SuiAccount;
130
138
  [ChainType.XRPL]: BaseWalletState<XrplWallet>;
139
+ [ChainType.STELLAR]: BaseWalletState<StellarWallet>;
131
140
  }
132
141
  interface ConnectorByChainType extends Record<ChainType, unknown> {
133
142
  [ChainType.EVM]: EvmConnector;
@@ -136,5 +145,6 @@ interface ConnectorByChainType extends Record<ChainType, unknown> {
136
145
  [ChainType.BTC]: BitcoinConnector;
137
146
  [ChainType.SUI]: SuiConnector;
138
147
  [ChainType.XRPL]: XrplConnector;
148
+ [ChainType.STELLAR]: StellarConnector;
139
149
  }
140
150
  export {};
@@ -13,8 +13,20 @@ export interface XrplTransaction extends Record<string, any> {
13
13
  Account: string;
14
14
  TransactionType: string;
15
15
  }
16
+ export declare enum XrplTransactionType {
17
+ PAYMENT = "Payment",
18
+ TRUST_SET = "TrustSet"
19
+ }
20
+ export declare enum XrplTransactionFlag {
21
+ /**
22
+ * Enable the No Ripple flag, which blocks rippling between two trust lines
23
+ * of the same currency if this flag is enabled on both.
24
+ * @see https://xrpl.org/docs/references/protocol/transactions/types/trustset#trustset-flags
25
+ */
26
+ tfSetNoRipple = 131072
27
+ }
16
28
  export interface XrplPaymentTx extends XrplTransaction {
17
- TransactionType: "Payment";
29
+ TransactionType: XrplTransactionType.PAYMENT;
18
30
  Amount: IssuedCurrencyAmount | string;
19
31
  Destination: string;
20
32
  Memos: Memo[];
@@ -23,8 +35,9 @@ export interface XrplPaymentTx extends XrplTransaction {
23
35
  hash: string;
24
36
  }
25
37
  export interface XrplTrustSetTx extends XrplTransaction {
26
- TransactionType: "TrustSet";
38
+ TransactionType: XrplTransactionType.TRUST_SET;
27
39
  LimitAmount: IssuedCurrencyAmount;
40
+ Flags?: XrplTransactionFlag;
28
41
  }
29
42
  export declare enum XrplNetwork {
30
43
  MAINNET = 0,
@@ -5,7 +5,7 @@ export declare const xrplWallets: XrplWallet[];
5
5
  export declare const multiChainWallets: Wallet[];
6
6
  export declare const singleChainWallets: Wallet[];
7
7
  export declare const walletStoreLinks: {
8
- [key in ConnectorID]: {
8
+ [key in ConnectorID]?: {
9
9
  chrome: string;
10
10
  firefox: string;
11
11
  };
@@ -7,9 +7,11 @@ export declare const useSquidChains: (direction?: SwapDirection) => {
7
7
  supportedSourceChains: ChainData[];
8
8
  supportedDestinationChains: ChainData[];
9
9
  chains: ChainData[];
10
- cosmosChains: CosmosChain[];
11
10
  evmChains: EvmChain[];
11
+ cosmosChains: CosmosChain[];
12
12
  suiChains: ChainData[];
13
+ xrplChains: ChainData[];
14
+ stellarChains: ChainData[];
13
15
  getChainType: (chainId?: string) => ChainType | undefined;
14
16
  findChain: (chainId: string | undefined) => ChainData | undefined;
15
17
  };
@@ -6,6 +6,7 @@ export { useKeyboardNavigation } from "./navigation/useKeyboardNavigation";
6
6
  export * from "./onramp/useFiatToCrypto";
7
7
  export { useSquidQueryClient } from "./query/useSquidQueryClient";
8
8
  export { useSquid } from "./squid/useSquid";
9
+ export { useStellarAccountActivation } from "./stellar/useStellarAccountActivation";
9
10
  export { useAddressBookStore } from "./store/useAddressBookStore";
10
11
  export { useAssetsColorsStore } from "./store/useAssetsColorsStore";
11
12
  export { useFavoriteTokensStore, type FavoriteToken, } from "./store/useFavoriteTokensStore";
@@ -0,0 +1,2 @@
1
+ import { IStellarContextData } from "../../core/providers/StellarProvider";
2
+ export declare function useStellar(): IStellarContextData;
@@ -0,0 +1,14 @@
1
+ import { ChainData, Token } from "@0xsquid/squid-types";
2
+ import { UseQueryResult } from "@tanstack/react-query";
3
+ interface Params {
4
+ address: string | undefined;
5
+ token: Token | undefined;
6
+ chain: ChainData | undefined;
7
+ }
8
+ export declare function useStellarAccountActivation({ address, chain, token, }: Params): {
9
+ accountActivatedInfo: UseQueryResult<{
10
+ isActivated: boolean;
11
+ reserveBaseBn: bigint;
12
+ } | null>;
13
+ };
14
+ export {};
@@ -0,0 +1,4 @@
1
+ import { StellarWallet } from "../../core/types/wallet";
2
+ export declare function useStellarWallets(): {
3
+ wallets: StellarWallet[];
4
+ };
@@ -16,4 +16,5 @@ export declare const useSolanaBalance: ({ chain, token, userAddress, enabled, re
16
16
  export declare const useBitcoinBalance: ({ userAddress, chain, }: UseBalanceOptions) => UseBalanceResult;
17
17
  export declare const useSuiBalance: ({ chain, token, userAddress, enabled, refreshIntervalMs, }: UseBalanceOptions) => UseBalanceResult;
18
18
  export declare const useXrplBalance: ({ userAddress, chain, enabled, token, refreshIntervalMs, }: UseBalanceOptions) => UseBalanceResult;
19
+ export declare const useStellarBalance: ({ userAddress, chain, enabled, token, refreshIntervalMs, }: UseBalanceOptions) => UseBalanceResult;
19
20
  export {};
@@ -15,6 +15,7 @@ export declare const useBitcoinNativeBalance: ({ chain, address, }: UseNativeBal
15
15
  export declare const useSolanaNativeBalance: ({ chain, address, }: UseNativeBalanceOptions) => UseNativeBalanceResult;
16
16
  export declare const useSuiNativeBalance: ({ address, chain, }: UseNativeBalanceOptions) => UseNativeBalanceResult;
17
17
  export declare const useXrplNativeBalance: ({ address, chain, }: UseNativeBalanceOptions) => UseNativeBalanceResult;
18
+ export declare const useStellarNativeBalance: ({ address, chain, }: UseNativeBalanceOptions) => UseNativeBalanceResult;
18
19
  export declare const useNativeBalance: (chain?: ChainData) => {
19
20
  nativeBalance: Balance | undefined;
20
21
  nativeBalanceFormatted: string | undefined;
@@ -12,4 +12,5 @@ export declare const useSquidTokens: (direction?: SwapDirection) => {
12
12
  bitcoinTokens: Token[];
13
13
  suiTokens: Token[];
14
14
  xrplTokens: Token[];
15
+ stellarTokens: Token[];
15
16
  };
@@ -4,6 +4,7 @@ export declare const useGetRoute: () => import("@tanstack/react-query").UseMutat
4
4
  estimate: import("@0xsquid/squid-types").Estimate;
5
5
  transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
6
6
  params: RouteRequest;
7
+ quoteId: string;
7
8
  } | undefined, unknown, {
8
9
  fromChain: RouteRequest["fromChain"] | undefined;
9
10
  toChain: RouteRequest["toChain"] | undefined;
@@ -31,6 +32,7 @@ export declare const useGetRouteWrapper: ({ enabled, cacheTime, staleTime, refet
31
32
  estimate: import("@0xsquid/squid-types").Estimate;
32
33
  transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
33
34
  params: RouteRequest;
35
+ quoteId: string;
34
36
  } | undefined, unknown>;
35
37
  showLoading: boolean;
36
38
  squidRouteError: unknown;
@@ -38,5 +40,6 @@ export declare const useGetRouteWrapper: ({ enabled, cacheTime, staleTime, refet
38
40
  estimate: import("@0xsquid/squid-types").Estimate;
39
41
  transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
40
42
  params: RouteRequest;
43
+ quoteId: string;
41
44
  } | undefined;
42
45
  };
@@ -21,6 +21,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
21
21
  isInstalled?: (() => boolean) | undefined;
22
22
  skipInstallCheck?: boolean | undefined;
23
23
  rdns?: string | undefined;
24
+ url?: string | undefined;
24
25
  } & {
25
26
  isMultiChain: true;
26
27
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -38,6 +39,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
38
39
  isInstalled?: (() => boolean) | undefined;
39
40
  skipInstallCheck?: boolean | undefined;
40
41
  rdns?: string | undefined;
42
+ url?: string | undefined;
41
43
  } & {
42
44
  isMultiChain?: false | undefined;
43
45
  } & {
@@ -57,6 +59,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
57
59
  isInstalled?: (() => boolean) | undefined;
58
60
  skipInstallCheck?: boolean | undefined;
59
61
  rdns?: string | undefined;
62
+ url?: string | undefined;
60
63
  } & {
61
64
  isMultiChain: true;
62
65
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -78,6 +81,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
78
81
  isInstalled?: (() => boolean) | undefined;
79
82
  skipInstallCheck?: boolean | undefined;
80
83
  rdns?: string | undefined;
84
+ url?: string | undefined;
81
85
  } & {
82
86
  isMultiChain?: false | undefined;
83
87
  } & {
@@ -105,6 +109,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
105
109
  isInstalled?: (() => boolean) | undefined;
106
110
  skipInstallCheck?: boolean | undefined;
107
111
  rdns?: string | undefined;
112
+ url?: string | undefined;
108
113
  } & {
109
114
  isMultiChain: true;
110
115
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -122,6 +127,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
122
127
  isInstalled?: (() => boolean) | undefined;
123
128
  skipInstallCheck?: boolean | undefined;
124
129
  rdns?: string | undefined;
130
+ url?: string | undefined;
125
131
  } & {
126
132
  isMultiChain?: false | undefined;
127
133
  } & {
@@ -141,13 +147,12 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
141
147
  isInstalled?: (() => boolean) | undefined;
142
148
  skipInstallCheck?: boolean | undefined;
143
149
  rdns?: string | undefined;
150
+ url?: string | undefined;
144
151
  } & {
145
152
  isMultiChain: true;
146
153
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
147
154
  } & {
148
- type: ChainType.BTC; /**
149
- * Get connected address, depends on chainType
150
- */
155
+ type: ChainType.BTC;
151
156
  connector: import("../../core/types/bitcoin").BitcoinConnector;
152
157
  }) | ({
153
158
  name: string;
@@ -160,15 +165,14 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
160
165
  isInstalled?: (() => boolean) | undefined;
161
166
  skipInstallCheck?: boolean | undefined;
162
167
  rdns?: string | undefined;
168
+ url?: string | undefined;
163
169
  } & {
164
170
  isMultiChain?: false | undefined;
165
171
  } & {
166
172
  type: ChainType.BTC;
167
173
  connector: import("../../core/types/bitcoin").BitcoinConnector;
168
174
  } & {
169
- type: ChainType.BTC; /**
170
- * Get connected address, depends on chainType
171
- */
175
+ type: ChainType.BTC;
172
176
  connector: import("../../core/types/bitcoin").BitcoinConnector;
173
177
  }) | ({
174
178
  name: string;
@@ -181,6 +185,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
181
185
  isInstalled?: (() => boolean) | undefined;
182
186
  skipInstallCheck?: boolean | undefined;
183
187
  rdns?: string | undefined;
188
+ url?: string | undefined;
184
189
  } & {
185
190
  isMultiChain: true;
186
191
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -198,6 +203,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
198
203
  isInstalled?: (() => boolean) | undefined;
199
204
  skipInstallCheck?: boolean | undefined;
200
205
  rdns?: string | undefined;
206
+ url?: string | undefined;
201
207
  } & {
202
208
  isMultiChain?: false | undefined;
203
209
  } & {
@@ -217,6 +223,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
217
223
  isInstalled?: (() => boolean) | undefined;
218
224
  skipInstallCheck?: boolean | undefined;
219
225
  rdns?: string | undefined;
226
+ url?: string | undefined;
220
227
  } & {
221
228
  isMultiChain: true;
222
229
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -234,6 +241,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
234
241
  isInstalled?: (() => boolean) | undefined;
235
242
  skipInstallCheck?: boolean | undefined;
236
243
  rdns?: string | undefined;
244
+ url?: string | undefined;
237
245
  } & {
238
246
  isMultiChain?: false | undefined;
239
247
  } & {
@@ -242,5 +250,43 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
242
250
  } & {
243
251
  type: ChainType.XRPL;
244
252
  connector: import("../../core/types/xrpl").XrplConnector;
253
+ }) | ({
254
+ name: string;
255
+ connectorId: import("../../core/types/wallet").ConnectorID;
256
+ connectorName: string;
257
+ icon: string | undefined;
258
+ windowFlag: import("../../core/types/wallet").WindowWalletFlag;
259
+ isMobile?: boolean | undefined;
260
+ isQrWallet?: boolean | undefined;
261
+ isInstalled?: (() => boolean) | undefined;
262
+ skipInstallCheck?: boolean | undefined;
263
+ rdns?: string | undefined;
264
+ url?: string | undefined;
265
+ } & {
266
+ isMultiChain: true;
267
+ supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
268
+ } & {
269
+ type: ChainType.STELLAR;
270
+ connector: import("../../core/types/stellar").StellarConnector;
271
+ }) | ({
272
+ name: string;
273
+ connectorId: import("../../core/types/wallet").ConnectorID;
274
+ connectorName: string;
275
+ icon: string | undefined;
276
+ windowFlag: import("../../core/types/wallet").WindowWalletFlag;
277
+ isMobile?: boolean | undefined;
278
+ isQrWallet?: boolean | undefined;
279
+ isInstalled?: (() => boolean) | undefined;
280
+ skipInstallCheck?: boolean | undefined;
281
+ rdns?: string | undefined;
282
+ url?: string | undefined;
283
+ } & {
284
+ isMultiChain?: false | undefined;
285
+ } & {
286
+ type: ChainType.STELLAR;
287
+ connector: import("../../core/types/stellar").StellarConnector;
288
+ } & {
289
+ type: ChainType.STELLAR;
290
+ connector: import("../../core/types/stellar").StellarConnector;
245
291
  }) | undefined;
246
292
  };
@@ -10,4 +10,5 @@ export declare const useSigner: ({ chain }: {
10
10
  solanaSigner: import("@solana/wallet-standard-wallet-adapter-base").StandardWalletAdapter | undefined;
11
11
  suiSigner: import("../../core/types/sui").SuiConnector | undefined;
12
12
  xrplSigner: import("../../core/types/xrpl").XrplConnector | undefined;
13
+ stellarSigner: import("../../core/types/stellar").StellarConnector | undefined;
13
14
  };
@@ -17,6 +17,7 @@ export declare const useWallet: () => {
17
17
  isInstalled?: (() => boolean) | undefined;
18
18
  skipInstallCheck?: boolean | undefined;
19
19
  rdns?: string | undefined;
20
+ url?: string | undefined;
20
21
  } & {
21
22
  isMultiChain: true;
22
23
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -34,6 +35,7 @@ export declare const useWallet: () => {
34
35
  isInstalled?: (() => boolean) | undefined;
35
36
  skipInstallCheck?: boolean | undefined;
36
37
  rdns?: string | undefined;
38
+ url?: string | undefined;
37
39
  } & {
38
40
  isMultiChain?: false | undefined;
39
41
  } & {
@@ -57,6 +59,7 @@ export declare const useWallet: () => {
57
59
  isInstalled?: (() => boolean) | undefined;
58
60
  skipInstallCheck?: boolean | undefined;
59
61
  rdns?: string | undefined;
62
+ url?: string | undefined;
60
63
  } & {
61
64
  isMultiChain: true;
62
65
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -78,6 +81,7 @@ export declare const useWallet: () => {
78
81
  isInstalled?: (() => boolean) | undefined;
79
82
  skipInstallCheck?: boolean | undefined;
80
83
  rdns?: string | undefined;
84
+ url?: string | undefined;
81
85
  } & {
82
86
  isMultiChain?: false | undefined;
83
87
  } & {
@@ -109,6 +113,7 @@ export declare const useWallet: () => {
109
113
  isInstalled?: (() => boolean) | undefined;
110
114
  skipInstallCheck?: boolean | undefined;
111
115
  rdns?: string | undefined;
116
+ url?: string | undefined;
112
117
  } & {
113
118
  isMultiChain: true;
114
119
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -126,6 +131,7 @@ export declare const useWallet: () => {
126
131
  isInstalled?: (() => boolean) | undefined;
127
132
  skipInstallCheck?: boolean | undefined;
128
133
  rdns?: string | undefined;
134
+ url?: string | undefined;
129
135
  } & {
130
136
  isMultiChain?: false | undefined;
131
137
  } & {
@@ -149,6 +155,7 @@ export declare const useWallet: () => {
149
155
  isInstalled?: (() => boolean) | undefined;
150
156
  skipInstallCheck?: boolean | undefined;
151
157
  rdns?: string | undefined;
158
+ url?: string | undefined;
152
159
  } & {
153
160
  isMultiChain: true;
154
161
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -166,6 +173,7 @@ export declare const useWallet: () => {
166
173
  isInstalled?: (() => boolean) | undefined;
167
174
  skipInstallCheck?: boolean | undefined;
168
175
  rdns?: string | undefined;
176
+ url?: string | undefined;
169
177
  } & {
170
178
  isMultiChain?: false | undefined;
171
179
  } & {
@@ -189,6 +197,7 @@ export declare const useWallet: () => {
189
197
  isInstalled?: (() => boolean) | undefined;
190
198
  skipInstallCheck?: boolean | undefined;
191
199
  rdns?: string | undefined;
200
+ url?: string | undefined;
192
201
  } & {
193
202
  isMultiChain: true;
194
203
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -206,6 +215,7 @@ export declare const useWallet: () => {
206
215
  isInstalled?: (() => boolean) | undefined;
207
216
  skipInstallCheck?: boolean | undefined;
208
217
  rdns?: string | undefined;
218
+ url?: string | undefined;
209
219
  } & {
210
220
  isMultiChain?: false | undefined;
211
221
  } & {
@@ -229,6 +239,7 @@ export declare const useWallet: () => {
229
239
  isInstalled?: (() => boolean) | undefined;
230
240
  skipInstallCheck?: boolean | undefined;
231
241
  rdns?: string | undefined;
242
+ url?: string | undefined;
232
243
  } & {
233
244
  isMultiChain: true;
234
245
  supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
@@ -246,6 +257,7 @@ export declare const useWallet: () => {
246
257
  isInstalled?: (() => boolean) | undefined;
247
258
  skipInstallCheck?: boolean | undefined;
248
259
  rdns?: string | undefined;
260
+ url?: string | undefined;
249
261
  } & {
250
262
  isMultiChain?: false | undefined;
251
263
  } & {
@@ -257,6 +269,48 @@ export declare const useWallet: () => {
257
269
  });
258
270
  address: string;
259
271
  }>;
272
+ stellar: Partial<{
273
+ wallet: ({
274
+ name: string;
275
+ connectorId: import("../../core/types/wallet").ConnectorID;
276
+ connectorName: string;
277
+ icon: string | undefined;
278
+ windowFlag: import("../../core/types/wallet").WindowWalletFlag;
279
+ isMobile?: boolean | undefined;
280
+ isQrWallet?: boolean | undefined;
281
+ isInstalled?: (() => boolean) | undefined;
282
+ skipInstallCheck?: boolean | undefined;
283
+ rdns?: string | undefined;
284
+ url?: string | undefined;
285
+ } & {
286
+ isMultiChain: true;
287
+ supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
288
+ } & {
289
+ type: ChainType.STELLAR;
290
+ connector: import("../../core/types/stellar").StellarConnector;
291
+ }) | ({
292
+ name: string;
293
+ connectorId: import("../../core/types/wallet").ConnectorID;
294
+ connectorName: string;
295
+ icon: string | undefined;
296
+ windowFlag: import("../../core/types/wallet").WindowWalletFlag;
297
+ isMobile?: boolean | undefined;
298
+ isQrWallet?: boolean | undefined;
299
+ isInstalled?: (() => boolean) | undefined;
300
+ skipInstallCheck?: boolean | undefined;
301
+ rdns?: string | undefined;
302
+ url?: string | undefined;
303
+ } & {
304
+ isMultiChain?: false | undefined;
305
+ } & {
306
+ type: ChainType.STELLAR;
307
+ connector: import("../../core/types/stellar").StellarConnector;
308
+ } & {
309
+ type: ChainType.STELLAR;
310
+ connector: import("../../core/types/stellar").StellarConnector;
311
+ });
312
+ address: string;
313
+ }>;
260
314
  };
261
315
  connectedAddresses: Record<ChainType, string | undefined>;
262
316
  connectingWalletState: import("../store/useWalletStore").ConnectingWalletState;