wagmi 1.3.11 → 1.4.0

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/chains.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { Chain, arbitrum, arbitrumGoerli, arbitrumNova, aurora, auroraTestnet, avalanche, avalancheFuji, base, baseGoerli, boba, bronos, bronosTestnet, bsc, bscTestnet, bxn, bxnTestnet, canto, celo, celoAlfajores, celoCannoli, classic, cronos, cronosTestnet, crossbell, dfk, dogechain, edgeware, edgewareTestnet, ekta, ektaTestnet, eos, eosTestnet, evmos, evmosTestnet, fantom, fantomTestnet, fibo, filecoin, filecoinCalibration, filecoinHyperspace, flare, flareTestnet, foundry, fuse, fuseSparknet, gnosis, gnosisChiado, gobi, goerli, haqqMainnet, haqqTestedge2, hardhat, harmonyOne, iotex, iotexTestnet, klaytn, linea, lineaTestnet, localhost, mainnet, mantle, mantleTestnet, metis, metisGoerli, mev, mevTestnet, modeTestnet, moonbaseAlpha, moonbeam, moonriver, neonDevnet, nexi, nexilix, oasys, okc, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, pulsechain, pulsechainV4, qMainnet, qTestnet, rollux, rolluxTestnet, ronin, saigon, scrollSepolia, scrollTestnet, sepolia, shardeumSphinx, skaleBlockBrawlers, skaleCalypso, skaleCalypsoTestnet, skaleChaosTestnet, skaleCryptoBlades, skaleCryptoColosseum, skaleEuropa, skaleEuropaTestnet, skaleExorde, skaleHumanProtocol, skaleNebula, skaleNebulaTestnet, skaleRazor, skaleTitan, skaleTitanTestnet, songbird, songbirdTestnet, syscoin, syscoinTestnet, taikoTestnetSepolia, taraxa, taraxaTestnet, telos, telosTestnet, thunderTestnet, wanchain, wanchainTestnet, xdc, xdcTestnet, zetachainAthensTestnet, zhejiang, zkSync, zkSyncTestnet, zora, zoraTestnet } from '@wagmi/core/chains';
1
+ export * from 'viem/chains';
2
+ export { Chain } from 'viem/chains';
package/dist/chains.js CHANGED
@@ -1,263 +1,4 @@
1
1
  "use client";
2
2
 
3
3
  // src/chains.ts
4
- import {
5
- arbitrum,
6
- arbitrumGoerli,
7
- arbitrumNova,
8
- aurora,
9
- auroraTestnet,
10
- avalanche,
11
- avalancheFuji,
12
- base,
13
- baseGoerli,
14
- boba,
15
- bronos,
16
- bronosTestnet,
17
- bsc,
18
- bscTestnet,
19
- bxn,
20
- bxnTestnet,
21
- canto,
22
- celo,
23
- celoAlfajores,
24
- celoCannoli,
25
- classic,
26
- cronos,
27
- cronosTestnet,
28
- crossbell,
29
- dfk,
30
- dogechain,
31
- edgeware,
32
- edgewareTestnet,
33
- eos,
34
- eosTestnet,
35
- ekta,
36
- ektaTestnet,
37
- evmos,
38
- evmosTestnet,
39
- fantom,
40
- fantomTestnet,
41
- fibo,
42
- filecoin,
43
- filecoinCalibration,
44
- filecoinHyperspace,
45
- flare,
46
- flareTestnet,
47
- foundry,
48
- fuse,
49
- fuseSparknet,
50
- gobi,
51
- goerli,
52
- gnosis,
53
- gnosisChiado,
54
- haqqMainnet,
55
- haqqTestedge2,
56
- hardhat,
57
- harmonyOne,
58
- iotex,
59
- iotexTestnet,
60
- klaytn,
61
- linea,
62
- lineaTestnet,
63
- localhost,
64
- mainnet,
65
- mantle,
66
- mantleTestnet,
67
- metis,
68
- metisGoerli,
69
- mev,
70
- mevTestnet,
71
- modeTestnet,
72
- moonbaseAlpha,
73
- moonbeam,
74
- moonriver,
75
- neonDevnet,
76
- nexilix,
77
- nexi,
78
- oasys,
79
- okc,
80
- optimism,
81
- optimismGoerli,
82
- polygon,
83
- polygonMumbai,
84
- polygonZkEvm,
85
- polygonZkEvmTestnet,
86
- pulsechain,
87
- pulsechainV4,
88
- qMainnet,
89
- qTestnet,
90
- rollux,
91
- rolluxTestnet,
92
- ronin,
93
- saigon,
94
- scrollSepolia,
95
- scrollTestnet,
96
- sepolia,
97
- skaleBlockBrawlers,
98
- skaleCalypso,
99
- skaleCalypsoTestnet,
100
- skaleChaosTestnet,
101
- skaleCryptoBlades,
102
- skaleCryptoColosseum,
103
- skaleEuropa,
104
- skaleEuropaTestnet,
105
- skaleExorde,
106
- skaleHumanProtocol,
107
- skaleNebula,
108
- skaleNebulaTestnet,
109
- skaleRazor,
110
- skaleTitan,
111
- skaleTitanTestnet,
112
- songbird,
113
- songbirdTestnet,
114
- shardeumSphinx,
115
- syscoin,
116
- syscoinTestnet,
117
- taikoTestnetSepolia,
118
- taraxa,
119
- taraxaTestnet,
120
- telos,
121
- telosTestnet,
122
- thunderTestnet,
123
- wanchain,
124
- wanchainTestnet,
125
- xdc,
126
- xdcTestnet,
127
- zetachainAthensTestnet,
128
- zhejiang,
129
- zkSync,
130
- zkSyncTestnet,
131
- zora,
132
- zoraTestnet
133
- } from "@wagmi/core/chains";
134
- export {
135
- arbitrum,
136
- arbitrumGoerli,
137
- arbitrumNova,
138
- aurora,
139
- auroraTestnet,
140
- avalanche,
141
- avalancheFuji,
142
- base,
143
- baseGoerli,
144
- boba,
145
- bronos,
146
- bronosTestnet,
147
- bsc,
148
- bscTestnet,
149
- bxn,
150
- bxnTestnet,
151
- canto,
152
- celo,
153
- celoAlfajores,
154
- celoCannoli,
155
- classic,
156
- cronos,
157
- cronosTestnet,
158
- crossbell,
159
- dfk,
160
- dogechain,
161
- edgeware,
162
- edgewareTestnet,
163
- ekta,
164
- ektaTestnet,
165
- eos,
166
- eosTestnet,
167
- evmos,
168
- evmosTestnet,
169
- fantom,
170
- fantomTestnet,
171
- fibo,
172
- filecoin,
173
- filecoinCalibration,
174
- filecoinHyperspace,
175
- flare,
176
- flareTestnet,
177
- foundry,
178
- fuse,
179
- fuseSparknet,
180
- gnosis,
181
- gnosisChiado,
182
- gobi,
183
- goerli,
184
- haqqMainnet,
185
- haqqTestedge2,
186
- hardhat,
187
- harmonyOne,
188
- iotex,
189
- iotexTestnet,
190
- klaytn,
191
- linea,
192
- lineaTestnet,
193
- localhost,
194
- mainnet,
195
- mantle,
196
- mantleTestnet,
197
- metis,
198
- metisGoerli,
199
- mev,
200
- mevTestnet,
201
- modeTestnet,
202
- moonbaseAlpha,
203
- moonbeam,
204
- moonriver,
205
- neonDevnet,
206
- nexi,
207
- nexilix,
208
- oasys,
209
- okc,
210
- optimism,
211
- optimismGoerli,
212
- polygon,
213
- polygonMumbai,
214
- polygonZkEvm,
215
- polygonZkEvmTestnet,
216
- pulsechain,
217
- pulsechainV4,
218
- qMainnet,
219
- qTestnet,
220
- rollux,
221
- rolluxTestnet,
222
- ronin,
223
- saigon,
224
- scrollSepolia,
225
- scrollTestnet,
226
- sepolia,
227
- shardeumSphinx,
228
- skaleBlockBrawlers,
229
- skaleCalypso,
230
- skaleCalypsoTestnet,
231
- skaleChaosTestnet,
232
- skaleCryptoBlades,
233
- skaleCryptoColosseum,
234
- skaleEuropa,
235
- skaleEuropaTestnet,
236
- skaleExorde,
237
- skaleHumanProtocol,
238
- skaleNebula,
239
- skaleNebulaTestnet,
240
- skaleRazor,
241
- skaleTitan,
242
- skaleTitanTestnet,
243
- songbird,
244
- songbirdTestnet,
245
- syscoin,
246
- syscoinTestnet,
247
- taikoTestnetSepolia,
248
- taraxa,
249
- taraxaTestnet,
250
- telos,
251
- telosTestnet,
252
- thunderTestnet,
253
- wanchain,
254
- wanchainTestnet,
255
- xdc,
256
- xdcTestnet,
257
- zetachainAthensTestnet,
258
- zhejiang,
259
- zkSync,
260
- zkSyncTestnet,
261
- zora,
262
- zoraTestnet
263
- };
4
+ export * from "viem/chains";
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient, QueryKey, UseInfiniteQueryOptions, QueryFunction, InfiniteQueryObserverResult, UseMutationOptions, UseMutationResult, MutationFunction, MutationKey, UseQueryOptions, QueryObserverResult } from '@tanstack/react-query';
3
3
  import { Persister } from '@tanstack/react-query-persist-client';
4
4
  import * as _wagmi_core from '@wagmi/core';
5
- import { PublicClient, WebSocketPublicClient, CreateConfigParameters as CreateConfigParameters$1, Config as Config$1, GetAccountResult, FetchBalanceResult, FetchBalanceArgs, ConnectArgs, ConnectResult, SignMessageArgs, SignMessageResult, SignTypedDataArgs, SignTypedDataResult, SwitchNetworkArgs, SwitchNetworkResult, WatchContractEventConfig, WatchContractEventCallback, ReadContractsResult, ReadContractsConfig, ReadContractResult, ReadContractConfig, WriteContractMode, WriteContractResult, WriteContractUnpreparedArgs, PrepareWriteContractResult, WalletClient, PrepareWriteContractConfig, FetchTokenResult, FetchTokenArgs, FetchEnsAddressArgs, FetchEnsAddressResult, FetchEnsAvatarArgs, FetchEnsAvatarResult, FetchEnsNameArgs, FetchEnsNameResult, FetchEnsResolverArgs, FetchEnsResolverResult, FetchBlockNumberArgs, FetchBlockNumberResult, FetchFeeDataResult, FetchFeeDataArgs, GetPublicClientArgs, GetWalletClientResult, GetWalletClientArgs, GetWebSocketPublicClientArgs, PrepareSendTransactionResult, PrepareSendTransactionArgs, SendTransactionResult, SendTransactionArgs, FetchTransactionArgs, FetchTransactionResult, WaitForTransactionArgs, WaitForTransactionResult, WatchPendingTransactionsCallback } from '@wagmi/core';
6
- export { Chain, ChainMismatchError, ChainNotConfiguredError, ChainProviderFn, ConfigChainsNotFound, Connector, ConnectorAlreadyConnectedError, ConnectorData, ConnectorEvents, ConnectorNotFoundError, PublicClient, Storage, SwitchChainNotSupportedError, Unit, WalletClient, WebSocketPublicClient, WindowProvider, configureChains, createStorage, deepEqual, deserialize, erc20ABI, erc4626ABI, erc721ABI, mainnet, readContracts, sepolia, serialize } from '@wagmi/core';
5
+ import { PublicClient, WebSocketPublicClient, CreateConfigParameters as CreateConfigParameters$1, Config as Config$1, GetAccountResult, FetchBalanceResult, FetchBalanceArgs, ConnectArgs, ConnectResult, SignMessageArgs, SignMessageResult, SignTypedDataArgs, SignTypedDataResult, SwitchNetworkResult, SwitchNetworkArgs, WatchContractEventConfig, WatchContractEventCallback, ReadContractsResult, ReadContractsConfig, ReadContractResult, ReadContractConfig, WriteContractMode, WriteContractResult, WriteContractUnpreparedArgs, PrepareWriteContractResult, WalletClient, PrepareWriteContractConfig, FetchTokenResult, FetchTokenArgs, FetchEnsAddressArgs, FetchEnsAddressResult, FetchEnsAvatarArgs, FetchEnsAvatarResult, FetchEnsNameArgs, FetchEnsNameResult, FetchEnsResolverArgs, FetchEnsResolverResult, FetchBlockNumberArgs, FetchBlockNumberResult, FetchFeeDataResult, FetchFeeDataArgs, GetPublicClientArgs, GetWalletClientResult, GetWalletClientArgs, GetWebSocketPublicClientArgs, PrepareSendTransactionResult, PrepareSendTransactionArgs, SendTransactionResult, SendTransactionArgs, FetchTransactionArgs, FetchTransactionResult, WaitForTransactionArgs, WaitForTransactionResult, WatchPendingTransactionsCallback } from '@wagmi/core';
6
+ export { ChainMismatchError, ChainNotConfiguredError, ChainProviderFn, ConfigChainsNotFound, Connector, ConnectorAlreadyConnectedError, ConnectorData, ConnectorEvents, ConnectorNotFoundError, PublicClient, Storage, SwitchChainNotSupportedError, Unit, WalletClient, WebSocketPublicClient, WindowProvider, configureChains, createStorage, deepEqual, deserialize, erc20ABI, erc4626ABI, erc721ABI, readContracts, serialize } from '@wagmi/core';
7
7
  import * as React from 'react';
8
8
  import * as abitype from 'abitype';
9
9
  import { TypedData, Abi, Narrow } from 'abitype';
@@ -11,6 +11,7 @@ import { Never } from '@wagmi/core/internal';
11
11
  import * as viem from 'viem';
12
12
  import { ContractFunctionConfig, MulticallContracts, SendTransactionParameters, GetFunctionArgs } from 'viem';
13
13
  export { Address } from 'viem';
14
+ export { Chain, mainnet, sepolia } from 'viem/chains';
14
15
 
15
16
  type CreateConfigParameters<TPublicClient extends PublicClient = PublicClient, TWebSocketPublicClient extends WebSocketPublicClient = WebSocketPublicClient> = CreateConfigParameters$1<TPublicClient, TWebSocketPublicClient> & {
16
17
  queryClient?: QueryClient;
@@ -207,15 +208,12 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
207
208
  [x: `address[${string}]`]: undefined;
208
209
  [x: `bool[${string}]`]: undefined;
209
210
  [x: `bytes[${string}]`]: undefined;
210
- [x: `bytes18[${string}]`]: undefined;
211
- [x: `bytes1[${string}]`]: undefined;
212
- [x: `bytes25[${string}]`]: undefined;
213
- [x: `bytes14[${string}]`]: undefined;
214
- [x: `bytes5[${string}]`]: undefined;
215
- [x: `bytes10[${string}]`]: undefined;
216
- [x: `bytes19[${string}]`]: undefined;
217
211
  [x: `bytes16[${string}]`]: undefined;
212
+ [x: `bytes5[${string}]`]: undefined;
213
+ [x: `bytes1[${string}]`]: undefined;
214
+ [x: `bytes18[${string}]`]: undefined;
218
215
  [x: `bytes2[${string}]`]: undefined;
216
+ [x: `bytes10[${string}]`]: undefined;
219
217
  [x: `bytes3[${string}]`]: undefined;
220
218
  [x: `bytes4[${string}]`]: undefined;
221
219
  [x: `bytes6[${string}]`]: undefined;
@@ -225,13 +223,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
225
223
  [x: `bytes11[${string}]`]: undefined;
226
224
  [x: `bytes12[${string}]`]: undefined;
227
225
  [x: `bytes13[${string}]`]: undefined;
226
+ [x: `bytes14[${string}]`]: undefined;
228
227
  [x: `bytes15[${string}]`]: undefined;
229
228
  [x: `bytes17[${string}]`]: undefined;
229
+ [x: `bytes19[${string}]`]: undefined;
230
230
  [x: `bytes20[${string}]`]: undefined;
231
231
  [x: `bytes21[${string}]`]: undefined;
232
232
  [x: `bytes22[${string}]`]: undefined;
233
233
  [x: `bytes23[${string}]`]: undefined;
234
234
  [x: `bytes24[${string}]`]: undefined;
235
+ [x: `bytes25[${string}]`]: undefined;
235
236
  [x: `bytes26[${string}]`]: undefined;
236
237
  [x: `bytes27[${string}]`]: undefined;
237
238
  [x: `bytes28[${string}]`]: undefined;
@@ -240,15 +241,13 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
240
241
  [x: `bytes31[${string}]`]: undefined;
241
242
  [x: `bytes32[${string}]`]: undefined;
242
243
  [x: `int[${string}]`]: undefined;
243
- [x: `int56[${string}]`]: undefined;
244
- [x: `int240[${string}]`]: undefined;
245
- [x: `int248[${string}]`]: undefined;
246
244
  [x: `int16[${string}]`]: undefined;
247
- [x: `int40[${string}]`]: undefined;
248
245
  [x: `int8[${string}]`]: undefined;
249
246
  [x: `int24[${string}]`]: undefined;
250
247
  [x: `int32[${string}]`]: undefined;
248
+ [x: `int40[${string}]`]: undefined;
251
249
  [x: `int48[${string}]`]: undefined;
250
+ [x: `int56[${string}]`]: undefined;
252
251
  [x: `int64[${string}]`]: undefined;
253
252
  [x: `int72[${string}]`]: undefined;
254
253
  [x: `int80[${string}]`]: undefined;
@@ -271,17 +270,17 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
271
270
  [x: `int216[${string}]`]: undefined;
272
271
  [x: `int224[${string}]`]: undefined;
273
272
  [x: `int232[${string}]`]: undefined;
273
+ [x: `int240[${string}]`]: undefined;
274
+ [x: `int248[${string}]`]: undefined;
274
275
  [x: `int256[${string}]`]: undefined;
275
276
  [x: `uint[${string}]`]: undefined;
276
- [x: `uint56[${string}]`]: undefined;
277
- [x: `uint240[${string}]`]: undefined;
278
- [x: `uint248[${string}]`]: undefined;
279
277
  [x: `uint16[${string}]`]: undefined;
280
- [x: `uint40[${string}]`]: undefined;
281
278
  [x: `uint8[${string}]`]: undefined;
282
279
  [x: `uint24[${string}]`]: undefined;
283
280
  [x: `uint32[${string}]`]: undefined;
281
+ [x: `uint40[${string}]`]: undefined;
284
282
  [x: `uint48[${string}]`]: undefined;
283
+ [x: `uint56[${string}]`]: undefined;
285
284
  [x: `uint64[${string}]`]: undefined;
286
285
  [x: `uint72[${string}]`]: undefined;
287
286
  [x: `uint80[${string}]`]: undefined;
@@ -304,20 +303,19 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
304
303
  [x: `uint216[${string}]`]: undefined;
305
304
  [x: `uint224[${string}]`]: undefined;
306
305
  [x: `uint232[${string}]`]: undefined;
306
+ [x: `uint240[${string}]`]: undefined;
307
+ [x: `uint248[${string}]`]: undefined;
307
308
  [x: `uint256[${string}]`]: undefined;
308
309
  string?: undefined;
309
310
  address?: undefined;
310
311
  bool?: undefined;
311
312
  bytes?: undefined;
312
- bytes18?: undefined;
313
- bytes1?: undefined;
314
- bytes25?: undefined;
315
- bytes14?: undefined;
316
- bytes5?: undefined;
317
- bytes10?: undefined;
318
- bytes19?: undefined;
319
313
  bytes16?: undefined;
314
+ bytes5?: undefined;
315
+ bytes1?: undefined;
316
+ bytes18?: undefined;
320
317
  bytes2?: undefined;
318
+ bytes10?: undefined;
321
319
  bytes3?: undefined;
322
320
  bytes4?: undefined;
323
321
  bytes6?: undefined;
@@ -327,13 +325,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
327
325
  bytes11?: undefined;
328
326
  bytes12?: undefined;
329
327
  bytes13?: undefined;
328
+ bytes14?: undefined;
330
329
  bytes15?: undefined;
331
330
  bytes17?: undefined;
331
+ bytes19?: undefined;
332
332
  bytes20?: undefined;
333
333
  bytes21?: undefined;
334
334
  bytes22?: undefined;
335
335
  bytes23?: undefined;
336
336
  bytes24?: undefined;
337
+ bytes25?: undefined;
337
338
  bytes26?: undefined;
338
339
  bytes27?: undefined;
339
340
  bytes28?: undefined;
@@ -341,15 +342,13 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
341
342
  bytes30?: undefined;
342
343
  bytes31?: undefined;
343
344
  bytes32?: undefined;
344
- int56?: undefined;
345
- int240?: undefined;
346
- int248?: undefined;
347
345
  int16?: undefined;
348
- int40?: undefined;
349
346
  int8?: undefined;
350
347
  int24?: undefined;
351
348
  int32?: undefined;
349
+ int40?: undefined;
352
350
  int48?: undefined;
351
+ int56?: undefined;
353
352
  int64?: undefined;
354
353
  int72?: undefined;
355
354
  int80?: undefined;
@@ -372,16 +371,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
372
371
  int216?: undefined;
373
372
  int224?: undefined;
374
373
  int232?: undefined;
374
+ int240?: undefined;
375
+ int248?: undefined;
375
376
  int256?: undefined;
376
- uint56?: undefined;
377
- uint240?: undefined;
378
- uint248?: undefined;
379
377
  uint16?: undefined;
380
- uint40?: undefined;
381
378
  uint8?: undefined;
382
379
  uint24?: undefined;
383
380
  uint32?: undefined;
381
+ uint40?: undefined;
384
382
  uint48?: undefined;
383
+ uint56?: undefined;
385
384
  uint64?: undefined;
386
385
  uint72?: undefined;
387
386
  uint80?: undefined;
@@ -404,6 +403,8 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
404
403
  uint216?: undefined;
405
404
  uint224?: undefined;
406
405
  uint232?: undefined;
406
+ uint240?: undefined;
407
+ uint248?: undefined;
407
408
  uint256?: undefined;
408
409
  } = TTypedData>(args?: UseSignTypedDataArgs<TTypedDataMutate, string> | undefined) => void;
409
410
  signTypedDataAsync: <TTypedDataMutate_1 extends {
@@ -413,15 +414,12 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
413
414
  [x: `address[${string}]`]: undefined;
414
415
  [x: `bool[${string}]`]: undefined;
415
416
  [x: `bytes[${string}]`]: undefined;
416
- [x: `bytes18[${string}]`]: undefined;
417
- [x: `bytes1[${string}]`]: undefined;
418
- [x: `bytes25[${string}]`]: undefined;
419
- [x: `bytes14[${string}]`]: undefined;
420
- [x: `bytes5[${string}]`]: undefined;
421
- [x: `bytes10[${string}]`]: undefined;
422
- [x: `bytes19[${string}]`]: undefined;
423
417
  [x: `bytes16[${string}]`]: undefined;
418
+ [x: `bytes5[${string}]`]: undefined;
419
+ [x: `bytes1[${string}]`]: undefined;
420
+ [x: `bytes18[${string}]`]: undefined;
424
421
  [x: `bytes2[${string}]`]: undefined;
422
+ [x: `bytes10[${string}]`]: undefined;
425
423
  [x: `bytes3[${string}]`]: undefined;
426
424
  [x: `bytes4[${string}]`]: undefined;
427
425
  [x: `bytes6[${string}]`]: undefined;
@@ -431,13 +429,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
431
429
  [x: `bytes11[${string}]`]: undefined;
432
430
  [x: `bytes12[${string}]`]: undefined;
433
431
  [x: `bytes13[${string}]`]: undefined;
432
+ [x: `bytes14[${string}]`]: undefined;
434
433
  [x: `bytes15[${string}]`]: undefined;
435
434
  [x: `bytes17[${string}]`]: undefined;
435
+ [x: `bytes19[${string}]`]: undefined;
436
436
  [x: `bytes20[${string}]`]: undefined;
437
437
  [x: `bytes21[${string}]`]: undefined;
438
438
  [x: `bytes22[${string}]`]: undefined;
439
439
  [x: `bytes23[${string}]`]: undefined;
440
440
  [x: `bytes24[${string}]`]: undefined;
441
+ [x: `bytes25[${string}]`]: undefined;
441
442
  [x: `bytes26[${string}]`]: undefined;
442
443
  [x: `bytes27[${string}]`]: undefined;
443
444
  [x: `bytes28[${string}]`]: undefined;
@@ -446,15 +447,13 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
446
447
  [x: `bytes31[${string}]`]: undefined;
447
448
  [x: `bytes32[${string}]`]: undefined;
448
449
  [x: `int[${string}]`]: undefined;
449
- [x: `int56[${string}]`]: undefined;
450
- [x: `int240[${string}]`]: undefined;
451
- [x: `int248[${string}]`]: undefined;
452
450
  [x: `int16[${string}]`]: undefined;
453
- [x: `int40[${string}]`]: undefined;
454
451
  [x: `int8[${string}]`]: undefined;
455
452
  [x: `int24[${string}]`]: undefined;
456
453
  [x: `int32[${string}]`]: undefined;
454
+ [x: `int40[${string}]`]: undefined;
457
455
  [x: `int48[${string}]`]: undefined;
456
+ [x: `int56[${string}]`]: undefined;
458
457
  [x: `int64[${string}]`]: undefined;
459
458
  [x: `int72[${string}]`]: undefined;
460
459
  [x: `int80[${string}]`]: undefined;
@@ -477,17 +476,17 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
477
476
  [x: `int216[${string}]`]: undefined;
478
477
  [x: `int224[${string}]`]: undefined;
479
478
  [x: `int232[${string}]`]: undefined;
479
+ [x: `int240[${string}]`]: undefined;
480
+ [x: `int248[${string}]`]: undefined;
480
481
  [x: `int256[${string}]`]: undefined;
481
482
  [x: `uint[${string}]`]: undefined;
482
- [x: `uint56[${string}]`]: undefined;
483
- [x: `uint240[${string}]`]: undefined;
484
- [x: `uint248[${string}]`]: undefined;
485
483
  [x: `uint16[${string}]`]: undefined;
486
- [x: `uint40[${string}]`]: undefined;
487
484
  [x: `uint8[${string}]`]: undefined;
488
485
  [x: `uint24[${string}]`]: undefined;
489
486
  [x: `uint32[${string}]`]: undefined;
487
+ [x: `uint40[${string}]`]: undefined;
490
488
  [x: `uint48[${string}]`]: undefined;
489
+ [x: `uint56[${string}]`]: undefined;
491
490
  [x: `uint64[${string}]`]: undefined;
492
491
  [x: `uint72[${string}]`]: undefined;
493
492
  [x: `uint80[${string}]`]: undefined;
@@ -510,20 +509,19 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
510
509
  [x: `uint216[${string}]`]: undefined;
511
510
  [x: `uint224[${string}]`]: undefined;
512
511
  [x: `uint232[${string}]`]: undefined;
512
+ [x: `uint240[${string}]`]: undefined;
513
+ [x: `uint248[${string}]`]: undefined;
513
514
  [x: `uint256[${string}]`]: undefined;
514
515
  string?: undefined;
515
516
  address?: undefined;
516
517
  bool?: undefined;
517
518
  bytes?: undefined;
518
- bytes18?: undefined;
519
- bytes1?: undefined;
520
- bytes25?: undefined;
521
- bytes14?: undefined;
522
- bytes5?: undefined;
523
- bytes10?: undefined;
524
- bytes19?: undefined;
525
519
  bytes16?: undefined;
520
+ bytes5?: undefined;
521
+ bytes1?: undefined;
522
+ bytes18?: undefined;
526
523
  bytes2?: undefined;
524
+ bytes10?: undefined;
527
525
  bytes3?: undefined;
528
526
  bytes4?: undefined;
529
527
  bytes6?: undefined;
@@ -533,13 +531,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
533
531
  bytes11?: undefined;
534
532
  bytes12?: undefined;
535
533
  bytes13?: undefined;
534
+ bytes14?: undefined;
536
535
  bytes15?: undefined;
537
536
  bytes17?: undefined;
537
+ bytes19?: undefined;
538
538
  bytes20?: undefined;
539
539
  bytes21?: undefined;
540
540
  bytes22?: undefined;
541
541
  bytes23?: undefined;
542
542
  bytes24?: undefined;
543
+ bytes25?: undefined;
543
544
  bytes26?: undefined;
544
545
  bytes27?: undefined;
545
546
  bytes28?: undefined;
@@ -547,15 +548,13 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
547
548
  bytes30?: undefined;
548
549
  bytes31?: undefined;
549
550
  bytes32?: undefined;
550
- int56?: undefined;
551
- int240?: undefined;
552
- int248?: undefined;
553
551
  int16?: undefined;
554
- int40?: undefined;
555
552
  int8?: undefined;
556
553
  int24?: undefined;
557
554
  int32?: undefined;
555
+ int40?: undefined;
558
556
  int48?: undefined;
557
+ int56?: undefined;
559
558
  int64?: undefined;
560
559
  int72?: undefined;
561
560
  int80?: undefined;
@@ -578,16 +577,16 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
578
577
  int216?: undefined;
579
578
  int224?: undefined;
580
579
  int232?: undefined;
580
+ int240?: undefined;
581
+ int248?: undefined;
581
582
  int256?: undefined;
582
- uint56?: undefined;
583
- uint240?: undefined;
584
- uint248?: undefined;
585
583
  uint16?: undefined;
586
- uint40?: undefined;
587
584
  uint8?: undefined;
588
585
  uint24?: undefined;
589
586
  uint32?: undefined;
587
+ uint40?: undefined;
590
588
  uint48?: undefined;
589
+ uint56?: undefined;
591
590
  uint64?: undefined;
592
591
  uint72?: undefined;
593
592
  uint80?: undefined;
@@ -610,6 +609,8 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
610
609
  uint216?: undefined;
611
610
  uint224?: undefined;
612
611
  uint232?: undefined;
612
+ uint240?: undefined;
613
+ uint248?: undefined;
613
614
  uint256?: undefined;
614
615
  } = TTypedData>(args?: UseSignTypedDataArgs<TTypedDataMutate_1, string> | undefined) => Promise<`0x${string}`>;
615
616
  status: "error" | "success" | "loading" | "idle";
@@ -622,7 +623,7 @@ type UseSwitchNetworkConfig = MutationConfig<SwitchNetworkResult, Error, SwitchN
622
623
  };
623
624
  declare function useSwitchNetwork({ chainId, throwForSwitchChainNotSupported, onError, onMutate, onSettled, onSuccess, }?: UseSwitchNetworkArgs & UseSwitchNetworkConfig): {
624
625
  readonly chains: _wagmi_core.Chain[];
625
- readonly data: _wagmi_core.Chain | undefined;
626
+ readonly data: SwitchNetworkResult | undefined;
626
627
  readonly error: Error | null;
627
628
  readonly isError: boolean;
628
629
  readonly isIdle: boolean;
@@ -632,7 +633,7 @@ declare function useSwitchNetwork({ chainId, throwForSwitchChainNotSupported, on
632
633
  readonly reset: () => void;
633
634
  readonly status: "error" | "success" | "loading" | "idle";
634
635
  readonly switchNetwork: ((chainId_?: SwitchNetworkArgs['chainId']) => void) | undefined;
635
- readonly switchNetworkAsync: ((chainId_?: SwitchNetworkArgs['chainId']) => Promise<_wagmi_core.Chain>) | undefined;
636
+ readonly switchNetworkAsync: ((chainId_?: SwitchNetworkArgs['chainId']) => Promise<SwitchNetworkResult>) | undefined;
636
637
  readonly variables: SwitchNetworkArgs | undefined;
637
638
  };
638
639
 
package/dist/index.js CHANGED
@@ -2499,11 +2499,10 @@ import {
2499
2499
  erc20ABI,
2500
2500
  erc721ABI,
2501
2501
  erc4626ABI,
2502
- mainnet,
2503
2502
  readContracts as readContracts3,
2504
- sepolia,
2505
2503
  serialize
2506
2504
  } from "@wagmi/core";
2505
+ import { mainnet, sepolia } from "viem/chains";
2507
2506
  export {
2508
2507
  ChainMismatchError,
2509
2508
  ChainNotConfiguredError,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wagmi",
3
3
  "description": "React Hooks for Ethereum",
4
4
  "license": "MIT",
5
- "version": "1.3.11",
5
+ "version": "1.4.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -123,7 +123,7 @@
123
123
  "@tanstack/react-query-persist-client": "^4.28.0",
124
124
  "abitype": "0.8.7",
125
125
  "use-sync-external-store": "^1.2.0",
126
- "@wagmi/core": "1.3.10"
126
+ "@wagmi/core": "1.4.0"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@testing-library/react": "^13.3.0",