@wagmi/core 0.8.5 → 0.8.6

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 @@
1
- export { Chain, arbitrum, arbitrumGoerli, avalanche, avalancheFuji, bsc, bscTestnet, evmos, evmosTestnet, fantom, fantomTestnet, foundry, gnosis, goerli, hardhat, localhost, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, sepolia, taraxa, taraxaTestnet } from '@wagmi/chains';
1
+ export { Chain, arbitrum, arbitrumGoerli, avalanche, avalancheFuji, bsc, bscTestnet, evmos, evmosTestnet, fantom, fantomTestnet, foundry, gnosis, goerli, hardhat, iotex, iotexTestnet, localhost, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, sepolia, taraxa, taraxaTestnet, zkSync, zkSyncTestnet } from '@wagmi/chains';
package/dist/chains.js CHANGED
@@ -13,6 +13,8 @@ import {
13
13
  gnosis,
14
14
  goerli,
15
15
  hardhat,
16
+ iotex,
17
+ iotexTestnet,
16
18
  localhost,
17
19
  mainnet,
18
20
  optimism,
@@ -21,8 +23,10 @@ import {
21
23
  polygonMumbai,
22
24
  sepolia,
23
25
  taraxa,
24
- taraxaTestnet
25
- } from "./chunk-R7R64MSS.js";
26
+ taraxaTestnet,
27
+ zkSync,
28
+ zkSyncTestnet
29
+ } from "./chunk-7J7OLO4T.js";
26
30
  import "./chunk-MQXBDTVK.js";
27
31
  export {
28
32
  arbitrum,
@@ -39,6 +43,8 @@ export {
39
43
  gnosis,
40
44
  goerli,
41
45
  hardhat,
46
+ iotex,
47
+ iotexTestnet,
42
48
  localhost,
43
49
  mainnet,
44
50
  optimism,
@@ -47,5 +53,7 @@ export {
47
53
  polygonMumbai,
48
54
  sepolia,
49
55
  taraxa,
50
- taraxaTestnet
56
+ taraxaTestnet,
57
+ zkSync,
58
+ zkSyncTestnet
51
59
  };
@@ -14,6 +14,8 @@ import {
14
14
  goerli,
15
15
  gnosis,
16
16
  hardhat,
17
+ iotex,
18
+ iotexTestnet,
17
19
  localhost,
18
20
  mainnet,
19
21
  optimism,
@@ -22,7 +24,9 @@ import {
22
24
  polygonMumbai,
23
25
  sepolia,
24
26
  taraxa,
25
- taraxaTestnet
27
+ taraxaTestnet,
28
+ zkSync,
29
+ zkSyncTestnet
26
30
  } from "@wagmi/chains";
27
31
 
28
32
  export {
@@ -40,6 +44,8 @@ export {
40
44
  goerli,
41
45
  gnosis,
42
46
  hardhat,
47
+ iotex,
48
+ iotexTestnet,
43
49
  localhost,
44
50
  mainnet,
45
51
  optimism,
@@ -48,5 +54,7 @@ export {
48
54
  polygonMumbai,
49
55
  sepolia,
50
56
  taraxa,
51
- taraxaTestnet
57
+ taraxaTestnet,
58
+ zkSync,
59
+ zkSyncTestnet
52
60
  };
package/dist/index.js CHANGED
@@ -75,7 +75,7 @@ import {
75
75
  import {
76
76
  goerli,
77
77
  mainnet
78
- } from "./chunk-R7R64MSS.js";
78
+ } from "./chunk-7J7OLO4T.js";
79
79
  import {
80
80
  Connector
81
81
  } from "./chunk-BVC4KGLQ.js";
@@ -6,7 +6,7 @@ import {
6
6
  mainnet,
7
7
  optimism,
8
8
  polygon
9
- } from "../chunk-R7R64MSS.js";
9
+ } from "../chunk-7J7OLO4T.js";
10
10
  import "../chunk-BVC4KGLQ.js";
11
11
  import "../chunk-EQOEZP46.js";
12
12
  import "../chunk-KFW652VN.js";
@@ -20,10 +20,24 @@ function alchemyProvider({
20
20
  }
21
21
  },
22
22
  provider: () => {
23
- const provider = new providers.AlchemyProvider(chain.id, apiKey);
23
+ const provider = new providers.AlchemyProvider(
24
+ {
25
+ chainId: chain.id,
26
+ name: chain.network,
27
+ ensAddress: chain.contracts?.ensRegistry?.address
28
+ },
29
+ apiKey
30
+ );
24
31
  return Object.assign(provider, { priority, stallTimeout, weight });
25
32
  },
26
- webSocketProvider: () => new providers.AlchemyWebSocketProvider(chain.id, apiKey)
33
+ webSocketProvider: () => new providers.AlchemyWebSocketProvider(
34
+ {
35
+ chainId: chain.id,
36
+ name: chain.network,
37
+ ensAddress: chain.contracts?.ensRegistry?.address
38
+ },
39
+ apiKey
40
+ )
27
41
  };
28
42
  };
29
43
  }
@@ -20,10 +20,24 @@ function infuraProvider({
20
20
  }
21
21
  },
22
22
  provider: () => {
23
- const provider = new providers.InfuraProvider(chain.id, apiKey);
23
+ const provider = new providers.InfuraProvider(
24
+ {
25
+ chainId: chain.id,
26
+ name: chain.network,
27
+ ensAddress: chain.contracts?.ensRegistry?.address
28
+ },
29
+ apiKey
30
+ );
24
31
  return Object.assign(provider, { priority, stallTimeout, weight });
25
32
  },
26
- webSocketProvider: () => new providers.InfuraWebSocketProvider(chain.id, apiKey)
33
+ webSocketProvider: () => new providers.InfuraWebSocketProvider(
34
+ {
35
+ chainId: chain.id,
36
+ name: chain.network,
37
+ ensAddress: chain.contracts?.ensRegistry?.address
38
+ },
39
+ apiKey
40
+ )
27
41
  };
28
42
  };
29
43
  }
@@ -17,7 +17,8 @@ function publicProvider({
17
17
  chain.rpcUrls.default.http[0],
18
18
  {
19
19
  chainId: chain.id,
20
- name: chain.network
20
+ name: chain.network,
21
+ ensAddress: chain.contracts?.ensRegistry?.address
21
22
  }
22
23
  );
23
24
  return Object.assign(provider, { priority, stallTimeout, weight });
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": "0.8.5",
5
+ "version": "0.8.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -114,7 +114,7 @@
114
114
  "abitype": "^0.2.5",
115
115
  "eventemitter3": "^4.0.7",
116
116
  "zustand": "^4.1.4",
117
- "@wagmi/chains": "0.1.5",
117
+ "@wagmi/chains": "0.1.7",
118
118
  "@wagmi/connectors": "0.1.2"
119
119
  },
120
120
  "devDependencies": {