@wagmi/vue 0.0.0-canary-20240910174321 → 0.0.0-canary-20240911221516
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/actions/experimental/package.json +5 -0
- package/dist/esm/composables/useReadContract.js +2 -2
- package/dist/esm/composables/useReadContract.js.map +1 -1
- package/dist/esm/exports/actions/experimental.js +7 -0
- package/dist/esm/exports/actions/experimental.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/composables/useReadContract.d.ts.map +1 -1
- package/dist/types/exports/actions/experimental.d.ts +2 -0
- package/dist/types/exports/actions/experimental.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -3
- package/src/composables/useReadContract.ts +2 -1
- package/src/exports/actions/experimental.ts +7 -0
- package/src/version.ts +1 -1
|
@@ -10,9 +10,9 @@ export function useReadContract(parameters_ = {}) {
|
|
|
10
10
|
const config = useConfig(parameters);
|
|
11
11
|
const configChainId = useChainId({ config });
|
|
12
12
|
const queryOptions = computed(() => {
|
|
13
|
-
const { abi, address, chainId = configChainId.value, functionName, query = {}, } = parameters.value;
|
|
13
|
+
const { abi, address, chainId = configChainId.value, code, functionName, query = {}, } = parameters.value;
|
|
14
14
|
const options = readContractQueryOptions(config, { ...parameters.value, chainId });
|
|
15
|
-
const enabled = Boolean(address && abi && functionName && (query.enabled ?? true));
|
|
15
|
+
const enabled = Boolean((address || code) && abi && functionName && (query.enabled ?? true));
|
|
16
16
|
return {
|
|
17
17
|
...query,
|
|
18
18
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReadContract.js","sourceRoot":"","sources":["../../../src/composables/useReadContract.ts"],"names":[],"mappings":"AAMA,OAAO,EAKL,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAI9B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M,iBAAiB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AA0C1C,qDAAqD;AACrD,MAAM,UAAU,eAAe,CAO7B,cAMI,EAAS;IAEb,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAQ,CAAA;IAEhE,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC,CAAA;IACpC,MAAM,aAAa,GAAG,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAE5C,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;QACjC,MAAM,EACJ,GAAG,EACH,OAAO,EACP,OAAO,GAAG,aAAa,CAAC,KAAK,EAC7B,IAAI,EACJ,YAAY,EACZ,KAAK,GAAG,EAAE,GACX,GAAG,UAAU,CAAC,KAAK,CAAA;QACpB,MAAM,OAAO,GAAG,wBAAwB,CACtC,MAAa,EACb,EAAE,GAAG,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,CACjC,CAAA;QACD,MAAM,OAAO,GAAG,OAAO,CACrB,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,CACpE,CAAA;QACD,OAAO;YACL,GAAG,KAAK;YACR,GAAG,OAAO;YACV,OAAO;YACP,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,IAAI,iBAAiB;SAChE,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,YAAY,CAK3B,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// @wagmi/core/experimental
|
|
3
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
5
|
+
// biome-ignore lint/performance/noReExportAll: entrypoint module
|
|
6
|
+
export * from '@wagmi/core/experimental';
|
|
7
|
+
//# sourceMappingURL=experimental.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../../../src/exports/actions/experimental.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF,gEAAgE;AAChE,iEAAiE;AACjE,cAAc,0BAA0B,CAAA"}
|