wagmi 2.10.9 → 2.10.11
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/hooks/useBlock.js.map +1 -1
- package/dist/esm/hooks/useBlockNumber.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/experimental/hooks/useCallsStatus.d.ts +2 -2
- package/dist/types/experimental/hooks/useCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/hooks/useCapabilities.d.ts +2 -2
- package/dist/types/experimental/hooks/useCapabilities.d.ts.map +1 -1
- package/dist/types/experimental/hooks/useSendCalls.d.ts +3 -3
- package/dist/types/experimental/hooks/useSendCalls.d.ts.map +1 -1
- package/dist/types/experimental/hooks/useShowCallsStatus.d.ts +3 -3
- package/dist/types/experimental/hooks/useShowCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/hooks/useWriteContracts.d.ts +3 -3
- package/dist/types/experimental/hooks/useWriteContracts.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseReadContract.d.ts +2 -2
- package/dist/types/hooks/codegen/createUseReadContract.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts +2 -2
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseWatchContractEvent.d.ts +2 -2
- package/dist/types/hooks/codegen/createUseWatchContractEvent.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseWriteContract.d.ts +5 -5
- package/dist/types/hooks/codegen/createUseWriteContract.d.ts.map +1 -1
- package/dist/types/hooks/useAccountEffect.d.ts +3 -3
- package/dist/types/hooks/useAccountEffect.d.ts.map +1 -1
- package/dist/types/hooks/useBalance.d.ts +2 -2
- package/dist/types/hooks/useBalance.d.ts.map +1 -1
- package/dist/types/hooks/useBlock.d.ts +3 -3
- package/dist/types/hooks/useBlock.d.ts.map +1 -1
- package/dist/types/hooks/useBlockNumber.d.ts +3 -3
- package/dist/types/hooks/useBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useBlockTransactionCount.d.ts +2 -2
- package/dist/types/hooks/useBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useBytecode.d.ts +2 -2
- package/dist/types/hooks/useBytecode.d.ts.map +1 -1
- package/dist/types/hooks/useCall.d.ts +2 -2
- package/dist/types/hooks/useCall.d.ts.map +1 -1
- package/dist/types/hooks/useClient.d.ts +2 -2
- package/dist/types/hooks/useClient.d.ts.map +1 -1
- package/dist/types/hooks/useConnect.d.ts +4 -4
- package/dist/types/hooks/useConnect.d.ts.map +1 -1
- package/dist/types/hooks/useConnectorClient.d.ts +3 -3
- package/dist/types/hooks/useConnectorClient.d.ts.map +1 -1
- package/dist/types/hooks/useDeployContract.d.ts +2 -2
- package/dist/types/hooks/useDeployContract.d.ts.map +1 -1
- package/dist/types/hooks/useDisconnect.d.ts +3 -3
- package/dist/types/hooks/useDisconnect.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAddress.d.ts +2 -2
- package/dist/types/hooks/useEnsAddress.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAvatar.d.ts +2 -2
- package/dist/types/hooks/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/hooks/useEnsName.d.ts +2 -2
- package/dist/types/hooks/useEnsName.d.ts.map +1 -1
- package/dist/types/hooks/useEnsResolver.d.ts +2 -2
- package/dist/types/hooks/useEnsResolver.d.ts.map +1 -1
- package/dist/types/hooks/useEnsText.d.ts +2 -2
- package/dist/types/hooks/useEnsText.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts +2 -2
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts +2 -2
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/hooks/useFeeHistory.d.ts +2 -2
- package/dist/types/hooks/useFeeHistory.d.ts.map +1 -1
- package/dist/types/hooks/useGasPrice.d.ts +2 -2
- package/dist/types/hooks/useGasPrice.d.ts.map +1 -1
- package/dist/types/hooks/useProof.d.ts +2 -2
- package/dist/types/hooks/useProof.d.ts.map +1 -1
- package/dist/types/hooks/usePublicClient.d.ts +2 -2
- package/dist/types/hooks/usePublicClient.d.ts.map +1 -1
- package/dist/types/hooks/useReadContract.d.ts +2 -2
- package/dist/types/hooks/useReadContract.d.ts.map +1 -1
- package/dist/types/hooks/useReadContracts.d.ts +2 -2
- package/dist/types/hooks/useReadContracts.d.ts.map +1 -1
- package/dist/types/hooks/useReconnect.d.ts +3 -3
- package/dist/types/hooks/useReconnect.d.ts.map +1 -1
- package/dist/types/hooks/useSendTransaction.d.ts +3 -3
- package/dist/types/hooks/useSendTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useSignMessage.d.ts +3 -3
- package/dist/types/hooks/useSignMessage.d.ts.map +1 -1
- package/dist/types/hooks/useSignTypedData.d.ts +3 -3
- package/dist/types/hooks/useSignTypedData.d.ts.map +1 -1
- package/dist/types/hooks/useStorageAt.d.ts +2 -2
- package/dist/types/hooks/useStorageAt.d.ts.map +1 -1
- package/dist/types/hooks/useSwitchAccount.d.ts +3 -3
- package/dist/types/hooks/useSwitchAccount.d.ts.map +1 -1
- package/dist/types/hooks/useSwitchChain.d.ts +3 -3
- package/dist/types/hooks/useSwitchChain.d.ts.map +1 -1
- package/dist/types/hooks/useToken.d.ts +2 -2
- package/dist/types/hooks/useToken.d.ts.map +1 -1
- package/dist/types/hooks/useTransaction.d.ts +2 -2
- package/dist/types/hooks/useTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionCount.d.ts +2 -2
- package/dist/types/hooks/useTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionReceipt.d.ts +2 -2
- package/dist/types/hooks/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useVerifyMessage.d.ts +2 -2
- package/dist/types/hooks/useVerifyMessage.d.ts.map +1 -1
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts +2 -2
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useWalletClient.d.ts +3 -3
- package/dist/types/hooks/useWalletClient.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlockNumber.d.ts +2 -2
- package/dist/types/hooks/useWatchBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlocks.d.ts +2 -2
- package/dist/types/hooks/useWatchBlocks.d.ts.map +1 -1
- package/dist/types/hooks/useWatchContractEvent.d.ts +2 -2
- package/dist/types/hooks/useWatchContractEvent.d.ts.map +1 -1
- package/dist/types/hooks/useWatchPendingTransactions.d.ts +2 -2
- package/dist/types/hooks/useWatchPendingTransactions.d.ts.map +1 -1
- package/dist/types/utils/query.d.ts +6 -6
- package/dist/types/utils/query.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/experimental/hooks/useCallsStatus.ts +2 -2
- package/src/experimental/hooks/useCapabilities.ts +2 -2
- package/src/experimental/hooks/useSendCalls.ts +3 -3
- package/src/experimental/hooks/useShowCallsStatus.ts +3 -3
- package/src/experimental/hooks/useWriteContracts.ts +3 -3
- package/src/hooks/codegen/createUseReadContract.ts +6 -6
- package/src/hooks/codegen/createUseSimulateContract.ts +2 -2
- package/src/hooks/codegen/createUseWatchContractEvent.ts +6 -6
- package/src/hooks/codegen/createUseWriteContract.ts +7 -7
- package/src/hooks/useAccountEffect.ts +3 -3
- package/src/hooks/useBalance.ts +2 -2
- package/src/hooks/useBlock.ts +8 -4
- package/src/hooks/useBlockNumber.ts +8 -4
- package/src/hooks/useBlockTransactionCount.ts +2 -2
- package/src/hooks/useBytecode.ts +2 -2
- package/src/hooks/useCall.ts +2 -2
- package/src/hooks/useClient.ts +2 -2
- package/src/hooks/useConnect.ts +4 -4
- package/src/hooks/useConnectorClient.ts +3 -3
- package/src/hooks/useDeployContract.ts +2 -2
- package/src/hooks/useDisconnect.ts +3 -3
- package/src/hooks/useEnsAddress.ts +2 -2
- package/src/hooks/useEnsAvatar.ts +2 -2
- package/src/hooks/useEnsName.ts +2 -2
- package/src/hooks/useEnsResolver.ts +2 -2
- package/src/hooks/useEnsText.ts +2 -2
- package/src/hooks/useEstimateFeesPerGas.ts +2 -2
- package/src/hooks/useEstimateMaxPriorityFeePerGas.ts +2 -2
- package/src/hooks/useFeeHistory.ts +2 -2
- package/src/hooks/useGasPrice.ts +2 -2
- package/src/hooks/useProof.ts +2 -2
- package/src/hooks/usePublicClient.ts +2 -2
- package/src/hooks/useReadContract.ts +2 -2
- package/src/hooks/useReadContracts.ts +2 -2
- package/src/hooks/useReconnect.ts +3 -3
- package/src/hooks/useSendTransaction.ts +3 -3
- package/src/hooks/useSignMessage.ts +3 -3
- package/src/hooks/useSignTypedData.ts +3 -3
- package/src/hooks/useStorageAt.ts +2 -2
- package/src/hooks/useSwitchAccount.ts +3 -3
- package/src/hooks/useSwitchChain.ts +3 -3
- package/src/hooks/useToken.ts +2 -2
- package/src/hooks/useTransaction.ts +2 -2
- package/src/hooks/useTransactionCount.ts +2 -2
- package/src/hooks/useTransactionReceipt.ts +2 -2
- package/src/hooks/useVerifyMessage.ts +2 -2
- package/src/hooks/useWaitForTransactionReceipt.ts +2 -2
- package/src/hooks/useWalletClient.ts +3 -3
- package/src/hooks/useWatchBlockNumber.ts +3 -3
- package/src/hooks/useWatchBlocks.ts +3 -3
- package/src/hooks/useWatchContractEvent.ts +3 -3
- package/src/hooks/useWatchPendingTransactions.ts +3 -3
- package/src/utils/query.ts +9 -9
- package/src/version.ts +1 -1
|
@@ -6,11 +6,11 @@ import type {
|
|
|
6
6
|
} from '@wagmi/core'
|
|
7
7
|
import type {
|
|
8
8
|
ChainIdParameter,
|
|
9
|
+
Compute,
|
|
9
10
|
ConnectorParameter,
|
|
10
|
-
Evaluate,
|
|
11
11
|
SelectChains,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
UnionCompute,
|
|
13
|
+
UnionStrictOmit,
|
|
14
14
|
} from '@wagmi/core/internal'
|
|
15
15
|
import type {
|
|
16
16
|
WriteContractData,
|
|
@@ -59,7 +59,7 @@ export type CreateUseWriteContractReturnType<
|
|
|
59
59
|
functionName extends ContractFunctionName<abi, stateMutability> | undefined,
|
|
60
60
|
> = <config extends Config = ResolvedRegister['config'], context = unknown>(
|
|
61
61
|
parameters?: UseWriteContractParameters<config, context>,
|
|
62
|
-
) =>
|
|
62
|
+
) => Compute<
|
|
63
63
|
Omit<
|
|
64
64
|
wagmi_UseWriteContractReturnType<config, context>,
|
|
65
65
|
'writeContract' | 'writeContractAsync'
|
|
@@ -267,9 +267,9 @@ type Variables<
|
|
|
267
267
|
| 'abi'
|
|
268
268
|
| (address extends undefined ? never : 'address')
|
|
269
269
|
| (functionName extends undefined ? never : 'functionName'),
|
|
270
|
-
> =
|
|
270
|
+
> = UnionCompute<
|
|
271
271
|
{
|
|
272
|
-
[key in keyof chains]:
|
|
272
|
+
[key in keyof chains]: UnionStrictOmit<
|
|
273
273
|
viem_WriteContractParameters<
|
|
274
274
|
abi,
|
|
275
275
|
name,
|
|
@@ -289,6 +289,6 @@ type Variables<
|
|
|
289
289
|
| (chainId extends keyof address ? chainId : never)
|
|
290
290
|
| undefined
|
|
291
291
|
}
|
|
292
|
-
:
|
|
292
|
+
: Compute<ChainIdParameter<config, chainId>>) &
|
|
293
293
|
ConnectorParameter & { __mode?: 'prepared' }
|
|
294
294
|
>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { type GetAccountReturnType, watchAccount } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import { useEffect } from 'react'
|
|
6
6
|
|
|
7
7
|
import type { ConfigParameter } from '../types/properties.js'
|
|
8
8
|
import { useConfig } from './useConfig.js'
|
|
9
9
|
|
|
10
|
-
export type UseAccountEffectParameters =
|
|
10
|
+
export type UseAccountEffectParameters = Compute<
|
|
11
11
|
{
|
|
12
12
|
onConnect?(
|
|
13
|
-
data:
|
|
13
|
+
data: Compute<
|
|
14
14
|
Pick<
|
|
15
15
|
Extract<GetAccountReturnType, { status: 'connected' }>,
|
|
16
16
|
'address' | 'addresses' | 'chain' | 'chainId' | 'connector'
|
package/src/hooks/useBalance.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { Config, GetBalanceErrorType, ResolvedRegister } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import {
|
|
6
6
|
type GetBalanceData,
|
|
7
7
|
type GetBalanceOptions,
|
|
@@ -18,7 +18,7 @@ import { useConfig } from './useConfig.js'
|
|
|
18
18
|
export type UseBalanceParameters<
|
|
19
19
|
config extends Config = Config,
|
|
20
20
|
selectData = GetBalanceData,
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
GetBalanceOptions<config> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
QueryParameter<
|
package/src/hooks/useBlock.ts
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { useQueryClient } from '@tanstack/react-query'
|
|
4
4
|
import type { Config, GetBlockErrorType, ResolvedRegister } from '@wagmi/core'
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
Compute,
|
|
7
|
+
UnionCompute,
|
|
8
|
+
UnionStrictOmit,
|
|
9
|
+
} from '@wagmi/core/internal'
|
|
6
10
|
import {
|
|
7
11
|
type GetBlockData,
|
|
8
12
|
type GetBlockOptions,
|
|
@@ -28,7 +32,7 @@ export type UseBlockParameters<
|
|
|
28
32
|
chainId extends
|
|
29
33
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
30
34
|
selectData = GetBlockData<includeTransactions, blockTag, config, chainId>,
|
|
31
|
-
> =
|
|
35
|
+
> = Compute<
|
|
32
36
|
GetBlockOptions<includeTransactions, blockTag, config, chainId> &
|
|
33
37
|
ConfigParameter<config> &
|
|
34
38
|
QueryParameter<
|
|
@@ -39,8 +43,8 @@ export type UseBlockParameters<
|
|
|
39
43
|
> & {
|
|
40
44
|
watch?:
|
|
41
45
|
| boolean
|
|
42
|
-
|
|
|
43
|
-
|
|
46
|
+
| UnionCompute<
|
|
47
|
+
UnionStrictOmit<
|
|
44
48
|
UseWatchBlocksParameters<
|
|
45
49
|
includeTransactions,
|
|
46
50
|
blockTag,
|
|
@@ -6,7 +6,11 @@ import type {
|
|
|
6
6
|
GetBlockNumberErrorType,
|
|
7
7
|
ResolvedRegister,
|
|
8
8
|
} from '@wagmi/core'
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
Compute,
|
|
11
|
+
UnionCompute,
|
|
12
|
+
UnionStrictOmit,
|
|
13
|
+
} from '@wagmi/core/internal'
|
|
10
14
|
import {
|
|
11
15
|
type GetBlockNumberData,
|
|
12
16
|
type GetBlockNumberOptions,
|
|
@@ -29,7 +33,7 @@ export type UseBlockNumberParameters<
|
|
|
29
33
|
chainId extends
|
|
30
34
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
31
35
|
selectData = GetBlockNumberData,
|
|
32
|
-
> =
|
|
36
|
+
> = Compute<
|
|
33
37
|
GetBlockNumberOptions<config, chainId> &
|
|
34
38
|
ConfigParameter<config> &
|
|
35
39
|
QueryParameter<
|
|
@@ -40,8 +44,8 @@ export type UseBlockNumberParameters<
|
|
|
40
44
|
> & {
|
|
41
45
|
watch?:
|
|
42
46
|
| boolean
|
|
43
|
-
|
|
|
44
|
-
|
|
47
|
+
| UnionCompute<
|
|
48
|
+
UnionStrictOmit<
|
|
45
49
|
UseWatchBlockNumberParameters<config, chainId>,
|
|
46
50
|
'chainId' | 'config' | 'onBlockNumber' | 'onError'
|
|
47
51
|
>
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetBlockTransactionCountErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { UnionCompute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetBlockTransactionCountData,
|
|
11
11
|
type GetBlockTransactionCountOptions,
|
|
@@ -24,7 +24,7 @@ export type UseBlockTransactionCountParameters<
|
|
|
24
24
|
chainId extends
|
|
25
25
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
26
26
|
selectData = GetBlockTransactionCountData,
|
|
27
|
-
> =
|
|
27
|
+
> = UnionCompute<
|
|
28
28
|
GetBlockTransactionCountOptions<config, chainId> &
|
|
29
29
|
ConfigParameter<config> &
|
|
30
30
|
QueryParameter<
|
package/src/hooks/useBytecode.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetBytecodeErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetBytecodeData,
|
|
11
11
|
type GetBytecodeOptions,
|
|
@@ -21,7 +21,7 @@ import { useConfig } from './useConfig.js'
|
|
|
21
21
|
export type UseBytecodeParameters<
|
|
22
22
|
config extends Config = Config,
|
|
23
23
|
selectData = GetBytecodeData,
|
|
24
|
-
> =
|
|
24
|
+
> = Compute<
|
|
25
25
|
GetBytecodeOptions<config> &
|
|
26
26
|
ConfigParameter<config> &
|
|
27
27
|
QueryParameter<
|
package/src/hooks/useCall.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { CallErrorType, Config, ResolvedRegister } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import {
|
|
6
6
|
type CallData,
|
|
7
7
|
type CallOptions,
|
|
@@ -18,7 +18,7 @@ import { useConfig } from './useConfig.js'
|
|
|
18
18
|
export type UseCallParameters<
|
|
19
19
|
config extends Config = Config,
|
|
20
20
|
selectData = CallData,
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
CallOptions<config> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
QueryParameter<
|
package/src/hooks/useClient.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getClient,
|
|
9
9
|
watchClient,
|
|
10
10
|
} from '@wagmi/core'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
12
12
|
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector.js'
|
|
13
13
|
|
|
14
14
|
import type { ConfigParameter } from '../types/properties.js'
|
|
@@ -19,7 +19,7 @@ export type UseClientParameters<
|
|
|
19
19
|
chainId extends config['chains'][number]['id'] | number | undefined =
|
|
20
20
|
| config['chains'][number]['id']
|
|
21
21
|
| undefined,
|
|
22
|
-
> =
|
|
22
|
+
> = Compute<GetClientParameters<config, chainId> & ConfigParameter<config>>
|
|
23
23
|
|
|
24
24
|
export type UseClientReturnType<
|
|
25
25
|
config extends Config = Config,
|
package/src/hooks/useConnect.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMutation } from '@tanstack/react-query'
|
|
4
4
|
import type { Config, ConnectErrorType, ResolvedRegister } from '@wagmi/core'
|
|
5
|
-
import type {
|
|
5
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
6
6
|
import {
|
|
7
7
|
type ConnectData,
|
|
8
8
|
type ConnectMutate,
|
|
@@ -23,7 +23,7 @@ import { type UseConnectorsReturnType, useConnectors } from './useConnectors.js'
|
|
|
23
23
|
export type UseConnectParameters<
|
|
24
24
|
config extends Config = Config,
|
|
25
25
|
context = unknown,
|
|
26
|
-
> =
|
|
26
|
+
> = Compute<
|
|
27
27
|
ConfigParameter<config> & {
|
|
28
28
|
mutation?:
|
|
29
29
|
| UseMutationParameters<
|
|
@@ -39,7 +39,7 @@ export type UseConnectParameters<
|
|
|
39
39
|
export type UseConnectReturnType<
|
|
40
40
|
config extends Config = Config,
|
|
41
41
|
context = unknown,
|
|
42
|
-
> =
|
|
42
|
+
> = Compute<
|
|
43
43
|
UseMutationReturnType<
|
|
44
44
|
ConnectData<config>,
|
|
45
45
|
ConnectErrorType,
|
|
@@ -48,7 +48,7 @@ export type UseConnectReturnType<
|
|
|
48
48
|
> & {
|
|
49
49
|
connect: ConnectMutate<config, context>
|
|
50
50
|
connectAsync: ConnectMutateAsync<config, context>
|
|
51
|
-
connectors:
|
|
51
|
+
connectors: Compute<UseConnectorsReturnType>
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
54
|
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
GetConnectorClientErrorType,
|
|
7
7
|
ResolvedRegister,
|
|
8
8
|
} from '@wagmi/core'
|
|
9
|
-
import type {
|
|
9
|
+
import type { Compute, Omit } from '@wagmi/core/internal'
|
|
10
10
|
import {
|
|
11
11
|
type GetConnectorClientData,
|
|
12
12
|
type GetConnectorClientOptions,
|
|
@@ -31,11 +31,11 @@ export type UseConnectorClientParameters<
|
|
|
31
31
|
chainId extends
|
|
32
32
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
33
33
|
selectData = GetConnectorClientData<config, chainId>,
|
|
34
|
-
> =
|
|
34
|
+
> = Compute<
|
|
35
35
|
GetConnectorClientOptions<config, chainId> &
|
|
36
36
|
ConfigParameter<config> & {
|
|
37
37
|
query?:
|
|
38
|
-
|
|
|
38
|
+
| Compute<
|
|
39
39
|
Omit<
|
|
40
40
|
UseQueryParameters<
|
|
41
41
|
GetConnectorClientQueryFnData<config, chainId>,
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
DeployContractErrorType,
|
|
7
7
|
ResolvedRegister,
|
|
8
8
|
} from '@wagmi/core'
|
|
9
|
-
import type {
|
|
9
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
10
10
|
import {
|
|
11
11
|
type DeployContractData,
|
|
12
12
|
type DeployContractMutate,
|
|
@@ -26,7 +26,7 @@ import { useConfig } from './useConfig.js'
|
|
|
26
26
|
export type UseDeployContractParameters<
|
|
27
27
|
config extends Config = Config,
|
|
28
28
|
context = unknown,
|
|
29
|
-
> =
|
|
29
|
+
> = Compute<
|
|
30
30
|
ConfigParameter<config> & {
|
|
31
31
|
mutation?:
|
|
32
32
|
| UseMutationParameters<
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMutation } from '@tanstack/react-query'
|
|
4
4
|
import type { Connector, DisconnectErrorType } from '@wagmi/core'
|
|
5
|
-
import type {
|
|
5
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
6
6
|
import {
|
|
7
7
|
type DisconnectData,
|
|
8
8
|
type DisconnectMutate,
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
import { useConfig } from './useConfig.js'
|
|
20
20
|
import { useConnections } from './useConnections.js'
|
|
21
21
|
|
|
22
|
-
export type UseDisconnectParameters<context = unknown> =
|
|
22
|
+
export type UseDisconnectParameters<context = unknown> = Compute<
|
|
23
23
|
ConfigParameter & {
|
|
24
24
|
mutation?:
|
|
25
25
|
| UseMutationParameters<
|
|
@@ -32,7 +32,7 @@ export type UseDisconnectParameters<context = unknown> = Evaluate<
|
|
|
32
32
|
}
|
|
33
33
|
>
|
|
34
34
|
|
|
35
|
-
export type UseDisconnectReturnType<context = unknown> =
|
|
35
|
+
export type UseDisconnectReturnType<context = unknown> = Compute<
|
|
36
36
|
UseMutationReturnType<
|
|
37
37
|
DisconnectData,
|
|
38
38
|
DisconnectErrorType,
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetEnsAddressErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetEnsAddressData,
|
|
11
11
|
type GetEnsAddressOptions,
|
|
@@ -22,7 +22,7 @@ import { useConfig } from './useConfig.js'
|
|
|
22
22
|
export type UseEnsAddressParameters<
|
|
23
23
|
config extends Config = Config,
|
|
24
24
|
selectData = GetEnsAddressData,
|
|
25
|
-
> =
|
|
25
|
+
> = Compute<
|
|
26
26
|
GetEnsAddressOptions<config> &
|
|
27
27
|
ConfigParameter<config> &
|
|
28
28
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetEnsAvatarErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetEnsAvatarData,
|
|
11
11
|
type GetEnsAvatarOptions,
|
|
@@ -22,7 +22,7 @@ import { useConfig } from './useConfig.js'
|
|
|
22
22
|
export type UseEnsAvatarParameters<
|
|
23
23
|
config extends Config = Config,
|
|
24
24
|
selectData = GetEnsAvatarData,
|
|
25
|
-
> =
|
|
25
|
+
> = Compute<
|
|
26
26
|
GetEnsAvatarOptions<config> &
|
|
27
27
|
ConfigParameter<config> &
|
|
28
28
|
QueryParameter<
|
package/src/hooks/useEnsName.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { Config, GetEnsNameErrorType, ResolvedRegister } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import {
|
|
6
6
|
type GetEnsNameData,
|
|
7
7
|
type GetEnsNameOptions,
|
|
@@ -18,7 +18,7 @@ import { useConfig } from './useConfig.js'
|
|
|
18
18
|
export type UseEnsNameParameters<
|
|
19
19
|
config extends Config = Config,
|
|
20
20
|
selectData = GetEnsNameData,
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
GetEnsNameOptions<config> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetEnsResolverErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetEnsResolverData,
|
|
11
11
|
type GetEnsResolverOptions,
|
|
@@ -22,7 +22,7 @@ import { useConfig } from './useConfig.js'
|
|
|
22
22
|
export type UseEnsResolverParameters<
|
|
23
23
|
config extends Config = Config,
|
|
24
24
|
selectData = GetEnsResolverData,
|
|
25
|
-
> =
|
|
25
|
+
> = Compute<
|
|
26
26
|
GetEnsResolverOptions<config> &
|
|
27
27
|
ConfigParameter<config> &
|
|
28
28
|
QueryParameter<
|
package/src/hooks/useEnsText.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { Config, GetEnsTextErrorType, ResolvedRegister } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import {
|
|
6
6
|
type GetEnsTextData,
|
|
7
7
|
type GetEnsTextOptions,
|
|
@@ -18,7 +18,7 @@ import { useConfig } from './useConfig.js'
|
|
|
18
18
|
export type UseEnsTextParameters<
|
|
19
19
|
config extends Config = Config,
|
|
20
20
|
selectData = GetEnsTextData,
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
GetEnsTextOptions<config> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
EstimateFeesPerGasErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type EstimateFeesPerGasData,
|
|
11
11
|
type EstimateFeesPerGasOptions,
|
|
@@ -24,7 +24,7 @@ export type UseEstimateFeesPerGasParameters<
|
|
|
24
24
|
type extends FeeValuesType = FeeValuesType,
|
|
25
25
|
config extends Config = Config,
|
|
26
26
|
selectData = EstimateFeesPerGasData<type>,
|
|
27
|
-
> =
|
|
27
|
+
> = Compute<
|
|
28
28
|
EstimateFeesPerGasOptions<type, config> &
|
|
29
29
|
ConfigParameter<config> &
|
|
30
30
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
EstimateMaxPriorityFeePerGasErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type EstimateMaxPriorityFeePerGasData,
|
|
11
11
|
type EstimateMaxPriorityFeePerGasOptions,
|
|
@@ -22,7 +22,7 @@ import { useConfig } from './useConfig.js'
|
|
|
22
22
|
export type UseEstimateMaxPriorityFeePerGasParameters<
|
|
23
23
|
config extends Config = Config,
|
|
24
24
|
selectData = EstimateMaxPriorityFeePerGasData,
|
|
25
|
-
> =
|
|
25
|
+
> = Compute<
|
|
26
26
|
EstimateMaxPriorityFeePerGasOptions<config> &
|
|
27
27
|
ConfigParameter<config> &
|
|
28
28
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetFeeHistoryErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetFeeHistoryData,
|
|
11
11
|
type GetFeeHistoryOptions,
|
|
@@ -24,7 +24,7 @@ export type UseFeeHistoryParameters<
|
|
|
24
24
|
chainId extends
|
|
25
25
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
26
26
|
selectData = GetFeeHistoryData,
|
|
27
|
-
> =
|
|
27
|
+
> = Compute<
|
|
28
28
|
GetFeeHistoryOptions<config, chainId> &
|
|
29
29
|
ConfigParameter<config> &
|
|
30
30
|
QueryParameter<
|
package/src/hooks/useGasPrice.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetGasPriceErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetGasPriceData,
|
|
11
11
|
type GetGasPriceOptions,
|
|
@@ -24,7 +24,7 @@ export type UseGasPriceParameters<
|
|
|
24
24
|
chainId extends
|
|
25
25
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
26
26
|
selectData = GetGasPriceData,
|
|
27
|
-
> =
|
|
27
|
+
> = Compute<
|
|
28
28
|
GetGasPriceOptions<config, chainId> &
|
|
29
29
|
ConfigParameter<config> &
|
|
30
30
|
QueryParameter<
|
package/src/hooks/useProof.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { Config, GetProofErrorType, ResolvedRegister } from '@wagmi/core'
|
|
4
|
-
import type {
|
|
4
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
5
5
|
import {
|
|
6
6
|
type GetProofData,
|
|
7
7
|
type GetProofOptions,
|
|
@@ -18,7 +18,7 @@ import { useConfig } from './useConfig.js'
|
|
|
18
18
|
export type UseProofParameters<
|
|
19
19
|
config extends Config = Config,
|
|
20
20
|
selectData = GetProofData,
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
GetProofOptions<config> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
QueryParameter<
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getPublicClient,
|
|
9
9
|
watchPublicClient,
|
|
10
10
|
} from '@wagmi/core'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
12
12
|
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector.js'
|
|
13
13
|
|
|
14
14
|
import type { ConfigParameter } from '../types/properties.js'
|
|
@@ -19,7 +19,7 @@ export type UsePublicClientParameters<
|
|
|
19
19
|
chainId extends config['chains'][number]['id'] | number | undefined =
|
|
20
20
|
| config['chains'][number]['id']
|
|
21
21
|
| undefined,
|
|
22
|
-
> =
|
|
22
|
+
> = Compute<
|
|
23
23
|
GetPublicClientParameters<config, chainId> & ConfigParameter<config>
|
|
24
24
|
>
|
|
25
25
|
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
ReadContractErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { UnionCompute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type ReadContractData,
|
|
11
11
|
type ReadContractOptions,
|
|
@@ -34,7 +34,7 @@ export type UseReadContractParameters<
|
|
|
34
34
|
> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
|
|
35
35
|
config extends Config = Config,
|
|
36
36
|
selectData = ReadContractData<abi, functionName, args>,
|
|
37
|
-
> =
|
|
37
|
+
> = UnionCompute<
|
|
38
38
|
ReadContractOptions<abi, functionName, args, config> &
|
|
39
39
|
ConfigParameter<config> &
|
|
40
40
|
QueryParameter<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
ReadContractsErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type {
|
|
8
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type ReadContractsData,
|
|
11
11
|
type ReadContractsOptions,
|
|
@@ -27,7 +27,7 @@ export type UseReadContractsParameters<
|
|
|
27
27
|
allowFailure extends boolean = true,
|
|
28
28
|
config extends Config = Config,
|
|
29
29
|
selectData = ReadContractsData<contracts, allowFailure>,
|
|
30
|
-
> =
|
|
30
|
+
> = Compute<
|
|
31
31
|
ReadContractsOptions<contracts, allowFailure, config> &
|
|
32
32
|
ConfigParameter<config> &
|
|
33
33
|
QueryParameter<
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMutation } from '@tanstack/react-query'
|
|
4
4
|
import type { Connector, ReconnectErrorType } from '@wagmi/core'
|
|
5
|
-
import type {
|
|
5
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
6
6
|
import {
|
|
7
7
|
type ReconnectData,
|
|
8
8
|
type ReconnectMutate,
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
} from '../utils/query.js'
|
|
19
19
|
import { useConfig } from './useConfig.js'
|
|
20
20
|
|
|
21
|
-
export type UseReconnectParameters<context = unknown> =
|
|
21
|
+
export type UseReconnectParameters<context = unknown> = Compute<
|
|
22
22
|
ConfigParameter & {
|
|
23
23
|
mutation?:
|
|
24
24
|
| UseMutationParameters<
|
|
@@ -31,7 +31,7 @@ export type UseReconnectParameters<context = unknown> = Evaluate<
|
|
|
31
31
|
}
|
|
32
32
|
>
|
|
33
33
|
|
|
34
|
-
export type UseReconnectReturnType<context = unknown> =
|
|
34
|
+
export type UseReconnectReturnType<context = unknown> = Compute<
|
|
35
35
|
UseMutationReturnType<
|
|
36
36
|
ReconnectData,
|
|
37
37
|
ReconnectErrorType,
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
SendTransactionErrorType,
|
|
8
8
|
} from '@wagmi/core'
|
|
9
|
-
import type {
|
|
9
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
10
10
|
import {
|
|
11
11
|
type SendTransactionData,
|
|
12
12
|
type SendTransactionMutate,
|
|
@@ -25,7 +25,7 @@ import { useConfig } from './useConfig.js'
|
|
|
25
25
|
export type UseSendTransactionParameters<
|
|
26
26
|
config extends Config = Config,
|
|
27
27
|
context = unknown,
|
|
28
|
-
> =
|
|
28
|
+
> = Compute<
|
|
29
29
|
ConfigParameter<config> & {
|
|
30
30
|
mutation?:
|
|
31
31
|
| UseMutationParameters<
|
|
@@ -41,7 +41,7 @@ export type UseSendTransactionParameters<
|
|
|
41
41
|
export type UseSendTransactionReturnType<
|
|
42
42
|
config extends Config = Config,
|
|
43
43
|
context = unknown,
|
|
44
|
-
> =
|
|
44
|
+
> = Compute<
|
|
45
45
|
UseMutationReturnType<
|
|
46
46
|
SendTransactionData,
|
|
47
47
|
SendTransactionErrorType,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useMutation } from '@tanstack/react-query'
|
|
4
4
|
import type { SignMessageErrorType } from '@wagmi/core'
|
|
5
|
-
import type {
|
|
5
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
6
6
|
import {
|
|
7
7
|
type SignMessageData,
|
|
8
8
|
type SignMessageMutate,
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
} from '../utils/query.js'
|
|
19
19
|
import { useConfig } from './useConfig.js'
|
|
20
20
|
|
|
21
|
-
export type UseSignMessageParameters<context = unknown> =
|
|
21
|
+
export type UseSignMessageParameters<context = unknown> = Compute<
|
|
22
22
|
ConfigParameter & {
|
|
23
23
|
mutation?:
|
|
24
24
|
| UseMutationParameters<
|
|
@@ -31,7 +31,7 @@ export type UseSignMessageParameters<context = unknown> = Evaluate<
|
|
|
31
31
|
}
|
|
32
32
|
>
|
|
33
33
|
|
|
34
|
-
export type UseSignMessageReturnType<context = unknown> =
|
|
34
|
+
export type UseSignMessageReturnType<context = unknown> = Compute<
|
|
35
35
|
UseMutationReturnType<
|
|
36
36
|
SignMessageData,
|
|
37
37
|
SignMessageErrorType,
|