@wagmi/core 2.0.0-alpha.5 → 2.0.0-alpha.7
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/esm/actions/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/actions/estimateGas.js.map +1 -1
- package/dist/esm/actions/getBalance.js.map +1 -1
- package/dist/esm/actions/getBlock.js.map +1 -1
- package/dist/esm/actions/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/getEnsAvatar.js.map +1 -1
- package/dist/esm/actions/getEnsName.js.map +1 -1
- package/dist/esm/actions/getEnsResolver.js.map +1 -1
- package/dist/esm/actions/getToken.js.map +1 -1
- package/dist/esm/actions/getTransaction.js.map +1 -1
- package/dist/esm/actions/multicall.js.map +1 -1
- package/dist/esm/actions/readContract.js.map +1 -1
- package/dist/esm/actions/readContracts.js.map +1 -1
- package/dist/esm/actions/sendTransaction.js +1 -3
- package/dist/esm/actions/sendTransaction.js.map +1 -1
- package/dist/esm/actions/signMessage.js.map +1 -1
- package/dist/esm/actions/signTypedData.js.map +1 -1
- package/dist/esm/actions/simulateContract.js.map +1 -1
- package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/writeContract.js +2 -4
- package/dist/esm/actions/writeContract.js.map +1 -1
- package/dist/esm/connectors/injected.js +3 -5
- package/dist/esm/connectors/injected.js.map +1 -1
- package/dist/esm/exports/query.js +1 -0
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/connect.d.ts +1 -1
- package/dist/types/actions/connect.d.ts.map +1 -1
- package/dist/types/actions/disconnect.d.ts +1 -1
- package/dist/types/actions/disconnect.d.ts.map +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +2 -2
- package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/actions/estimateGas.d.ts +2 -2
- package/dist/types/actions/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/getBalance.d.ts +2 -2
- package/dist/types/actions/getBalance.d.ts.map +1 -1
- package/dist/types/actions/getBlock.d.ts +2 -2
- package/dist/types/actions/getBlock.d.ts.map +1 -1
- package/dist/types/actions/getBlockNumber.d.ts +2 -2
- package/dist/types/actions/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/getConnectorClient.d.ts +1 -1
- package/dist/types/actions/getConnectorClient.d.ts.map +1 -1
- package/dist/types/actions/getEnsAddress.d.ts +2 -2
- package/dist/types/actions/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/getEnsAvatar.d.ts +2 -2
- package/dist/types/actions/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/actions/getEnsName.d.ts +2 -2
- package/dist/types/actions/getEnsName.d.ts.map +1 -1
- package/dist/types/actions/getEnsResolver.d.ts +2 -2
- package/dist/types/actions/getEnsResolver.d.ts.map +1 -1
- package/dist/types/actions/getToken.d.ts +2 -1
- package/dist/types/actions/getToken.d.ts.map +1 -1
- package/dist/types/actions/getTransaction.d.ts +2 -2
- package/dist/types/actions/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/getWalletClient.d.ts +2 -2
- package/dist/types/actions/getWalletClient.d.ts.map +1 -1
- package/dist/types/actions/multicall.d.ts +2 -1
- package/dist/types/actions/multicall.d.ts.map +1 -1
- package/dist/types/actions/readContract.d.ts +2 -2
- package/dist/types/actions/readContract.d.ts.map +1 -1
- package/dist/types/actions/readContracts.d.ts +3 -1
- package/dist/types/actions/readContracts.d.ts.map +1 -1
- package/dist/types/actions/reconnect.d.ts +1 -1
- package/dist/types/actions/reconnect.d.ts.map +1 -1
- package/dist/types/actions/sendTransaction.d.ts +2 -2
- package/dist/types/actions/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/signMessage.d.ts +2 -2
- package/dist/types/actions/signMessage.d.ts.map +1 -1
- package/dist/types/actions/signTypedData.d.ts +2 -2
- package/dist/types/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/actions/simulateContract.d.ts +2 -2
- package/dist/types/actions/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/switchAccount.d.ts +1 -1
- package/dist/types/actions/switchAccount.d.ts.map +1 -1
- package/dist/types/actions/switchChain.d.ts +1 -1
- package/dist/types/actions/switchChain.d.ts.map +1 -1
- package/dist/types/actions/waitForTransactionReceipt.d.ts +3 -2
- package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/writeContract.d.ts +3 -2
- package/dist/types/actions/writeContract.d.ts.map +1 -1
- package/dist/types/connectors/injected.d.ts +4 -5
- package/dist/types/connectors/injected.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts +26 -26
- package/dist/types/exports/actions.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +26 -26
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +1 -0
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/query/connect.d.ts +3 -3
- package/dist/types/query/connect.d.ts.map +1 -1
- package/dist/types/query/disconnect.d.ts +3 -3
- package/dist/types/query/disconnect.d.ts.map +1 -1
- package/dist/types/query/reconnect.d.ts +3 -3
- package/dist/types/query/reconnect.d.ts.map +1 -1
- package/dist/types/query/sendTransaction.d.ts +3 -3
- package/dist/types/query/sendTransaction.d.ts.map +1 -1
- package/dist/types/query/signMessage.d.ts +3 -3
- package/dist/types/query/signMessage.d.ts.map +1 -1
- package/dist/types/query/signTypedData.d.ts +3 -3
- package/dist/types/query/signTypedData.d.ts.map +1 -1
- package/dist/types/query/switchAccount.d.ts +3 -3
- package/dist/types/query/switchAccount.d.ts.map +1 -1
- package/dist/types/query/switchChain.d.ts +3 -3
- package/dist/types/query/switchChain.d.ts.map +1 -1
- package/dist/types/query/writeContract.d.ts +3 -3
- package/dist/types/query/writeContract.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -10
- package/src/actions/connect.ts +1 -1
- package/src/actions/disconnect.ts +1 -1
- package/src/actions/estimateFeesPerGas.ts +2 -1
- package/src/actions/estimateGas.ts +2 -1
- package/src/actions/getBalance.ts +2 -1
- package/src/actions/getBlock.ts +2 -1
- package/src/actions/getBlockNumber.ts +2 -1
- package/src/actions/getConnectorClient.ts +1 -1
- package/src/actions/getEnsAddress.ts +2 -1
- package/src/actions/getEnsAvatar.ts +2 -1
- package/src/actions/getEnsName.ts +2 -1
- package/src/actions/getEnsResolver.ts +2 -1
- package/src/actions/getToken.ts +2 -2
- package/src/actions/getTransaction.ts +2 -1
- package/src/actions/getWalletClient.ts +2 -2
- package/src/actions/multicall.ts +3 -0
- package/src/actions/readContract.ts +2 -1
- package/src/actions/readContracts.ts +3 -3
- package/src/actions/reconnect.ts +1 -1
- package/src/actions/sendTransaction.ts +5 -6
- package/src/actions/signMessage.ts +2 -1
- package/src/actions/signTypedData.ts +2 -1
- package/src/actions/simulateContract.ts +2 -1
- package/src/actions/switchAccount.ts +1 -1
- package/src/actions/switchChain.ts +1 -1
- package/src/actions/waitForTransactionReceipt.ts +6 -7
- package/src/actions/writeContract.ts +8 -7
- package/src/connectors/injected.ts +8 -13
- package/src/exports/actions.ts +26 -26
- package/src/exports/index.ts +26 -26
- package/src/exports/query.ts +1 -0
- package/src/query/connect.ts +4 -4
- package/src/query/disconnect.ts +4 -4
- package/src/query/estimateFeesPerGas.ts +2 -2
- package/src/query/estimateGas.ts +2 -2
- package/src/query/getBalance.ts +2 -2
- package/src/query/getBlock.ts +2 -2
- package/src/query/getBlockNumber.ts +2 -2
- package/src/query/getConnectorClient.ts +2 -2
- package/src/query/getEnsAddress.ts +2 -2
- package/src/query/getEnsAvatar.ts +2 -2
- package/src/query/getEnsName.ts +2 -2
- package/src/query/getEnsResolver.ts +2 -2
- package/src/query/getToken.ts +2 -2
- package/src/query/getTransaction.ts +2 -2
- package/src/query/getWalletClient.ts +2 -2
- package/src/query/infiniteReadContracts.ts +2 -2
- package/src/query/readContract.ts +2 -2
- package/src/query/readContracts.ts +2 -2
- package/src/query/reconnect.ts +4 -4
- package/src/query/sendTransaction.ts +4 -4
- package/src/query/signMessage.ts +4 -4
- package/src/query/signTypedData.ts +4 -4
- package/src/query/simulateContract.ts +2 -2
- package/src/query/switchAccount.ts +4 -4
- package/src/query/switchChain.ts +4 -4
- package/src/query/waitForTransactionReceipt.ts +2 -2
- package/src/query/writeContract.ts +4 -4
- package/src/version.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetEnsAddressErrorType,
|
|
5
5
|
type GetEnsAddressParameters,
|
|
6
6
|
type GetEnsAddressReturnType,
|
|
7
7
|
getEnsAddress,
|
|
@@ -28,7 +28,7 @@ export function getEnsAddressQueryOptions<config extends Config>(
|
|
|
28
28
|
queryKey: getEnsAddressQueryKey(options),
|
|
29
29
|
} as const satisfies QueryOptions<
|
|
30
30
|
GetEnsAddressQueryFnData,
|
|
31
|
-
|
|
31
|
+
GetEnsAddressErrorType,
|
|
32
32
|
GetEnsAddressData,
|
|
33
33
|
GetEnsAddressQueryKey<config>
|
|
34
34
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetEnsAvatarErrorType,
|
|
5
5
|
type GetEnsAvatarParameters,
|
|
6
6
|
type GetEnsAvatarReturnType,
|
|
7
7
|
getEnsAvatar,
|
|
@@ -28,7 +28,7 @@ export function getEnsAvatarQueryOptions<config extends Config>(
|
|
|
28
28
|
queryKey: getEnsAvatarQueryKey(options),
|
|
29
29
|
} as const satisfies QueryOptions<
|
|
30
30
|
GetEnsAvatarQueryFnData,
|
|
31
|
-
|
|
31
|
+
GetEnsAvatarErrorType,
|
|
32
32
|
GetEnsAvatarData,
|
|
33
33
|
GetEnsAvatarQueryKey<config>
|
|
34
34
|
>
|
package/src/query/getEnsName.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetEnsNameErrorType,
|
|
5
5
|
type GetEnsNameParameters,
|
|
6
6
|
type GetEnsNameReturnType,
|
|
7
7
|
getEnsName,
|
|
@@ -28,7 +28,7 @@ export function getEnsNameQueryOptions<config extends Config>(
|
|
|
28
28
|
queryKey: getEnsNameQueryKey(options),
|
|
29
29
|
} as const satisfies QueryOptions<
|
|
30
30
|
GetEnsNameQueryFnData,
|
|
31
|
-
|
|
31
|
+
GetEnsNameErrorType,
|
|
32
32
|
GetEnsNameData,
|
|
33
33
|
GetEnsNameQueryKey<config>
|
|
34
34
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetEnsResolverErrorType,
|
|
5
5
|
type GetEnsResolverParameters,
|
|
6
6
|
type GetEnsResolverReturnType,
|
|
7
7
|
getEnsResolver,
|
|
@@ -28,7 +28,7 @@ export function getEnsResolverQueryOptions<config extends Config>(
|
|
|
28
28
|
queryKey: getEnsResolverQueryKey(options),
|
|
29
29
|
} as const satisfies QueryOptions<
|
|
30
30
|
GetEnsResolverQueryFnData,
|
|
31
|
-
|
|
31
|
+
GetEnsResolverErrorType,
|
|
32
32
|
GetEnsResolverData,
|
|
33
33
|
GetEnsResolverQueryKey<config>
|
|
34
34
|
>
|
package/src/query/getToken.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetTokenErrorType,
|
|
5
5
|
type GetTokenParameters,
|
|
6
6
|
type GetTokenReturnType,
|
|
7
7
|
getToken,
|
|
@@ -28,7 +28,7 @@ export function getTokenQueryOptions<config extends Config>(
|
|
|
28
28
|
queryKey: getTokenQueryKey(options),
|
|
29
29
|
} as const satisfies QueryOptions<
|
|
30
30
|
GetTokenQueryFnData,
|
|
31
|
-
|
|
31
|
+
GetTokenErrorType,
|
|
32
32
|
GetTokenData,
|
|
33
33
|
GetTokenQueryKey<config>
|
|
34
34
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetTransactionErrorType,
|
|
5
5
|
type GetTransactionParameters,
|
|
6
6
|
type GetTransactionReturnType,
|
|
7
7
|
getTransaction,
|
|
@@ -40,7 +40,7 @@ export function getTransactionQueryOptions<
|
|
|
40
40
|
queryKey: getTransactionQueryKey(options),
|
|
41
41
|
} as const satisfies QueryOptions<
|
|
42
42
|
GetTransactionQueryFnData<config, chainId>,
|
|
43
|
-
|
|
43
|
+
GetTransactionErrorType,
|
|
44
44
|
GetTransactionData<config, chainId>,
|
|
45
45
|
GetTransactionQueryKey<config, chainId>
|
|
46
46
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetWalletClientErrorType,
|
|
5
5
|
type GetWalletClientParameters,
|
|
6
6
|
type GetWalletClientReturnType,
|
|
7
7
|
getWalletClient,
|
|
@@ -32,7 +32,7 @@ export function getWalletClientQueryOptions<
|
|
|
32
32
|
queryKey: getWalletClientQueryKey(options),
|
|
33
33
|
} as const satisfies QueryOptions<
|
|
34
34
|
GetWalletClientQueryFnData<config, chainId>,
|
|
35
|
-
|
|
35
|
+
GetWalletClientErrorType,
|
|
36
36
|
GetWalletClientData<config, chainId>,
|
|
37
37
|
GetWalletClientQueryKey<config, chainId>
|
|
38
38
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContractFunctionParameters } from 'viem'
|
|
2
2
|
import {
|
|
3
|
-
type
|
|
3
|
+
type ReadContractsErrorType,
|
|
4
4
|
type ReadContractsParameters,
|
|
5
5
|
type ReadContractsReturnType,
|
|
6
6
|
readContracts,
|
|
@@ -58,7 +58,7 @@ export function infiniteReadContractsQueryOptions<
|
|
|
58
58
|
queryKey: infiniteReadContractsQueryKey(options),
|
|
59
59
|
} as const satisfies InfiniteQueryOptions<
|
|
60
60
|
InfiniteReadContractsQueryFnData<contracts, allowFailure>,
|
|
61
|
-
|
|
61
|
+
ReadContractsErrorType,
|
|
62
62
|
InfiniteReadContractsData<contracts, allowFailure>,
|
|
63
63
|
InfiniteReadContractsData<contracts, allowFailure>,
|
|
64
64
|
InfiniteReadContractsQueryKey<contracts, allowFailure, pageParam, config>,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from 'viem'
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
|
-
type
|
|
9
|
+
type ReadContractErrorType,
|
|
10
10
|
type ReadContractParameters,
|
|
11
11
|
type ReadContractReturnType,
|
|
12
12
|
readContract,
|
|
@@ -52,7 +52,7 @@ export function readContractQueryOptions<
|
|
|
52
52
|
queryKey: readContractQueryKey(options),
|
|
53
53
|
} as const satisfies QueryOptions<
|
|
54
54
|
ReadContractQueryFnData<abi, functionName, args>,
|
|
55
|
-
|
|
55
|
+
ReadContractErrorType,
|
|
56
56
|
ReadContractData<abi, functionName, args>,
|
|
57
57
|
ReadContractQueryKey<abi, functionName, args, config>
|
|
58
58
|
>
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from 'viem'
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
-
type
|
|
8
|
+
type ReadContractsErrorType,
|
|
9
9
|
type ReadContractsReturnType,
|
|
10
10
|
readContracts,
|
|
11
11
|
} from '../actions/readContracts.js'
|
|
@@ -55,7 +55,7 @@ export function readContractsQueryOptions<
|
|
|
55
55
|
queryKey: readContractsQueryKey(options),
|
|
56
56
|
} as const satisfies QueryOptions<
|
|
57
57
|
ReadContractsQueryFnData<contracts, allowFailure>,
|
|
58
|
-
|
|
58
|
+
ReadContractsErrorType,
|
|
59
59
|
ReadContractsData<contracts, allowFailure>,
|
|
60
60
|
ReadContractsQueryKey<contracts, allowFailure, config>
|
|
61
61
|
>
|
package/src/query/reconnect.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type ReconnectErrorType,
|
|
5
5
|
type ReconnectParameters,
|
|
6
6
|
type ReconnectReturnType,
|
|
7
7
|
reconnect,
|
|
@@ -18,7 +18,7 @@ export function reconnectMutationOptions(config: Config) {
|
|
|
18
18
|
mutationKey: ['reconnect'],
|
|
19
19
|
} as const satisfies MutationOptions<
|
|
20
20
|
ReconnectData,
|
|
21
|
-
|
|
21
|
+
ReconnectErrorType,
|
|
22
22
|
ReconnectVariables
|
|
23
23
|
>
|
|
24
24
|
}
|
|
@@ -29,14 +29,14 @@ export type ReconnectVariables = ReconnectParameters | undefined
|
|
|
29
29
|
|
|
30
30
|
export type ReconnectMutate<context = unknown> = Mutate<
|
|
31
31
|
ReconnectData,
|
|
32
|
-
|
|
32
|
+
ReconnectErrorType,
|
|
33
33
|
ReconnectVariables,
|
|
34
34
|
context
|
|
35
35
|
>
|
|
36
36
|
|
|
37
37
|
export type ReconnectMutateAsync<context = unknown> = MutateAsync<
|
|
38
38
|
ReconnectData,
|
|
39
|
-
|
|
39
|
+
ReconnectErrorType,
|
|
40
40
|
ReconnectVariables,
|
|
41
41
|
context
|
|
42
42
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type SendTransactionErrorType,
|
|
5
5
|
type SendTransactionParameters,
|
|
6
6
|
type SendTransactionReturnType,
|
|
7
7
|
sendTransaction,
|
|
@@ -19,7 +19,7 @@ export function sendTransactionMutationOptions<config extends Config>(
|
|
|
19
19
|
mutationKey: ['sendTransaction'],
|
|
20
20
|
} as const satisfies MutationOptions<
|
|
21
21
|
SendTransactionData,
|
|
22
|
-
|
|
22
|
+
SendTransactionErrorType,
|
|
23
23
|
SendTransactionVariables<config, config['chains'][number]['id']>
|
|
24
24
|
>
|
|
25
25
|
}
|
|
@@ -39,7 +39,7 @@ export type SendTransactionMutate<config extends Config, context = unknown> = <
|
|
|
39
39
|
| Evaluate<
|
|
40
40
|
MutateOptions<
|
|
41
41
|
SendTransactionData,
|
|
42
|
-
|
|
42
|
+
SendTransactionErrorType,
|
|
43
43
|
Evaluate<SendTransactionVariables<config, chainId>>,
|
|
44
44
|
context
|
|
45
45
|
>
|
|
@@ -56,7 +56,7 @@ export type SendTransactionMutateAsync<
|
|
|
56
56
|
| Evaluate<
|
|
57
57
|
MutateOptions<
|
|
58
58
|
SendTransactionData,
|
|
59
|
-
|
|
59
|
+
SendTransactionErrorType,
|
|
60
60
|
Evaluate<SendTransactionVariables<config, chainId>>,
|
|
61
61
|
context
|
|
62
62
|
>
|
package/src/query/signMessage.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type SignMessageErrorType,
|
|
5
5
|
type SignMessageParameters,
|
|
6
6
|
type SignMessageReturnType,
|
|
7
7
|
signMessage,
|
|
@@ -18,7 +18,7 @@ export function signMessageMutationOptions(config: Config) {
|
|
|
18
18
|
mutationKey: ['signMessage'],
|
|
19
19
|
} as const satisfies MutationOptions<
|
|
20
20
|
SignMessageData,
|
|
21
|
-
|
|
21
|
+
SignMessageErrorType,
|
|
22
22
|
SignMessageVariables
|
|
23
23
|
>
|
|
24
24
|
}
|
|
@@ -29,14 +29,14 @@ export type SignMessageVariables = Evaluate<SignMessageParameters>
|
|
|
29
29
|
|
|
30
30
|
export type SignMessageMutate<context = unknown> = Mutate<
|
|
31
31
|
SignMessageData,
|
|
32
|
-
|
|
32
|
+
SignMessageErrorType,
|
|
33
33
|
SignMessageVariables,
|
|
34
34
|
context
|
|
35
35
|
>
|
|
36
36
|
|
|
37
37
|
export type SignMessageMutateAsync<context = unknown> = MutateAsync<
|
|
38
38
|
SignMessageData,
|
|
39
|
-
|
|
39
|
+
SignMessageErrorType,
|
|
40
40
|
SignMessageVariables,
|
|
41
41
|
context
|
|
42
42
|
>
|
|
@@ -2,7 +2,7 @@ import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
|
2
2
|
|
|
3
3
|
import type { TypedData } from 'viem'
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type SignTypedDataErrorType,
|
|
6
6
|
type SignTypedDataParameters,
|
|
7
7
|
type SignTypedDataReturnType,
|
|
8
8
|
signTypedData,
|
|
@@ -20,7 +20,7 @@ export function signTypedDataMutationOptions<config extends Config>(
|
|
|
20
20
|
mutationKey: ['signTypedData'],
|
|
21
21
|
} as const satisfies MutationOptions<
|
|
22
22
|
SignTypedDataData,
|
|
23
|
-
|
|
23
|
+
SignTypedDataErrorType,
|
|
24
24
|
SignTypedDataVariables
|
|
25
25
|
>
|
|
26
26
|
}
|
|
@@ -42,7 +42,7 @@ export type SignTypedDataMutate<context = unknown> = <
|
|
|
42
42
|
options?:
|
|
43
43
|
| MutateOptions<
|
|
44
44
|
SignTypedDataData,
|
|
45
|
-
|
|
45
|
+
SignTypedDataErrorType,
|
|
46
46
|
SignTypedDataVariables<
|
|
47
47
|
typedData,
|
|
48
48
|
primaryType,
|
|
@@ -62,7 +62,7 @@ export type SignTypedDataMutateAsync<context = unknown> = <
|
|
|
62
62
|
options?:
|
|
63
63
|
| MutateOptions<
|
|
64
64
|
SignTypedDataData,
|
|
65
|
-
|
|
65
|
+
SignTypedDataErrorType,
|
|
66
66
|
SignTypedDataVariables<
|
|
67
67
|
typedData,
|
|
68
68
|
primaryType,
|
|
@@ -2,7 +2,7 @@ import { type QueryOptions } from '@tanstack/query-core'
|
|
|
2
2
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type SimulateContractErrorType,
|
|
6
6
|
type SimulateContractParameters,
|
|
7
7
|
type SimulateContractReturnType,
|
|
8
8
|
simulateContract,
|
|
@@ -64,7 +64,7 @@ export function simulateContractQueryOptions<
|
|
|
64
64
|
queryKey: simulateContractQueryKey(options),
|
|
65
65
|
} as const satisfies QueryOptions<
|
|
66
66
|
SimulateContractQueryFnData<abi, functionName, args, config, chainId>,
|
|
67
|
-
|
|
67
|
+
SimulateContractErrorType,
|
|
68
68
|
SimulateContractData<abi, functionName, args, config, chainId>,
|
|
69
69
|
SimulateContractQueryKey<abi, functionName, args, config, chainId>
|
|
70
70
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type SwitchAccountErrorType,
|
|
5
5
|
type SwitchAccountParameters,
|
|
6
6
|
type SwitchAccountReturnType,
|
|
7
7
|
switchAccount,
|
|
@@ -20,7 +20,7 @@ export function switchAccountMutationOptions<config extends Config>(
|
|
|
20
20
|
mutationKey: ['switchAccount'],
|
|
21
21
|
} as const satisfies MutationOptions<
|
|
22
22
|
SwitchAccountData<config>,
|
|
23
|
-
|
|
23
|
+
SwitchAccountErrorType,
|
|
24
24
|
SwitchAccountVariables
|
|
25
25
|
>
|
|
26
26
|
}
|
|
@@ -36,7 +36,7 @@ export type SwitchAccountMutate<
|
|
|
36
36
|
context = unknown,
|
|
37
37
|
> = Mutate<
|
|
38
38
|
SwitchAccountData<config>,
|
|
39
|
-
|
|
39
|
+
SwitchAccountErrorType,
|
|
40
40
|
SwitchAccountVariables,
|
|
41
41
|
context
|
|
42
42
|
>
|
|
@@ -46,7 +46,7 @@ export type SwitchAccountMutateAsync<
|
|
|
46
46
|
context = unknown,
|
|
47
47
|
> = MutateAsync<
|
|
48
48
|
SwitchAccountData<config>,
|
|
49
|
-
|
|
49
|
+
SwitchAccountErrorType,
|
|
50
50
|
SwitchAccountVariables,
|
|
51
51
|
context
|
|
52
52
|
>
|
package/src/query/switchChain.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type SwitchChainErrorType,
|
|
5
5
|
type SwitchChainParameters,
|
|
6
6
|
type SwitchChainReturnType,
|
|
7
7
|
switchChain,
|
|
@@ -19,7 +19,7 @@ export function switchChainMutationOptions<config extends Config>(
|
|
|
19
19
|
mutationKey: ['switchChain'],
|
|
20
20
|
} as const satisfies MutationOptions<
|
|
21
21
|
SwitchChainData<config, config['chains'][number]['id']>,
|
|
22
|
-
|
|
22
|
+
SwitchChainErrorType,
|
|
23
23
|
SwitchChainVariables<config, config['chains'][number]['id']>
|
|
24
24
|
>
|
|
25
25
|
}
|
|
@@ -42,7 +42,7 @@ export type SwitchChainMutate<config extends Config, context = unknown> = <
|
|
|
42
42
|
| Evaluate<
|
|
43
43
|
MutateOptions<
|
|
44
44
|
SwitchChainData<config, chainId>,
|
|
45
|
-
|
|
45
|
+
SwitchChainErrorType,
|
|
46
46
|
Evaluate<SwitchChainVariables<config, chainId>>,
|
|
47
47
|
context
|
|
48
48
|
>
|
|
@@ -58,7 +58,7 @@ export type SwitchChainMutateAsync<config extends Config, context = unknown> = <
|
|
|
58
58
|
| Evaluate<
|
|
59
59
|
MutateOptions<
|
|
60
60
|
SwitchChainData<config, chainId>,
|
|
61
|
-
|
|
61
|
+
SwitchChainErrorType,
|
|
62
62
|
Evaluate<SwitchChainVariables<config, chainId>>,
|
|
63
63
|
context
|
|
64
64
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type WaitForTransactionReceiptErrorType,
|
|
5
5
|
type WaitForTransactionReceiptParameters,
|
|
6
6
|
type WaitForTransactionReceiptReturnType,
|
|
7
7
|
waitForTransactionReceipt,
|
|
@@ -41,7 +41,7 @@ export function waitForTransactionReceiptQueryOptions<
|
|
|
41
41
|
queryKey: waitForTransactionReceiptQueryKey(options),
|
|
42
42
|
} as const satisfies QueryOptions<
|
|
43
43
|
WaitForTransactionReceiptQueryFnData<config, chainId>,
|
|
44
|
-
|
|
44
|
+
WaitForTransactionReceiptErrorType,
|
|
45
45
|
WaitForTransactionReceiptData<config, chainId>,
|
|
46
46
|
WaitForTransactionReceiptQueryKey<config, chainId>
|
|
47
47
|
>
|
|
@@ -2,7 +2,7 @@ import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
|
2
2
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type WriteContractErrorType,
|
|
6
6
|
type WriteContractParameters,
|
|
7
7
|
type WriteContractReturnType,
|
|
8
8
|
writeContract,
|
|
@@ -20,7 +20,7 @@ export function writeContractMutationOptions<config extends Config>(
|
|
|
20
20
|
mutationKey: ['writeContract'],
|
|
21
21
|
} as const satisfies MutationOptions<
|
|
22
22
|
WriteContractData,
|
|
23
|
-
|
|
23
|
+
WriteContractErrorType,
|
|
24
24
|
WriteContractVariables<
|
|
25
25
|
Abi,
|
|
26
26
|
string,
|
|
@@ -68,7 +68,7 @@ export type WriteContractMutate<config extends Config, context = unknown> = <
|
|
|
68
68
|
options?:
|
|
69
69
|
| MutateOptions<
|
|
70
70
|
WriteContractData,
|
|
71
|
-
|
|
71
|
+
WriteContractErrorType,
|
|
72
72
|
WriteContractVariables<
|
|
73
73
|
abi,
|
|
74
74
|
functionName,
|
|
@@ -100,7 +100,7 @@ export type WriteContractMutateAsync<
|
|
|
100
100
|
options?:
|
|
101
101
|
| MutateOptions<
|
|
102
102
|
WriteContractData,
|
|
103
|
-
|
|
103
|
+
WriteContractErrorType,
|
|
104
104
|
WriteContractVariables<
|
|
105
105
|
abi,
|
|
106
106
|
functionName,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.0.0-alpha.
|
|
1
|
+
export const version = '2.0.0-alpha.7'
|