wagmi 3.6.0 → 3.6.2
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/exports/tempo.js +1 -1
- package/dist/esm/exports/tempo.js.map +1 -1
- package/dist/esm/hooks/codegen/createUseReadContract.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/tempo.d.ts +1 -1
- package/dist/types/exports/tempo.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseReadContract.d.ts +11 -4
- package/dist/types/hooks/codegen/createUseReadContract.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/exports/tempo.ts +2 -1
- package/src/hooks/codegen/createUseReadContract.ts +13 -13
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '3.6.
|
|
1
|
+
export const version = '3.6.2';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** biome-ignore-all lint/performance/noReExportAll: entrypoint */
|
|
2
|
-
export { Actions, type Dangerous_Secp256k1Parameters, dangerous_secp256k1,
|
|
2
|
+
export { Actions, type Dangerous_Secp256k1Parameters, dangerous_secp256k1, type TempoWalletParameters, tempoWallet, type WebAuthnParameters, webAuthn, } from '@wagmi/core/tempo';
|
|
3
3
|
export * as Hooks from '../tempo/hooks/index.js';
|
|
4
4
|
//# sourceMappingURL=tempo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tempo.d.ts","sourceRoot":"","sources":["../../../src/exports/tempo.ts"],"names":[],"mappings":"AAIA,kEAAkE;AAElE,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"tempo.d.ts","sourceRoot":"","sources":["../../../src/exports/tempo.ts"],"names":[],"mappings":"AAIA,kEAAkE;AAElE,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,WAAW,EACX,KAAK,kBAAkB,EACvB,QAAQ,GACT,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,KAAK,MAAM,yBAAyB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config, ReadContractErrorType, ReadContractParameters, ResolvedRegister } from '@wagmi/core';
|
|
2
|
-
import type { ConfigParameter, QueryParameter, ScopeKeyParameter, UnionCompute
|
|
2
|
+
import type { ConfigParameter, QueryParameter, ScopeKeyParameter, UnionCompute } from '@wagmi/core/internal';
|
|
3
3
|
import type { ReadContractData, ReadContractQueryFnData, ReadContractQueryKey } from '@wagmi/core/query';
|
|
4
|
-
import type { Abi, Address, ContractFunctionArgs, ContractFunctionName
|
|
4
|
+
import type { Abi, Address, ContractFunctionArgs, ContractFunctionName } from 'viem';
|
|
5
5
|
import { type UseReadContractReturnType } from '../useReadContract.js';
|
|
6
6
|
type stateMutability = 'pure' | 'view';
|
|
7
7
|
export type CreateUseReadContractParameters<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined> = {
|
|
@@ -9,9 +9,16 @@ export type CreateUseReadContractParameters<abi extends Abi | readonly unknown[]
|
|
|
9
9
|
address?: address | Address | Record<number, Address> | undefined;
|
|
10
10
|
functionName?: functionName | ContractFunctionName<abi, stateMutability> | undefined;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
/** Call-level options from ReadContractParameters (excludes abi, address, functionName, args). */
|
|
13
|
+
type ReadContractCallOptions<config extends Config> = Omit<ReadContractParameters<Abi, string, readonly unknown[], config>, 'abi' | 'address' | 'functionName' | 'args'>;
|
|
14
|
+
export type CreateUseReadContractReturnType<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined> = <name extends functionName extends ContractFunctionName<abi, stateMutability> ? functionName : ContractFunctionName<abi, stateMutability>, const args extends ContractFunctionArgs<abi, stateMutability, name>, config extends Config = ResolvedRegister['config'], selectData = ReadContractData<abi, name, args>>(parameters?: UnionCompute<{
|
|
15
|
+
abi?: undefined;
|
|
16
|
+
address?: address extends undefined ? Address : undefined;
|
|
17
|
+
functionName?: functionName extends undefined ? name : undefined;
|
|
18
|
+
args?: args | undefined;
|
|
19
|
+
} & Partial<ReadContractCallOptions<config>> & ScopeKeyParameter & ConfigParameter<config> & QueryParameter<ReadContractQueryFnData<abi, name, args>, ReadContractErrorType, selectData, ReadContractQueryKey<abi, name, args, config>>> & (address extends Record<number, Address> ? {
|
|
13
20
|
chainId?: keyof address | undefined;
|
|
14
|
-
} : unknown)
|
|
21
|
+
} : unknown)) => UseReadContractReturnType<abi, name, args, selectData>;
|
|
15
22
|
export declare function createUseReadContract<const abi extends Abi | readonly unknown[], const address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined>(props: CreateUseReadContractParameters<abi, address, functionName>): CreateUseReadContractReturnType<abi, address, functionName>;
|
|
16
23
|
export {};
|
|
17
24
|
//# sourceMappingURL=createUseReadContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseReadContract.d.ts","sourceRoot":"","sources":["../../../../src/hooks/codegen/createUseReadContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,
|
|
1
|
+
{"version":3,"file":"createUseReadContract.d.ts","sourceRoot":"","sources":["../../../../src/hooks/codegen/createUseReadContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,sBAA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AAC,CAAA;AAE3D,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,KAAK,CAAC,OAAO,SACT,OAAO,GACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,SAAS,GAAG,SAAS,EACzB,YAAY,SACR,oBAAoB,CAAC,GAAG,EAAE,eAAe,CAAC,GAC1C,SAAS,GAAG,SAAS,EAEzB,KAAK,EAAE,+BAA+B,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,CAAC,GACjE,+BAA+B,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,CAAC,CAuB7D"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "3.6.
|
|
1
|
+
export declare const version = "3.6.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wagmi",
|
|
3
3
|
"description": "React Hooks for Ethereum",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"use-sync-external-store": "1.4.0",
|
|
95
|
-
"@wagmi/connectors": "8.0.
|
|
96
|
-
"@wagmi/core": "3.4.
|
|
95
|
+
"@wagmi/connectors": "8.0.2",
|
|
96
|
+
"@wagmi/core": "3.4.3"
|
|
97
97
|
},
|
|
98
98
|
"contributors": [
|
|
99
99
|
"awkweb.eth <t@wevm.dev>",
|
package/src/exports/tempo.ts
CHANGED
|
@@ -9,7 +9,6 @@ import type {
|
|
|
9
9
|
QueryParameter,
|
|
10
10
|
ScopeKeyParameter,
|
|
11
11
|
UnionCompute,
|
|
12
|
-
UnionExactPartial,
|
|
13
12
|
} from '@wagmi/core/internal'
|
|
14
13
|
import type {
|
|
15
14
|
ReadContractData,
|
|
@@ -21,7 +20,6 @@ import type {
|
|
|
21
20
|
Address,
|
|
22
21
|
ContractFunctionArgs,
|
|
23
22
|
ContractFunctionName,
|
|
24
|
-
ExactPartial,
|
|
25
23
|
} from 'viem'
|
|
26
24
|
import { useChainId } from '../useChainId.js'
|
|
27
25
|
import { useConfig } from '../useConfig.js'
|
|
@@ -47,15 +45,16 @@ export type CreateUseReadContractParameters<
|
|
|
47
45
|
| undefined
|
|
48
46
|
}
|
|
49
47
|
|
|
48
|
+
/** Call-level options from ReadContractParameters (excludes abi, address, functionName, args). */
|
|
49
|
+
type ReadContractCallOptions<config extends Config> = Omit<
|
|
50
|
+
ReadContractParameters<Abi, string, readonly unknown[], config>,
|
|
51
|
+
'abi' | 'address' | 'functionName' | 'args'
|
|
52
|
+
>
|
|
53
|
+
|
|
50
54
|
export type CreateUseReadContractReturnType<
|
|
51
55
|
abi extends Abi | readonly unknown[],
|
|
52
56
|
address extends Address | Record<number, Address> | undefined,
|
|
53
57
|
functionName extends ContractFunctionName<abi, stateMutability> | undefined,
|
|
54
|
-
///
|
|
55
|
-
omittedProperties extends 'abi' | 'address' | 'functionName' =
|
|
56
|
-
| 'abi'
|
|
57
|
-
| (address extends undefined ? never : 'address')
|
|
58
|
-
| (functionName extends undefined ? never : 'functionName'),
|
|
59
58
|
> = <
|
|
60
59
|
name extends functionName extends ContractFunctionName<abi, stateMutability>
|
|
61
60
|
? functionName
|
|
@@ -65,10 +64,12 @@ export type CreateUseReadContractReturnType<
|
|
|
65
64
|
selectData = ReadContractData<abi, name, args>,
|
|
66
65
|
>(
|
|
67
66
|
parameters?: UnionCompute<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
{
|
|
68
|
+
abi?: undefined
|
|
69
|
+
address?: address extends undefined ? Address : undefined
|
|
70
|
+
functionName?: functionName extends undefined ? name : undefined
|
|
71
|
+
args?: args | undefined
|
|
72
|
+
} & Partial<ReadContractCallOptions<config>> &
|
|
72
73
|
ScopeKeyParameter &
|
|
73
74
|
ConfigParameter<config> &
|
|
74
75
|
QueryParameter<
|
|
@@ -80,8 +81,7 @@ export type CreateUseReadContractReturnType<
|
|
|
80
81
|
> &
|
|
81
82
|
(address extends Record<number, Address>
|
|
82
83
|
? { chainId?: keyof address | undefined }
|
|
83
|
-
: unknown)
|
|
84
|
-
ExactPartial<Record<omittedProperties, undefined>>,
|
|
84
|
+
: unknown),
|
|
85
85
|
) => UseReadContractReturnType<abi, name, args, selectData>
|
|
86
86
|
|
|
87
87
|
export function createUseReadContract<
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.6.
|
|
1
|
+
export const version = '3.6.2'
|