@wagmi/core 0.8.4 → 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.
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "main": "../../dist/connectors/injected.js"
4
+ }
package/dist/chains.d.ts CHANGED
@@ -1 +1 @@
1
- export { Chain, arbitrum, arbitrumGoerli, avalanche, avalancheFuji, bsc, bscTestnet, fantom, fantomTestnet, foundry, 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
@@ -5,11 +5,16 @@ import {
5
5
  avalancheFuji,
6
6
  bsc,
7
7
  bscTestnet,
8
+ evmos,
9
+ evmosTestnet,
8
10
  fantom,
9
11
  fantomTestnet,
10
12
  foundry,
13
+ gnosis,
11
14
  goerli,
12
15
  hardhat,
16
+ iotex,
17
+ iotexTestnet,
13
18
  localhost,
14
19
  mainnet,
15
20
  optimism,
@@ -18,8 +23,10 @@ import {
18
23
  polygonMumbai,
19
24
  sepolia,
20
25
  taraxa,
21
- taraxaTestnet
22
- } from "./chunk-PCWDCFP4.js";
26
+ taraxaTestnet,
27
+ zkSync,
28
+ zkSyncTestnet
29
+ } from "./chunk-7J7OLO4T.js";
23
30
  import "./chunk-MQXBDTVK.js";
24
31
  export {
25
32
  arbitrum,
@@ -28,11 +35,16 @@ export {
28
35
  avalancheFuji,
29
36
  bsc,
30
37
  bscTestnet,
38
+ evmos,
39
+ evmosTestnet,
31
40
  fantom,
32
41
  fantomTestnet,
33
42
  foundry,
43
+ gnosis,
34
44
  goerli,
35
45
  hardhat,
46
+ iotex,
47
+ iotexTestnet,
36
48
  localhost,
37
49
  mainnet,
38
50
  optimism,
@@ -41,5 +53,7 @@ export {
41
53
  polygonMumbai,
42
54
  sepolia,
43
55
  taraxa,
44
- taraxaTestnet
56
+ taraxaTestnet,
57
+ zkSync,
58
+ zkSyncTestnet
45
59
  };
@@ -6,11 +6,16 @@ import {
6
6
  avalancheFuji,
7
7
  bsc,
8
8
  bscTestnet,
9
+ evmos,
10
+ evmosTestnet,
9
11
  fantom,
10
12
  fantomTestnet,
11
13
  foundry,
12
14
  goerli,
15
+ gnosis,
13
16
  hardhat,
17
+ iotex,
18
+ iotexTestnet,
14
19
  localhost,
15
20
  mainnet,
16
21
  optimism,
@@ -19,7 +24,9 @@ import {
19
24
  polygonMumbai,
20
25
  sepolia,
21
26
  taraxa,
22
- taraxaTestnet
27
+ taraxaTestnet,
28
+ zkSync,
29
+ zkSyncTestnet
23
30
  } from "@wagmi/chains";
24
31
 
25
32
  export {
@@ -29,11 +36,16 @@ export {
29
36
  avalancheFuji,
30
37
  bsc,
31
38
  bscTestnet,
39
+ evmos,
40
+ evmosTestnet,
32
41
  fantom,
33
42
  fantomTestnet,
34
43
  foundry,
35
44
  goerli,
45
+ gnosis,
36
46
  hardhat,
47
+ iotex,
48
+ iotexTestnet,
37
49
  localhost,
38
50
  mainnet,
39
51
  optimism,
@@ -42,5 +54,7 @@ export {
42
54
  polygonMumbai,
43
55
  sepolia,
44
56
  taraxa,
45
- taraxaTestnet
57
+ taraxaTestnet,
58
+ zkSync,
59
+ zkSyncTestnet
46
60
  };
package/dist/index.js CHANGED
@@ -75,7 +75,7 @@ import {
75
75
  import {
76
76
  goerli,
77
77
  mainnet
78
- } from "./chunk-PCWDCFP4.js";
78
+ } from "./chunk-7J7OLO4T.js";
79
79
  import {
80
80
  Connector
81
81
  } from "./chunk-BVC4KGLQ.js";
@@ -1,4 +1,3 @@
1
- import "../chunk-KFW652VN.js";
2
1
  import "../chunk-KX4UEHS5.js";
3
2
  import "../chunk-DYHSCPJD.js";
4
3
  import {
@@ -7,9 +6,10 @@ import {
7
6
  mainnet,
8
7
  optimism,
9
8
  polygon
10
- } from "../chunk-PCWDCFP4.js";
9
+ } from "../chunk-7J7OLO4T.js";
11
10
  import "../chunk-BVC4KGLQ.js";
12
11
  import "../chunk-EQOEZP46.js";
12
+ import "../chunk-KFW652VN.js";
13
13
  import "../chunk-MQXBDTVK.js";
14
14
 
15
15
  // test/utils.ts
@@ -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.4",
5
+ "version": "0.8.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -43,6 +43,10 @@
43
43
  "types": "./dist/connectors/coinbaseWallet.d.ts",
44
44
  "default": "./dist/connectors/coinbaseWallet.js"
45
45
  },
46
+ "./connectors/injected": {
47
+ "types": "./dist/connectors/injected.d.ts",
48
+ "default": "./dist/connectors/injected.js"
49
+ },
46
50
  "./connectors/ledger": {
47
51
  "types": "./dist/connectors/ledger.d.ts",
48
52
  "default": "./dist/connectors/ledger.js"
@@ -67,22 +71,22 @@
67
71
  "types": "./dist/internal/test.d.ts",
68
72
  "default": "./dist/internal/test.js"
69
73
  },
70
- "./providers/infura": {
71
- "types": "./dist/providers/infura.d.ts",
72
- "default": "./dist/providers/infura.js"
73
- },
74
- "./providers/public": {
75
- "types": "./dist/providers/public.d.ts",
76
- "default": "./dist/providers/public.js"
77
- },
78
74
  "./providers/alchemy": {
79
75
  "types": "./dist/providers/alchemy.d.ts",
80
76
  "default": "./dist/providers/alchemy.js"
81
77
  },
78
+ "./providers/infura": {
79
+ "types": "./dist/providers/infura.d.ts",
80
+ "default": "./dist/providers/infura.js"
81
+ },
82
82
  "./providers/jsonRpc": {
83
83
  "types": "./dist/providers/jsonRpc.d.ts",
84
84
  "default": "./dist/providers/jsonRpc.js"
85
85
  },
86
+ "./providers/public": {
87
+ "types": "./dist/providers/public.d.ts",
88
+ "default": "./dist/providers/public.js"
89
+ },
86
90
  "./package.json": "./package.json"
87
91
  },
88
92
  "sideEffects": false,
@@ -110,8 +114,8 @@
110
114
  "abitype": "^0.2.5",
111
115
  "eventemitter3": "^4.0.7",
112
116
  "zustand": "^4.1.4",
113
- "@wagmi/chains": "0.1.3",
114
- "@wagmi/connectors": "0.1.1"
117
+ "@wagmi/chains": "0.1.7",
118
+ "@wagmi/connectors": "0.1.2"
115
119
  },
116
120
  "devDependencies": {
117
121
  "@coinbase/wallet-sdk": "^3.6.0",