@wagmi/core 1.0.7 → 1.0.8

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/index.d.ts CHANGED
@@ -1363,10 +1363,10 @@ declare function configureChains<TChain extends Chain = Chain>(defaultChains: TC
1363
1363
  readonly chains: TChain[];
1364
1364
  readonly publicClient: ({ chainId }: {
1365
1365
  chainId?: number | undefined;
1366
- }) => PublicClient<FallbackTransport, Chain>;
1366
+ }) => PublicClient<FallbackTransport>;
1367
1367
  readonly webSocketPublicClient: ({ chainId }: {
1368
1368
  chainId?: number | undefined;
1369
- }) => WebSocketPublicClient<FallbackTransport, Chain> | undefined;
1369
+ }) => WebSocketPublicClient<FallbackTransport> | undefined;
1370
1370
  };
1371
1371
 
1372
1372
  /** Forked from https://github.com/epoberezkin/fast-deep-equal */
@@ -1,5 +1,4 @@
1
- import * as viem_dist_types_types_formatter from 'viem/dist/types/types/formatter';
2
- import * as abitype_dist_abi_3a9c20c7 from 'abitype/dist/abi-3a9c20c7';
1
+ import * as abitype from 'abitype';
3
2
  import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
4
3
  import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
5
4
  import * as viem from 'viem';
@@ -649,7 +648,7 @@ declare function getWalletClients(): {
649
648
  type: string;
650
649
  uid: string;
651
650
  addChain: (args: viem.AddChainParameters) => Promise<void>;
652
- deployContract: <TAbi extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
651
+ deployContract: <TAbi extends abitype.Abi | readonly unknown[], TChainOverride extends viem.Chain | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
653
652
  address: `0x${string}`;
654
653
  type: "json-rpc";
655
654
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -661,7 +660,7 @@ declare function getWalletClients(): {
661
660
  [x: string]: Record<string, any>;
662
661
  eth_accounts: Record<string, any>;
663
662
  }) => Promise<viem.RequestPermissionsReturnType>;
664
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
663
+ sendTransaction: <TChainOverride_1 extends viem.Chain | undefined>(args: viem.SendTransactionParameters<Chain, {
665
664
  address: `0x${string}`;
666
665
  type: "json-rpc";
667
666
  }, TChainOverride_1>) => Promise<`0x${string}`>;
@@ -670,7 +669,7 @@ declare function getWalletClients(): {
670
669
  type: "json-rpc";
671
670
  }>) => Promise<`0x${string}`>;
672
671
  signTypedData: <TTypedData extends {
673
- [x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
672
+ [x: string]: readonly abitype.TypedDataParameter[];
674
673
  [x: `string[${string}]`]: undefined;
675
674
  [x: `function[${string}]`]: undefined;
676
675
  [x: `address[${string}]`]: undefined;
@@ -882,7 +881,7 @@ declare function getWalletClients(): {
882
881
  }>) => Promise<`0x${string}`>;
883
882
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
884
883
  watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
885
- writeContract: <TAbi_1 extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
884
+ writeContract: <TAbi_1 extends abitype.Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
886
885
  address: `0x${string}`;
887
886
  type: "json-rpc";
888
887
  }, TChainOverride_2>) => Promise<`0x${string}`>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/core",
3
3
  "description": "Vanilla JS library for Ethereum",
4
4
  "license": "MIT",
5
- "version": "1.0.7",
5
+ "version": "1.0.8",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -112,7 +112,7 @@
112
112
  ],
113
113
  "peerDependencies": {
114
114
  "viem": "~0.3.35",
115
- "typescript": ">=4.9.4"
115
+ "typescript": "^5.0.4"
116
116
  },
117
117
  "peerDependenciesMeta": {
118
118
  "typescript": {
@@ -120,7 +120,7 @@
120
120
  }
121
121
  },
122
122
  "dependencies": {
123
- "abitype": "0.8.1",
123
+ "abitype": "0.8.2",
124
124
  "eventemitter3": "^4.0.7",
125
125
  "zustand": "^4.3.1",
126
126
  "@wagmi/chains": "0.3.1",