@wagmi/vue 0.4.10 → 0.4.12
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 +10 -14
- package/dist/esm/composables/useBalance.js.map +1 -1
- package/dist/esm/composables/useBlockNumber.js +17 -22
- package/dist/esm/composables/useBlockNumber.js.map +1 -1
- package/dist/esm/composables/useBytecode.js +10 -14
- package/dist/esm/composables/useBytecode.js.map +1 -1
- package/dist/esm/composables/useConnectorClient.js +16 -30
- package/dist/esm/composables/useConnectorClient.js.map +1 -1
- package/dist/esm/composables/useEnsAddress.js +10 -14
- package/dist/esm/composables/useEnsAddress.js.map +1 -1
- package/dist/esm/composables/useEnsAvatar.js +10 -14
- package/dist/esm/composables/useEnsAvatar.js.map +1 -1
- package/dist/esm/composables/useEnsName.js +11 -14
- package/dist/esm/composables/useEnsName.js.map +1 -1
- package/dist/esm/composables/useEstimateGas.js +14 -21
- package/dist/esm/composables/useEstimateGas.js.map +1 -1
- package/dist/esm/composables/useReadContract.js +11 -18
- package/dist/esm/composables/useReadContract.js.map +1 -1
- package/dist/esm/composables/useSimulateContract.js +14 -24
- package/dist/esm/composables/useSimulateContract.js.map +1 -1
- package/dist/esm/composables/useTransaction.js +10 -19
- package/dist/esm/composables/useTransaction.js.map +1 -1
- package/dist/esm/composables/useTransactionReceipt.js +10 -18
- package/dist/esm/composables/useTransactionReceipt.js.map +1 -1
- package/dist/esm/composables/useWaitForTransactionReceipt.js +10 -18
- package/dist/esm/composables/useWaitForTransactionReceipt.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 +4 -5
- package/dist/types/composables/useBalance.d.ts.map +1 -1
- package/dist/types/composables/useBlockNumber.d.ts +4 -4
- package/dist/types/composables/useBlockNumber.d.ts.map +1 -1
- package/dist/types/composables/useBytecode.d.ts +4 -5
- package/dist/types/composables/useBytecode.d.ts.map +1 -1
- package/dist/types/composables/useConnectorClient.d.ts +6 -8
- package/dist/types/composables/useConnectorClient.d.ts.map +1 -1
- package/dist/types/composables/useEnsAddress.d.ts +4 -4
- package/dist/types/composables/useEnsAddress.d.ts.map +1 -1
- package/dist/types/composables/useEnsAvatar.d.ts +4 -4
- package/dist/types/composables/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/composables/useEnsName.d.ts +4 -4
- package/dist/types/composables/useEnsName.d.ts.map +1 -1
- package/dist/types/composables/useEstimateGas.d.ts +3 -3
- package/dist/types/composables/useEstimateGas.d.ts.map +1 -1
- package/dist/types/composables/useReadContract.d.ts +8 -4
- package/dist/types/composables/useReadContract.d.ts.map +1 -1
- package/dist/types/composables/useSimulateContract.d.ts +4 -4
- package/dist/types/composables/useSimulateContract.d.ts.map +1 -1
- package/dist/types/composables/useTransaction.d.ts +4 -4
- package/dist/types/composables/useTransaction.d.ts.map +1 -1
- package/dist/types/composables/useTransactionReceipt.d.ts +4 -5
- package/dist/types/composables/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts +4 -4
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/types/properties.d.ts +0 -6
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/composables/useBalance.ts +14 -35
- package/src/composables/useBlockNumber.ts +22 -46
- package/src/composables/useBytecode.ts +14 -35
- package/src/composables/useConnectorClient.ts +22 -76
- package/src/composables/useEnsAddress.ts +14 -29
- package/src/composables/useEnsAvatar.ts +14 -29
- package/src/composables/useEnsName.ts +15 -35
- package/src/composables/useEstimateGas.ts +17 -43
- package/src/composables/useReadContract.ts +53 -51
- package/src/composables/useSimulateContract.ts +25 -61
- package/src/composables/useTransaction.ts +14 -47
- package/src/composables/useTransactionReceipt.ts +15 -41
- package/src/composables/useWaitForTransactionReceipt.ts +15 -36
- package/src/exports/internal.ts +1 -4
- package/src/types/properties.ts +0 -17
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.4.
|
|
1
|
+
export const version = '0.4.12';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, GetBalanceErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import type
|
|
4
|
-
import
|
|
5
|
-
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
3
|
+
import { type GetBalanceData, type GetBalanceOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
7
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
8
|
-
export type UseBalanceParameters<config extends Config = Config, selectData = GetBalanceData> = Compute<DeepMaybeRef<GetBalanceOptions<config> & ConfigParameter<config
|
|
7
|
+
export type UseBalanceParameters<config extends Config = Config, selectData = GetBalanceData> = Compute<DeepMaybeRef<GetBalanceOptions<config, selectData> & ConfigParameter<config>>>;
|
|
9
8
|
export type UseBalanceReturnType<selectData = GetBalanceData> = UseQueryReturnType<selectData, GetBalanceErrorType>;
|
|
10
9
|
/** https://wagmi.sh/vue/api/composables/useBalance */
|
|
11
|
-
export declare function useBalance<config extends Config = ResolvedRegister['config'], selectData = GetBalanceData>(
|
|
10
|
+
export declare function useBalance<config extends Config = ResolvedRegister['config'], selectData = GetBalanceData>(parameters?: UseBalanceParameters<config, selectData>): UseBalanceReturnType<selectData>;
|
|
12
11
|
//# sourceMappingURL=useBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBalance.d.ts","sourceRoot":"","sources":["../../../src/composables/useBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"useBalance.d.ts","sourceRoot":"","sources":["../../../src/composables/useBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,cAAc,IACzB,OAAO,CACT,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAC9E,CAAA;AAED,MAAM,MAAM,oBAAoB,CAAC,UAAU,GAAG,cAAc,IAC1D,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAErD,sDAAsD;AACtD,wBAAgB,UAAU,CACxB,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,cAAc,EAE3B,UAAU,GAAE,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAM,GACxD,oBAAoB,CAAC,UAAU,CAAC,CAYlC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Config, GetBlockNumberErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute, UnionCompute, UnionStrictOmit } from '@wagmi/core/internal';
|
|
3
|
-
import { type GetBlockNumberData, type GetBlockNumberOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type GetBlockNumberData, type GetBlockNumberOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef, DeepUnwrapRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
7
|
import { type UseWatchBlockNumberParameters } from './useWatchBlockNumber.js';
|
|
8
|
-
export type UseBlockNumberParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData> = Compute<DeepMaybeRef<GetBlockNumberOptions<config, chainId> & ConfigParameter<config> &
|
|
8
|
+
export type UseBlockNumberParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData> = Compute<DeepMaybeRef<GetBlockNumberOptions<config, chainId, selectData> & ConfigParameter<config> & {
|
|
9
9
|
watch?: boolean | UnionCompute<UnionStrictOmit<DeepUnwrapRef<UseWatchBlockNumberParameters<config, chainId>>, 'chainId' | 'config' | 'onBlockNumber' | 'onError'>> | undefined;
|
|
10
10
|
}>>;
|
|
11
11
|
export type UseBlockNumberReturnType<selectData = GetBlockNumberData> = UseQueryReturnType<selectData, GetBlockNumberErrorType>;
|
|
12
12
|
/** https://wagmi.sh/vue/api/composables/useBlockNumber */
|
|
13
|
-
export declare function useBlockNumber<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData>(
|
|
13
|
+
export declare function useBlockNumber<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData>(parameters?: UseBlockNumberParameters<config, chainId, selectData>): UseBlockNumberReturnType<selectData>;
|
|
14
14
|
//# sourceMappingURL=useBlockNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/composables/useBlockNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/composables/useBlockNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAE3B,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAGrE,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,wBAAwB,CAClC,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,EACjE,UAAU,GAAG,kBAAkB,IAC7B,OAAO,CACT,YAAY,CACV,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,GAChD,eAAe,CAAC,MAAM,CAAC,GAAG;IACxB,KAAK,CAAC,EACF,OAAO,GACP,YAAY,CACV,eAAe,CACb,aAAa,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC7D,SAAS,GAAG,QAAQ,GAAG,eAAe,GAAG,SAAS,CACnD,CACF,GACD,SAAS,CAAA;CACd,CACJ,CACF,CAAA;AAED,MAAM,MAAM,wBAAwB,CAAC,UAAU,GAAG,kBAAkB,IAClE,kBAAkB,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAA;AAEzD,0DAA0D;AAC1D,wBAAgB,cAAc,CAC5B,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,EACjE,UAAU,GAAG,kBAAkB,EAE/B,UAAU,GAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAM,GACrE,wBAAwB,CAAC,UAAU,CAAC,CAiCtC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, GetBytecodeErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import type
|
|
4
|
-
import
|
|
5
|
-
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
3
|
+
import { type GetBytecodeData, type GetBytecodeOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
7
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
8
|
-
export type UseBytecodeParameters<config extends Config = Config, selectData = GetBytecodeData> = Compute<DeepMaybeRef<GetBytecodeOptions<config> & ConfigParameter<config
|
|
7
|
+
export type UseBytecodeParameters<config extends Config = Config, selectData = GetBytecodeData> = Compute<DeepMaybeRef<GetBytecodeOptions<config, selectData> & ConfigParameter<config>>>;
|
|
9
8
|
export type UseBytecodeReturnType<selectData = GetBytecodeData> = UseQueryReturnType<selectData, GetBytecodeErrorType>;
|
|
10
9
|
/** https://wagmi.sh/vue/api/hooks/useBytecode */
|
|
11
|
-
export declare function useBytecode<config extends Config = ResolvedRegister['config'], selectData = GetBytecodeData>(
|
|
10
|
+
export declare function useBytecode<config extends Config = ResolvedRegister['config'], selectData = GetBytecodeData>(parameters?: UseBytecodeParameters<config, selectData>): UseBytecodeReturnType<selectData>;
|
|
12
11
|
//# sourceMappingURL=useBytecode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBytecode.d.ts","sourceRoot":"","sources":["../../../src/composables/useBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"useBytecode.d.ts","sourceRoot":"","sources":["../../../src/composables/useBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,qBAAqB,CAC/B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,eAAe,IAC1B,OAAO,CACT,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAC/E,CAAA;AAED,MAAM,MAAM,qBAAqB,CAAC,UAAU,GAAG,eAAe,IAC5D,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAA;AAEtD,iDAAiD;AACjD,wBAAgB,WAAW,CACzB,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,eAAe,EAE5B,UAAU,GAAE,qBAAqB,CAAC,MAAM,EAAE,UAAU,CAAM,GACzD,qBAAqB,CAAC,UAAU,CAAC,CAanC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { Config, GetConnectorClientErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
|
-
import type { Compute
|
|
3
|
-
import { type GetConnectorClientData, type GetConnectorClientOptions
|
|
2
|
+
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
+
import { type GetConnectorClientData, type GetConnectorClientOptions } from '@wagmi/core/query';
|
|
4
4
|
import type { ConfigParameter } from '../types/properties.js';
|
|
5
|
-
import type { DeepMaybeRef
|
|
6
|
-
import { type
|
|
7
|
-
export type UseConnectorClientParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetConnectorClientData<config, chainId>> = Compute<DeepMaybeRef<GetConnectorClientOptions<config, chainId> & ConfigParameter<config
|
|
8
|
-
query?: Compute<Omit<DeepUnwrapRef<UseQueryParameters<GetConnectorClientQueryFnData<config, chainId>, GetConnectorClientErrorType, selectData, GetConnectorClientQueryKey<config, chainId>>>, 'gcTime' | 'staleTime'>> | undefined;
|
|
9
|
-
}>>;
|
|
5
|
+
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
|
+
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
+
export type UseConnectorClientParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetConnectorClientData<config, chainId>> = Compute<DeepMaybeRef<GetConnectorClientOptions<config, chainId, selectData> & ConfigParameter<config>>>;
|
|
10
8
|
export type UseConnectorClientReturnType<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetConnectorClientData<config, chainId>> = UseQueryReturnType<selectData, GetConnectorClientErrorType>;
|
|
11
9
|
/** https://wagmi.sh/vue/api/composables/useConnectorClient */
|
|
12
|
-
export declare function useConnectorClient<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetConnectorClientData<config, chainId>>(
|
|
10
|
+
export declare function useConnectorClient<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetConnectorClientData<config, chainId>>(parameters?: UseConnectorClientParameters<config, chainId, selectData>): UseConnectorClientReturnType<config, chainId, selectData>;
|
|
13
11
|
//# sourceMappingURL=useConnectorClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnectorClient.d.ts","sourceRoot":"","sources":["../../../src/composables/useConnectorClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EAEN,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useConnectorClient.d.ts","sourceRoot":"","sources":["../../../src/composables/useConnectorClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EAEN,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAE/B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,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AAU,CAAM,GACzE,4BAA4B,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CA4B3D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, GetEnsAddressErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import { type GetEnsAddressData, type GetEnsAddressOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type GetEnsAddressData, type GetEnsAddressOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
export type UseEnsAddressParameters<config extends Config = Config, selectData = GetEnsAddressData> = Compute<DeepMaybeRef<GetEnsAddressOptions<config> & ConfigParameter<config
|
|
7
|
+
export type UseEnsAddressParameters<config extends Config = Config, selectData = GetEnsAddressData> = Compute<DeepMaybeRef<GetEnsAddressOptions<config, selectData> & ConfigParameter<config>>>;
|
|
8
8
|
export type UseEnsAddressReturnType<selectData = GetEnsAddressData> = UseQueryReturnType<selectData, GetEnsAddressErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useEnsAddress */
|
|
10
|
-
export declare function useEnsAddress<config extends Config = ResolvedRegister['config'], selectData = GetEnsAddressData>(
|
|
10
|
+
export declare function useEnsAddress<config extends Config = ResolvedRegister['config'], selectData = GetEnsAddressData>(parameters?: UseEnsAddressParameters<config, selectData>): UseEnsAddressReturnType<selectData>;
|
|
11
11
|
//# sourceMappingURL=useEnsAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnsAddress.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"useEnsAddress.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAE1B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,uBAAuB,CACjC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,iBAAiB,IAC5B,OAAO,CACT,YAAY,CACV,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CACnE,CACF,CAAA;AAED,MAAM,MAAM,uBAAuB,CAAC,UAAU,GAAG,iBAAiB,IAChE,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAA;AAExD,yDAAyD;AACzD,wBAAgB,aAAa,CAC3B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,iBAAiB,EAE9B,UAAU,GAAE,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAM,GAC3D,uBAAuB,CAAC,UAAU,CAAC,CAYrC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, GetEnsAvatarErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import { type GetEnsAvatarData, type GetEnsAvatarOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type GetEnsAvatarData, type GetEnsAvatarOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
export type UseEnsAvatarParameters<config extends Config = Config, selectData = GetEnsAvatarData> = Compute<DeepMaybeRef<GetEnsAvatarOptions<config> & ConfigParameter<config
|
|
7
|
+
export type UseEnsAvatarParameters<config extends Config = Config, selectData = GetEnsAvatarData> = Compute<DeepMaybeRef<GetEnsAvatarOptions<config, selectData> & ConfigParameter<config>>>;
|
|
8
8
|
export type UseEnsAvatarReturnType<selectData = GetEnsAvatarData> = UseQueryReturnType<selectData, GetEnsAvatarErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useEnsAvatar */
|
|
10
|
-
export declare function useEnsAvatar<config extends Config = ResolvedRegister['config'], selectData = GetEnsAvatarData>(
|
|
10
|
+
export declare function useEnsAvatar<config extends Config = ResolvedRegister['config'], selectData = GetEnsAvatarData>(parameters?: UseEnsAvatarParameters<config, selectData>): UseEnsAvatarReturnType<selectData>;
|
|
11
11
|
//# sourceMappingURL=useEnsAvatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnsAvatar.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsAvatar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useEnsAvatar.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsAvatar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,gBAAgB,IAC3B,OAAO,CACT,YAAY,CACV,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAClE,CACF,CAAA;AAED,MAAM,MAAM,sBAAsB,CAAC,UAAU,GAAG,gBAAgB,IAC9D,kBAAkB,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAA;AAEvD,wDAAwD;AACxD,wBAAgB,YAAY,CAC1B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,gBAAgB,EAE7B,UAAU,GAAE,sBAAsB,CAAC,MAAM,EAAE,UAAU,CAAM,GAC1D,sBAAsB,CAAC,UAAU,CAAC,CAYpC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, GetEnsNameErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import { type GetEnsNameData, type GetEnsNameOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type GetEnsNameData, type GetEnsNameOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
export type UseEnsNameParameters<config extends Config = Config, selectData = GetEnsNameData> = Compute<DeepMaybeRef<GetEnsNameOptions<config> & ConfigParameter<config
|
|
7
|
+
export type UseEnsNameParameters<config extends Config = Config, selectData = GetEnsNameData> = Compute<DeepMaybeRef<GetEnsNameOptions<config, selectData> & ConfigParameter<config>>>;
|
|
8
8
|
export type UseEnsNameReturnType<selectData = GetEnsNameData> = UseQueryReturnType<selectData, GetEnsNameErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useEnsName */
|
|
10
|
-
export declare function useEnsName<config extends Config = ResolvedRegister['config'], selectData = GetEnsNameData>(
|
|
10
|
+
export declare function useEnsName<config extends Config = ResolvedRegister['config'], selectData = GetEnsNameData>(parameters?: UseEnsNameParameters<config, selectData>): UseEnsNameReturnType<selectData>;
|
|
11
11
|
//# sourceMappingURL=useEnsName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnsName.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useEnsName.d.ts","sourceRoot":"","sources":["../../../src/composables/useEnsName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,cAAc,IACzB,OAAO,CACT,YAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAC9E,CAAA;AAED,MAAM,MAAM,oBAAoB,CAAC,UAAU,GAAG,cAAc,IAC1D,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAErD,sDAAsD;AACtD,wBAAgB,UAAU,CACxB,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,cAAc,EAE3B,UAAU,GAAE,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAM,GACxD,oBAAoB,CAAC,UAAU,CAAC,CAalC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Config, EstimateGasErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
|
-
import { type EstimateGasData, type EstimateGasOptions
|
|
3
|
-
import type { ConfigParameter
|
|
2
|
+
import { type EstimateGasData, type EstimateGasOptions } from '@wagmi/core/query';
|
|
3
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
4
4
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
5
5
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
6
|
-
export type UseEstimateGasParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = EstimateGasData> = DeepMaybeRef<EstimateGasOptions<config, chainId> & ConfigParameter<config
|
|
6
|
+
export type UseEstimateGasParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = EstimateGasData> = DeepMaybeRef<EstimateGasOptions<config, chainId, selectData> & ConfigParameter<config>>;
|
|
7
7
|
export type UseEstimateGasReturnType<selectData = EstimateGasData> = UseQueryReturnType<selectData, EstimateGasErrorType>;
|
|
8
8
|
/** https://wagmi.sh/react/api/hooks/useEstimateGas */
|
|
9
9
|
export declare function useEstimateGas<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = EstimateGasData>(parameters?: UseEstimateGasParameters<config, chainId, selectData>): UseEstimateGasReturnType<selectData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEstimateGas.d.ts","sourceRoot":"","sources":["../../../src/composables/useEstimateGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useEstimateGas.d.ts","sourceRoot":"","sources":["../../../src/composables/useEstimateGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAKrE,MAAM,MAAM,wBAAwB,CAClC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACtE,UAAU,GAAG,eAAe,IAC1B,YAAY,CACd,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAC1E,CAAA;AAED,MAAM,MAAM,wBAAwB,CAAC,UAAU,GAAG,eAAe,IAC/D,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAA;AAEtD,sDAAsD;AACtD,wBAAgB,cAAc,CAC5B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,EACtE,UAAU,GAAG,eAAe,EAE5B,UAAU,CAAC,EAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,GACjE,wBAAwB,CAAC,UAAU,CAAC,CAAA"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type { Config, ReadContractErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { UnionCompute } from '@wagmi/core/internal';
|
|
3
|
-
import { type ReadContractData, type ReadContractOptions
|
|
3
|
+
import { type ReadContractData, type ReadContractOptions } from '@wagmi/core/query';
|
|
4
4
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem';
|
|
5
|
-
import
|
|
5
|
+
import { type MaybeRef } from 'vue';
|
|
6
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
7
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
7
8
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
8
|
-
export type UseReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = Config, selectData = ReadContractData<abi, functionName, args>> = UnionCompute<
|
|
9
|
+
export type UseReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = Config, selectData = ReadContractData<abi, functionName, args>> = MaybeRef<UnionCompute<ReadContractOptions<abi, functionName, args, config, selectData> & ConfigParameter<config>>>;
|
|
10
|
+
type UseReadContractParametersLoose<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = Config, selectData = ReadContractData<abi, functionName, args>> = DeepMaybeRef<ReadContractOptions<abi, functionName, args, config, selectData> & ConfigParameter<Config>>;
|
|
9
11
|
export type UseReadContractReturnType<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>, selectData = ReadContractData<abi, functionName, args>> = UseQueryReturnType<selectData, ReadContractErrorType>;
|
|
10
12
|
/** https://wagmi.sh/vue/api/hooks/useReadContract */
|
|
11
|
-
export declare function useReadContract<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = ResolvedRegister['config'], selectData = ReadContractData<abi, functionName, args>>(
|
|
13
|
+
export declare function useReadContract<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, const args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = ResolvedRegister['config'], selectData = ReadContractData<abi, functionName, args>>(parameters: UseReadContractParameters<abi, functionName, args, config, selectData>): UseReadContractReturnType<abi, functionName, args, selectData>;
|
|
14
|
+
export declare function useReadContract<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, const args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config = ResolvedRegister['config'], selectData = ReadContractData<abi, functionName, args>>(parameters: UseReadContractParametersLoose<abi, functionName, args, config, selectData>): UseReadContractReturnType;
|
|
15
|
+
export {};
|
|
12
16
|
//# sourceMappingURL=useReadContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReadContract.d.ts","sourceRoot":"","sources":["../../../src/composables/useReadContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useReadContract.d.ts","sourceRoot":"","sources":["../../../src/composables/useReadContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,MAAM,CAAA;AAC3E,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,yBA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Y,CAAC,EAC3E,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,gBAAgB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,EAEtD,UAAU,EAAE,8BAA8B,CACxC,GAAG,EACH,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,UAAU,CACX,GACA,yBAAyB,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, ResolvedRegister, SimulateContractErrorType } from '@wagmi/core';
|
|
2
|
-
import { type SimulateContractData, type SimulateContractOptions
|
|
2
|
+
import { type SimulateContractData, type SimulateContractOptions } from '@wagmi/core/query';
|
|
3
3
|
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem';
|
|
4
4
|
import { type MaybeRef } from 'vue';
|
|
5
|
-
import type { ConfigParameter
|
|
5
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
export type UseSimulateContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, functionName, args, config, chainId>> = MaybeRef<SimulateContractOptions<abi, functionName, args, config, chainId> & ConfigParameter<config
|
|
7
|
+
export type UseSimulateContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, functionName, args, config, chainId>> = MaybeRef<SimulateContractOptions<abi, functionName, args, config, chainId, selectData> & ConfigParameter<config>>;
|
|
8
8
|
export type UseSimulateContractReturnType<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, functionName, args, config, chainId>> = UseQueryReturnType<selectData, SimulateContractErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useSimulateContract */
|
|
10
|
-
export declare function useSimulateContract<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, functionName, args, config, chainId>>(
|
|
10
|
+
export declare function useSimulateContract<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, functionName, args, config, chainId>>(parameters?: UseSimulateContractParameters<abi, functionName, args, config, chainId, selectData>): UseSimulateContractReturnType<abi, functionName, args, config, chainId, selectData>;
|
|
11
11
|
//# sourceMappingURL=useSimulateContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSimulateContract.d.ts","sourceRoot":"","sources":["../../../src/composables/useSimulateContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,oBAAoB,EAC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,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,UAAU,CACC,GACZ,6BAA6B,CAC9B,GAAG,EACH,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,UAAU,CACX,CAeA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, GetTransactionErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import { type GetTransactionData, type GetTransactionOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type GetTransactionData, type GetTransactionOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
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> & ConfigParameter<config
|
|
7
|
+
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>>>;
|
|
8
8
|
export type UseTransactionReturnType<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionData<config, chainId>> = UseQueryReturnType<selectData, GetTransactionErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useTransaction */
|
|
10
|
-
export declare function useTransaction<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionData<config, chainId>>(
|
|
10
|
+
export declare function useTransaction<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionData<config, chainId>>(parameters?: UseTransactionParameters<config, chainId, selectData>): UseTransactionReturnType<config, chainId, selectData>;
|
|
11
11
|
//# sourceMappingURL=useTransaction.d.ts.map
|
|
@@ -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;AACnD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,
|
|
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;AACnD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAE3B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,wBAAwB,CAClC,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,EACjE,UAAU,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,IAC9C,OAAO,CACT,YAAY,CACV,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAC7E,CACF,CAAA;AAED,MAAM,MAAM,wBAAwB,CAClC,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,EACjE,UAAU,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,IAC9C,kBAAkB,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAA;AAE3D,0DAA0D;AAC1D,wBAAgB,cAAc,CAC5B,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,EACjE,UAAU,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,EAEhD,UAAU,GAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAM,GACrE,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAYvD"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Config, GetTransactionReceiptErrorType, ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import type
|
|
4
|
-
import
|
|
5
|
-
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
3
|
+
import { type GetTransactionReceiptData, type GetTransactionReceiptOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
7
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
8
|
-
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> & ConfigParameter<config
|
|
7
|
+
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>>>;
|
|
9
8
|
export type UseTransactionReceiptReturnType<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionReceiptData<config, chainId>> = UseQueryReturnType<selectData, GetTransactionReceiptErrorType>;
|
|
10
9
|
/** https://wagmi.sh/vue/api/composables/useTransactionReceipt */
|
|
11
|
-
export declare function useTransactionReceipt<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionReceiptData<config, chainId>>(
|
|
10
|
+
export declare function useTransactionReceipt<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetTransactionReceiptData<config, chainId>>(parameters?: UseTransactionReceiptParameters<config, chainId, selectData>): UseTransactionReceiptReturnType<config, chainId, selectData>;
|
|
12
11
|
//# sourceMappingURL=useTransactionReceipt.d.ts.map
|
|
@@ -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;AACnD,OAAO,
|
|
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,aAA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AC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EACjE,UAAU,GAAG,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,EAEvD,UAAU,GAAE,+BAA+B,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAM,GAC5E,+BAA+B,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAY9D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Config, ResolvedRegister, WaitForTransactionReceiptErrorType } from '@wagmi/core';
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
-
import { type WaitForTransactionReceiptData, type WaitForTransactionReceiptOptions
|
|
4
|
-
import type { ConfigParameter
|
|
3
|
+
import { type WaitForTransactionReceiptData, type WaitForTransactionReceiptOptions } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
5
5
|
import type { DeepMaybeRef } from '../types/ref.js';
|
|
6
6
|
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
-
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> & ConfigParameter<config
|
|
7
|
+
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>>>;
|
|
8
8
|
export type UseWaitForTransactionReceiptReturnType<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = WaitForTransactionReceiptData<config, chainId>> = UseQueryReturnType<selectData, WaitForTransactionReceiptErrorType>;
|
|
9
9
|
/** https://wagmi.sh/vue/api/composables/useWaitForTransactionReceipt */
|
|
10
|
-
export declare function useWaitForTransactionReceipt<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = WaitForTransactionReceiptData<config, chainId>>(
|
|
10
|
+
export declare function useWaitForTransactionReceipt<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = WaitForTransactionReceiptData<config, chainId>>(parameters?: UseWaitForTransactionReceiptParameters<config, chainId, selectData>): UseWaitForTransactionReceiptReturnType<config, chainId, selectData>;
|
|
11
11
|
//# sourceMappingURL=useWaitForTransactionReceipt.d.ts.map
|
|
@@ -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;AACnD,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,
|
|
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;AACnD,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EAEtC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,sCAAsC,CAChD,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SACL,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":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAIA,YAAY,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import type { DefaultError, QueryKey } from '@tanstack/vue-query';
|
|
2
1
|
import type { Config } from '@wagmi/core';
|
|
3
2
|
import type { MaybeRef } from 'vue';
|
|
4
|
-
import type { UseQueryParameters } from '../utils/query.js';
|
|
5
|
-
import type { DeepUnwrapRef } from './ref.js';
|
|
6
3
|
export type ConfigParameter<config extends Config = Config> = {
|
|
7
4
|
config?: Config | config | undefined;
|
|
8
5
|
};
|
|
9
6
|
export type EnabledParameter = {
|
|
10
7
|
enabled?: MaybeRef<boolean> | undefined;
|
|
11
8
|
};
|
|
12
|
-
export type QueryParameter<queryFnData = unknown, error = DefaultError, data = queryFnData, queryKey extends QueryKey = QueryKey> = {
|
|
13
|
-
query?: Omit<DeepUnwrapRef<UseQueryParameters<queryFnData, error, data, queryKey>>, 'queryFn' | 'queryHash' | 'queryKey' | 'queryKeyHashFn' | 'throwOnError'> | undefined;
|
|
14
|
-
};
|
|
15
9
|
//# sourceMappingURL=properties.d.ts.map
|
|
@@ -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,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,MAAM,MAAM,eAAe,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI;IAC5D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CACrC,CAAA;AAED,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.12";
|
|
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.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@wagmi/
|
|
99
|
-
"@wagmi/
|
|
98
|
+
"@wagmi/connectors": "7.1.3",
|
|
99
|
+
"@wagmi/core": "3.2.3"
|
|
100
100
|
},
|
|
101
101
|
"contributors": [
|
|
102
102
|
"awkweb.eth <t@wevm.dev>",
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import type { Config, GetBalanceErrorType, ResolvedRegister } from '@wagmi/core'
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal'
|
|
3
|
-
import type { GetBalanceQueryFnData } from '@wagmi/core/query'
|
|
4
3
|
import {
|
|
5
4
|
type GetBalanceData,
|
|
6
5
|
type GetBalanceOptions,
|
|
7
|
-
type GetBalanceQueryKey,
|
|
8
6
|
getBalanceQueryOptions,
|
|
9
7
|
} from '@wagmi/core/query'
|
|
10
|
-
|
|
11
8
|
import { computed } from 'vue'
|
|
12
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../types/properties.js'
|
|
13
10
|
import type { DeepMaybeRef } from '../types/ref.js'
|
|
14
11
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
15
12
|
import { type UseQueryReturnType, useQuery } from '../utils/query.js'
|
|
@@ -20,16 +17,7 @@ export type UseBalanceParameters<
|
|
|
20
17
|
config extends Config = Config,
|
|
21
18
|
selectData = GetBalanceData,
|
|
22
19
|
> = Compute<
|
|
23
|
-
DeepMaybeRef<
|
|
24
|
-
GetBalanceOptions<config> &
|
|
25
|
-
ConfigParameter<config> &
|
|
26
|
-
QueryParameter<
|
|
27
|
-
GetBalanceQueryFnData,
|
|
28
|
-
GetBalanceErrorType,
|
|
29
|
-
selectData,
|
|
30
|
-
GetBalanceQueryKey<config>
|
|
31
|
-
>
|
|
32
|
-
>
|
|
20
|
+
DeepMaybeRef<GetBalanceOptions<config, selectData> & ConfigParameter<config>>
|
|
33
21
|
>
|
|
34
22
|
|
|
35
23
|
export type UseBalanceReturnType<selectData = GetBalanceData> =
|
|
@@ -40,26 +28,17 @@ export function useBalance<
|
|
|
40
28
|
config extends Config = ResolvedRegister['config'],
|
|
41
29
|
selectData = GetBalanceData,
|
|
42
30
|
>(
|
|
43
|
-
|
|
31
|
+
parameters: UseBalanceParameters<config, selectData> = {},
|
|
44
32
|
): UseBalanceReturnType<selectData> {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const options = getBalanceQueryOptions(config, {
|
|
57
|
-
...parameters.value,
|
|
58
|
-
chainId,
|
|
59
|
-
})
|
|
60
|
-
const enabled = Boolean(address && (query.enabled ?? true))
|
|
61
|
-
return { ...query, ...options, enabled }
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
return useQuery(queryOptions as any) as UseBalanceReturnType<selectData>
|
|
33
|
+
const params = computed(() => deepUnref(parameters))
|
|
34
|
+
const config = useConfig(params)
|
|
35
|
+
const chainId = useChainId({ config })
|
|
36
|
+
const options = computed(() =>
|
|
37
|
+
getBalanceQueryOptions(config as any, {
|
|
38
|
+
...params.value,
|
|
39
|
+
chainId: params.value.chainId ?? chainId.value,
|
|
40
|
+
query: params.value.query,
|
|
41
|
+
}),
|
|
42
|
+
)
|
|
43
|
+
return useQuery(options as any) as any
|
|
65
44
|
}
|