@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,7 +1,6 @@
|
|
|
1
1
|
import type { Config, GetTransactionErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal';
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal';
|
|
3
3
|
import { type GetTransactionData, type GetTransactionOptions } from '@wagmi/core/query';
|
|
4
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
5
4
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
5
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
6
|
export type UseTransactionParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionData<config, chainId>> = Compute<DeepMaybeRef<GetTransactionOptions<config, chainId, selectData> & ConfigParameter<config>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransaction.d.ts","sourceRoot":"","sources":["../../../src/composables/useTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useTransaction.d.ts","sourceRoot":"","sources":["../../../src/composables/useTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAE3B,MAAM,mB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MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAWvD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Config, GetTransactionReceiptErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal';
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal';
|
|
3
3
|
import { type GetTransactionReceiptData, type GetTransactionReceiptOptions } from '@wagmi/core/query';
|
|
4
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
5
4
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
5
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
6
|
export type UseTransactionReceiptParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionReceiptData<config, chainId>> = Compute<DeepMaybeRef<GetTransactionReceiptOptions<config, chainId, selectData> & ConfigParameter<config>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/composables/useTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,8BAA8B,EAC9B,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/composables/useTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,8BAA8B,EAC9B,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EAElC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EA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Config, ResolvedRegister, WaitForTransactionReceiptErrorType } from '@wagmi/core';
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal';
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal';
|
|
3
3
|
import { type WaitForTransactionReceiptData, type WaitForTransactionReceiptOptions } from '@wagmi/core/query';
|
|
4
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
5
4
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
5
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
6
|
export type UseWaitForTransactionReceiptParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = WaitForTransactionReceiptData<config, chainId>> = Compute<DeepMaybeRef<WaitForTransactionReceiptOptions<config, chainId, selectData> & ConfigParameter<config>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWaitForTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/composables/useWaitForTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,kCAAkC,EACnC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useWaitForTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/composables/useWaitForTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,kCAAkC,EACnC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EAEtC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MA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
import type { UnionCompute, UnionExactPartial } from '@wagmi/core/internal';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ConfigParameter, UnionCompute, UnionExactPartial } from '@wagmi/core/internal';
|
|
3
|
+
import type { EnabledParameter } from '../types/properties.js';
|
|
4
4
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
5
5
|
export type UseWatchBlockNumberParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id']> = DeepMaybeRef<UnionCompute<UnionExactPartial<WatchBlockNumberParameters<config, chainId>> & ConfigParameter<config> & EnabledParameter>>;
|
|
6
6
|
export type UseWatchBlockNumberReturnType = void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWatchBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/composables/useWatchBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAEhC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useWatchBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/composables/useWatchBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAEhC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,MAAM,MAAM,6BAA6B,CACvC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SACL,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAC/D,YAAY,CACd,YAAY,CACV,iBAAiB,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC5D,eAAe,CAAC,MAAM,CAAC,GACvB,gBAAgB,CACnB,CACF,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAA;AAEhD,+DAA+D;AAC/D,wBAAgB,mBAAmB,CACjC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,SACL,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAEjE,WAAW,GAAE,6BAA6B,CAAC,MAAM,EAAE,OAAO,CAAa,GACtE,6BAA6B,CA0B/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Config, type ResolvedRegister, type WatchContractEventParameters } from '@wagmi/core';
|
|
2
|
-
import type { UnionCompute, UnionExactPartial } from '@wagmi/core/internal';
|
|
2
|
+
import type { ConfigParameter, UnionCompute, UnionExactPartial } from '@wagmi/core/internal';
|
|
3
3
|
import type { Abi, ContractEventName } from 'viem';
|
|
4
|
-
import type {
|
|
4
|
+
import type { EnabledParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
export type UseWatchContractEventParameters<abi extends Abi | readonly unknown[] = Abi, eventName extends ContractEventName<abi> = ContractEventName<abi>, strict extends boolean | undefined = undefined, config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id']> = DeepMaybeRef<UnionCompute<UnionExactPartial<WatchContractEventParameters<abi, eventName, strict, config, chainId>> & ConfigParameter<config> & EnabledParameter>>;
|
|
7
7
|
export type UseWatchContractEventReturnType = void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWatchContractEvent.d.ts","sourceRoot":"","sources":["../../../src/composables/useWatchContractEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EAElC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useWatchContractEvent.d.ts","sourceRoot":"","sources":["../../../src/composables/useWatchContractEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EAElC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,MAAM,MAAM,+BAA+B,CACzC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC1C,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC,EACjE,MAAM,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAC9C,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SACL,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAC/D,YAAY,CACd,YAAY,CACV,iBAAiB,CACf,4BAA4B,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CACtE,GACC,eAAe,CAAC,MAAM,CAAC,GACvB,gBAAgB,CACnB,CACF,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAA;AAElD,iEAAiE;AACjE,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,EACxC,MAAM,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAC9C,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,SACL,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAEjE,UAAU,GAAE,+BAA+B,CACzC,GAAG,EACH,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,CACI,GACZ,+BAA+B,CAyBjC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config, ResolvedRegister, WriteContractErrorType } from '@wagmi/core';
|
|
2
|
+
import type { ConfigParameter } from '@wagmi/core/internal';
|
|
2
3
|
import { type WriteContractData, type WriteContractMutate, type WriteContractMutateAsync, type WriteContractOptions, type WriteContractVariables } from '@wagmi/core/query';
|
|
3
4
|
import type { Abi } from 'viem';
|
|
4
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { UseMutationReturnType } from '../utils/query.js';
|
|
6
6
|
export type UseWriteContractParameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & WriteContractOptions<config, context>;
|
|
7
7
|
export type UseWriteContractReturnType<config extends Config = Config, context = unknown> = UseMutationReturnType<WriteContractData, WriteContractErrorType, WriteContractVariables<Abi, string, readonly unknown[], config, config['chains'][number]['id']>, context, WriteContractMutate<config, context>, WriteContractMutateAsync<config, context>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWriteContract.d.ts","sourceRoot":"","sources":["../../../src/composables/useWriteContract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAE5B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useWriteContract.d.ts","sourceRoot":"","sources":["../../../src/composables/useWriteContract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAE5B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,MAAM,0BAA0B,CACpC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,eAAe,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEnE,MAAM,MAAM,0BAA0B,CACpC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,qBAAqB,CACvB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,CACpB,GAAG,EACH,MAAM,EACN,SAAS,OAAO,EAAE,EAClB,MAAM,EACN,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAC/B,EACD,OAAO,EACP,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAC1C,GAAG;IACF,uCAAuC;IACvC,aAAa,EAAE,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnD,4CAA4C;IAC5C,kBAAkB,EAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9D,CAAA;AAED,4DAA4D;AAC5D,wBAAgB,gBAAgB,CAC9B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,GAAG,OAAO,EAEjB,UAAU,GAAE,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAM,GAC3D,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,CAU7C"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type { Config } from '@wagmi/core';
|
|
2
1
|
import type { MaybeRef } from 'vue';
|
|
3
|
-
export type ConfigParameter<config extends Config = Config> = {
|
|
4
|
-
config?: Config | config | undefined;
|
|
5
|
-
};
|
|
6
2
|
export type EnabledParameter = {
|
|
7
3
|
enabled?: MaybeRef<boolean> | undefined;
|
|
8
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAA;CACxC,CAAA"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.4.
|
|
1
|
+
export declare const version = "0.4.15";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wagmi/vue",
|
|
3
3
|
"description": "Vue Composables for Ethereum",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.15",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"/actions",
|
|
18
18
|
"/chains",
|
|
19
19
|
"/connectors",
|
|
20
|
-
"/internal",
|
|
21
20
|
"/nuxt",
|
|
22
21
|
"/query"
|
|
23
22
|
],
|
|
@@ -43,10 +42,6 @@
|
|
|
43
42
|
"types": "./dist/types/exports/connectors.d.ts",
|
|
44
43
|
"default": "./dist/esm/exports/connectors.js"
|
|
45
44
|
},
|
|
46
|
-
"./internal": {
|
|
47
|
-
"types": "./dist/types/exports/internal.d.ts",
|
|
48
|
-
"default": "./dist/esm/exports/internal.js"
|
|
49
|
-
},
|
|
50
45
|
"./nuxt": {
|
|
51
46
|
"types": "./dist/types/exports/nuxt.d.ts",
|
|
52
47
|
"default": "./dist/esm/exports/nuxt.js"
|
|
@@ -68,9 +63,6 @@
|
|
|
68
63
|
"connectors": [
|
|
69
64
|
"./dist/types/exports/connectors.d.ts"
|
|
70
65
|
],
|
|
71
|
-
"internal": [
|
|
72
|
-
"./dist/types/exports/internal.d.ts"
|
|
73
|
-
],
|
|
74
66
|
"nuxt": [
|
|
75
67
|
"./dist/types/exports/nuxt.d.ts"
|
|
76
68
|
],
|
|
@@ -95,8 +87,8 @@
|
|
|
95
87
|
}
|
|
96
88
|
},
|
|
97
89
|
"dependencies": {
|
|
98
|
-
"@wagmi/connectors": "7.1.
|
|
99
|
-
"@wagmi/core": "3.3.
|
|
90
|
+
"@wagmi/connectors": "7.1.6",
|
|
91
|
+
"@wagmi/core": "3.3.2"
|
|
100
92
|
},
|
|
101
93
|
"contributors": [
|
|
102
94
|
"awkweb.eth <t@wevm.dev>",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, GetBalanceErrorType, ResolvedRegister } 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 GetBalanceData,
|
|
5
5
|
type GetBalanceOptions,
|
|
6
6
|
getBalanceQueryOptions,
|
|
7
7
|
} from '@wagmi/core/query'
|
|
8
8
|
import { computed } from 'vue'
|
|
9
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
10
9
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
11
10
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
12
11
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -37,7 +36,6 @@ export function useBalance<
|
|
|
37
36
|
getBalanceQueryOptions(config as any, {
|
|
38
37
|
...params.value,
|
|
39
38
|
chainId: params.value.chainId ?? chainId.value,
|
|
40
|
-
query: params.value.query,
|
|
41
39
|
}),
|
|
42
40
|
)
|
|
43
41
|
return useQuery(options as any) as any
|
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
} from '@wagmi/core'
|
|
7
7
|
import type {
|
|
8
8
|
Compute,
|
|
9
|
+
ConfigParameter,
|
|
9
10
|
UnionCompute,
|
|
10
11
|
UnionStrictOmit,
|
|
11
12
|
} from '@wagmi/core/internal'
|
|
@@ -15,8 +16,6 @@ import {
|
|
|
15
16
|
getBlockNumberQueryOptions,
|
|
16
17
|
} from '@wagmi/core/query'
|
|
17
18
|
import { computed } from 'vue'
|
|
18
|
-
|
|
19
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
20
19
|
import type { DeepMaybeRef, DeepUnwrapRef } from '../types/ref.js'
|
|
21
20
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
22
21
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -68,7 +67,6 @@ export function useBlockNumber<
|
|
|
68
67
|
getBlockNumberQueryOptions(config as any, {
|
|
69
68
|
...params.value,
|
|
70
69
|
chainId: params.value.chainId ?? chainId.value,
|
|
71
|
-
query: params.value.query,
|
|
72
70
|
}),
|
|
73
71
|
)
|
|
74
72
|
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
GetBytecodeErrorType,
|
|
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 GetBytecodeData,
|
|
9
9
|
type GetBytecodeOptions,
|
|
10
10
|
getBytecodeQueryOptions,
|
|
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'
|
|
@@ -40,9 +39,7 @@ export function useBytecode<
|
|
|
40
39
|
const options = computed(() =>
|
|
41
40
|
getBytecodeQueryOptions(config as any, {
|
|
42
41
|
...params.value,
|
|
43
|
-
address: params.value.address,
|
|
44
42
|
chainId: params.value.chainId ?? chainId.value,
|
|
45
|
-
query: params.value.query,
|
|
46
43
|
}),
|
|
47
44
|
)
|
|
48
45
|
return useQuery(options as any) as any
|
|
@@ -5,9 +5,8 @@ import {
|
|
|
5
5
|
type ResolvedRegister,
|
|
6
6
|
watchChainId,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
8
9
|
import { onScopeDispose, type Ref, readonly, ref } from 'vue'
|
|
9
|
-
|
|
10
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
11
10
|
import { useConfig } from './useConfig.js'
|
|
12
11
|
|
|
13
12
|
export type UseChainIdParameters<config extends Config = Config> =
|
|
@@ -4,10 +4,9 @@ import {
|
|
|
4
4
|
getChains,
|
|
5
5
|
type ResolvedRegister,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
7
8
|
import { watchChains } from '@wagmi/core/internal'
|
|
8
|
-
|
|
9
9
|
import { onScopeDispose, type Ref, readonly, ref } from 'vue'
|
|
10
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
11
10
|
import { useConfig } from './useConfig.js'
|
|
12
11
|
|
|
13
12
|
export type UseChainsParameters<config extends Config = Config> =
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type ResolvedRegister,
|
|
7
7
|
watchClient,
|
|
8
8
|
} from '@wagmi/core'
|
|
9
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
9
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
10
10
|
import {
|
|
11
11
|
computed,
|
|
12
12
|
onScopeDispose,
|
|
@@ -15,8 +15,6 @@ import {
|
|
|
15
15
|
ref,
|
|
16
16
|
watchEffect,
|
|
17
17
|
} from 'vue'
|
|
18
|
-
|
|
19
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
20
18
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
21
19
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
22
20
|
import { useConfig } from './useConfig.js'
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, ResolvedRegister } from '@wagmi/core'
|
|
2
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
2
3
|
import { hasInjectionContext, inject, unref } from 'vue'
|
|
3
|
-
|
|
4
4
|
import {
|
|
5
5
|
WagmiInjectionContextError,
|
|
6
6
|
WagmiPluginNotFoundError,
|
|
7
7
|
} from '../errors/plugin.js'
|
|
8
8
|
import { configKey } from '../plugin.js'
|
|
9
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
10
9
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
11
10
|
|
|
12
11
|
export type UseConfigParameters<config extends Config = Config> = DeepMaybeRef<
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
GetConnectorsReturnType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
8
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type ConnectData,
|
|
11
11
|
type ConnectMutate,
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
connectMutationOptions,
|
|
16
16
|
} from '@wagmi/core/query'
|
|
17
17
|
import { onScopeDispose } from 'vue'
|
|
18
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
19
18
|
import type { UseMutationReturnType } from '../utils/query.js'
|
|
20
19
|
import { useConfig } from './useConfig.js'
|
|
21
20
|
import { useConnectors } from './useConnectors.js'
|
|
@@ -33,7 +32,9 @@ export type UseConnectReturnType<
|
|
|
33
32
|
ConnectData<config, config['connectors'][number], boolean>,
|
|
34
33
|
ConnectErrorType,
|
|
35
34
|
ConnectVariables<config, config['connectors'][number], boolean>,
|
|
36
|
-
context
|
|
35
|
+
context,
|
|
36
|
+
ConnectMutate<config, context>,
|
|
37
|
+
ConnectMutateAsync<config, context>
|
|
37
38
|
> & {
|
|
38
39
|
/** @deprecated use `mutate` instead */
|
|
39
40
|
connect: ConnectMutate<config, context>
|
|
@@ -41,8 +42,6 @@ export type UseConnectReturnType<
|
|
|
41
42
|
connectAsync: ConnectMutateAsync<config, context>
|
|
42
43
|
/** @deprecated use `useConnectors` instead */
|
|
43
44
|
connectors: Compute<GetConnectorsReturnType> | config['connectors']
|
|
44
|
-
mutate: ConnectMutate<config, context>
|
|
45
|
-
mutateAsync: ConnectMutateAsync<config, context>
|
|
46
45
|
}
|
|
47
46
|
>
|
|
48
47
|
|
|
@@ -5,9 +5,8 @@ import {
|
|
|
5
5
|
type ResolvedRegister,
|
|
6
6
|
watchConnection,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
8
9
|
import { onScopeDispose, reactive, readonly, type ToRefs, toRefs } from 'vue'
|
|
9
|
-
|
|
10
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
11
10
|
import { updateState } from '../utils/updateState.js'
|
|
12
11
|
import { useConfig } from './useConfig.js'
|
|
13
12
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type GetConnectionReturnType, watchConnection } from '@wagmi/core'
|
|
2
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
2
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
3
3
|
import { watchEffect } from 'vue'
|
|
4
|
-
|
|
5
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
6
4
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
7
5
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
8
6
|
import { useConfig } from './useConfig.js'
|
|
@@ -3,9 +3,8 @@ import {
|
|
|
3
3
|
getConnections,
|
|
4
4
|
watchConnections,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
6
7
|
import { onScopeDispose, type Ref, readonly, ref } from 'vue'
|
|
7
|
-
|
|
8
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
9
8
|
import { useConfig } from './useConfig.js'
|
|
10
9
|
|
|
11
10
|
export type UseConnectionsParameters = ConfigParameter
|
|
@@ -5,14 +5,13 @@ import type {
|
|
|
5
5
|
GetConnectorClientErrorType,
|
|
6
6
|
ResolvedRegister,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
8
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
10
|
type GetConnectorClientData,
|
|
11
11
|
type GetConnectorClientOptions,
|
|
12
12
|
getConnectorClientQueryOptions,
|
|
13
13
|
} from '@wagmi/core/query'
|
|
14
14
|
import { computed, ref, watchEffect } from 'vue'
|
|
15
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
16
15
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
17
16
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
18
17
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -54,10 +53,9 @@ export function useConnectorClient<
|
|
|
54
53
|
const { address, connector } = useConnection({ config })
|
|
55
54
|
const options = computed(() =>
|
|
56
55
|
getConnectorClientQueryOptions(config as any, {
|
|
57
|
-
...params.value,
|
|
56
|
+
...(params.value as any),
|
|
58
57
|
chainId: params.value.chainId ?? chainId.value,
|
|
59
58
|
connector: (params.value.connector ?? connector.value) as Connector,
|
|
60
|
-
query: params.value.query as any,
|
|
61
59
|
}),
|
|
62
60
|
)
|
|
63
61
|
|
|
@@ -5,9 +5,8 @@ import {
|
|
|
5
5
|
type ResolvedRegister,
|
|
6
6
|
watchConnectors,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
8
9
|
import { onScopeDispose, type Ref, ref } from 'vue'
|
|
9
|
-
|
|
10
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
11
10
|
import { useConfig } from './useConfig.js'
|
|
12
11
|
|
|
13
12
|
export type UseConnectorsParameters<config extends Config = Config> =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/vue-query'
|
|
2
2
|
import type { Connector, DisconnectErrorType } from '@wagmi/core'
|
|
3
|
-
import type { Compute } from '@wagmi/core/internal'
|
|
3
|
+
import type { Compute, ConfigParameter } from '@wagmi/core/internal'
|
|
4
4
|
import {
|
|
5
5
|
type DisconnectData,
|
|
6
6
|
type DisconnectMutate,
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
disconnectMutationOptions,
|
|
11
11
|
} from '@wagmi/core/query'
|
|
12
12
|
import { computed, type Ref } from 'vue'
|
|
13
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
14
13
|
import type { UseMutationReturnType } from '../utils/query.js'
|
|
15
14
|
import { useConfig } from './useConfig.js'
|
|
16
15
|
import { useConnections } from './useConnections.js'
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
GetEnsAddressErrorType,
|
|
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 GetEnsAddressData,
|
|
9
9
|
type GetEnsAddressOptions,
|
|
10
10
|
getEnsAddressQueryOptions,
|
|
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'
|
|
@@ -43,7 +42,6 @@ export function useEnsAddress<
|
|
|
43
42
|
getEnsAddressQueryOptions(config as any, {
|
|
44
43
|
...params.value,
|
|
45
44
|
chainId: params.value.chainId ?? chainId.value,
|
|
46
|
-
query: params.value.query,
|
|
47
45
|
}),
|
|
48
46
|
)
|
|
49
47
|
return useQuery(options as any) as any
|
|
@@ -3,14 +3,13 @@ import type {
|
|
|
3
3
|
GetEnsAvatarErrorType,
|
|
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 GetEnsAvatarData,
|
|
9
9
|
type GetEnsAvatarOptions,
|
|
10
10
|
getEnsAvatarQueryOptions,
|
|
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'
|
|
@@ -43,7 +42,6 @@ export function useEnsAvatar<
|
|
|
43
42
|
getEnsAvatarQueryOptions(config as any, {
|
|
44
43
|
...params.value,
|
|
45
44
|
chainId: params.value.chainId ?? chainId.value,
|
|
46
|
-
query: params.value.query,
|
|
47
45
|
}),
|
|
48
46
|
)
|
|
49
47
|
return useQuery(options as any) as any
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, GetEnsNameErrorType, ResolvedRegister } 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 GetEnsNameData,
|
|
5
5
|
type GetEnsNameOptions,
|
|
6
6
|
getEnsNameQueryOptions,
|
|
7
7
|
} from '@wagmi/core/query'
|
|
8
8
|
import { computed } from 'vue'
|
|
9
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
10
9
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
11
10
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
12
11
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -36,9 +35,7 @@ export function useEnsName<
|
|
|
36
35
|
const options = computed(() =>
|
|
37
36
|
getEnsNameQueryOptions(config as any, {
|
|
38
37
|
...params.value,
|
|
39
|
-
address: params.value.address,
|
|
40
38
|
chainId: params.value.chainId ?? chainId.value,
|
|
41
|
-
query: params.value.query,
|
|
42
39
|
}),
|
|
43
40
|
)
|
|
44
41
|
return useQuery(options as any) as any
|
|
@@ -3,13 +3,13 @@ import type {
|
|
|
3
3
|
EstimateGasErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
+
import type { ConfigParameter } from '@wagmi/core/internal'
|
|
6
7
|
import {
|
|
7
8
|
type EstimateGasData,
|
|
8
9
|
type EstimateGasOptions,
|
|
9
10
|
estimateGasQueryOptions,
|
|
10
11
|
} from '@wagmi/core/query'
|
|
11
12
|
import { computed } from 'vue'
|
|
12
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
13
13
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
14
14
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
15
15
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -50,7 +50,6 @@ export function useEstimateGas(
|
|
|
50
50
|
account: params.value.account ?? address.value,
|
|
51
51
|
chainId: params.value.chainId ?? chainId.value,
|
|
52
52
|
connector: params.value.connector ?? connector.value,
|
|
53
|
-
query: params.value.query,
|
|
54
53
|
}),
|
|
55
54
|
)
|
|
56
55
|
return useQuery(options as any) as any
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ReadContractErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type { UnionCompute } from '@wagmi/core/internal'
|
|
6
|
+
import type { ConfigParameter, UnionCompute } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type ReadContractData,
|
|
9
9
|
type ReadContractOptions,
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
} from '@wagmi/core/query'
|
|
12
12
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
13
13
|
import { computed, type MaybeRef } from 'vue'
|
|
14
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
15
14
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
16
15
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
17
16
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -111,7 +110,6 @@ export function useReadContract(
|
|
|
111
110
|
readContractQueryOptions(config as any, {
|
|
112
111
|
...params.value,
|
|
113
112
|
chainId: params.value.chainId ?? chainId.value,
|
|
114
|
-
query: params.value.query,
|
|
115
113
|
}),
|
|
116
114
|
)
|
|
117
115
|
return useQuery(options as any) as any
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Connector, ReconnectErrorType } 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 ReconnectData,
|
|
5
5
|
type ReconnectMutate,
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
type ReconnectVariables,
|
|
9
9
|
reconnectMutationOptions,
|
|
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
|
|
|
@@ -21,11 +20,11 @@ export type UseReconnectReturnType<context = unknown> = Compute<
|
|
|
21
20
|
ReconnectData,
|
|
22
21
|
ReconnectErrorType,
|
|
23
22
|
ReconnectVariables,
|
|
24
|
-
context
|
|
23
|
+
context,
|
|
24
|
+
ReconnectMutate<context>,
|
|
25
|
+
ReconnectMutateAsync<context>
|
|
25
26
|
> & {
|
|
26
27
|
connectors: readonly Connector[]
|
|
27
|
-
mutate: ReconnectMutate<context>
|
|
28
|
-
mutateAsync: ReconnectMutateAsync<context>
|
|
29
28
|
/** @deprecated use `mutate` instead */
|
|
30
29
|
reconnect: ReconnectMutate<context>
|
|
31
30
|
/** @deprecated use `mutateAsync` instead */
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
SendTransactionErrorType,
|
|
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 SendTransactionData,
|
|
10
10
|
type SendTransactionMutate,
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
type SendTransactionVariables,
|
|
14
14
|
sendTransactionMutationOptions,
|
|
15
15
|
} from '@wagmi/core/query'
|
|
16
|
-
import type { ConfigParameter } from '../types/properties.js'
|
|
17
16
|
import type { UseMutationReturnType } from '../utils/query.js'
|
|
18
17
|
import { useConfig } from './useConfig.js'
|
|
19
18
|
|