@wagmi/core 0.10.10 → 1.0.0-next.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 (34) hide show
  1. package/README.md +2 -2
  2. package/connectors/walletConnectV1/package.json +4 -0
  3. package/dist/{chunk-VQG3VKOR.js → chunk-LF3Y5HFO.js} +714 -1242
  4. package/dist/index-fc9ab085.d.ts +22 -0
  5. package/dist/index.d.ts +1039 -1291
  6. package/dist/index.js +17 -45
  7. package/dist/internal/index.d.ts +18 -8
  8. package/dist/internal/index.js +5 -3
  9. package/dist/internal/test.d.ts +771 -9
  10. package/dist/internal/test.js +46 -34
  11. package/dist/providers/alchemy.d.ts +4 -6
  12. package/dist/providers/alchemy.js +9 -26
  13. package/dist/providers/infura.d.ts +4 -6
  14. package/dist/providers/infura.js +9 -26
  15. package/dist/providers/jsonRpc.d.ts +4 -7
  16. package/dist/providers/jsonRpc.js +4 -20
  17. package/dist/providers/public.d.ts +4 -7
  18. package/dist/providers/public.js +3 -18
  19. package/dist/window.d.ts +7 -0
  20. package/dist/window.js +0 -0
  21. package/internal/dist/wagmi-core-internal.cjs.d.ts +11 -0
  22. package/internal/dist/wagmi-core-internal.cjs.js +16 -0
  23. package/package.json +11 -6
  24. package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +11 -0
  25. package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +16 -0
  26. package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +11 -0
  27. package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +16 -0
  28. package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +11 -0
  29. package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +16 -0
  30. package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +11 -0
  31. package/providers/public/dist/wagmi-core-providers-public.cjs.js +16 -0
  32. package/window/package.json +4 -0
  33. package/dist/getContract-2443b222.d.ts +0 -310
  34. package/dist/index-35b6525c.d.ts +0 -49
@@ -0,0 +1,22 @@
1
+ import { Transport, PublicClient as PublicClient$1, Account, WalletClient as WalletClient$1 } from 'viem';
2
+ import { Chain } from '@wagmi/chains';
3
+
4
+ type Hash = `0x${string}`;
5
+ type ChainProviderFn<TChain extends Chain = Chain> = (chain: TChain) => {
6
+ chain: TChain;
7
+ rpcUrls: RpcUrls;
8
+ } | null;
9
+ type PublicClient<TTransport extends Transport = Transport, TChain extends Chain = Chain> = PublicClient$1<TTransport, TChain> & {
10
+ chains?: Chain[];
11
+ };
12
+ type WebSocketPublicClient<TTransport extends Transport = Transport, TChain extends Chain = Chain> = PublicClient$1<TTransport, TChain> & {
13
+ chains?: Chain[];
14
+ };
15
+ type RpcUrls = {
16
+ http: readonly string[];
17
+ webSocket?: readonly string[];
18
+ };
19
+ type WalletClient<TTransport extends Transport = Transport, TChain extends Chain = Chain, TAccount extends Account = Account> = WalletClient$1<TTransport, TChain, TAccount>;
20
+ type Unit = 'ether' | 'gwei' | 'wei' | number;
21
+
22
+ export { ChainProviderFn as C, Hash as H, PublicClient as P, Unit as U, WebSocketPublicClient as W, WalletClient as a };