@wagmi/core 2.8.1 → 2.9.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.
Files changed (81) hide show
  1. package/dist/esm/actions/sendTransaction.js +1 -1
  2. package/dist/esm/actions/sendTransaction.js.map +1 -1
  3. package/dist/esm/connectors/mock.js +81 -2
  4. package/dist/esm/connectors/mock.js.map +1 -1
  5. package/dist/esm/experimental/actions/getCallsStatus.js +10 -0
  6. package/dist/esm/experimental/actions/getCallsStatus.js.map +1 -0
  7. package/dist/esm/experimental/actions/getCapabilities.js +10 -0
  8. package/dist/esm/experimental/actions/getCapabilities.js.map +1 -0
  9. package/dist/esm/experimental/actions/sendCalls.js +21 -0
  10. package/dist/esm/experimental/actions/sendCalls.js.map +1 -0
  11. package/dist/esm/experimental/actions/showCallsStatus.js +10 -0
  12. package/dist/esm/experimental/actions/showCallsStatus.js.map +1 -0
  13. package/dist/esm/experimental/actions/writeContracts.js +20 -0
  14. package/dist/esm/experimental/actions/writeContracts.js.map +1 -0
  15. package/dist/esm/experimental/query/getCallsStatus.js +24 -0
  16. package/dist/esm/experimental/query/getCallsStatus.js.map +1 -0
  17. package/dist/esm/experimental/query/getCapabilities.js +24 -0
  18. package/dist/esm/experimental/query/getCapabilities.js.map +1 -0
  19. package/dist/esm/experimental/query/sendCalls.js +12 -0
  20. package/dist/esm/experimental/query/sendCalls.js.map +1 -0
  21. package/dist/esm/experimental/query/showCallsStatus.js +12 -0
  22. package/dist/esm/experimental/query/showCallsStatus.js.map +1 -0
  23. package/dist/esm/experimental/query/writeContracts.js +12 -0
  24. package/dist/esm/experimental/query/writeContracts.js.map +1 -0
  25. package/dist/esm/exports/experimental.js +17 -0
  26. package/dist/esm/exports/experimental.js.map +1 -0
  27. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  28. package/dist/esm/version.js +1 -1
  29. package/dist/types/connectors/injected.d.ts +19 -1
  30. package/dist/types/connectors/injected.d.ts.map +1 -1
  31. package/dist/types/connectors/mock.d.ts.map +1 -1
  32. package/dist/types/experimental/actions/getCallsStatus.d.ts +9 -0
  33. package/dist/types/experimental/actions/getCallsStatus.d.ts.map +1 -0
  34. package/dist/types/experimental/actions/getCapabilities.d.ts +10 -0
  35. package/dist/types/experimental/actions/getCapabilities.d.ts.map +1 -0
  36. package/dist/types/experimental/actions/sendCalls.d.ts +16 -0
  37. package/dist/types/experimental/actions/sendCalls.d.ts.map +1 -0
  38. package/dist/types/experimental/actions/showCallsStatus.d.ts +9 -0
  39. package/dist/types/experimental/actions/showCallsStatus.d.ts.map +1 -0
  40. package/dist/types/experimental/actions/writeContracts.d.ts +16 -0
  41. package/dist/types/experimental/actions/writeContracts.d.ts.map +1 -0
  42. package/dist/types/experimental/query/getCallsStatus.d.ts +34 -0
  43. package/dist/types/experimental/query/getCallsStatus.d.ts.map +1 -0
  44. package/dist/types/experimental/query/getCapabilities.d.ts +33 -0
  45. package/dist/types/experimental/query/getCapabilities.d.ts.map +1 -0
  46. package/dist/types/experimental/query/sendCalls.d.ts +13 -0
  47. package/dist/types/experimental/query/sendCalls.d.ts.map +1 -0
  48. package/dist/types/experimental/query/showCallsStatus.d.ts +13 -0
  49. package/dist/types/experimental/query/showCallsStatus.d.ts.map +1 -0
  50. package/dist/types/experimental/query/writeContracts.d.ts +13 -0
  51. package/dist/types/experimental/query/writeContracts.d.ts.map +1 -0
  52. package/dist/types/exports/experimental.d.ts +11 -0
  53. package/dist/types/exports/experimental.d.ts.map +1 -0
  54. package/dist/types/query/getConnectorClient.d.ts +25 -2
  55. package/dist/types/query/getConnectorClient.d.ts.map +1 -1
  56. package/dist/types/query/getWalletClient.d.ts +181 -177
  57. package/dist/types/query/getWalletClient.d.ts.map +1 -1
  58. package/dist/types/query/infiniteReadContracts.d.ts +3 -3
  59. package/dist/types/query/readContracts.d.ts +6 -3
  60. package/dist/types/query/readContracts.d.ts.map +1 -1
  61. package/dist/types/query/signTypedData.d.ts +14 -14
  62. package/dist/types/query/verifyMessage.d.ts +3 -3
  63. package/dist/types/transports/fallback.d.ts +1 -1
  64. package/dist/types/transports/fallback.d.ts.map +1 -1
  65. package/dist/types/version.d.ts +1 -1
  66. package/experimental/package.json +5 -0
  67. package/package.json +9 -1
  68. package/src/actions/sendTransaction.ts +1 -1
  69. package/src/connectors/mock.ts +88 -1
  70. package/src/experimental/actions/getCallsStatus.ts +27 -0
  71. package/src/experimental/actions/getCapabilities.ts +28 -0
  72. package/src/experimental/actions/sendCalls.ts +68 -0
  73. package/src/experimental/actions/showCallsStatus.ts +27 -0
  74. package/src/experimental/actions/writeContracts.ts +77 -0
  75. package/src/experimental/query/getCallsStatus.ts +50 -0
  76. package/src/experimental/query/getCapabilities.ts +50 -0
  77. package/src/experimental/query/sendCalls.ts +64 -0
  78. package/src/experimental/query/showCallsStatus.ts +57 -0
  79. package/src/experimental/query/writeContracts.ts +70 -0
  80. package/src/exports/experimental.ts +84 -0
  81. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletClient.d.ts","sourceRoot":"","sources":["../../../src/query/getWalletClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAG/D,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAC5C,QAAQ,CACV,YAAY,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,iBAAiB,CAC7E,CAAA;AAED,wBAAgB,2BAA2B,CACzC,MAAM,S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AU,CAAC,OAAO,uBAAuB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA"}
@@ -13,8 +13,8 @@ export declare function infiniteReadContractsQueryOptions<config extends Config,
13
13
  cacheKey: string;
14
14
  blockNumber?: bigint | undefined;
15
15
  batchSize?: number | undefined;
16
- blockTag?: import("viem").BlockTag | undefined;
17
16
  stateOverride?: import("viem").StateOverride | undefined;
17
+ blockTag?: import("viem").BlockTag | undefined;
18
18
  allowFailure?: boolean | allowFailure | undefined;
19
19
  multicallAddress?: `0x${string}` | undefined;
20
20
  scopeKey?: string | undefined;
@@ -29,8 +29,8 @@ export declare function infiniteReadContractsQueryOptions<config extends Config,
29
29
  cacheKey: string;
30
30
  blockNumber?: bigint | undefined;
31
31
  batchSize?: number | undefined;
32
- blockTag?: import("viem").BlockTag | undefined;
33
32
  stateOverride?: import("viem").StateOverride | undefined;
33
+ blockTag?: import("viem").BlockTag | undefined;
34
34
  allowFailure?: boolean | allowFailure | undefined;
35
35
  multicallAddress?: `0x${string}` | undefined;
36
36
  scopeKey?: string | undefined;
@@ -51,8 +51,8 @@ export declare function infiniteReadContractsQueryKey<config extends Config, con
51
51
  cacheKey: string;
52
52
  blockNumber?: bigint | undefined;
53
53
  batchSize?: number | undefined;
54
- blockTag?: import("viem").BlockTag | undefined;
55
54
  stateOverride?: import("viem").StateOverride | undefined;
55
+ blockTag?: import("viem").BlockTag | undefined;
56
56
  allowFailure?: boolean | allowFailure | undefined;
57
57
  multicallAddress?: `0x${string}` | undefined;
58
58
  scopeKey?: string | undefined;
@@ -16,10 +16,11 @@ export declare function readContractsQueryOptions<config extends Config, const c
16
16
  address: `0x${string}`;
17
17
  functionName: string;
18
18
  args?: readonly unknown[] | undefined;
19
+ value?: bigint | undefined;
19
20
  }[];
20
21
  blockNumber?: bigint | undefined;
21
- blockTag?: import("viem").BlockTag | undefined;
22
22
  stateOverride?: import("viem").StateOverride | undefined;
23
+ blockTag?: import("viem").BlockTag | undefined;
23
24
  allowFailure?: boolean | allowFailure | undefined;
24
25
  batchSize?: number | undefined;
25
26
  multicallAddress?: `0x${string}` | undefined;
@@ -35,10 +36,11 @@ export declare function readContractsQueryOptions<config extends Config, const c
35
36
  address: `0x${string}`;
36
37
  functionName: string;
37
38
  args?: readonly unknown[] | undefined;
39
+ value?: bigint | undefined;
38
40
  }[];
39
41
  blockNumber?: bigint | undefined;
40
- blockTag?: import("viem").BlockTag | undefined;
41
42
  stateOverride?: import("viem").StateOverride | undefined;
43
+ blockTag?: import("viem").BlockTag | undefined;
42
44
  allowFailure?: boolean | allowFailure | undefined;
43
45
  batchSize?: number | undefined;
44
46
  multicallAddress?: `0x${string}` | undefined;
@@ -54,10 +56,11 @@ export declare function readContractsQueryKey<config extends Config, const contr
54
56
  address: `0x${string}`;
55
57
  functionName: string;
56
58
  args?: readonly unknown[] | undefined;
59
+ value?: bigint | undefined;
57
60
  }[];
58
61
  blockNumber?: bigint | undefined;
59
- blockTag?: import("viem").BlockTag | undefined;
60
62
  stateOverride?: import("viem").StateOverride | undefined;
63
+ blockTag?: import("viem").BlockTag | undefined;
61
64
  allowFailure?: boolean | allowFailure | undefined;
62
65
  batchSize?: number | undefined;
63
66
  multicallAddress?: `0x${string}` | undefined;
@@ -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,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,MAAM,MAAM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E,YAAY,CAAC,CAAA;AAEpD,MAAM,MAAM,iBAAiB,CAC3B,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,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"}
@@ -15,15 +15,16 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
15
15
  [x: `bytes1[${string}]`]: undefined;
16
16
  [x: `bytes2[${string}]`]: undefined;
17
17
  [x: `bytes3[${string}]`]: undefined;
18
- [x: `bytes16[${string}]`]: undefined;
18
+ [x: `bytes20[${string}]`]: undefined;
19
19
  [x: `bytes11[${string}]`]: undefined;
20
- [x: `bytes10[${string}]`]: undefined;
20
+ [x: `bytes16[${string}]`]: undefined;
21
21
  [x: `bytes4[${string}]`]: undefined;
22
22
  [x: `bytes5[${string}]`]: undefined;
23
23
  [x: `bytes6[${string}]`]: undefined;
24
24
  [x: `bytes7[${string}]`]: undefined;
25
25
  [x: `bytes8[${string}]`]: undefined;
26
26
  [x: `bytes9[${string}]`]: undefined;
27
+ [x: `bytes10[${string}]`]: undefined;
27
28
  [x: `bytes12[${string}]`]: undefined;
28
29
  [x: `bytes13[${string}]`]: undefined;
29
30
  [x: `bytes14[${string}]`]: undefined;
@@ -31,7 +32,6 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
31
32
  [x: `bytes17[${string}]`]: undefined;
32
33
  [x: `bytes18[${string}]`]: undefined;
33
34
  [x: `bytes19[${string}]`]: undefined;
34
- [x: `bytes20[${string}]`]: undefined;
35
35
  [x: `bytes21[${string}]`]: undefined;
36
36
  [x: `bytes22[${string}]`]: undefined;
37
37
  [x: `bytes23[${string}]`]: undefined;
@@ -46,13 +46,13 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
46
46
  [x: `bytes32[${string}]`]: undefined;
47
47
  [x: `int[${string}]`]: undefined;
48
48
  [x: `int40[${string}]`]: undefined;
49
- [x: `int16[${string}]`]: undefined;
50
- [x: `int56[${string}]`]: undefined;
51
49
  [x: `int256[${string}]`]: undefined;
50
+ [x: `int16[${string}]`]: undefined;
52
51
  [x: `int8[${string}]`]: undefined;
53
52
  [x: `int24[${string}]`]: undefined;
54
53
  [x: `int32[${string}]`]: undefined;
55
54
  [x: `int48[${string}]`]: undefined;
55
+ [x: `int56[${string}]`]: undefined;
56
56
  [x: `int64[${string}]`]: undefined;
57
57
  [x: `int72[${string}]`]: undefined;
58
58
  [x: `int80[${string}]`]: undefined;
@@ -79,13 +79,13 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
79
79
  [x: `int248[${string}]`]: undefined;
80
80
  [x: `uint[${string}]`]: undefined;
81
81
  [x: `uint40[${string}]`]: undefined;
82
- [x: `uint16[${string}]`]: undefined;
83
- [x: `uint56[${string}]`]: undefined;
84
82
  [x: `uint256[${string}]`]: undefined;
83
+ [x: `uint16[${string}]`]: undefined;
85
84
  [x: `uint8[${string}]`]: undefined;
86
85
  [x: `uint24[${string}]`]: undefined;
87
86
  [x: `uint32[${string}]`]: undefined;
88
87
  [x: `uint48[${string}]`]: undefined;
88
+ [x: `uint56[${string}]`]: undefined;
89
89
  [x: `uint64[${string}]`]: undefined;
90
90
  [x: `uint72[${string}]`]: undefined;
91
91
  [x: `uint80[${string}]`]: undefined;
@@ -117,15 +117,16 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
117
117
  bytes1?: undefined;
118
118
  bytes2?: undefined;
119
119
  bytes3?: undefined;
120
- bytes16?: undefined;
120
+ bytes20?: undefined;
121
121
  bytes11?: undefined;
122
- bytes10?: undefined;
122
+ bytes16?: undefined;
123
123
  bytes4?: undefined;
124
124
  bytes5?: undefined;
125
125
  bytes6?: undefined;
126
126
  bytes7?: undefined;
127
127
  bytes8?: undefined;
128
128
  bytes9?: undefined;
129
+ bytes10?: undefined;
129
130
  bytes12?: undefined;
130
131
  bytes13?: undefined;
131
132
  bytes14?: undefined;
@@ -133,7 +134,6 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
133
134
  bytes17?: undefined;
134
135
  bytes18?: undefined;
135
136
  bytes19?: undefined;
136
- bytes20?: undefined;
137
137
  bytes21?: undefined;
138
138
  bytes22?: undefined;
139
139
  bytes23?: undefined;
@@ -147,13 +147,13 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
147
147
  bytes31?: undefined;
148
148
  bytes32?: undefined;
149
149
  int40?: undefined;
150
- int16?: undefined;
151
- int56?: undefined;
152
150
  int256?: undefined;
151
+ int16?: undefined;
153
152
  int8?: undefined;
154
153
  int24?: undefined;
155
154
  int32?: undefined;
156
155
  int48?: undefined;
156
+ int56?: undefined;
157
157
  int64?: undefined;
158
158
  int72?: undefined;
159
159
  int80?: undefined;
@@ -179,13 +179,13 @@ export declare function signTypedDataMutationOptions<config extends Config>(conf
179
179
  int240?: undefined;
180
180
  int248?: undefined;
181
181
  uint40?: undefined;
182
- uint16?: undefined;
183
- uint56?: undefined;
184
182
  uint256?: undefined;
183
+ uint16?: undefined;
185
184
  uint8?: undefined;
186
185
  uint24?: undefined;
187
186
  uint32?: undefined;
188
187
  uint48?: undefined;
188
+ uint56?: undefined;
189
189
  uint64?: undefined;
190
190
  uint72?: undefined;
191
191
  uint80?: undefined;
@@ -9,7 +9,7 @@ export declare function verifyMessageQueryOptions<config extends Config>(config:
9
9
  address?: `0x${string}` | undefined;
10
10
  blockNumber?: bigint | undefined;
11
11
  blockTag?: import("viem").BlockTag | undefined;
12
- signature?: `0x${string}` | Uint8Array | undefined;
12
+ signature?: `0x${string}` | Uint8Array | import("viem").Signature | undefined;
13
13
  message?: import("viem").SignableMessage | undefined;
14
14
  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;
15
15
  scopeKey?: string | undefined;
@@ -21,7 +21,7 @@ export declare function verifyMessageQueryOptions<config extends Config>(config:
21
21
  address?: `0x${string}` | undefined;
22
22
  blockNumber?: bigint | undefined;
23
23
  blockTag?: import("viem").BlockTag | undefined;
24
- signature?: `0x${string}` | Uint8Array | undefined;
24
+ signature?: `0x${string}` | Uint8Array | import("viem").Signature | undefined;
25
25
  message?: import("viem").SignableMessage | undefined;
26
26
  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;
27
27
  scopeKey?: string | undefined;
@@ -33,7 +33,7 @@ export declare function verifyMessageQueryKey<config extends Config>(options: Ve
33
33
  address?: `0x${string}` | undefined;
34
34
  blockNumber?: bigint | undefined;
35
35
  blockTag?: import("viem").BlockTag | undefined;
36
- signature?: `0x${string}` | Uint8Array | undefined;
36
+ signature?: `0x${string}` | Uint8Array | import("viem").Signature | undefined;
37
37
  message?: import("viem").SignableMessage | undefined;
38
38
  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;
39
39
  scopeKey?: string | undefined;
@@ -1,4 +1,4 @@
1
1
  import { fallback as viem_fallback } from 'viem';
2
2
  import { type Transport } from '../createConfig.js';
3
- export declare function fallback(transports: Transport[], config?: Parameters<typeof viem_fallback>[1]): import("viem").FallbackTransport;
3
+ export declare function fallback(transports: Transport[], config?: Parameters<typeof viem_fallback>[1]): import("viem").FallbackTransport<Transport[]>;
4
4
  //# sourceMappingURL=fallback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../../src/transports/fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,wBAAgB,QAAQ,CACtB,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,oCAG7C"}
1
+ {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../../src/transports/fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,wBAAgB,QAAQ,CACtB,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,iDAG7C"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.8.1";
1
+ export declare const version = "2.9.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1,5 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../dist/types/exports/experimental.d.ts",
4
+ "main": "../dist/esm/exports/experimental.js"
5
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wagmi/core",
3
3
  "description": "VanillaJS library for Ethereum",
4
- "version": "2.8.1",
4
+ "version": "2.9.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -16,6 +16,7 @@
16
16
  "!src/**/*.test-d.ts",
17
17
  "/actions",
18
18
  "/chains",
19
+ "/experimental",
19
20
  "/internal",
20
21
  "/query"
21
22
  ],
@@ -41,6 +42,10 @@
41
42
  "types": "./dist/types/exports/codegen.d.ts",
42
43
  "default": "./dist/esm/exports/codegen.js"
43
44
  },
45
+ "./experimental": {
46
+ "types": "./dist/types/exports/experimental.d.ts",
47
+ "default": "./dist/esm/exports/experimental.js"
48
+ },
44
49
  "./internal": {
45
50
  "types": "./dist/types/exports/internal.d.ts",
46
51
  "default": "./dist/esm/exports/internal.js"
@@ -62,6 +67,9 @@
62
67
  "codegen": [
63
68
  "./dist/types/exports/codegen.d.ts"
64
69
  ],
70
+ "experimental": [
71
+ "./dist/types/exports/experimental.d.ts"
72
+ ],
65
73
  "internal": [
66
74
  "./dist/types/exports/internal.d.ts"
67
75
  ],
@@ -82,7 +82,7 @@ export async function sendTransaction<
82
82
  if (!('data' in parameters) || !parameters.data) return undefined
83
83
 
84
84
  // Skip gas estimation if connector supports simulation.
85
- if (activeConnector?.supportsSimulation) return undefined
85
+ if ((connector ?? activeConnector)?.supportsSimulation) return undefined
86
86
 
87
87
  // Skip gas estimation if `null` is provided.
88
88
  if (gas_ === null) return undefined
@@ -6,11 +6,14 @@ import {
6
6
  SwitchChainError,
7
7
  type Transport,
8
8
  UserRejectedRequestError,
9
+ type WalletCallReceipt,
9
10
  type WalletRpcSchema,
10
11
  custom,
11
12
  fromHex,
12
13
  getAddress,
14
+ keccak256,
13
15
  numberToHex,
16
+ stringToHex,
14
17
  } from 'viem'
15
18
  import { rpc } from 'viem/utils'
16
19
 
@@ -35,6 +38,7 @@ export type MockParameters = {
35
38
 
36
39
  mock.type = 'mock' as const
37
40
  export function mock(parameters: MockParameters) {
41
+ const transactionCache = new Map<Hex, Hex[]>()
38
42
  const features = parameters.features ?? {}
39
43
 
40
44
  type Provider = ReturnType<
@@ -70,7 +74,10 @@ export function mock(parameters: MockParameters) {
70
74
 
71
75
  connected = true
72
76
 
73
- return { accounts, chainId: currentChainId }
77
+ return {
78
+ accounts: accounts.map((x) => getAddress(x)),
79
+ chainId: currentChainId,
80
+ }
74
81
  },
75
82
  async disconnect() {
76
83
  connected = false
@@ -151,6 +158,86 @@ export function mock(parameters: MockParameters) {
151
158
  return
152
159
  }
153
160
 
161
+ if (method === 'wallet_getCapabilities')
162
+ return {
163
+ '0x2105': {
164
+ paymasterService: {
165
+ supported:
166
+ (params as [Hex])[0] ===
167
+ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
168
+ },
169
+ sessionKeys: {
170
+ supported: true,
171
+ },
172
+ },
173
+ '0x14A34': {
174
+ paymasterService: {
175
+ supported:
176
+ (params as [Hex])[0] ===
177
+ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
178
+ },
179
+ },
180
+ }
181
+
182
+ if (method === 'wallet_sendCalls') {
183
+ const hashes = []
184
+ const calls = (params as any)[0].calls
185
+ for (const call of calls) {
186
+ const { result, error } = await rpc.http(url, {
187
+ body: {
188
+ method: 'eth_sendTransaction',
189
+ params: [call],
190
+ },
191
+ })
192
+ if (error)
193
+ throw new RpcRequestError({
194
+ body: { method, params },
195
+ error,
196
+ url,
197
+ })
198
+ hashes.push(result)
199
+ }
200
+ const id = keccak256(stringToHex(JSON.stringify(calls)))
201
+ transactionCache.set(id, hashes)
202
+ return id
203
+ }
204
+
205
+ if (method === 'wallet_getCallsStatus') {
206
+ const hashes = transactionCache.get((params as any)[0])
207
+ if (!hashes) return null
208
+ const receipts = await Promise.all(
209
+ hashes.map(async (hash) => {
210
+ const { result, error } = await rpc.http(url, {
211
+ body: {
212
+ method: 'eth_getTransactionReceipt',
213
+ params: [hash],
214
+ id: 0,
215
+ },
216
+ })
217
+ if (error)
218
+ throw new RpcRequestError({
219
+ body: { method, params },
220
+ error,
221
+ url,
222
+ })
223
+ if (!result) return null
224
+ return {
225
+ blockHash: result.blockHash,
226
+ blockNumber: result.blockNumber,
227
+ gasUsed: result.gasUsed,
228
+ logs: result.logs,
229
+ status: result.status,
230
+ transactionHash: result.transactionHash,
231
+ } satisfies WalletCallReceipt
232
+ }),
233
+ )
234
+ if (receipts.some((x) => !x))
235
+ return { status: 'PENDING', receipts: [] }
236
+ return { status: 'CONFIRMED', receipts }
237
+ }
238
+
239
+ if (method === 'wallet_showCallsStatus') return
240
+
154
241
  // other methods
155
242
  if (method === 'personal_sign') {
156
243
  if (features.signMessageError) {
@@ -0,0 +1,27 @@
1
+ import {
2
+ type GetCallsStatusErrorType as viem_GetCallsStatusErrorType,
3
+ type GetCallsStatusParameters as viem_GetCallsStatusParameters,
4
+ type GetCallsStatusReturnType as viem_GetCallsStatusReturnType,
5
+ getCallsStatus as viem_getCallsStatus,
6
+ } from 'viem/experimental'
7
+
8
+ import { getConnectorClient } from '../../actions/getConnectorClient.js'
9
+ import { type Config } from '../../createConfig.js'
10
+ import type { ConnectorParameter } from '../../types/properties.js'
11
+
12
+ export type GetCallsStatusParameters = viem_GetCallsStatusParameters &
13
+ ConnectorParameter
14
+
15
+ export type GetCallsStatusReturnType = viem_GetCallsStatusReturnType
16
+
17
+ export type GetCallsStatusErrorType = viem_GetCallsStatusErrorType
18
+
19
+ /** https://wagmi.sh/core/api/actions/getCallsStatus */
20
+ export async function getCallsStatus<config extends Config>(
21
+ config: config,
22
+ parameters: GetCallsStatusParameters,
23
+ ): Promise<GetCallsStatusReturnType> {
24
+ const { connector, id } = parameters
25
+ const client = await getConnectorClient(config, { connector })
26
+ return viem_getCallsStatus(client, { id })
27
+ }
@@ -0,0 +1,28 @@
1
+ import type { Account } from 'viem'
2
+ import {
3
+ type GetCapabilitiesErrorType as viem_GetCapabilitiesErrorType,
4
+ type GetCapabilitiesParameters as viem_GetCapabilitiesParameters,
5
+ type GetCapabilitiesReturnType as viem_GetCapabilitiesReturnType,
6
+ getCapabilities as viem_getCapabilities,
7
+ } from 'viem/experimental'
8
+
9
+ import { getConnectorClient } from '../../actions/getConnectorClient.js'
10
+ import { type Config } from '../../createConfig.js'
11
+ import type { ConnectorParameter } from '../../types/properties.js'
12
+
13
+ export type GetCapabilitiesParameters =
14
+ viem_GetCapabilitiesParameters<Account> & ConnectorParameter
15
+
16
+ export type GetCapabilitiesReturnType = viem_GetCapabilitiesReturnType
17
+
18
+ export type GetCapabilitiesErrorType = viem_GetCapabilitiesErrorType
19
+
20
+ /** https://wagmi.sh/core/api/actions/getCapabilities */
21
+ export async function getCapabilities<config extends Config>(
22
+ config: config,
23
+ parameters: GetCapabilitiesParameters = {},
24
+ ): Promise<GetCapabilitiesReturnType> {
25
+ const { account, connector } = parameters
26
+ const client = await getConnectorClient(config, { account, connector })
27
+ return viem_getCapabilities(client as any, { account: account as Account })
28
+ }
@@ -0,0 +1,68 @@
1
+ import { type Account, type Chain } from 'viem'
2
+ import {
3
+ type SendCallsErrorType as viem_SendCallsErrorType,
4
+ type SendCallsParameters as viem_SendCallsParameters,
5
+ type SendCallsReturnType as viem_SendCallsReturnType,
6
+ sendCalls as viem_sendCalls,
7
+ } from 'viem/experimental'
8
+
9
+ import {
10
+ type GetConnectorClientErrorType,
11
+ getConnectorClient,
12
+ } from '../../actions/getConnectorClient.js'
13
+ import { type Config } from '../../createConfig.js'
14
+ import type { BaseErrorType, ErrorType } from '../../errors/base.js'
15
+ import type { SelectChains } from '../../types/chain.js'
16
+ import type {
17
+ ChainIdParameter,
18
+ ConnectorParameter,
19
+ } from '../../types/properties.js'
20
+ import { type Evaluate } from '../../types/utils.js'
21
+
22
+ export type SendCallsParameters<
23
+ config extends Config = Config,
24
+ chainId extends config['chains'][number]['id'] = config['chains'][number]['id'],
25
+ ///
26
+ chains extends readonly Chain[] = SelectChains<config, chainId>,
27
+ > = {
28
+ [key in keyof chains]: Evaluate<
29
+ Omit<viem_SendCallsParameters<chains[key], Account, chains[key]>, 'chain'> &
30
+ ChainIdParameter<config, chainId> &
31
+ ConnectorParameter
32
+ >
33
+ }[number]
34
+
35
+ export type SendCallsReturnType = viem_SendCallsReturnType
36
+
37
+ export type SendCallsErrorType =
38
+ // getConnectorClient()
39
+ | GetConnectorClientErrorType
40
+ // base
41
+ | BaseErrorType
42
+ | ErrorType
43
+ // viem
44
+ | viem_SendCallsErrorType
45
+
46
+ /** https://wagmi.sh/core/api/actions/sendCalls */
47
+ export async function sendCalls<
48
+ config extends Config,
49
+ chainId extends config['chains'][number]['id'],
50
+ >(
51
+ config: config,
52
+ parameters: SendCallsParameters<config, chainId>,
53
+ ): Promise<SendCallsReturnType> {
54
+ const { account, chainId, connector, calls, ...rest } = parameters
55
+
56
+ const client = await getConnectorClient(config, {
57
+ account,
58
+ chainId,
59
+ connector,
60
+ })
61
+
62
+ return viem_sendCalls(client, {
63
+ ...(rest as any),
64
+ ...(account ? { account } : {}),
65
+ calls,
66
+ chain: chainId ? { id: chainId } : undefined,
67
+ })
68
+ }
@@ -0,0 +1,27 @@
1
+ import {
2
+ type ShowCallsStatusErrorType as viem_ShowCallsStatusErrorType,
3
+ type ShowCallsStatusParameters as viem_ShowCallsStatusParameters,
4
+ type ShowCallsStatusReturnType as viem_ShowCallsStatusReturnType,
5
+ showCallsStatus as viem_showCallsStatus,
6
+ } from 'viem/experimental'
7
+
8
+ import { getConnectorClient } from '../../actions/getConnectorClient.js'
9
+ import { type Config } from '../../createConfig.js'
10
+ import type { ConnectorParameter } from '../../types/properties.js'
11
+
12
+ export type ShowCallsStatusParameters = viem_ShowCallsStatusParameters &
13
+ ConnectorParameter
14
+
15
+ export type ShowCallsStatusReturnType = viem_ShowCallsStatusReturnType
16
+
17
+ export type ShowCallsStatusErrorType = viem_ShowCallsStatusErrorType
18
+
19
+ /** https://wagmi.sh/core/api/actions/showCallsStatus */
20
+ export async function showCallsStatus<config extends Config>(
21
+ config: config,
22
+ parameters: ShowCallsStatusParameters,
23
+ ): Promise<ShowCallsStatusReturnType> {
24
+ const { connector, id } = parameters
25
+ const client = await getConnectorClient(config, { connector })
26
+ return viem_showCallsStatus(client, { id })
27
+ }