@wagmi/core 2.0.0-alpha.1 → 2.0.0-alpha.3

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.
Files changed (142) hide show
  1. package/dist/esm/actions/connect.js +7 -12
  2. package/dist/esm/actions/connect.js.map +1 -1
  3. package/dist/esm/actions/disconnect.js +2 -0
  4. package/dist/esm/actions/disconnect.js.map +1 -1
  5. package/dist/esm/actions/getBalance.js +11 -4
  6. package/dist/esm/actions/getBalance.js.map +1 -1
  7. package/dist/esm/actions/getConnectorClient.js.map +1 -1
  8. package/dist/esm/actions/getConnectors.js +11 -0
  9. package/dist/esm/actions/getConnectors.js.map +1 -0
  10. package/dist/esm/actions/readContracts.js.map +1 -1
  11. package/dist/esm/actions/reconnect.js +1 -1
  12. package/dist/esm/actions/reconnect.js.map +1 -1
  13. package/dist/esm/actions/signTypedData.js.map +1 -1
  14. package/dist/esm/actions/switchAccount.js.map +1 -1
  15. package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
  16. package/dist/esm/actions/watchAccount.js.map +1 -1
  17. package/dist/esm/actions/watchBlockNumber.js.map +1 -1
  18. package/dist/esm/actions/watchBlocks.js.map +1 -1
  19. package/dist/esm/actions/watchConnectors.js +9 -0
  20. package/dist/esm/actions/watchConnectors.js.map +1 -0
  21. package/dist/esm/createConfig.js +22 -12
  22. package/dist/esm/createConfig.js.map +1 -1
  23. package/dist/esm/createConnector.js.map +1 -1
  24. package/dist/esm/createStorage.js +2 -2
  25. package/dist/esm/createStorage.js.map +1 -1
  26. package/dist/esm/exports/actions.js +2 -0
  27. package/dist/esm/exports/actions.js.map +1 -1
  28. package/dist/esm/exports/index.js +2 -0
  29. package/dist/esm/exports/index.js.map +1 -1
  30. package/dist/esm/exports/query.js +1 -0
  31. package/dist/esm/exports/query.js.map +1 -1
  32. package/dist/esm/query/estimateGas.js.map +1 -1
  33. package/dist/esm/query/getBalance.js +5 -4
  34. package/dist/esm/query/getBalance.js.map +1 -1
  35. package/dist/esm/query/getTransaction.js +3 -2
  36. package/dist/esm/query/getTransaction.js.map +1 -1
  37. package/dist/esm/query/infiniteReadContracts.js +21 -0
  38. package/dist/esm/query/infiniteReadContracts.js.map +1 -0
  39. package/dist/esm/query/readContract.js +2 -2
  40. package/dist/esm/query/readContract.js.map +1 -1
  41. package/dist/esm/query/readContracts.js +2 -2
  42. package/dist/esm/query/readContracts.js.map +1 -1
  43. package/dist/esm/query/simulateContract.js +5 -1
  44. package/dist/esm/query/simulateContract.js.map +1 -1
  45. package/dist/esm/query/utils.js +12 -0
  46. package/dist/esm/query/utils.js.map +1 -1
  47. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  48. package/dist/esm/version.js +1 -1
  49. package/dist/types/actions/connect.d.ts +2 -2
  50. package/dist/types/actions/connect.d.ts.map +1 -1
  51. package/dist/types/actions/disconnect.d.ts +3 -4
  52. package/dist/types/actions/disconnect.d.ts.map +1 -1
  53. package/dist/types/actions/getBalance.d.ts.map +1 -1
  54. package/dist/types/actions/getConnectors.d.ts +5 -0
  55. package/dist/types/actions/getConnectors.d.ts.map +1 -0
  56. package/dist/types/actions/getToken.d.ts +3 -3
  57. package/dist/types/actions/getToken.d.ts.map +1 -1
  58. package/dist/types/actions/multicall.d.ts +1 -1
  59. package/dist/types/actions/multicall.d.ts.map +1 -1
  60. package/dist/types/actions/signTypedData.d.ts +2 -1
  61. package/dist/types/actions/signTypedData.d.ts.map +1 -1
  62. package/dist/types/actions/switchAccount.d.ts.map +1 -1
  63. package/dist/types/actions/switchChain.d.ts +2 -2
  64. package/dist/types/actions/switchChain.d.ts.map +1 -1
  65. package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
  66. package/dist/types/actions/watchAccount.d.ts.map +1 -1
  67. package/dist/types/actions/watchBlocks.d.ts.map +1 -1
  68. package/dist/types/actions/watchConnectors.d.ts +9 -0
  69. package/dist/types/actions/watchConnectors.d.ts.map +1 -0
  70. package/dist/types/createConfig.d.ts +12 -8
  71. package/dist/types/createConfig.d.ts.map +1 -1
  72. package/dist/types/createConnector.d.ts.map +1 -1
  73. package/dist/types/createStorage.d.ts +1 -1
  74. package/dist/types/createStorage.d.ts.map +1 -1
  75. package/dist/types/errors/base.d.ts +7 -7
  76. package/dist/types/errors/base.d.ts.map +1 -1
  77. package/dist/types/exports/actions.d.ts +2 -0
  78. package/dist/types/exports/actions.d.ts.map +1 -1
  79. package/dist/types/exports/index.d.ts +2 -0
  80. package/dist/types/exports/index.d.ts.map +1 -1
  81. package/dist/types/exports/query.d.ts +1 -0
  82. package/dist/types/exports/query.d.ts.map +1 -1
  83. package/dist/types/query/connect.d.ts +1 -1
  84. package/dist/types/query/getBalance.d.ts.map +1 -1
  85. package/dist/types/query/getToken.d.ts +3 -3
  86. package/dist/types/query/getTransaction.d.ts.map +1 -1
  87. package/dist/types/query/infiniteReadContracts.d.ts +61 -0
  88. package/dist/types/query/infiniteReadContracts.d.ts.map +1 -0
  89. package/dist/types/query/readContract.d.ts +3 -3
  90. package/dist/types/query/readContract.d.ts.map +1 -1
  91. package/dist/types/query/readContracts.d.ts +8 -8
  92. package/dist/types/query/readContracts.d.ts.map +1 -1
  93. package/dist/types/query/signTypedData.d.ts +219 -206
  94. package/dist/types/query/signTypedData.d.ts.map +1 -1
  95. package/dist/types/query/simulateContract.d.ts +3 -3
  96. package/dist/types/query/simulateContract.d.ts.map +1 -1
  97. package/dist/types/query/switchChain.d.ts +1 -1
  98. package/dist/types/query/types.d.ts +14 -4
  99. package/dist/types/query/types.d.ts.map +1 -1
  100. package/dist/types/query/utils.d.ts.map +1 -1
  101. package/dist/types/query/waitForTransactionReceipt.d.ts +1 -1
  102. package/dist/types/types/utils.d.ts +0 -9
  103. package/dist/types/types/utils.d.ts.map +1 -1
  104. package/dist/types/version.d.ts +1 -1
  105. package/package.json +4 -4
  106. package/src/actions/connect.ts +9 -15
  107. package/src/actions/disconnect.ts +4 -3
  108. package/src/actions/getBalance.ts +12 -4
  109. package/src/actions/getBlock.ts +1 -1
  110. package/src/actions/getConnectorClient.ts +1 -1
  111. package/src/actions/getConnectors.ts +14 -0
  112. package/src/actions/getToken.ts +3 -3
  113. package/src/actions/multicall.ts +1 -1
  114. package/src/actions/readContracts.ts +1 -1
  115. package/src/actions/reconnect.ts +1 -1
  116. package/src/actions/signTypedData.ts +5 -7
  117. package/src/actions/switchAccount.ts +1 -0
  118. package/src/actions/switchChain.ts +2 -2
  119. package/src/actions/waitForTransactionReceipt.ts +3 -1
  120. package/src/actions/watchAccount.ts +1 -0
  121. package/src/actions/watchBlockNumber.ts +2 -2
  122. package/src/actions/watchBlocks.ts +2 -5
  123. package/src/actions/watchConnectors.ts +22 -0
  124. package/src/createConfig.ts +75 -54
  125. package/src/createConnector.ts +2 -10
  126. package/src/createStorage.ts +3 -4
  127. package/src/errors/base.ts +5 -5
  128. package/src/exports/actions.ts +11 -0
  129. package/src/exports/index.ts +11 -0
  130. package/src/exports/query.ts +9 -0
  131. package/src/query/estimateGas.ts +1 -1
  132. package/src/query/getBalance.ts +5 -13
  133. package/src/query/getTransaction.ts +3 -9
  134. package/src/query/infiniteReadContracts.ts +126 -0
  135. package/src/query/readContract.ts +7 -7
  136. package/src/query/readContracts.ts +9 -9
  137. package/src/query/simulateContract.ts +8 -4
  138. package/src/query/types.ts +64 -33
  139. package/src/query/utils.ts +15 -0
  140. package/src/query/waitForTransactionReceipt.ts +1 -1
  141. package/src/types/utils.ts +0 -8
  142. package/src/version.ts +1 -1
@@ -0,0 +1,61 @@
1
+ import type { ContractFunctionParameters } from 'viem';
2
+ import { type ReadContractsParameters, type ReadContractsReturnType } from '../actions/readContracts.js';
3
+ import type { Config } from '../createConfig.js';
4
+ import type { ChainIdParameter } from '../types/properties.js';
5
+ import type { Omit } from '../types/utils.js';
6
+ import type { ScopeKeyParameter } from './types.js';
7
+ export type InfiniteReadContractsOptions<contracts extends readonly unknown[], allowFailure extends boolean, pageParam, config extends Config> = {
8
+ cacheKey: string;
9
+ contracts(pageParam: pageParam): ReadContractsParameters<contracts, allowFailure, config>['contracts'];
10
+ } & Omit<ReadContractsParameters<contracts, allowFailure, config>, 'contracts'> & ScopeKeyParameter;
11
+ export declare function infiniteReadContractsQueryOptions<config extends Config, const contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = true, pageParam = unknown>(config: config, options: InfiniteReadContractsOptions<contracts, allowFailure, pageParam, config> & ChainIdParameter<config> & RequiredPageParamsParameters<contracts, allowFailure, pageParam>): {
12
+ readonly queryFn: ({ pageParam, queryKey }: {
13
+ queryKey: readonly ["infiniteReadContracts", {
14
+ cacheKey: string;
15
+ blockNumber?: bigint | undefined;
16
+ blockTag?: import("viem").BlockTag | undefined;
17
+ allowFailure?: boolean | allowFailure | undefined;
18
+ batchSize?: number | undefined;
19
+ multicallAddress?: `0x${string}` | undefined;
20
+ scopeKey?: string | undefined;
21
+ chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T ? T extends config["chains"][number]["id"] ? T extends config["chains"][number]["id"] ? T : undefined : never : never) | undefined;
22
+ }];
23
+ signal: AbortSignal;
24
+ pageParam: pageParam;
25
+ direction: "forward" | "backward";
26
+ meta: Record<string, unknown> | undefined;
27
+ }) => Promise<ReadContractsReturnType<contracts, allowFailure>>;
28
+ readonly queryKey: readonly ["infiniteReadContracts", {
29
+ cacheKey: string;
30
+ blockNumber?: bigint | undefined;
31
+ blockTag?: import("viem").BlockTag | undefined;
32
+ allowFailure?: boolean | allowFailure | undefined;
33
+ batchSize?: number | undefined;
34
+ multicallAddress?: `0x${string}` | undefined;
35
+ scopeKey?: string | undefined;
36
+ 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;
37
+ }];
38
+ readonly initialPageParam: pageParam;
39
+ readonly getNextPageParam: (lastPage: InfiniteReadContractsQueryFnData<contracts, allowFailure>, allPages: InfiniteReadContractsQueryFnData<contracts, allowFailure>[], lastPageParam: pageParam, allPageParams: pageParam[]) => pageParam | null | undefined;
40
+ };
41
+ type RequiredPageParamsParameters<contracts extends readonly unknown[], allowFailure extends boolean, pageParam> = {
42
+ query: {
43
+ initialPageParam: pageParam;
44
+ getNextPageParam(lastPage: InfiniteReadContractsQueryFnData<contracts, allowFailure>, allPages: InfiniteReadContractsQueryFnData<contracts, allowFailure>[], lastPageParam: pageParam, allPageParams: pageParam[]): pageParam | undefined | null;
45
+ };
46
+ };
47
+ export type InfiniteReadContractsQueryFnData<contracts extends readonly unknown[], allowFailure extends boolean> = ReadContractsReturnType<contracts, allowFailure>;
48
+ export type InfiniteReadContractsData<contracts extends readonly unknown[], allowFailure extends boolean> = InfiniteReadContractsQueryFnData<contracts, allowFailure>;
49
+ export declare function infiniteReadContractsQueryKey<config extends Config, const contracts extends readonly unknown[], allowFailure extends boolean, pageParam>(options: InfiniteReadContractsOptions<contracts, allowFailure, pageParam, config> & ChainIdParameter<config> & RequiredPageParamsParameters<contracts, allowFailure, pageParam>): readonly ["infiniteReadContracts", {
50
+ cacheKey: string;
51
+ blockNumber?: bigint | undefined;
52
+ blockTag?: import("viem").BlockTag | undefined;
53
+ allowFailure?: boolean | allowFailure | undefined;
54
+ batchSize?: number | undefined;
55
+ multicallAddress?: `0x${string}` | undefined;
56
+ scopeKey?: string | undefined;
57
+ chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T ? T extends config["chains"][number]["id"] ? T extends config["chains"][number]["id"] ? T : undefined : never : never) | undefined;
58
+ }];
59
+ export type InfiniteReadContractsQueryKey<contracts extends readonly unknown[], allowFailure extends boolean, pageParam, config extends Config> = ReturnType<typeof infiniteReadContractsQueryKey<config, contracts, allowFailure, pageParam>>;
60
+ export {};
61
+ //# sourceMappingURL=infiniteReadContracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infiniteReadContracts.d.ts","sourceRoot":"","sources":["../../../src/query/infiniteReadContracts.ts"],"names":[],"mappings":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AC5B,SAAS,IACP;IACF,KAAK,EAAE;QACL,gBAAgB,EAAE,SAAS,CAAA;QAC3B,gBAAgB,CACd,QAAQ,EAAE,gCAAgC,CAAC,SAAS,EAAE,YAAY,CAAC,EACnE,QAAQ,EAAE,gCAAgC,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,EACrE,aAAa,EAAE,SAAS,EACxB,aAAa,EAAE,SAAS,EAAE,GACzB,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;KAChC,CAAA;CACF,CAAA;AAED,MAAM,MAAM,gCAAgC,CAC1C,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,OAAO,IAC1B,uBAAuB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAEpD,MAAM,MAAM,yBAAyB,CACnC,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,OAAO,IAC1B,gCAAgC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAE7D,wBAAgB,6BAA6B,CAC3C,MAAM,SAAS,MAAM,EACrB,KAAK,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAC1C,YAAY,SAAS,OAAO,EAC5B,SAAS,EAET,OAAO,EAAE,4BAA4B,CACnC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,MAAM,CACP,GACC,gBAAgB,CAAC,MAAM,CAAC,GACxB,4BAA4B,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;;;;;;;;;GAInE;AAED,MAAM,MAAM,6BAA6B,CACvC,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,OAAO,EAC5B,SAAS,EACT,MAAM,SAAS,MAAM,IACnB,UAAU,CACZ,OAAO,6BAA6B,CAClC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,SAAS,CACV,CACF,CAAA"}
@@ -4,7 +4,7 @@ import type { Config } from '../createConfig.js';
4
4
  import type { UnionPartial } from '../types/utils.js';
5
5
  import type { ScopeKeyParameter } from './types.js';
6
6
  export type ReadContractOptions<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config> = UnionPartial<ReadContractParameters<abi, functionName, args, config>> & ScopeKeyParameter;
7
- export declare function readContractQueryOptions<config extends Config, const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>>(config: Config, options?: ReadContractOptions<abi, functionName, args, config>): {
7
+ export declare function readContractQueryOptions<config extends Config, const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>>(config: config, options?: ReadContractOptions<abi, functionName, args, config>): {
8
8
  readonly queryFn: ({ queryKey }: {
9
9
  queryKey: readonly ["readContract", Omit<ReadContractOptions<abi, functionName, args, config>, "abi">];
10
10
  signal: AbortSignal;
@@ -14,6 +14,6 @@ export declare function readContractQueryOptions<config extends Config, const ab
14
14
  };
15
15
  export type ReadContractQueryFnData<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = ReadContractReturnType<abi, functionName, args>;
16
16
  export type ReadContractData<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = ReadContractQueryFnData<abi, functionName, args>;
17
- export declare function readContractQueryKey<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config>(options?: ReadContractOptions<abi, functionName, args, config>): readonly ["readContract", Omit<ReadContractOptions<abi, functionName, args, config>, "abi">];
18
- export type ReadContractQueryKey<config extends Config, abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = ReturnType<typeof readContractQueryKey<abi, functionName, args, config>>;
17
+ export declare function readContractQueryKey<config extends Config, const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>>(options?: ReadContractOptions<abi, functionName, args, config>): readonly ["readContract", Omit<ReadContractOptions<abi, functionName, args, config>, "abi">];
18
+ export type ReadContractQueryKey<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, config extends Config> = ReturnType<typeof readContractQueryKey<config, abi, functionName, args>>;
19
19
  //# sourceMappingURL=readContract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readContract.d.ts","sourceRoot":"","sources":["../../../src/query/readContract.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,MAAM,CAAA;AAEb,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAE5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGnD,MAAM,MAAM,mBAAmB,CAC7B,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,EAC/D,IAAI,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EACrE,MAAM,SAAS,MAAM,IACnB,YAAY,CAAC,sBAAsB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,GACvE,iB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,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAa,gGAG1E;AAED,MAAM,MAAM,oBAAoB,CAC9B,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,EAC/D,IAAI,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EACrE,MAAM,SAAS,MAAM,IACnB,UAAU,CAAC,OAAO,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAAA"}
@@ -4,11 +4,11 @@ import type { Config } from '../createConfig.js';
4
4
  import type { ChainIdParameter } from '../types/properties.js';
5
5
  import type { ExactPartial } from '../types/utils.js';
6
6
  import type { ScopeKeyParameter } from './types.js';
7
- export type ReadContractsOptions<config extends Config, contracts extends readonly unknown[], allowFailure extends boolean> = ExactPartial<viem_MulticallParameters<contracts, allowFailure, {
7
+ export type ReadContractsOptions<contracts extends readonly unknown[], allowFailure extends boolean, config extends Config> = ExactPartial<viem_MulticallParameters<contracts, allowFailure, {
8
8
  optional: true;
9
9
  properties: ChainIdParameter<config>;
10
10
  }>> & ScopeKeyParameter;
11
- export declare function readContractsQueryOptions<config extends Config, const contracts extends readonly unknown[], allowFailure extends boolean = true>(config: Config, options?: ReadContractsOptions<config, contracts, allowFailure> & ChainIdParameter<config>): {
11
+ export declare function readContractsQueryOptions<config extends Config, const contracts extends readonly unknown[], allowFailure extends boolean = true>(config: config, options?: ReadContractsOptions<contracts, allowFailure, config> & ChainIdParameter<config>): {
12
12
  readonly queryFn: ({ queryKey }: {
13
13
  queryKey: readonly ["readContracts", {
14
14
  contracts: {
@@ -19,7 +19,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
19
19
  }[];
20
20
  blockNumber?: bigint | undefined;
21
21
  blockTag?: import("viem").BlockTag | undefined;
22
- allowFailure?: allowFailure | undefined;
22
+ allowFailure?: boolean | allowFailure | undefined;
23
23
  batchSize?: number | undefined;
24
24
  multicallAddress?: `0x${string}` | undefined;
25
25
  scopeKey?: string | undefined;
@@ -27,7 +27,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
27
27
  }];
28
28
  signal: AbortSignal;
29
29
  meta: Record<string, unknown> | undefined;
30
- }) => Promise<ReadContractsData<contracts, allowFailure>>;
30
+ }) => Promise<ReadContractsReturnType<contracts, allowFailure>>;
31
31
  readonly queryKey: readonly ["readContracts", {
32
32
  contracts: {
33
33
  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;
@@ -37,7 +37,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
37
37
  }[];
38
38
  blockNumber?: bigint | undefined;
39
39
  blockTag?: import("viem").BlockTag | undefined;
40
- allowFailure?: allowFailure | undefined;
40
+ allowFailure?: boolean | allowFailure | undefined;
41
41
  batchSize?: number | undefined;
42
42
  multicallAddress?: `0x${string}` | undefined;
43
43
  scopeKey?: string | undefined;
@@ -46,7 +46,7 @@ export declare function readContractsQueryOptions<config extends Config, const c
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
- export declare function readContractsQueryKey<config extends Config, const contracts extends readonly unknown[], allowFailure extends boolean>(options?: ReadContractsOptions<config, contracts, allowFailure> & ChainIdParameter<config>): readonly ["readContracts", {
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
51
  chainId: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T ? T extends config["chains"][number]["id"] ? T extends config["chains"][number]["id"] ? T : undefined : never : never) | undefined;
52
52
  address: `0x${string}`;
@@ -55,11 +55,11 @@ export declare function readContractsQueryKey<config extends Config, const contr
55
55
  }[];
56
56
  blockNumber?: bigint | undefined;
57
57
  blockTag?: import("viem").BlockTag | undefined;
58
- allowFailure?: allowFailure | undefined;
58
+ allowFailure?: boolean | allowFailure | undefined;
59
59
  batchSize?: number | undefined;
60
60
  multicallAddress?: `0x${string}` | undefined;
61
61
  scopeKey?: string | undefined;
62
62
  chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T ? T extends config["chains"][number]["id"] ? T extends config["chains"][number]["id"] ? T : undefined : never : never) | undefined;
63
63
  }];
64
- export type ReadContractsQueryKey<config extends Config, contracts extends readonly unknown[], allowFailure extends boolean> = ReturnType<typeof readContractsQueryKey<config, contracts, allowFailure>>;
64
+ export type ReadContractsQueryKey<contracts extends readonly unknown[], allowFailure extends boolean, config extends Config> = ReturnType<typeof readContractsQueryKey<config, contracts, allowFailure>>;
65
65
  //# sourceMappingURL=readContracts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readContracts.d.ts","sourceRoot":"","sources":["../../../src/query/readContracts.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,IAAI,wBAAwB,EACrD,MAAM,MAAM,CAAA;AAEb,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGnD,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,EACrB,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS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AS,OAAO,IAC1B,wBAAwB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAErD,wBAAgB,qBAAqB,CACnC,MAAM,SAAS,MAAM,EACrB,KAAK,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAC1C,YAAY,SAAS,OAAO,EAE5B,OAAO,GAAE,oBAAoB,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,CAAC,GAC5D,gBAAgB,CAAC,MAAM,CAAM;;;;;;;;;;;;;;GAYhC;AAED,MAAM,MAAM,qBAAqB,CAC/B,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,OAAO,EAC5B,MAAM,SAAS,MAAM,IACnB,UAAU,CAAC,OAAO,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -4,212 +4,225 @@ import { type SignTypedDataError, type SignTypedDataParameters, type SignTypedDa
4
4
  import { type Config } from '../createConfig.js';
5
5
  import type { Evaluate } from '../types/utils.js';
6
6
  export declare function signTypedDataMutationOptions<config extends Config>(config: config): {
7
- readonly mutationFn: (variables: SignTypedDataVariables<{
8
- [x: string]: readonly import("viem").TypedDataParameter[];
9
- [x: `string[${string}]`]: undefined;
10
- [x: `function[${string}]`]: undefined;
11
- [x: `address[${string}]`]: undefined;
12
- [x: `bool[${string}]`]: undefined;
13
- [x: `bytes[${string}]`]: undefined;
14
- [x: `bytes1[${string}]`]: undefined;
15
- [x: `bytes2[${string}]`]: undefined;
16
- [x: `bytes3[${string}]`]: undefined;
17
- [x: `bytes11[${string}]`]: undefined;
18
- [x: `bytes16[${string}]`]: undefined;
19
- [x: `bytes4[${string}]`]: undefined;
20
- [x: `bytes5[${string}]`]: undefined;
21
- [x: `bytes6[${string}]`]: undefined;
22
- [x: `bytes7[${string}]`]: undefined;
23
- [x: `bytes8[${string}]`]: undefined;
24
- [x: `bytes9[${string}]`]: undefined;
25
- [x: `bytes10[${string}]`]: undefined;
26
- [x: `bytes12[${string}]`]: undefined;
27
- [x: `bytes13[${string}]`]: undefined;
28
- [x: `bytes14[${string}]`]: undefined;
29
- [x: `bytes15[${string}]`]: undefined;
30
- [x: `bytes17[${string}]`]: undefined;
31
- [x: `bytes18[${string}]`]: undefined;
32
- [x: `bytes19[${string}]`]: undefined;
33
- [x: `bytes20[${string}]`]: undefined;
34
- [x: `bytes21[${string}]`]: undefined;
35
- [x: `bytes22[${string}]`]: undefined;
36
- [x: `bytes23[${string}]`]: undefined;
37
- [x: `bytes24[${string}]`]: undefined;
38
- [x: `bytes25[${string}]`]: undefined;
39
- [x: `bytes26[${string}]`]: undefined;
40
- [x: `bytes27[${string}]`]: undefined;
41
- [x: `bytes28[${string}]`]: undefined;
42
- [x: `bytes29[${string}]`]: undefined;
43
- [x: `bytes30[${string}]`]: undefined;
44
- [x: `bytes31[${string}]`]: undefined;
45
- [x: `bytes32[${string}]`]: undefined;
46
- [x: `int[${string}]`]: undefined;
47
- [x: `int256[${string}]`]: undefined;
48
- [x: `int16[${string}]`]: undefined;
49
- [x: `int8[${string}]`]: undefined;
50
- [x: `int24[${string}]`]: undefined;
51
- [x: `int32[${string}]`]: undefined;
52
- [x: `int40[${string}]`]: undefined;
53
- [x: `int48[${string}]`]: undefined;
54
- [x: `int56[${string}]`]: undefined;
55
- [x: `int64[${string}]`]: undefined;
56
- [x: `int72[${string}]`]: undefined;
57
- [x: `int80[${string}]`]: undefined;
58
- [x: `int88[${string}]`]: undefined;
59
- [x: `int96[${string}]`]: undefined;
60
- [x: `int104[${string}]`]: undefined;
61
- [x: `int112[${string}]`]: undefined;
62
- [x: `int120[${string}]`]: undefined;
63
- [x: `int128[${string}]`]: undefined;
64
- [x: `int136[${string}]`]: undefined;
65
- [x: `int144[${string}]`]: undefined;
66
- [x: `int152[${string}]`]: undefined;
67
- [x: `int160[${string}]`]: undefined;
68
- [x: `int168[${string}]`]: undefined;
69
- [x: `int176[${string}]`]: undefined;
70
- [x: `int184[${string}]`]: undefined;
71
- [x: `int192[${string}]`]: undefined;
72
- [x: `int200[${string}]`]: undefined;
73
- [x: `int208[${string}]`]: undefined;
74
- [x: `int216[${string}]`]: undefined;
75
- [x: `int224[${string}]`]: undefined;
76
- [x: `int232[${string}]`]: undefined;
77
- [x: `int240[${string}]`]: undefined;
78
- [x: `int248[${string}]`]: undefined;
79
- [x: `uint[${string}]`]: undefined;
80
- [x: `uint256[${string}]`]: undefined;
81
- [x: `uint16[${string}]`]: undefined;
82
- [x: `uint8[${string}]`]: undefined;
83
- [x: `uint24[${string}]`]: undefined;
84
- [x: `uint32[${string}]`]: undefined;
85
- [x: `uint40[${string}]`]: undefined;
86
- [x: `uint48[${string}]`]: undefined;
87
- [x: `uint56[${string}]`]: undefined;
88
- [x: `uint64[${string}]`]: undefined;
89
- [x: `uint72[${string}]`]: undefined;
90
- [x: `uint80[${string}]`]: undefined;
91
- [x: `uint88[${string}]`]: undefined;
92
- [x: `uint96[${string}]`]: undefined;
93
- [x: `uint104[${string}]`]: undefined;
94
- [x: `uint112[${string}]`]: undefined;
95
- [x: `uint120[${string}]`]: undefined;
96
- [x: `uint128[${string}]`]: undefined;
97
- [x: `uint136[${string}]`]: undefined;
98
- [x: `uint144[${string}]`]: undefined;
99
- [x: `uint152[${string}]`]: undefined;
100
- [x: `uint160[${string}]`]: undefined;
101
- [x: `uint168[${string}]`]: undefined;
102
- [x: `uint176[${string}]`]: undefined;
103
- [x: `uint184[${string}]`]: undefined;
104
- [x: `uint192[${string}]`]: undefined;
105
- [x: `uint200[${string}]`]: undefined;
106
- [x: `uint208[${string}]`]: undefined;
107
- [x: `uint216[${string}]`]: undefined;
108
- [x: `uint224[${string}]`]: undefined;
109
- [x: `uint232[${string}]`]: undefined;
110
- [x: `uint240[${string}]`]: undefined;
111
- [x: `uint248[${string}]`]: undefined;
112
- string?: undefined;
113
- address?: undefined;
114
- bool?: undefined;
115
- bytes?: undefined;
116
- bytes1?: undefined;
117
- bytes2?: undefined;
118
- bytes3?: undefined;
119
- bytes11?: undefined;
120
- bytes16?: undefined;
121
- bytes4?: undefined;
122
- bytes5?: undefined;
123
- bytes6?: undefined;
124
- bytes7?: undefined;
125
- bytes8?: undefined;
126
- bytes9?: undefined;
127
- bytes10?: undefined;
128
- bytes12?: undefined;
129
- bytes13?: undefined;
130
- bytes14?: undefined;
131
- bytes15?: undefined;
132
- bytes17?: undefined;
133
- bytes18?: undefined;
134
- bytes19?: undefined;
135
- bytes20?: undefined;
136
- bytes21?: undefined;
137
- bytes22?: undefined;
138
- bytes23?: undefined;
139
- bytes24?: undefined;
140
- bytes25?: undefined;
141
- bytes26?: undefined;
142
- bytes27?: undefined;
143
- bytes28?: undefined;
144
- bytes29?: undefined;
145
- bytes30?: undefined;
146
- bytes31?: undefined;
147
- bytes32?: undefined;
148
- int256?: undefined;
149
- int16?: undefined;
150
- int8?: undefined;
151
- int24?: undefined;
152
- int32?: undefined;
153
- int40?: undefined;
154
- int48?: undefined;
155
- int56?: undefined;
156
- int64?: undefined;
157
- int72?: undefined;
158
- int80?: undefined;
159
- int88?: undefined;
160
- int96?: undefined;
161
- int104?: undefined;
162
- int112?: undefined;
163
- int120?: undefined;
164
- int128?: undefined;
165
- int136?: undefined;
166
- int144?: undefined;
167
- int152?: undefined;
168
- int160?: undefined;
169
- int168?: undefined;
170
- int176?: undefined;
171
- int184?: undefined;
172
- int192?: undefined;
173
- int200?: undefined;
174
- int208?: undefined;
175
- int216?: undefined;
176
- int224?: undefined;
177
- int232?: undefined;
178
- int240?: undefined;
179
- int248?: undefined;
180
- uint256?: undefined;
181
- uint16?: undefined;
182
- uint8?: undefined;
183
- uint24?: undefined;
184
- uint32?: undefined;
185
- uint40?: undefined;
186
- uint48?: undefined;
187
- uint56?: undefined;
188
- uint64?: undefined;
189
- uint72?: undefined;
190
- uint80?: undefined;
191
- uint88?: undefined;
192
- uint96?: undefined;
193
- uint104?: undefined;
194
- uint112?: undefined;
195
- uint120?: undefined;
196
- uint128?: undefined;
197
- uint136?: undefined;
198
- uint144?: undefined;
199
- uint152?: undefined;
200
- uint160?: undefined;
201
- uint168?: undefined;
202
- uint176?: undefined;
203
- uint184?: undefined;
204
- uint192?: undefined;
205
- uint200?: undefined;
206
- uint208?: undefined;
207
- uint216?: undefined;
208
- uint224?: undefined;
209
- uint232?: undefined;
210
- uint240?: undefined;
211
- uint248?: undefined;
212
- }, string, string>) => Promise<`0x${string}`>;
7
+ readonly mutationFn: (variables: {
8
+ types: {
9
+ [x: string]: readonly import("viem").TypedDataParameter[];
10
+ [x: `string[${string}]`]: undefined;
11
+ [x: `function[${string}]`]: undefined;
12
+ [x: `address[${string}]`]: undefined;
13
+ [x: `bool[${string}]`]: undefined;
14
+ [x: `bytes[${string}]`]: undefined;
15
+ [x: `bytes1[${string}]`]: undefined;
16
+ [x: `bytes2[${string}]`]: undefined;
17
+ [x: `bytes3[${string}]`]: undefined;
18
+ [x: `bytes11[${string}]`]: undefined;
19
+ [x: `bytes16[${string}]`]: undefined;
20
+ [x: `bytes4[${string}]`]: undefined;
21
+ [x: `bytes5[${string}]`]: undefined;
22
+ [x: `bytes6[${string}]`]: undefined;
23
+ [x: `bytes7[${string}]`]: undefined;
24
+ [x: `bytes8[${string}]`]: undefined;
25
+ [x: `bytes9[${string}]`]: undefined;
26
+ [x: `bytes10[${string}]`]: undefined;
27
+ [x: `bytes12[${string}]`]: undefined;
28
+ [x: `bytes13[${string}]`]: undefined;
29
+ [x: `bytes14[${string}]`]: undefined;
30
+ [x: `bytes15[${string}]`]: undefined;
31
+ [x: `bytes17[${string}]`]: undefined;
32
+ [x: `bytes18[${string}]`]: undefined;
33
+ [x: `bytes19[${string}]`]: undefined;
34
+ [x: `bytes20[${string}]`]: undefined;
35
+ [x: `bytes21[${string}]`]: undefined;
36
+ [x: `bytes22[${string}]`]: undefined;
37
+ [x: `bytes23[${string}]`]: undefined;
38
+ [x: `bytes24[${string}]`]: undefined;
39
+ [x: `bytes25[${string}]`]: undefined;
40
+ [x: `bytes26[${string}]`]: undefined;
41
+ [x: `bytes27[${string}]`]: undefined;
42
+ [x: `bytes28[${string}]`]: undefined;
43
+ [x: `bytes29[${string}]`]: undefined;
44
+ [x: `bytes30[${string}]`]: undefined;
45
+ [x: `bytes31[${string}]`]: undefined;
46
+ [x: `bytes32[${string}]`]: undefined;
47
+ [x: `int[${string}]`]: undefined;
48
+ [x: `int256[${string}]`]: undefined;
49
+ [x: `int16[${string}]`]: undefined;
50
+ [x: `int8[${string}]`]: undefined;
51
+ [x: `int24[${string}]`]: undefined;
52
+ [x: `int32[${string}]`]: undefined;
53
+ [x: `int40[${string}]`]: undefined;
54
+ [x: `int48[${string}]`]: undefined;
55
+ [x: `int56[${string}]`]: undefined;
56
+ [x: `int64[${string}]`]: undefined;
57
+ [x: `int72[${string}]`]: undefined;
58
+ [x: `int80[${string}]`]: undefined;
59
+ [x: `int88[${string}]`]: undefined;
60
+ [x: `int96[${string}]`]: undefined;
61
+ [x: `int104[${string}]`]: undefined;
62
+ [x: `int112[${string}]`]: undefined;
63
+ [x: `int120[${string}]`]: undefined;
64
+ [x: `int128[${string}]`]: undefined;
65
+ [x: `int136[${string}]`]: undefined;
66
+ [x: `int144[${string}]`]: undefined;
67
+ [x: `int152[${string}]`]: undefined;
68
+ [x: `int160[${string}]`]: undefined;
69
+ [x: `int168[${string}]`]: undefined;
70
+ [x: `int176[${string}]`]: undefined;
71
+ [x: `int184[${string}]`]: undefined;
72
+ [x: `int192[${string}]`]: undefined;
73
+ [x: `int200[${string}]`]: undefined;
74
+ [x: `int208[${string}]`]: undefined;
75
+ [x: `int216[${string}]`]: undefined;
76
+ [x: `int224[${string}]`]: undefined;
77
+ [x: `int232[${string}]`]: undefined;
78
+ [x: `int240[${string}]`]: undefined;
79
+ [x: `int248[${string}]`]: undefined;
80
+ [x: `uint[${string}]`]: undefined;
81
+ [x: `uint256[${string}]`]: undefined;
82
+ [x: `uint16[${string}]`]: undefined;
83
+ [x: `uint8[${string}]`]: undefined;
84
+ [x: `uint24[${string}]`]: undefined;
85
+ [x: `uint32[${string}]`]: undefined;
86
+ [x: `uint40[${string}]`]: undefined;
87
+ [x: `uint48[${string}]`]: undefined;
88
+ [x: `uint56[${string}]`]: undefined;
89
+ [x: `uint64[${string}]`]: undefined;
90
+ [x: `uint72[${string}]`]: undefined;
91
+ [x: `uint80[${string}]`]: undefined;
92
+ [x: `uint88[${string}]`]: undefined;
93
+ [x: `uint96[${string}]`]: undefined;
94
+ [x: `uint104[${string}]`]: undefined;
95
+ [x: `uint112[${string}]`]: undefined;
96
+ [x: `uint120[${string}]`]: undefined;
97
+ [x: `uint128[${string}]`]: undefined;
98
+ [x: `uint136[${string}]`]: undefined;
99
+ [x: `uint144[${string}]`]: undefined;
100
+ [x: `uint152[${string}]`]: undefined;
101
+ [x: `uint160[${string}]`]: undefined;
102
+ [x: `uint168[${string}]`]: undefined;
103
+ [x: `uint176[${string}]`]: undefined;
104
+ [x: `uint184[${string}]`]: undefined;
105
+ [x: `uint192[${string}]`]: undefined;
106
+ [x: `uint200[${string}]`]: undefined;
107
+ [x: `uint208[${string}]`]: undefined;
108
+ [x: `uint216[${string}]`]: undefined;
109
+ [x: `uint224[${string}]`]: undefined;
110
+ [x: `uint232[${string}]`]: undefined;
111
+ [x: `uint240[${string}]`]: undefined;
112
+ [x: `uint248[${string}]`]: undefined;
113
+ string?: undefined;
114
+ address?: undefined;
115
+ bool?: undefined;
116
+ bytes?: undefined;
117
+ bytes1?: undefined;
118
+ bytes2?: undefined;
119
+ bytes3?: undefined;
120
+ bytes11?: undefined;
121
+ bytes16?: undefined;
122
+ bytes4?: undefined;
123
+ bytes5?: undefined;
124
+ bytes6?: undefined;
125
+ bytes7?: undefined;
126
+ bytes8?: undefined;
127
+ bytes9?: undefined;
128
+ bytes10?: undefined;
129
+ bytes12?: undefined;
130
+ bytes13?: undefined;
131
+ bytes14?: undefined;
132
+ bytes15?: undefined;
133
+ bytes17?: undefined;
134
+ bytes18?: undefined;
135
+ bytes19?: undefined;
136
+ bytes20?: undefined;
137
+ bytes21?: undefined;
138
+ bytes22?: undefined;
139
+ bytes23?: undefined;
140
+ bytes24?: undefined;
141
+ bytes25?: undefined;
142
+ bytes26?: undefined;
143
+ bytes27?: undefined;
144
+ bytes28?: undefined;
145
+ bytes29?: undefined;
146
+ bytes30?: undefined;
147
+ bytes31?: undefined;
148
+ bytes32?: undefined;
149
+ int256?: undefined;
150
+ int16?: undefined;
151
+ int8?: undefined;
152
+ int24?: undefined;
153
+ int32?: undefined;
154
+ int40?: undefined;
155
+ int48?: undefined;
156
+ int56?: undefined;
157
+ int64?: undefined;
158
+ int72?: undefined;
159
+ int80?: undefined;
160
+ int88?: undefined;
161
+ int96?: undefined;
162
+ int104?: undefined;
163
+ int112?: undefined;
164
+ int120?: undefined;
165
+ int128?: undefined;
166
+ int136?: undefined;
167
+ int144?: undefined;
168
+ int152?: undefined;
169
+ int160?: undefined;
170
+ int168?: undefined;
171
+ int176?: undefined;
172
+ int184?: undefined;
173
+ int192?: undefined;
174
+ int200?: undefined;
175
+ int208?: undefined;
176
+ int216?: undefined;
177
+ int224?: undefined;
178
+ int232?: undefined;
179
+ int240?: undefined;
180
+ int248?: undefined;
181
+ uint256?: undefined;
182
+ uint16?: undefined;
183
+ uint8?: undefined;
184
+ uint24?: undefined;
185
+ uint32?: undefined;
186
+ uint40?: undefined;
187
+ uint48?: undefined;
188
+ uint56?: undefined;
189
+ uint64?: undefined;
190
+ uint72?: undefined;
191
+ uint80?: undefined;
192
+ uint88?: undefined;
193
+ uint96?: undefined;
194
+ uint104?: undefined;
195
+ uint112?: undefined;
196
+ uint120?: undefined;
197
+ uint128?: undefined;
198
+ uint136?: undefined;
199
+ uint144?: undefined;
200
+ uint152?: undefined;
201
+ uint160?: undefined;
202
+ uint168?: undefined;
203
+ uint176?: undefined;
204
+ uint184?: undefined;
205
+ uint192?: undefined;
206
+ uint200?: undefined;
207
+ uint208?: undefined;
208
+ uint216?: undefined;
209
+ uint224?: undefined;
210
+ uint232?: undefined;
211
+ uint240?: undefined;
212
+ uint248?: undefined;
213
+ };
214
+ primaryType: string;
215
+ domain?: {
216
+ chainId?: number | undefined;
217
+ name?: string | undefined;
218
+ salt?: `0x${string}` | undefined;
219
+ verifyingContract?: `0x${string}` | undefined;
220
+ version?: string | undefined;
221
+ } | undefined;
222
+ message: Record<string, unknown>;
223
+ account?: `0x${string}` | import("viem").Account | undefined;
224
+ connector?: import("../createConfig.js").Connector | undefined;
225
+ }) => Promise<`0x${string}`>;
213
226
  readonly mutationKey: readonly ["signTypedData"];
214
227
  };
215
228
  export type SignTypedDataData = Evaluate<SignTypedDataReturnType>;
@@ -1 +1 @@
1
- {"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../src/query/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjD,wBAAgB,4BAA4B,CAAC,MAAM,SAAS,MAAM,EAChE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYf;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEjE,MAAM,MAAM,sBAAsB,CAChC,SAAS,SAAS,SAAS,GA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