@wagmi/core 2.0.0-beta.0 → 2.0.0-beta.1
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/query/readContracts.js +1 -1
- package/dist/esm/query/readContracts.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/query/readContracts.d.ts +4 -4
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/query/readContracts.ts +2 -2
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.0.0-beta.
|
|
1
|
+
export const version = '2.0.0-beta.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -12,7 +12,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
|
|
|
12
12
|
readonly queryFn: ({ queryKey }: {
|
|
13
13
|
queryKey: readonly ["readContracts", {
|
|
14
14
|
contracts: {
|
|
15
|
-
chainId:
|
|
15
|
+
chainId: number;
|
|
16
16
|
address: `0x${string}`;
|
|
17
17
|
functionName: string;
|
|
18
18
|
args?: readonly unknown[] | undefined;
|
|
@@ -30,7 +30,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
|
|
|
30
30
|
}) => Promise<ReadContractsReturnType<contracts, allowFailure>>;
|
|
31
31
|
readonly queryKey: readonly ["readContracts", {
|
|
32
32
|
contracts: {
|
|
33
|
-
chainId:
|
|
33
|
+
chainId: number;
|
|
34
34
|
address: `0x${string}`;
|
|
35
35
|
functionName: string;
|
|
36
36
|
args?: readonly unknown[] | undefined;
|
|
@@ -41,14 +41,14 @@ export declare function readContractsQueryOptions<config extends Config, const c
|
|
|
41
41
|
batchSize?: number | undefined;
|
|
42
42
|
multicallAddress?: `0x${string}` | undefined;
|
|
43
43
|
scopeKey?: string | undefined;
|
|
44
|
-
chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer
|
|
44
|
+
chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T_1 ? T_1 extends config["chains"][number]["id"] ? T_1 extends config["chains"][number]["id"] ? T_1 : undefined : never : never) | undefined;
|
|
45
45
|
}];
|
|
46
46
|
};
|
|
47
47
|
export type ReadContractsQueryFnData<contracts extends readonly unknown[], allowFailure extends boolean> = ReadContractsReturnType<contracts, allowFailure>;
|
|
48
48
|
export type ReadContractsData<contracts extends readonly unknown[], allowFailure extends boolean> = ReadContractsQueryFnData<contracts, allowFailure>;
|
|
49
49
|
export declare function readContractsQueryKey<config extends Config, const contracts extends readonly unknown[], allowFailure extends boolean>(options?: ReadContractsOptions<contracts, allowFailure, config> & ChainIdParameter<config>): readonly ["readContracts", {
|
|
50
50
|
contracts: {
|
|
51
|
-
chainId:
|
|
51
|
+
chainId: number;
|
|
52
52
|
address: `0x${string}`;
|
|
53
53
|
functionName: string;
|
|
54
54
|
args?: readonly unknown[] | undefined;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.0.0-beta.
|
|
1
|
+
export declare const version = "2.0.0-beta.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -81,9 +81,9 @@ export function readContractsQueryKey<
|
|
|
81
81
|
) {
|
|
82
82
|
const contracts = []
|
|
83
83
|
for (const contract of (options.contracts ??
|
|
84
|
-
[]) as ContractFunctionParameters[]) {
|
|
84
|
+
[]) as (ContractFunctionParameters & { chainId: number })[]) {
|
|
85
85
|
const { abi: _, ...rest } = contract
|
|
86
|
-
contracts.push({ ...rest, chainId: options.chainId })
|
|
86
|
+
contracts.push({ ...rest, chainId: rest.chainId ?? options.chainId })
|
|
87
87
|
}
|
|
88
88
|
return [
|
|
89
89
|
'readContracts',
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.0.0-beta.
|
|
1
|
+
export const version = '2.0.0-beta.1'
|