wagmi 0.7.8 → 0.7.10
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/declarations/src/hooks/accounts/useBalance.d.ts +1 -10
- package/dist/declarations/src/hooks/contracts/useContractInfiniteReads.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/useContractRead.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/useContractReads.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/usePrepareContractWrite.d.ts +1 -1
- package/dist/declarations/src/hooks/contracts/useToken.d.ts +1 -9
- package/dist/declarations/src/hooks/ens/useEnsAddress.d.ts +1 -9
- package/dist/declarations/src/hooks/ens/useEnsAvatar.d.ts +1 -9
- package/dist/declarations/src/hooks/ens/useEnsName.d.ts +1 -6
- package/dist/declarations/src/hooks/ens/useEnsResolver.d.ts +1 -9
- package/dist/declarations/src/hooks/network-status/useBlockNumber.d.ts +2 -9
- package/dist/declarations/src/hooks/network-status/useFeeData.d.ts +2 -10
- package/dist/declarations/src/hooks/transactions/usePrepareSendTransaction.d.ts +1 -1
- package/dist/declarations/src/hooks/transactions/useTransaction.d.ts +2 -3
- package/dist/declarations/src/hooks/transactions/useWaitForTransaction.d.ts +1 -9
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/types/index.d.ts +8 -2
- package/dist/wagmi.cjs.dev.js +186 -135
- package/dist/wagmi.cjs.prod.js +186 -135
- package/dist/wagmi.esm.js +183 -136
- package/package.json +2 -2
|
@@ -5,13 +5,4 @@ export declare type UseBalanceArgs = Partial<FetchBalanceArgs> & {
|
|
|
5
5
|
watch?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare type UseBalanceConfig = QueryConfig<FetchBalanceResult, Error>;
|
|
8
|
-
export declare
|
|
9
|
-
chainId?: number | undefined;
|
|
10
|
-
}) => readonly [{
|
|
11
|
-
readonly entity: "balance";
|
|
12
|
-
readonly addressOrName: string | undefined;
|
|
13
|
-
readonly chainId: number | undefined;
|
|
14
|
-
readonly formatUnits: number | "wei" | "kwei" | "mwei" | "gwei" | "szabo" | "finney" | "ether" | undefined;
|
|
15
|
-
readonly token: `0x${string}` | undefined;
|
|
16
|
-
}];
|
|
17
|
-
export declare function useBalance({ addressOrName, cacheTime, chainId: chainId_, enabled, formatUnits, staleTime, suspense, token, watch, onError, onSettled, onSuccess, }?: UseBalanceArgs & UseBalanceConfig): import("../utils").UseQueryResult<FetchBalanceResult, Error>;
|
|
8
|
+
export declare function useBalance({ addressOrName, cacheTime, chainId: chainId_, enabled, formatUnits, scopeKey, staleTime, suspense, token, watch, onError, onSettled, onSuccess, }?: UseBalanceArgs & UseBalanceConfig): import("../utils").UseQueryResult<FetchBalanceResult, Error>;
|
|
@@ -15,7 +15,7 @@ export declare type UseContractInfiniteReadsConfig<TContracts extends unknown[]
|
|
|
15
15
|
export declare function useContractInfiniteReads<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
16
16
|
abi: TAbi;
|
|
17
17
|
functionName: TFunctionName;
|
|
18
|
-
}[], TPageParam = any>({ allowFailure, cacheKey, cacheTime, contracts, enabled: enabled_, getNextPageParam, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, overrides, select, staleTime, suspense, }: UseContractInfiniteReadsConfig<TContracts, TPageParam>): UseInfiniteQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
18
|
+
}[], TPageParam = any>({ allowFailure, cacheKey, cacheTime, contracts, enabled: enabled_, getNextPageParam, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, overrides, scopeKey, select, staleTime, suspense, }: UseContractInfiniteReadsConfig<TContracts, TPageParam>): UseInfiniteQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
19
19
|
export declare function paginatedIndexesConfig<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
20
20
|
abi: TAbi;
|
|
21
21
|
functionName: TFunctionName;
|
|
@@ -12,7 +12,7 @@ export declare type UseContractReadConfig<TAbi = Abi, TFunctionName = string> =
|
|
|
12
12
|
/** Subscribe to changes */
|
|
13
13
|
watch?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare function useContractRead<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, address, functionName, args, chainId: chainId_, overrides, cacheOnBlock, cacheTime, enabled: enabled_, isDataEqual, select, staleTime, suspense, watch, onError, onSettled, onSuccess, }?: UseContractReadConfig<TAbi, TFunctionName>): import("../utils").UseQueryResult<import("@wagmi/core/internal").GetReturnType<{
|
|
15
|
+
export declare function useContractRead<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, address, functionName, args, chainId: chainId_, overrides, cacheOnBlock, cacheTime, enabled: enabled_, isDataEqual, scopeKey, select, staleTime, suspense, watch, onError, onSettled, onSuccess, }?: UseContractReadConfig<TAbi, TFunctionName>): import("../utils").UseQueryResult<import("@wagmi/core/internal").GetReturnType<{
|
|
16
16
|
abi: TAbi;
|
|
17
17
|
functionName: TFunctionName;
|
|
18
18
|
}>, Error>;
|
|
@@ -17,4 +17,4 @@ export declare type UseContractReadsConfig<TContracts extends unknown[]> = ReadC
|
|
|
17
17
|
export declare function useContractReads<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TContracts extends {
|
|
18
18
|
abi: TAbi;
|
|
19
19
|
functionName: TFunctionName;
|
|
20
|
-
}[]>({ allowFailure, cacheOnBlock, cacheTime, contracts, overrides, enabled: enabled_, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, select, staleTime, suspense, watch, }?: UseContractReadsConfig<TContracts>): UseQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
20
|
+
}[]>({ allowFailure, cacheOnBlock, cacheTime, scopeKey, contracts, overrides, enabled: enabled_, isDataEqual, keepPreviousData, onError, onSettled, onSuccess, select, staleTime, suspense, watch, }?: UseContractReadsConfig<TContracts>): UseQueryResult<ReadContractsResult<TContracts>, Error>;
|
|
@@ -24,7 +24,7 @@ export declare type UsePrepareContractWriteConfig<TAbi extends Abi | readonly un
|
|
|
24
24
|
* const { data, isLoading, isSuccess, write } = useContractWrite(config)
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export declare function usePrepareContractWrite<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, abi, functionName, chainId, args, overrides, cacheTime, enabled, staleTime, suspense, onError, onSettled, onSuccess, }?: UsePrepareContractWriteConfig<TAbi, TFunctionName>): Pick<import("@tanstack/react-query").QueryObserverResult<PrepareWriteContractResult<Abi, string>, Error>, "error" | "data" | "fetchStatus" | "isError" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isLoading" | "isRefetching" | "isSuccess" | "refetch"> & {
|
|
27
|
+
export declare function usePrepareContractWrite<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, abi, functionName, chainId, args, overrides, cacheTime, enabled, scopeKey, staleTime, suspense, onError, onSettled, onSuccess, }?: UsePrepareContractWriteConfig<TAbi, TFunctionName>): Pick<import("@tanstack/react-query").QueryObserverResult<PrepareWriteContractResult<Abi, string>, Error>, "error" | "data" | "fetchStatus" | "isError" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isLoading" | "isRefetching" | "isSuccess" | "refetch"> & {
|
|
28
28
|
isIdle: boolean;
|
|
29
29
|
status: "error" | "success" | "idle" | "loading";
|
|
30
30
|
internal: Pick<import("@tanstack/react-query").QueryObserverResult<unknown, unknown>, "failureCount" | "isPaused" | "dataUpdatedAt" | "errorUpdatedAt" | "isLoadingError" | "isPlaceholderData" | "isPreviousData" | "isRefetchError" | "isStale" | "remove">;
|
|
@@ -2,13 +2,5 @@ import { FetchTokenArgs, FetchTokenResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseTokenArgs = Partial<FetchTokenArgs>;
|
|
4
4
|
export declare type UseTokenConfig = QueryConfig<FetchTokenResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
chainId?: number | undefined;
|
|
7
|
-
}) => readonly [{
|
|
8
|
-
readonly entity: "token";
|
|
9
|
-
readonly address: `0x${string}` | undefined;
|
|
10
|
-
readonly chainId: number | undefined;
|
|
11
|
-
readonly formatUnits: number | "wei" | "kwei" | "mwei" | "gwei" | "szabo" | "finney" | "ether" | undefined;
|
|
12
|
-
}];
|
|
13
|
-
export declare function useToken({ address, chainId: chainId_, formatUnits, cacheTime, enabled, staleTime, // 24 hours
|
|
5
|
+
export declare function useToken({ address, chainId: chainId_, formatUnits, cacheTime, enabled, scopeKey, staleTime, // 24 hours
|
|
14
6
|
suspense, onError, onSettled, onSuccess, }?: UseTokenArgs & UseTokenConfig): import("../utils").UseQueryResult<FetchTokenResult, Error>;
|
|
@@ -2,13 +2,5 @@ import { FetchEnsAddressArgs, FetchEnsAddressResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseEnsAddressArgs = Partial<FetchEnsAddressArgs>;
|
|
4
4
|
export declare type UseEnsAddressConfig = QueryConfig<FetchEnsAddressResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
chainId?: number | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
}) => readonly [{
|
|
9
|
-
readonly entity: "ensAddress";
|
|
10
|
-
readonly chainId: number | undefined;
|
|
11
|
-
readonly name: string | undefined;
|
|
12
|
-
}];
|
|
13
|
-
export declare function useEnsAddress({ cacheTime, chainId: chainId_, enabled, name, staleTime, // 24 hours
|
|
5
|
+
export declare function useEnsAddress({ cacheTime, chainId: chainId_, enabled, name, scopeKey, staleTime, // 24 hours
|
|
14
6
|
suspense, onError, onSettled, onSuccess, }?: UseEnsAddressArgs & UseEnsAddressConfig): import("../utils").UseQueryResult<FetchEnsAddressResult, Error>;
|
|
@@ -2,13 +2,5 @@ import { FetchEnsAvatarArgs, FetchEnsAvatarResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseEnsAvatarArgs = Partial<FetchEnsAvatarArgs>;
|
|
4
4
|
export declare type UseEnsLookupConfig = QueryConfig<FetchEnsAvatarResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
addressOrName?: UseEnsAvatarArgs['addressOrName'];
|
|
7
|
-
chainId?: number | undefined;
|
|
8
|
-
}) => readonly [{
|
|
9
|
-
readonly entity: "ensAvatar";
|
|
10
|
-
readonly addressOrName: string | undefined;
|
|
11
|
-
readonly chainId: number | undefined;
|
|
12
|
-
}];
|
|
13
|
-
export declare function useEnsAvatar({ addressOrName, cacheTime, chainId: chainId_, enabled, staleTime, // 24 hours
|
|
5
|
+
export declare function useEnsAvatar({ addressOrName, cacheTime, chainId: chainId_, enabled, scopeKey, staleTime, // 24 hours
|
|
14
6
|
suspense, onError, onSettled, onSuccess, }?: UseEnsAvatarArgs & UseEnsLookupConfig): import("../utils").UseQueryResult<FetchEnsAvatarResult, Error>;
|
|
@@ -2,10 +2,5 @@ import { FetchEnsNameArgs, FetchEnsNameResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseEnsNameArgs = Partial<FetchEnsNameArgs>;
|
|
4
4
|
export declare type UseEnsNameConfig = QueryConfig<FetchEnsNameResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
readonly entity: "ensName";
|
|
7
|
-
readonly address: `0x${string}` | undefined;
|
|
8
|
-
readonly chainId: number | undefined;
|
|
9
|
-
}];
|
|
10
|
-
export declare function useEnsName({ address, cacheTime, chainId: chainId_, enabled, staleTime, // 24 hours
|
|
5
|
+
export declare function useEnsName({ address, cacheTime, chainId: chainId_, enabled, scopeKey, staleTime, // 24 hours
|
|
11
6
|
suspense, onError, onSettled, onSuccess, }?: UseEnsNameArgs & UseEnsNameConfig): import("../utils").UseQueryResult<FetchEnsNameResult, Error>;
|
|
@@ -2,13 +2,5 @@ import { FetchEnsResolverArgs, FetchEnsResolverResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseEnsResolverArgs = Partial<FetchEnsResolverArgs>;
|
|
4
4
|
export declare type UseEnsResolverConfig = QueryConfig<FetchEnsResolverResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
chainId?: number | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
}) => readonly [{
|
|
9
|
-
readonly entity: "ensResolver";
|
|
10
|
-
readonly chainId: number | undefined;
|
|
11
|
-
readonly name: string | undefined;
|
|
12
|
-
}];
|
|
13
|
-
export declare function useEnsResolver({ cacheTime, chainId: chainId_, enabled, name, staleTime, // 24 hours
|
|
5
|
+
export declare function useEnsResolver({ cacheTime, chainId: chainId_, name, enabled, scopeKey, staleTime, // 24 hours
|
|
14
6
|
suspense, onError, onSettled, onSuccess, }?: UseEnsResolverArgs & UseEnsResolverConfig): import("../utils").UseQueryResult<FetchEnsResolverResult, Error>;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { FetchBlockNumberArgs, FetchBlockNumberResult } from '@wagmi/core';
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
|
-
declare type UseBlockNumberArgs = Partial<FetchBlockNumberArgs> & {
|
|
3
|
+
export declare type UseBlockNumberArgs = Partial<FetchBlockNumberArgs> & {
|
|
4
4
|
/** Function fires when a new block is created */
|
|
5
5
|
onBlock?: (blockNumber: number) => void;
|
|
6
6
|
/** Subscribe to changes */
|
|
7
7
|
watch?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare type UseBlockNumberConfig = QueryConfig<FetchBlockNumberResult, Error>;
|
|
10
|
-
export declare
|
|
11
|
-
chainId?: number | undefined;
|
|
12
|
-
}) => readonly [{
|
|
13
|
-
readonly entity: "blockNumber";
|
|
14
|
-
readonly chainId: number | undefined;
|
|
15
|
-
}];
|
|
16
|
-
export declare function useBlockNumber({ cacheTime, chainId: chainId_, enabled, staleTime, suspense, watch, onBlock, onError, onSettled, onSuccess, }?: UseBlockNumberArgs & UseBlockNumberConfig): import("../utils").UseQueryResult<number, Error>;
|
|
17
|
-
export {};
|
|
10
|
+
export declare function useBlockNumber({ cacheTime, chainId: chainId_, enabled, scopeKey, staleTime, suspense, watch, onBlock, onError, onSettled, onSuccess, }?: UseBlockNumberArgs & UseBlockNumberConfig): import("../utils").UseQueryResult<number, Error>;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { FetchFeeDataArgs, FetchFeeDataResult } from '@wagmi/core';
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
|
-
declare type UseFeeDataArgs = Partial<FetchFeeDataArgs> & {
|
|
3
|
+
export declare type UseFeeDataArgs = Partial<FetchFeeDataArgs> & {
|
|
4
4
|
/** Subscribe to changes */
|
|
5
5
|
watch?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare type UseFeedDataConfig = QueryConfig<FetchFeeDataResult, Error>;
|
|
8
|
-
export declare
|
|
9
|
-
chainId?: number | undefined;
|
|
10
|
-
}) => readonly [{
|
|
11
|
-
readonly entity: "feeData";
|
|
12
|
-
readonly chainId: number | undefined;
|
|
13
|
-
readonly formatUnits: number | "wei" | "kwei" | "mwei" | "gwei" | "szabo" | "finney" | "ether" | undefined;
|
|
14
|
-
}];
|
|
15
|
-
export declare function useFeeData({ cacheTime, chainId: chainId_, enabled, formatUnits, staleTime, suspense, watch, onError, onSettled, onSuccess, }?: UseFeeDataArgs & UseFeedDataConfig): import("../utils").UseQueryResult<FetchFeeDataResult, Error>;
|
|
16
|
-
export {};
|
|
8
|
+
export declare function useFeeData({ cacheTime, chainId: chainId_, enabled, formatUnits, scopeKey, staleTime, suspense, watch, onError, onSettled, onSuccess, }?: UseFeeDataArgs & UseFeedDataConfig): import("../utils").UseQueryResult<FetchFeeDataResult, Error>;
|
|
@@ -15,7 +15,7 @@ export declare type UsePrepareSendTransactionConfig = Partial<PrepareSendTransac
|
|
|
15
15
|
* })
|
|
16
16
|
* const result = useSendTransaction(config)
|
|
17
17
|
*/
|
|
18
|
-
export declare function usePrepareSendTransaction({ chainId, request, cacheTime, enabled, staleTime, // 24 hours
|
|
18
|
+
export declare function usePrepareSendTransaction({ chainId, request, cacheTime, enabled, scopeKey, staleTime, // 24 hours
|
|
19
19
|
suspense, onError, onSettled, onSuccess, }?: UsePrepareSendTransactionConfig): Pick<import("@tanstack/react-query").QueryObserverResult<PrepareSendTransactionResult, Error>, "error" | "data" | "fetchStatus" | "isError" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isLoading" | "isRefetching" | "isSuccess" | "refetch"> & {
|
|
20
20
|
isIdle: boolean;
|
|
21
21
|
status: "error" | "success" | "idle" | "loading";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchTransactionArgs, FetchTransactionResult } from '@wagmi/core';
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
|
-
declare type UseTransactionArgs = Partial<FetchTransactionArgs>;
|
|
3
|
+
export declare type UseTransactionArgs = Partial<FetchTransactionArgs>;
|
|
4
4
|
export declare type UseTransactionConfig = QueryConfig<FetchTransactionResult, Error>;
|
|
5
5
|
/**
|
|
6
6
|
* @description Fetches transaction for hash
|
|
@@ -13,5 +13,4 @@ export declare type UseTransactionConfig = QueryConfig<FetchTransactionResult, E
|
|
|
13
13
|
* hash: '0x...',
|
|
14
14
|
* })
|
|
15
15
|
*/
|
|
16
|
-
export declare function useTransaction({ cacheTime, chainId: chainId_, enabled, hash, staleTime, suspense, onError, onSettled, onSuccess, }?: UseTransactionArgs & UseTransactionConfig): import("../utils").UseQueryResult<import("@ethersproject/providers").TransactionResponse, Error>;
|
|
17
|
-
export {};
|
|
16
|
+
export declare function useTransaction({ cacheTime, chainId: chainId_, enabled, hash, scopeKey, staleTime, suspense, onError, onSettled, onSuccess, }?: UseTransactionArgs & UseTransactionConfig): import("../utils").UseQueryResult<import("@ethersproject/providers").TransactionResponse, Error>;
|
|
@@ -2,12 +2,4 @@ import { WaitForTransactionArgs, WaitForTransactionResult } from '@wagmi/core';
|
|
|
2
2
|
import { QueryConfig } from '../../types';
|
|
3
3
|
export declare type UseWaitForTransactionArgs = Partial<WaitForTransactionArgs>;
|
|
4
4
|
export declare type UseWaitForTransactionConfig = QueryConfig<WaitForTransactionResult, Error>;
|
|
5
|
-
export declare
|
|
6
|
-
readonly entity: "waitForTransaction";
|
|
7
|
-
readonly confirmations: number | undefined;
|
|
8
|
-
readonly chainId: number | undefined;
|
|
9
|
-
readonly hash: `0x${string}` | undefined;
|
|
10
|
-
readonly timeout: number | undefined;
|
|
11
|
-
readonly wait: ((confirmations?: number | undefined) => Promise<import("@ethersproject/providers").TransactionReceipt>) | undefined;
|
|
12
|
-
}];
|
|
13
|
-
export declare function useWaitForTransaction({ chainId: chainId_, confirmations, hash, timeout, wait, cacheTime, enabled, staleTime, suspense, onError, onSettled, onSuccess, }?: UseWaitForTransactionArgs & UseWaitForTransactionConfig): import("../utils").UseQueryResult<import("@ethersproject/providers").TransactionReceipt, Error>;
|
|
5
|
+
export declare function useWaitForTransaction({ chainId: chainId_, confirmations, hash, timeout, wait, cacheTime, enabled, scopeKey, staleTime, suspense, onError, onSettled, onSuccess, }?: UseWaitForTransactionArgs & UseWaitForTransactionConfig): import("../utils").UseQueryResult<import("@ethersproject/providers").TransactionReceipt, Error>;
|
|
@@ -4,6 +4,6 @@ export { Context, WagmiConfig, useClient } from './context';
|
|
|
4
4
|
export type { WagmiConfigProps } from './context';
|
|
5
5
|
export { paginatedIndexesConfig, useAccount, useBalance, useBlockNumber, useConnect, useContract, useContractEvent, useContractInfiniteReads, useContractRead, useContractReads, useContractWrite, useDisconnect, useEnsAddress, useEnsAvatar, useEnsName, useEnsResolver, useFeeData, useInfiniteQuery, useMutation, useNetwork, useProvider, useQuery, useQueryClient, useSendTransaction, usePrepareContractWrite, usePrepareSendTransaction, useSignMessage, useSignTypedData, useSigner, useSwitchNetwork, useToken, useTransaction, useWaitForTransaction, useWebSocketProvider, } from './hooks';
|
|
6
6
|
export { deserialize, serialize } from './utils';
|
|
7
|
-
export { AddChainError, ChainDoesNotSupportMulticallError, ChainMismatchError, ChainNotConfiguredError, Connector, ConnectorAlreadyConnectedError, ConnectorNotFoundError, ContractMethodDoesNotExistError, ContractMethodNoResultError, ContractMethodRevertedError, ContractResultDecodeError, ProviderChainsNotFound, ProviderRpcError, ResourceUnavailableError, RpcError, SwitchChainError, SwitchChainNotSupportedError, UserRejectedRequestError, alchemyRpcUrls, allChains, chain, chainId, configureChains, createStorage, deepEqual, defaultChains, defaultL2Chains, erc20ABI, erc721ABI, etherscanBlockExplorers, infuraRpcUrls, publicRpcUrls, readContracts, } from '@wagmi/core';
|
|
7
|
+
export { AddChainError, ChainDoesNotSupportMulticallError, ChainMismatchError, ChainNotConfiguredError, Connector, ConnectorAlreadyConnectedError, ConnectorNotFoundError, ContractMethodDoesNotExistError, ContractMethodNoResultError, ContractMethodRevertedError, ContractResultDecodeError, ProviderChainsNotFound, ProviderRpcError, ResourceUnavailableError, RpcError, SwitchChainError, SwitchChainNotSupportedError, UserRejectedRequestError, alchemyRpcUrls, allChains, chain, chainId, configureChains, createStorage, deepEqual, defaultChains, defaultL2Chains, erc20ABI, erc721ABI, erc4626ABI, etherscanBlockExplorers, infuraRpcUrls, publicRpcUrls, readContracts, } from '@wagmi/core';
|
|
8
8
|
export type { Chain, ChainProviderFn, ConnectorData, ConnectorEvents, Storage, Unit, } from '@wagmi/core';
|
|
9
9
|
export type { Address } from 'abitype';
|
|
@@ -20,8 +20,14 @@ declare module 'ethers/lib/utils' {
|
|
|
20
20
|
} | ResolvedConfig['BytesType'] | string): string;
|
|
21
21
|
}
|
|
22
22
|
export declare type QueryFunctionArgs<T extends (...args: any) => any> = QueryFunctionContext<ReturnType<T>>;
|
|
23
|
-
export declare type QueryConfig<Data, Error> = Pick<UseQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'isDataEqual' | 'keepPreviousData' | 'staleTime' | 'select' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'
|
|
24
|
-
|
|
23
|
+
export declare type QueryConfig<Data, Error> = Pick<UseQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'isDataEqual' | 'keepPreviousData' | 'staleTime' | 'select' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'> & {
|
|
24
|
+
/** Scope the cache to a given context. */
|
|
25
|
+
scopeKey?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare type InfiniteQueryConfig<Data, Error> = Pick<UseInfiniteQueryOptions<Data, Error>, 'cacheTime' | 'enabled' | 'getNextPageParam' | 'isDataEqual' | 'keepPreviousData' | 'select' | 'staleTime' | 'suspense' | 'onError' | 'onSettled' | 'onSuccess'> & {
|
|
28
|
+
/** Scope the cache to a given context. */
|
|
29
|
+
scopeKey?: string;
|
|
30
|
+
};
|
|
25
31
|
export declare type MutationConfig<Data, Error, Variables = void> = {
|
|
26
32
|
/** Function fires if mutation encounters error */
|
|
27
33
|
onError?: UseMutationOptions<Data, Error, Variables>['onError'];
|