@wagmi/vue 0.4.13 → 0.4.15
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/composables/useBalance.js +0 -1
- package/dist/esm/composables/useBalance.js.map +1 -1
- package/dist/esm/composables/useBlockNumber.js +0 -1
- package/dist/esm/composables/useBlockNumber.js.map +1 -1
- package/dist/esm/composables/useBytecode.js +0 -2
- package/dist/esm/composables/useBytecode.js.map +1 -1
- package/dist/esm/composables/useChainId.js.map +1 -1
- package/dist/esm/composables/useChains.js.map +1 -1
- package/dist/esm/composables/useClient.js.map +1 -1
- package/dist/esm/composables/useConfig.js.map +1 -1
- package/dist/esm/composables/useConnect.js.map +1 -1
- package/dist/esm/composables/useConnection.js.map +1 -1
- package/dist/esm/composables/useConnectionEffect.js.map +1 -1
- package/dist/esm/composables/useConnections.js.map +1 -1
- package/dist/esm/composables/useConnectorClient.js +0 -1
- package/dist/esm/composables/useConnectorClient.js.map +1 -1
- package/dist/esm/composables/useConnectors.js.map +1 -1
- package/dist/esm/composables/useDisconnect.js.map +1 -1
- package/dist/esm/composables/useEnsAddress.js +0 -1
- package/dist/esm/composables/useEnsAddress.js.map +1 -1
- package/dist/esm/composables/useEnsAvatar.js +0 -1
- package/dist/esm/composables/useEnsAvatar.js.map +1 -1
- package/dist/esm/composables/useEnsName.js +0 -2
- package/dist/esm/composables/useEnsName.js.map +1 -1
- package/dist/esm/composables/useEstimateGas.js +0 -1
- package/dist/esm/composables/useEstimateGas.js.map +1 -1
- package/dist/esm/composables/useReadContract.js +0 -1
- package/dist/esm/composables/useReadContract.js.map +1 -1
- package/dist/esm/composables/useReconnect.js.map +1 -1
- package/dist/esm/composables/useSendTransaction.js.map +1 -1
- package/dist/esm/composables/useSignMessage.js.map +1 -1
- package/dist/esm/composables/useSignTypedData.js.map +1 -1
- package/dist/esm/composables/useSimulateContract.js +0 -1
- package/dist/esm/composables/useSimulateContract.js.map +1 -1
- package/dist/esm/composables/useSwitchChain.js.map +1 -1
- package/dist/esm/composables/useSwitchConnection.js.map +1 -1
- package/dist/esm/composables/useTransaction.js +0 -1
- package/dist/esm/composables/useTransaction.js.map +1 -1
- package/dist/esm/composables/useTransactionReceipt.js +0 -1
- package/dist/esm/composables/useTransactionReceipt.js.map +1 -1
- package/dist/esm/composables/useWaitForTransactionReceipt.js +0 -1
- package/dist/esm/composables/useWaitForTransactionReceipt.js.map +1 -1
- package/dist/esm/composables/useWatchBlockNumber.js.map +1 -1
- package/dist/esm/composables/useWatchContractEvent.js.map +1 -1
- package/dist/esm/composables/useWriteContract.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/composables/useBalance.d.ts +1 -2
- package/dist/types/composables/useBalance.d.ts.map +1 -1
- package/dist/types/composables/useBlockNumber.d.ts +1 -2
- package/dist/types/composables/useBlockNumber.d.ts.map +1 -1
- package/dist/types/composables/useBytecode.d.ts +1 -2
- package/dist/types/composables/useBytecode.d.ts.map +1 -1
- package/dist/types/composables/useChainId.d.ts +1 -1
- package/dist/types/composables/useChainId.d.ts.map +1 -1
- package/dist/types/composables/useChains.d.ts +1 -1
- package/dist/types/composables/useChains.d.ts.map +1 -1
- package/dist/types/composables/useClient.d.ts +1 -2
- package/dist/types/composables/useClient.d.ts.map +1 -1
- package/dist/types/composables/useConfig.d.ts +1 -1
- package/dist/types/composables/useConfig.d.ts.map +1 -1
- package/dist/types/composables/useConnect.d.ts +2 -5
- package/dist/types/composables/useConnect.d.ts.map +1 -1
- package/dist/types/composables/useConnection.d.ts +1 -1
- package/dist/types/composables/useConnection.d.ts.map +1 -1
- package/dist/types/composables/useConnectionEffect.d.ts +1 -2
- package/dist/types/composables/useConnectionEffect.d.ts.map +1 -1
- package/dist/types/composables/useConnections.d.ts +1 -1
- package/dist/types/composables/useConnections.d.ts.map +1 -1
- package/dist/types/composables/useConnectorClient.d.ts +1 -2
- package/dist/types/composables/useConnectorClient.d.ts.map +1 -1
- package/dist/types/composables/useConnectors.d.ts +1 -1
- package/dist/types/composables/useConnectors.d.ts.map +1 -1
- package/dist/types/composables/useDisconnect.d.ts +1 -2
- package/dist/types/composables/useDisconnect.d.ts.map +1 -1
- package/dist/types/composables/useEnsAddress.d.ts +1 -2
- package/dist/types/composables/useEnsAddress.d.ts.map +1 -1
- package/dist/types/composables/useEnsAvatar.d.ts +1 -2
- package/dist/types/composables/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/composables/useEnsName.d.ts +1 -2
- package/dist/types/composables/useEnsName.d.ts.map +1 -1
- package/dist/types/composables/useEstimateGas.d.ts +1 -1
- package/dist/types/composables/useEstimateGas.d.ts.map +1 -1
- package/dist/types/composables/useReadContract.d.ts +1 -2
- package/dist/types/composables/useReadContract.d.ts.map +1 -1
- package/dist/types/composables/useReconnect.d.ts +2 -5
- package/dist/types/composables/useReconnect.d.ts.map +1 -1
- package/dist/types/composables/useSendTransaction.d.ts +1 -2
- package/dist/types/composables/useSendTransaction.d.ts.map +1 -1
- package/dist/types/composables/useSignMessage.d.ts +1 -2
- package/dist/types/composables/useSignMessage.d.ts.map +1 -1
- package/dist/types/composables/useSignTypedData.d.ts +1 -2
- package/dist/types/composables/useSignTypedData.d.ts.map +1 -1
- package/dist/types/composables/useSimulateContract.d.ts +1 -1
- package/dist/types/composables/useSimulateContract.d.ts.map +1 -1
- package/dist/types/composables/useSwitchChain.d.ts +2 -5
- package/dist/types/composables/useSwitchChain.d.ts.map +1 -1
- package/dist/types/composables/useSwitchConnection.d.ts +2 -5
- package/dist/types/composables/useSwitchConnection.d.ts.map +1 -1
- package/dist/types/composables/useTransaction.d.ts +1 -2
- package/dist/types/composables/useTransaction.d.ts.map +1 -1
- package/dist/types/composables/useTransactionReceipt.d.ts +1 -2
- package/dist/types/composables/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts +1 -2
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWatchBlockNumber.d.ts +2 -2
- package/dist/types/composables/useWatchBlockNumber.d.ts.map +1 -1
- package/dist/types/composables/useWatchContractEvent.d.ts +2 -2
- package/dist/types/composables/useWatchContractEvent.d.ts.map +1 -1
- package/dist/types/composables/useWriteContract.d.ts +1 -1
- package/dist/types/composables/useWriteContract.d.ts.map +1 -1
- package/dist/types/types/properties.d.ts +0 -4
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -11
- package/src/composables/useBalance.ts +1 -3
- package/src/composables/useBlockNumber.ts +1 -3
- package/src/composables/useBytecode.ts +1 -4
- package/src/composables/useChainId.ts +1 -2
- package/src/composables/useChains.ts +1 -2
- package/src/composables/useClient.ts +1 -3
- package/src/composables/useConfig.ts +1 -2
- package/src/composables/useConnect.ts +4 -5
- package/src/composables/useConnection.ts +1 -2
- package/src/composables/useConnectionEffect.ts +1 -3
- package/src/composables/useConnections.ts +1 -2
- package/src/composables/useConnectorClient.ts +2 -4
- package/src/composables/useConnectors.ts +1 -2
- package/src/composables/useDisconnect.ts +1 -2
- package/src/composables/useEnsAddress.ts +1 -3
- package/src/composables/useEnsAvatar.ts +1 -3
- package/src/composables/useEnsName.ts +1 -4
- package/src/composables/useEstimateGas.ts +1 -2
- package/src/composables/useReadContract.ts +1 -3
- package/src/composables/useReconnect.ts +4 -5
- package/src/composables/useSendTransaction.ts +1 -2
- package/src/composables/useSignMessage.ts +1 -2
- package/src/composables/useSignTypedData.ts +1 -2
- package/src/composables/useSimulateContract.ts +1 -2
- package/src/composables/useSwitchChain.ts +4 -5
- package/src/composables/useSwitchConnection.ts +4 -6
- package/src/composables/useTransaction.ts +2 -4
- package/src/composables/useTransactionReceipt.ts +2 -4
- package/src/composables/useWaitForTransactionReceipt.ts +2 -4
- package/src/composables/useWatchBlockNumber.ts +6 -3
- package/src/composables/useWatchContractEvent.ts +6 -3
- package/src/composables/useWriteContract.ts +1 -1
- package/src/types/properties.ts +0 -5
- package/src/version.ts +1 -1
- package/dist/esm/exports/internal.js +0 -5
- package/dist/esm/exports/internal.js.map +0 -1
- package/dist/types/exports/internal.d.ts +0 -2
- package/dist/types/exports/internal.d.ts.map +0 -1
- package/internal/package.json +0 -5
- package/src/exports/internal.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SignMessageErrorType } from '@wagmi/core'
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
3
3
|
import {
|
|
4
4
|
type SignMessageData,
|
|
5
5
|
type SignMessageMutate,
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
type SignMessageVariables,
|
|
9
9
|
signMessageMutationOptions,
|
|
10
10
|
} from '@wagmi/core/query'
|
|
11
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
12
11
|
import { type UseMutationReturnType, useMutation } from '../utils/query.js'
|
|
13
12
|
import { useConfig } from './useConfig.js'
|
|
14
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SignTypedDataErrorType } from '@wagmi/core'
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
3
3
|
import {
|
|
4
4
|
type SignTypedDataData,
|
|
5
5
|
type SignTypedDataMutate,
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
type SignTypedDataVariables,
|
|
9
9
|
signTypedDataMutationOptions,
|
|
10
10
|
} from '@wagmi/core/query'
|
|
11
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
12
11
|
import { type UseMutationReturnType, useMutation } from '../utils/query.js'
|
|
13
12
|
import { useConfig } from './useConfig.js'
|
|
14
13
|
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
ResolvedRegister,
|
|
4
4
|
SimulateContractErrorType,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
6
7
|
import {
|
|
7
8
|
type SimulateContractData,
|
|
8
9
|
type SimulateContractOptions,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
} from '@wagmi/core/query'
|
|
11
12
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
12
13
|
import { computed, type MaybeRef } from 'vue'
|
|
13
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
14
14
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
15
15
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
16
16
|
import { useChainId } from './useChainId.js'
|
|
@@ -98,7 +98,6 @@ export function useSimulateContract<
|
|
|
98
98
|
account: params.value.account ?? address.value,
|
|
99
99
|
chainId: params.value.chainId ?? chainId.value,
|
|
100
100
|
connector: params.value.connector ?? connector.value,
|
|
101
|
-
query: params.value.query,
|
|
102
101
|
}),
|
|
103
102
|
)
|
|
104
103
|
return useQuery(options as any) as any
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ResolvedRegister,
|
|
4
4
|
SwitchChainErrorType,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
6
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type SwitchChainData,
|
|
9
9
|
type SwitchChainMutate,
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
switchChainMutationOptions,
|
|
14
14
|
} from '@wagmi/core/query'
|
|
15
15
|
import type { Ref } from 'vue'
|
|
16
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
17
16
|
import { type UseMutationReturnType, useMutation } from '../utils/query.js'
|
|
18
17
|
import { useChains } from './useChains.js'
|
|
19
18
|
import { useConfig } from './useConfig.js'
|
|
@@ -31,12 +30,12 @@ export type UseSwitchChainReturnType<
|
|
|
31
30
|
SwitchChainData<config, config['chains'][number]['id']>,
|
|
32
31
|
SwitchChainErrorType,
|
|
33
32
|
SwitchChainVariables<config, config['chains'][number]['id']>,
|
|
34
|
-
context
|
|
33
|
+
context,
|
|
34
|
+
SwitchChainMutate<config, context>,
|
|
35
|
+
SwitchChainMutateAsync<config, context>
|
|
35
36
|
> & {
|
|
36
37
|
/** @deprecated use `useChains` instead */
|
|
37
38
|
chains: Ref<config['chains']>
|
|
38
|
-
mutate: SwitchChainMutate<config, context>
|
|
39
|
-
mutateAsync: SwitchChainMutateAsync<config, context>
|
|
40
39
|
/** @deprecated use `mutate` instead */
|
|
41
40
|
switchChain: SwitchChainMutate<config, context>
|
|
42
41
|
/** @deprecated use `mutateAsync` instead */
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
SwitchConnectionErrorType,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
7
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
8
8
|
import {
|
|
9
9
|
type SwitchConnectionData,
|
|
10
10
|
type SwitchConnectionMutate,
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
switchConnectionMutationOptions,
|
|
15
15
|
} from '@wagmi/core/query'
|
|
16
16
|
import { computed, type Ref } from 'vue'
|
|
17
|
-
|
|
18
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
19
17
|
import { type UseMutationReturnType, useMutation } from '../utils/query.js'
|
|
20
18
|
import { useConfig } from './useConfig.js'
|
|
21
19
|
import { useConnections } from './useConnections.js'
|
|
@@ -33,12 +31,12 @@ export type UseSwitchConnectionReturnType<
|
|
|
33
31
|
SwitchConnectionData<config>,
|
|
34
32
|
SwitchConnectionErrorType,
|
|
35
33
|
SwitchConnectionVariables,
|
|
36
|
-
context
|
|
34
|
+
context,
|
|
35
|
+
SwitchConnectionMutate<config, context>,
|
|
36
|
+
SwitchConnectionMutateAsync<config, context>
|
|
37
37
|
> & {
|
|
38
38
|
/** @deprecated use `useConnections` instead */
|
|
39
39
|
connectors: Ref<readonly Connector[]>
|
|
40
|
-
mutate: SwitchConnectionMutate<config, context>
|
|
41
|
-
mutateAsync: SwitchConnectionMutateAsync<config, context>
|
|
42
40
|
/** @deprecated use `switchConnection` instead */
|
|
43
41
|
switchAccount: SwitchConnectionMutate<config, context>
|
|
44
42
|
/** @deprecated use `switchConnectionAsync` instead */
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
GetTransactionErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
6
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type GetTransactionData,
|
|
9
9
|
type GetTransactionOptions,
|
|
10
10
|
getTransactionQueryOptions,
|
|
11
11
|
} from '@wagmi/core/query'
|
|
12
12
|
import { computed } from 'vue'
|
|
13
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
14
13
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
15
14
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
16
15
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -49,9 +48,8 @@ export function useTransaction<
|
|
|
49
48
|
const chainId = useChainId({ config })
|
|
50
49
|
const options = computed(() =>
|
|
51
50
|
getTransactionQueryOptions(config as any, {
|
|
52
|
-
...params.value,
|
|
51
|
+
...(params.value as any),
|
|
53
52
|
chainId: params.value.chainId ?? chainId.value,
|
|
54
|
-
query: params.value.query as any,
|
|
55
53
|
}),
|
|
56
54
|
)
|
|
57
55
|
return useQuery(options as any) as any
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
GetTransactionReceiptErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
6
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type GetTransactionReceiptData,
|
|
9
9
|
type GetTransactionReceiptOptions,
|
|
10
10
|
getTransactionReceiptQueryOptions,
|
|
11
11
|
} from '@wagmi/core/query'
|
|
12
12
|
import { computed } from 'vue'
|
|
13
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
14
13
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
15
14
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
16
15
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -50,9 +49,8 @@ export function useTransactionReceipt<
|
|
|
50
49
|
const chainId = useChainId({ config })
|
|
51
50
|
const options = computed(() =>
|
|
52
51
|
getTransactionReceiptQueryOptions(config as any, {
|
|
53
|
-
...params.value,
|
|
52
|
+
...(params.value as any),
|
|
54
53
|
chainId: params.value.chainId ?? chainId.value,
|
|
55
|
-
query: params.value.query as any,
|
|
56
54
|
}),
|
|
57
55
|
)
|
|
58
56
|
return useQuery(options as any) as any
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
ResolvedRegister,
|
|
4
4
|
WaitForTransactionReceiptErrorType,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
6
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type WaitForTransactionReceiptData,
|
|
9
9
|
type WaitForTransactionReceiptOptions,
|
|
10
10
|
waitForTransactionReceiptQueryOptions,
|
|
11
11
|
} from '@wagmi/core/query'
|
|
12
12
|
import { computed } from 'vue'
|
|
13
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
14
13
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
15
14
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
16
15
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -54,9 +53,8 @@ export function useWaitForTransactionReceipt<
|
|
|
54
53
|
const chainId = useChainId({ config })
|
|
55
54
|
const options = computed(() =>
|
|
56
55
|
waitForTransactionReceiptQueryOptions(config as any, {
|
|
57
|
-
...params.value,
|
|
56
|
+
...(params.value as any),
|
|
58
57
|
chainId: params.value.chainId ?? chainId.value,
|
|
59
|
-
query: params.value.query as any,
|
|
60
58
|
}),
|
|
61
59
|
)
|
|
62
60
|
return useQuery(options as any) as any
|
|
@@ -4,10 +4,13 @@ import {
|
|
|
4
4
|
type WatchBlockNumberParameters,
|
|
5
5
|
watchBlockNumber,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
ConfigParameter,
|
|
9
|
+
UnionCompute,
|
|
10
|
+
UnionExactPartial,
|
|
11
|
+
} from '@wagmi/core/internal'
|
|
8
12
|
import { computed, watchEffect } from 'vue'
|
|
9
|
-
|
|
10
|
-
import type { ConfigParameter, EnabledParameter } from '../types/properties.js'
|
|
13
|
+
import type { EnabledParameter } from '../types/properties.js'
|
|
11
14
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
12
15
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
13
16
|
import { useChainId } from './useChainId.js'
|
|
@@ -4,11 +4,14 @@ import {
|
|
|
4
4
|
type WatchContractEventParameters,
|
|
5
5
|
watchContractEvent,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
ConfigParameter,
|
|
9
|
+
UnionCompute,
|
|
10
|
+
UnionExactPartial,
|
|
11
|
+
} from '@wagmi/core/internal'
|
|
8
12
|
import type { Abi, ContractEventName } from 'viem'
|
|
9
13
|
import { computed, watchEffect } from 'vue'
|
|
10
|
-
|
|
11
|
-
import type { ConfigParameter, EnabledParameter } from '../types/properties.js'
|
|
14
|
+
import type { EnabledParameter } from '../types/properties.js'
|
|
12
15
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
13
16
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
14
17
|
import { useChainId } from './useChainId.js'
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
WriteContractErrorType,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
7
8
|
import {
|
|
8
9
|
type WriteContractData,
|
|
9
10
|
type WriteContractMutate,
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
writeContractMutationOptions,
|
|
14
15
|
} from '@wagmi/core/query'
|
|
15
16
|
import type { Abi } from 'viem'
|
|
16
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
17
17
|
import type { UseMutationReturnType } from '../utils/query.js'
|
|
18
18
|
import { useConfig } from './useConfig.js'
|
|
19
19
|
|
package/src/types/properties.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Config } from '@wagmi/core'
|
|
2
1
|
import type { MaybeRef } from 'vue'
|
|
3
2
|
|
|
4
|
-
export type ConfigParameter<config extends Config = Config> = {
|
|
5
|
-
config?: Config | config | undefined
|
|
6
|
-
}
|
|
7
|
-
|
|
8
3
|
export type EnabledParameter = {
|
|
9
4
|
enabled?: MaybeRef<boolean> | undefined
|
|
10
5
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.4.
|
|
1
|
+
export const version = '0.4.15'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,QAAQ;AACR,gFAAgF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA"}
|
package/internal/package.json
DELETED
package/src/exports/internal.ts
DELETED