@0xsquid/react-hooks 8.0.0 → 8.0.1-tanstack-v5-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.
- package/dist/hooks/onramp/useFiatToCrypto.d.ts +6 -28
- package/dist/hooks/squid/useSquid.d.ts +2 -2
- package/dist/hooks/swap/useDepositAddress.d.ts +2 -2
- package/dist/hooks/tokens/useAllConnectedWalletBalances.d.ts +5 -11
- package/dist/hooks/tokens/useAllTokensWithBalanceForChainType.d.ts +1 -1
- package/dist/hooks/tokens/useBalance.d.ts +1 -1
- package/dist/hooks/tokens/useMultipleTokenPrices.d.ts +2 -2
- package/dist/hooks/tokens/useNativeBalance.d.ts +2 -2
- package/dist/hooks/tokens/useTokenHistoricalData.d.ts +4 -4
- package/dist/hooks/transaction/send/useEstimateSendTransactionGas.d.ts +1 -1
- package/dist/hooks/transaction/send/useSendTransactionGas.d.ts +1 -1
- package/dist/hooks/transaction/useAllTransactionsStatus.d.ts +3 -29
- package/dist/hooks/transaction/useApproval.d.ts +2 -2
- package/dist/hooks/transaction/useExecuteTransaction.d.ts +2 -2
- package/dist/hooks/transaction/useGetRoute.d.ts +7 -7
- package/dist/hooks/transaction/useSwapTransactionStatus.d.ts +1 -1
- package/dist/hooks/wallet/useAddToken.d.ts +1 -1
- package/dist/hooks/wallet/useEns.d.ts +2 -2
- package/dist/hooks/wallet/useMultiChainWallet.d.ts +1 -1
- package/dist/hooks/wallet/useWallet.d.ts +1 -1
- package/dist/hooks/xrpl/useXrplTrustLine.d.ts +5 -5
- package/dist/{index-_Qp4Ou3J.js → index-BA79s7uI.js} +948 -951
- package/dist/{index-_Qp4Ou3J.js.map → index-BA79s7uI.js.map} +1 -1
- package/dist/{index-BtOPNnH5.js → index-CS74WzWX.js} +946 -952
- package/dist/{index-BtOPNnH5.js.map → index-CS74WzWX.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/{secretService-CR2RaJtB.js → secretService-D3MB_TMv.js} +2 -2
- package/dist/{secretService-CR2RaJtB.js.map → secretService-D3MB_TMv.js.map} +1 -1
- package/dist/{secretService-DdVLwd-q.js → secretService-U8WiVPay.js} +2 -2
- package/dist/{secretService-DdVLwd-q.js.map → secretService-U8WiVPay.js.map} +1 -1
- package/dist/{stellarService.client-7rBIc_IW.js → stellarService.client-BUdrOP04.js} +2 -2
- package/dist/{stellarService.client-7rBIc_IW.js.map → stellarService.client-BUdrOP04.js.map} +1 -1
- package/dist/{stellarService.client-BvSwmxzo.js → stellarService.client-Dp4tvmUo.js} +2 -2
- package/dist/{stellarService.client-BvSwmxzo.js.map → stellarService.client-Dp4tvmUo.js.map} +1 -1
- package/package.json +12 -12
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CountryWithCode, ExecuteFiatQuoteResultClient, ExecuteQuoteClient, FiatCurrencyEnhanced, OnrampConfigResponse, OnrampPaymentMethod, OnrampQuoteResponse, OnrampQuoteResult, OnRampTransactionStatus, OnRampTransactionStatusType } from "../../core/types/onramps/onramp";
|
|
1
|
+
import { CountryWithCode, ExecuteFiatQuoteResultClient, ExecuteQuoteClient, FiatCurrencyEnhanced, OnrampConfigResponse, OnrampPaymentMethod, OnrampQuoteResponse, OnrampQuoteResult, OnRampTransactionStatusType } from "../../core/types/onramps/onramp";
|
|
3
2
|
export declare const TX_STATUS_CONSTANTS: {
|
|
4
3
|
readonly RETRY_COUNT: 2;
|
|
5
4
|
readonly RETRY_DELAY: 60000;
|
|
@@ -13,39 +12,26 @@ export declare const FINAL_TRANSACTION_STATUSES: OnRampTransactionStatusType[];
|
|
|
13
12
|
* Fetches quotes for fiat to crypto conversion with provider details.
|
|
14
13
|
* Returns available rates, fees, and supported payment methods for the conversion.
|
|
15
14
|
*/
|
|
16
|
-
export declare const useGetFiatQuote: ({ fiatCurrency, cryptoCurrencyID, amount, region, paymentMethod, enabled,
|
|
15
|
+
export declare const useGetFiatQuote: ({ fiatCurrency, cryptoCurrencyID, amount, region, paymentMethod, enabled, }: {
|
|
17
16
|
fiatCurrency: string;
|
|
18
17
|
cryptoCurrencyID: string;
|
|
19
18
|
amount: number;
|
|
20
19
|
region?: string | undefined;
|
|
21
20
|
paymentMethod?: string | undefined;
|
|
22
21
|
enabled?: boolean | undefined;
|
|
23
|
-
|
|
24
|
-
}) => import("@tanstack/react-query").UseQueryResult<OnrampQuoteResponse, unknown>;
|
|
22
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<OnrampQuoteResponse, Error>;
|
|
25
23
|
/**
|
|
26
24
|
* Fetches and caches onramp provider configuration.
|
|
27
25
|
* Includes supported tokens, payment methods, and country restrictions.
|
|
28
26
|
*/
|
|
29
|
-
export declare const useGetOnRampConfig: () => import("@tanstack/react-query").UseQueryResult<OnrampConfigResponse,
|
|
27
|
+
export declare const useGetOnRampConfig: () => import("@tanstack/react-query/build/legacy/types").UseQueryResult<OnrampConfigResponse, Error>;
|
|
30
28
|
/**
|
|
31
29
|
* Executes a fiat to crypto quote and creates an order.
|
|
32
30
|
* Validates wallet address and persists transaction for tracking.
|
|
33
31
|
*/
|
|
34
|
-
export declare const useExecuteFiatQuote: () => import("@tanstack/react-query").UseMutationResult<ExecuteFiatQuoteResultClient,
|
|
32
|
+
export declare const useExecuteFiatQuote: () => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ExecuteFiatQuoteResultClient, Error, Omit<ExecuteQuoteClient, "orderId"> & {
|
|
35
33
|
orderId?: string | undefined;
|
|
36
34
|
}, unknown>;
|
|
37
|
-
/**
|
|
38
|
-
* Tracks the status of a single fiat to crypto transaction.
|
|
39
|
-
*/
|
|
40
|
-
export declare const useFiatOnRampTxStatus: (transactionId: string, walletAddress: string, providerId: string) => import("@tanstack/react-query").UseQueryResult<OnRampTransactionStatus | undefined, Error>;
|
|
41
|
-
/**
|
|
42
|
-
* Tracks all pending fiat transactions.
|
|
43
|
-
*/
|
|
44
|
-
export declare const useFiatTransactions: () => {
|
|
45
|
-
transactions: FiatTransactionHistory[];
|
|
46
|
-
isLoading: boolean;
|
|
47
|
-
isError: boolean;
|
|
48
|
-
};
|
|
49
35
|
/**
|
|
50
36
|
* Gets currency details including symbol and limits.
|
|
51
37
|
* Example: USD → { symbol: "$", name: "US Dollar", ... }
|
|
@@ -61,14 +47,6 @@ export declare const useCountryDetails: (countryCode?: string) => CountryWithCod
|
|
|
61
47
|
* Ensures users only see quotes they can actually use.
|
|
62
48
|
*/
|
|
63
49
|
export declare const useAvailableQuotes: (quotes: OnrampQuoteResult[] | undefined) => OnrampQuoteResult[];
|
|
64
|
-
/**
|
|
65
|
-
* Gets the recommended quote based on best rates or provider preferences.
|
|
66
|
-
* Falls back to first available quote if no specific recommendation.
|
|
67
|
-
*/
|
|
68
|
-
export declare const useRecommendedQuote: (quotes: OnrampQuoteResult[] | undefined, recommendedQuote?: {
|
|
69
|
-
onrampProviderId: string;
|
|
70
|
-
reason?: string;
|
|
71
|
-
}) => OnrampQuoteResult | undefined;
|
|
72
50
|
/**
|
|
73
51
|
* Fetches the available payment methods for a given fiat and crypto currency pair.
|
|
74
52
|
* The first item in the returned array is the most recommended.
|
|
@@ -78,7 +56,7 @@ export declare const useGetOnrampPaymentTypes: ({ fiatCurrency, cryptoCurrencyID
|
|
|
78
56
|
cryptoCurrencyID: string;
|
|
79
57
|
region?: string | undefined;
|
|
80
58
|
enabled?: boolean | undefined;
|
|
81
|
-
}) => import("@tanstack/react-query").UseQueryResult<OnrampPaymentMethod[],
|
|
59
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<OnrampPaymentMethod[], Error>;
|
|
82
60
|
/**
|
|
83
61
|
* Returns 3 suggested fiat amounts for the given currency code, based on rateAgainstUSD
|
|
84
62
|
*/
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
export declare const useSquid: () => {
|
|
7
7
|
tokens: import("../..").Token[] | undefined;
|
|
8
8
|
chains: import("../..").Chain[] | undefined;
|
|
9
|
-
forceSquidInfoRefetch:
|
|
10
|
-
squidInfoQuery: import("@tanstack/react-query").UseQueryResult<import("../store/useSquidStore").Squid | null,
|
|
9
|
+
forceSquidInfoRefetch: (options?: import("@tanstack/query-core/build/legacy/hydration-D0MPgBG9").aq | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-D0MPgBG9").aH<import("../store/useSquidStore").Squid | null, Error>>;
|
|
10
|
+
squidInfoQuery: import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../store/useSquidStore").Squid | null, Error>;
|
|
11
11
|
maintenanceMode: {
|
|
12
12
|
active: boolean;
|
|
13
13
|
message?: string | undefined;
|
|
@@ -5,9 +5,9 @@ export declare function useDepositAddress(squidRoute?: RouteResponse["route"]):
|
|
|
5
5
|
swapWillGenerateDepositAddress: boolean;
|
|
6
6
|
enable: () => void;
|
|
7
7
|
disable: () => void;
|
|
8
|
-
getRouteWithDeposit: import("@tanstack/react-query").UseMutationResult<{
|
|
8
|
+
getRouteWithDeposit: import("@tanstack/react-query/build/legacy/types").UseMutationResult<{
|
|
9
9
|
depositAddress: import("@0xsquid/squid-types").ChainflipDepositAddressResponse;
|
|
10
|
-
},
|
|
10
|
+
}, Error, {
|
|
11
11
|
route: RouteResponse["route"];
|
|
12
12
|
}, unknown>;
|
|
13
13
|
depositAddress: string | undefined;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
2
|
import { SwapDirection } from "../../core/types/swap";
|
|
3
|
-
import {
|
|
3
|
+
import { AllTokensBalanceQueryData } from "./useAllTokensWithBalanceForChainType";
|
|
4
4
|
export declare const useAllConnectedWalletBalances: ({ direction, queryOptions, }?: {
|
|
5
5
|
direction?: SwapDirection | undefined;
|
|
6
|
-
queryOptions?: UseQueryOptions<
|
|
7
|
-
tokens: TokenWithBalance[];
|
|
8
|
-
totalUsdBalance: string;
|
|
9
|
-
}, unknown, {
|
|
10
|
-
tokens: TokenWithBalance[];
|
|
11
|
-
totalUsdBalance: string;
|
|
12
|
-
}, import("@tanstack/react-query").QueryKey> | undefined;
|
|
6
|
+
queryOptions?: Partial<UseQueryOptions<AllTokensBalanceQueryData, Error, AllTokensBalanceQueryData, readonly unknown[]>> | undefined;
|
|
13
7
|
}) => {
|
|
14
|
-
tokens: TokenWithBalance[];
|
|
8
|
+
tokens: import("../../core/types/tokens").TokenWithBalance[];
|
|
15
9
|
totalUsdBalance: string;
|
|
16
|
-
isInitialLoading: boolean;
|
|
17
|
-
isFetching: boolean;
|
|
18
10
|
isLoading: boolean;
|
|
11
|
+
isFetching: boolean;
|
|
12
|
+
isPending: boolean;
|
|
19
13
|
isRefetching: boolean;
|
|
20
14
|
isError: boolean;
|
|
21
15
|
isSuccess: boolean;
|
|
@@ -10,5 +10,5 @@ export declare const useAllTokensWithBalanceForChainType: ({ chainType, address,
|
|
|
10
10
|
chainType?: ChainType | undefined;
|
|
11
11
|
address?: string | undefined;
|
|
12
12
|
direction?: SwapDirection | undefined;
|
|
13
|
-
queryOptions?: UseQueryOptions<AllTokensBalanceQueryData,
|
|
13
|
+
queryOptions?: Partial<UseQueryOptions<AllTokensBalanceQueryData, Error, AllTokensBalanceQueryData, readonly unknown[]>> | undefined;
|
|
14
14
|
}) => UseQueryResult<AllTokensBalanceQueryData>;
|
|
@@ -13,9 +13,9 @@ type TokenPriceData = {
|
|
|
13
13
|
export declare const useMultipleTokenPrices: (tokens: Pick<Token, "coingeckoId">[]) => {
|
|
14
14
|
tokenPrices: Record<string, TokenPriceData>;
|
|
15
15
|
getTokenPrice: (coingeckoId: string) => TokenPriceData | undefined;
|
|
16
|
-
|
|
16
|
+
isPending: boolean;
|
|
17
17
|
isError: boolean;
|
|
18
18
|
error: Error | null;
|
|
19
|
-
refetch:
|
|
19
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-D0MPgBG9").aq | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-D0MPgBG9").aH<CoinGeckoResponse, Error>>;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
@@ -5,7 +5,7 @@ interface Balance {
|
|
|
5
5
|
}
|
|
6
6
|
interface UseNativeBalanceResult {
|
|
7
7
|
balance: Balance | undefined;
|
|
8
|
-
|
|
8
|
+
isPending: boolean;
|
|
9
9
|
}
|
|
10
10
|
interface UseNativeBalanceOptions {
|
|
11
11
|
chain: ChainData | undefined;
|
|
@@ -19,6 +19,6 @@ export declare const useStellarNativeBalance: ({ address, chain, }: UseNativeBal
|
|
|
19
19
|
export declare const useNativeBalance: (chain?: ChainData) => {
|
|
20
20
|
nativeBalance: Balance | undefined;
|
|
21
21
|
nativeBalanceFormatted: string | undefined;
|
|
22
|
-
|
|
22
|
+
isPending: boolean;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useHistoricalData: (coingeckoId: string | undefined, timeFrame: Timeframe) => import("@tanstack/react-query").UseQueryResult<HistoricalData | null, Error>;
|
|
3
|
-
export declare const useTokensData: (tokens: TokenWithBalance[] | undefined) => import("@tanstack/react-query").UseQueryResult<TokenWithTokenData[], Error>;
|
|
4
|
-
export declare const useTokenData: (token: TokenWithBalance | undefined) => import("@tanstack/react-query").UseQueryResult<
|
|
1
|
+
import { Timeframe, TokenWithBalance } from "../../core/types/tokens";
|
|
2
|
+
export declare const useHistoricalData: (coingeckoId: string | undefined, timeFrame: Timeframe) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../../core/types/tokens").HistoricalData | null, Error>;
|
|
3
|
+
export declare const useTokensData: (tokens: TokenWithBalance[] | undefined) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../../core/types/tokens").TokenWithTokenData[], Error>;
|
|
4
|
+
export declare const useTokenData: (token: TokenWithBalance | undefined) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../../core/types/tokens").TokenWithTokenData, Error>;
|
|
@@ -3,4 +3,4 @@ export declare function useSendTransactionGas({ chain, token, from, }: {
|
|
|
3
3
|
chain: ChainData | undefined;
|
|
4
4
|
token: Token | undefined;
|
|
5
5
|
from: string | undefined;
|
|
6
|
-
}): import("@tanstack/react-query").UseQueryResult<bigint,
|
|
6
|
+
}): import("@tanstack/react-query/build/legacy/types").UseQueryResult<bigint, Error>;
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
+
import { StatusResponse } from "@0xsquid/squid-types";
|
|
1
2
|
import { OnRampTransactionStatus } from "../../core/types/onramps/onramp";
|
|
2
3
|
import { SendTransactionStatus } from "../../core/types/transaction";
|
|
3
4
|
export declare const useAllTransactionsStatus: ({ enabled }: {
|
|
4
5
|
enabled: boolean;
|
|
5
6
|
}) => {
|
|
6
|
-
|
|
7
|
+
isPending: boolean;
|
|
7
8
|
isError: boolean;
|
|
8
|
-
data: (
|
|
9
|
-
id: string;
|
|
10
|
-
status: string;
|
|
11
|
-
gasStatus: string;
|
|
12
|
-
isGMPTransaction?: boolean | undefined;
|
|
13
|
-
axelarTransactionUrl: string;
|
|
14
|
-
fromChain?: {
|
|
15
|
-
transactionId: string;
|
|
16
|
-
blockNumber: string;
|
|
17
|
-
callEventStatus: string;
|
|
18
|
-
callEventLog: any[];
|
|
19
|
-
chainData?: any;
|
|
20
|
-
transactionUrl?: string | undefined;
|
|
21
|
-
destinationAddress?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
toChain?: {
|
|
24
|
-
transactionId: string;
|
|
25
|
-
blockNumber: string;
|
|
26
|
-
callEventStatus: string;
|
|
27
|
-
callEventLog: any[];
|
|
28
|
-
chainData?: any;
|
|
29
|
-
transactionUrl?: string | undefined;
|
|
30
|
-
destinationAddress?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
timeSpent?: {} | Record<string, number> | undefined;
|
|
33
|
-
squidTransactionStatus?: import("@0xsquid/squid-types").SquidTransactionStatus | undefined;
|
|
34
|
-
routeStatus?: any[] | undefined;
|
|
35
|
-
} & OnRampTransactionStatus & SendTransactionStatus) | undefined)[];
|
|
9
|
+
data: (OnRampTransactionStatus | StatusResponse | SendTransactionStatus | undefined)[];
|
|
36
10
|
};
|
|
@@ -2,7 +2,7 @@ import { RouteResponse } from "@0xsquid/squid-types";
|
|
|
2
2
|
export declare const useApproval: ({ squidRoute, }: {
|
|
3
3
|
squidRoute: RouteResponse["route"] | undefined;
|
|
4
4
|
}) => {
|
|
5
|
-
routeApproved: import("@tanstack/react-query").UseQueryResult<boolean,
|
|
6
|
-
approveRoute: import("@tanstack/react-query").UseMutationResult<boolean,
|
|
5
|
+
routeApproved: import("@tanstack/react-query/build/legacy/types").UseQueryResult<boolean, Error>;
|
|
6
|
+
approveRoute: import("@tanstack/react-query/build/legacy/types").UseMutationResult<boolean, Error, void, unknown>;
|
|
7
7
|
allowanceInWei: bigint | undefined;
|
|
8
8
|
};
|
|
@@ -6,6 +6,6 @@ export declare const useExecuteTransaction: (squidRoute?: RouteResponse["route"]
|
|
|
6
6
|
toToken: import("../..").Token | undefined;
|
|
7
7
|
toChain: import("@0xsquid/squid-types").ChainData | undefined;
|
|
8
8
|
fromChain: import("@0xsquid/squid-types").ChainData | undefined;
|
|
9
|
-
|
|
10
|
-
error:
|
|
9
|
+
isPending: boolean;
|
|
10
|
+
error: Error | null;
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChainType, RouteRequest, Token } from "@0xsquid/squid-types";
|
|
2
2
|
import type { AppConfig } from "../../core/types/config";
|
|
3
|
-
export declare const useGetRoute: () => import("@tanstack/react-query").UseMutationResult<{
|
|
3
|
+
export declare const useGetRoute: () => import("@tanstack/react-query/build/legacy/types").UseMutationResult<{
|
|
4
4
|
estimate: import("@0xsquid/squid-types").Estimate;
|
|
5
5
|
transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
|
|
6
6
|
params: RouteRequest;
|
|
7
7
|
quoteId: string;
|
|
8
|
-
} | undefined,
|
|
8
|
+
} | undefined, Error, {
|
|
9
9
|
fromChain: RouteRequest["fromChain"] | undefined;
|
|
10
10
|
toChain: RouteRequest["toChain"] | undefined;
|
|
11
11
|
fromToken: Token | undefined;
|
|
@@ -19,23 +19,23 @@ export declare const useGetRoute: () => import("@tanstack/react-query").UseMutat
|
|
|
19
19
|
preHook: AppConfig["preHook"];
|
|
20
20
|
postHook: AppConfig["postHook"];
|
|
21
21
|
}, unknown>;
|
|
22
|
-
export declare const useGetRouteWrapper: ({ enabled,
|
|
22
|
+
export declare const useGetRouteWrapper: ({ enabled, gcTime, staleTime, refetchOnWindowFocus, refetchIntervalInBackground, refetchInterval, quoteOnly, }: {
|
|
23
23
|
enabled?: boolean | undefined;
|
|
24
|
-
|
|
24
|
+
gcTime?: number | undefined;
|
|
25
25
|
staleTime?: number | undefined;
|
|
26
26
|
refetchOnWindowFocus?: any;
|
|
27
27
|
refetchIntervalInBackground?: boolean | undefined;
|
|
28
28
|
refetchInterval?: number | false | undefined;
|
|
29
29
|
quoteOnly?: boolean | undefined;
|
|
30
30
|
}) => {
|
|
31
|
-
squidRoute: import("@tanstack/react-query").UseQueryResult<{
|
|
31
|
+
squidRoute: import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
32
32
|
estimate: import("@0xsquid/squid-types").Estimate;
|
|
33
33
|
transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
|
|
34
34
|
params: RouteRequest;
|
|
35
35
|
quoteId: string;
|
|
36
|
-
} | undefined,
|
|
36
|
+
} | undefined, Error>;
|
|
37
37
|
showLoading: boolean;
|
|
38
|
-
squidRouteError:
|
|
38
|
+
squidRouteError: Error | null;
|
|
39
39
|
routeData: {
|
|
40
40
|
estimate: import("@0xsquid/squid-types").Estimate;
|
|
41
41
|
transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
|
|
@@ -9,7 +9,7 @@ interface UseSwapTransactionStatusParams {
|
|
|
9
9
|
* Fetch status of a Swap transaction
|
|
10
10
|
*/
|
|
11
11
|
export declare const useSwapTransactionStatus: ({ transaction, retry, refetchOnWindowFocus, enabled, }: UseSwapTransactionStatusParams) => {
|
|
12
|
-
transactionStatusQuery: import("@tanstack/react-query").UseQueryResult<import("@0xsquid/squid-types").StatusResponse, Error>;
|
|
12
|
+
transactionStatusQuery: import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@0xsquid/squid-types").StatusResponse, Error>;
|
|
13
13
|
latestStatus: TransactionStatus;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChainData, Token } from "@0xsquid/squid-types";
|
|
2
2
|
export declare const useAddToken: (chainToCompare: ChainData | undefined, tokenToCompare: Token | undefined) => {
|
|
3
|
-
addToken: import("@tanstack/react-query").UseMutationResult<boolean,
|
|
3
|
+
addToken: import("@tanstack/react-query/build/legacy/types").UseMutationResult<boolean, Error, {
|
|
4
4
|
chain?: ChainData | undefined;
|
|
5
5
|
token?: Token | undefined;
|
|
6
6
|
}, unknown>;
|
|
@@ -10,7 +10,7 @@ type QueryOptions = Omit<UseQueryOptions<EnsData, unknown, EnsData, (string | un
|
|
|
10
10
|
export declare function useEnsDataForAddress({ address, options, }: {
|
|
11
11
|
address?: string;
|
|
12
12
|
options?: QueryOptions;
|
|
13
|
-
}): UseQueryResult<EnsData>;
|
|
13
|
+
}): UseQueryResult<EnsData, unknown>;
|
|
14
14
|
/**
|
|
15
15
|
* Search for ENS names.
|
|
16
16
|
* Returns an exact match if the name is an ENS name, and multiple matches otherwise.
|
|
@@ -25,5 +25,5 @@ export declare function useEnsSearch({ name, enabled, delayMs, }: {
|
|
|
25
25
|
name?: string;
|
|
26
26
|
enabled?: boolean;
|
|
27
27
|
delayMs?: number;
|
|
28
|
-
}): UseQueryResult<import("../../core").EnsSearchResult[],
|
|
28
|
+
}): UseQueryResult<import("../../core").EnsSearchResult[], Error>;
|
|
29
29
|
export {};
|
|
@@ -2,7 +2,7 @@ import type { ChainData } from "@0xsquid/squid-types";
|
|
|
2
2
|
import { ChainType } from "@0xsquid/squid-types";
|
|
3
3
|
import { FullAddressData } from "../../core/types/wallet";
|
|
4
4
|
export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
5
|
-
changeNetworkIfNeeded: import("@tanstack/react-query").UseMutationResult<boolean, any, void, unknown>;
|
|
5
|
+
changeNetworkIfNeeded: import("@tanstack/react-query/build/legacy/types").UseMutationResult<boolean, any, void, unknown>;
|
|
6
6
|
networkConnected: boolean;
|
|
7
7
|
networkConnectedOnRightChain: boolean;
|
|
8
8
|
connectedAddress: FullAddressData;
|
|
@@ -315,7 +315,7 @@ export declare const useWallet: () => {
|
|
|
315
315
|
connectedAddresses: Record<ChainType, string | undefined>;
|
|
316
316
|
connectingWalletState: import("../store/useWalletStore").ConnectingWalletState;
|
|
317
317
|
disconnectWallet: (chainType: ChainType) => Promise<void>;
|
|
318
|
-
connectWallet: import("@tanstack/react-query").UseMutateAsyncFunction<boolean,
|
|
318
|
+
connectWallet: import("@tanstack/react-query/build/legacy/types").UseMutateAsyncFunction<boolean, Error, {
|
|
319
319
|
wallet: Wallet;
|
|
320
320
|
chain?: ChainData | undefined;
|
|
321
321
|
selectedChainTypes?: ChainType[] | undefined;
|
|
@@ -7,13 +7,13 @@ interface Params {
|
|
|
7
7
|
amount: bigint | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare function useXrplTrustLine({ address, chain, token, amount }: Params): {
|
|
10
|
-
createTrustLine: import("@tanstack/react-query").UseMutationResult<boolean,
|
|
11
|
-
trustLineQuery: import("@tanstack/react-query").UseQueryResult<TrustLine | null,
|
|
12
|
-
isTrustLineApproved: import("@tanstack/react-query").UseQueryResult<boolean,
|
|
13
|
-
accountActivatedInfo: import("@tanstack/react-query").UseQueryResult<{
|
|
10
|
+
createTrustLine: import("@tanstack/react-query/build/legacy/types").UseMutationResult<boolean, Error, void, unknown>;
|
|
11
|
+
trustLineQuery: import("@tanstack/react-query/build/legacy/types").UseQueryResult<TrustLine | null, Error>;
|
|
12
|
+
isTrustLineApproved: import("@tanstack/react-query/build/legacy/types").UseQueryResult<boolean, Error>;
|
|
13
|
+
accountActivatedInfo: import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
14
14
|
isActivated: boolean;
|
|
15
15
|
reserveBaseBn: bigint;
|
|
16
|
-
} | null,
|
|
16
|
+
} | null, Error>;
|
|
17
17
|
cancelCreateTrustLine: () => void | undefined;
|
|
18
18
|
};
|
|
19
19
|
export {};
|