@wagmi/core 0.3.0 → 0.3.3

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 (44) hide show
  1. package/chains/dist/wagmi-core-chains.cjs.d.ts +1 -0
  2. package/chains/dist/wagmi-core-chains.cjs.dev.js +22 -0
  3. package/chains/dist/wagmi-core-chains.cjs.js +7 -0
  4. package/chains/dist/wagmi-core-chains.cjs.prod.js +22 -0
  5. package/chains/dist/wagmi-core-chains.esm.js +2 -0
  6. package/chains/package.json +4 -0
  7. package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.dev.js +4 -14
  8. package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.prod.js +4 -14
  9. package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.esm.js +2 -12
  10. package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.dev.js +11 -5
  11. package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.prod.js +11 -5
  12. package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.esm.js +11 -5
  13. package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.dev.js +4 -3
  14. package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.prod.js +4 -3
  15. package/connectors/mock/dist/wagmi-core-connectors-mock.esm.js +2 -1
  16. package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.dev.js +4 -3
  17. package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.prod.js +4 -3
  18. package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.esm.js +2 -1
  19. package/dist/base-321ac87a.cjs.dev.js +288 -0
  20. package/dist/base-41fb6637.esm.js +265 -0
  21. package/dist/base-6841ebe0.cjs.prod.js +288 -0
  22. package/dist/chains-0dd661ab.cjs.prod.js +349 -0
  23. package/dist/chains-98e2e613.cjs.dev.js +349 -0
  24. package/dist/chains-a0a80d94.esm.js +329 -0
  25. package/dist/{client-08120ec7.cjs.dev.js → client-4172f963.cjs.dev.js} +30 -31
  26. package/dist/{client-d8d4f4fc.esm.js → client-87c1ff8b.esm.js} +28 -29
  27. package/dist/{client-332f5c43.cjs.prod.js → client-a06c45f3.cjs.prod.js} +30 -31
  28. package/dist/declarations/src/chains.d.ts +1 -0
  29. package/dist/declarations/src/client.d.ts +1 -1
  30. package/dist/declarations/src/connectors/injected.d.ts +1 -1
  31. package/dist/declarations/src/connectors/metaMask.d.ts +1 -1
  32. package/dist/declarations/src/constants/chains.d.ts +33 -2
  33. package/dist/declarations/src/index.d.ts +2 -3
  34. package/dist/declarations/src/types/index.d.ts +11 -4
  35. package/dist/declarations/src/{chains → utils}/configureChains.d.ts +2 -2
  36. package/dist/declarations/src/utils/index.d.ts +2 -0
  37. package/dist/wagmi-core.cjs.dev.js +118 -117
  38. package/dist/wagmi-core.cjs.prod.js +118 -117
  39. package/dist/wagmi-core.esm.js +108 -106
  40. package/package.json +11 -5
  41. package/dist/base-3a506159.cjs.dev.js +0 -602
  42. package/dist/base-997b4fec.esm.js +0 -573
  43. package/dist/base-cb4198f3.cjs.prod.js +0 -602
  44. package/dist/declarations/src/chains/index.d.ts +0 -2
@@ -0,0 +1,349 @@
1
+ 'use strict';
2
+
3
+ var rpcs = require('./rpcs-9c4eb960.cjs.dev.js');
4
+
5
+ const etherscanBlockExplorers = {
6
+ mainnet: {
7
+ name: 'Etherscan',
8
+ url: 'https://etherscan.io'
9
+ },
10
+ ropsten: {
11
+ name: 'Etherscan',
12
+ url: 'https://ropsten.etherscan.io'
13
+ },
14
+ rinkeby: {
15
+ name: 'Etherscan',
16
+ url: 'https://rinkeby.etherscan.io'
17
+ },
18
+ goerli: {
19
+ name: 'Etherscan',
20
+ url: 'https://goerli.etherscan.io'
21
+ },
22
+ kovan: {
23
+ name: 'Etherscan',
24
+ url: 'https://kovan.etherscan.io'
25
+ },
26
+ optimism: {
27
+ name: 'Etherscan',
28
+ url: 'https://optimistic.etherscan.io'
29
+ },
30
+ optimismKovan: {
31
+ name: 'Etherscan',
32
+ url: 'https://kovan-optimistic.etherscan.io'
33
+ },
34
+ polygon: {
35
+ name: 'PolygonScan',
36
+ url: 'https://polygonscan.com'
37
+ },
38
+ polygonMumbai: {
39
+ name: 'PolygonScan',
40
+ url: 'https://mumbai.polygonscan.com'
41
+ },
42
+ arbitrum: {
43
+ name: 'Arbiscan',
44
+ url: 'https://arbiscan.io'
45
+ },
46
+ arbitrumRinkeby: {
47
+ name: 'Arbiscan',
48
+ url: 'https://testnet.arbiscan.io'
49
+ }
50
+ };
51
+
52
+ const chainId = {
53
+ mainnet: 1,
54
+ ropsten: 3,
55
+ rinkeby: 4,
56
+ goerli: 5,
57
+ kovan: 42,
58
+ optimism: 10,
59
+ optimismKovan: 69,
60
+ polygon: 137,
61
+ polygonMumbai: 80001,
62
+ arbitrum: 42161,
63
+ arbitrumRinkeby: 421611,
64
+ localhost: 1337,
65
+ hardhat: 31337
66
+ };
67
+ const mainnet = {
68
+ id: chainId.mainnet,
69
+ name: 'Ethereum',
70
+ network: 'homestead',
71
+ nativeCurrency: {
72
+ name: 'Ether',
73
+ symbol: 'ETH',
74
+ decimals: 18
75
+ },
76
+ rpcUrls: {
77
+ alchemy: rpcs.alchemyRpcUrls.mainnet,
78
+ infura: rpcs.infuraRpcUrls.mainnet,
79
+ default: "".concat(rpcs.alchemyRpcUrls.mainnet, "/").concat(rpcs.defaultAlchemyId)
80
+ },
81
+ blockExplorers: {
82
+ etherscan: etherscanBlockExplorers.mainnet,
83
+ default: etherscanBlockExplorers.mainnet
84
+ }
85
+ };
86
+ const ropsten = {
87
+ id: chainId.ropsten,
88
+ name: 'Ropsten',
89
+ network: 'ropsten',
90
+ nativeCurrency: {
91
+ name: 'Ropsten Ether',
92
+ symbol: 'ropETH',
93
+ decimals: 18
94
+ },
95
+ rpcUrls: {
96
+ alchemy: rpcs.alchemyRpcUrls.ropsten,
97
+ infura: rpcs.infuraRpcUrls.ropsten,
98
+ default: "".concat(rpcs.alchemyRpcUrls.ropsten, "/").concat(rpcs.defaultAlchemyId)
99
+ },
100
+ blockExplorers: {
101
+ etherscan: etherscanBlockExplorers.ropsten,
102
+ default: etherscanBlockExplorers.ropsten
103
+ },
104
+ testnet: true
105
+ };
106
+ const rinkeby = {
107
+ id: chainId.rinkeby,
108
+ name: 'Rinkeby',
109
+ network: 'rinkeby',
110
+ nativeCurrency: {
111
+ name: 'Rinkeby Ether',
112
+ symbol: 'rETH',
113
+ decimals: 18
114
+ },
115
+ rpcUrls: {
116
+ alchemy: rpcs.alchemyRpcUrls.rinkeby,
117
+ infura: rpcs.infuraRpcUrls.rinkeby,
118
+ default: "".concat(rpcs.alchemyRpcUrls.rinkeby, "/").concat(rpcs.defaultAlchemyId)
119
+ },
120
+ blockExplorers: {
121
+ etherscan: etherscanBlockExplorers.rinkeby,
122
+ default: etherscanBlockExplorers.rinkeby
123
+ },
124
+ testnet: true
125
+ };
126
+ const goerli = {
127
+ id: chainId.goerli,
128
+ name: 'Goerli',
129
+ network: 'goerli',
130
+ nativeCurrency: {
131
+ name: 'Goerli Ether',
132
+ symbol: 'gETH',
133
+ decimals: 18
134
+ },
135
+ rpcUrls: {
136
+ alchemy: rpcs.alchemyRpcUrls.goerli,
137
+ infura: rpcs.infuraRpcUrls.goerli,
138
+ default: "".concat(rpcs.alchemyRpcUrls.goerli, "/").concat(rpcs.defaultAlchemyId)
139
+ },
140
+ blockExplorers: {
141
+ etherscan: etherscanBlockExplorers.goerli,
142
+ default: etherscanBlockExplorers.goerli
143
+ },
144
+ testnet: true
145
+ };
146
+ const kovan = {
147
+ id: chainId.kovan,
148
+ name: 'Kovan',
149
+ network: 'kovan',
150
+ nativeCurrency: {
151
+ name: 'Kovan Ether',
152
+ symbol: 'kETH',
153
+ decimals: 18
154
+ },
155
+ rpcUrls: {
156
+ alchemy: rpcs.alchemyRpcUrls.kovan,
157
+ infura: rpcs.infuraRpcUrls.kovan,
158
+ default: "".concat(rpcs.alchemyRpcUrls.kovan, "/").concat(rpcs.defaultAlchemyId)
159
+ },
160
+ blockExplorers: {
161
+ etherscan: etherscanBlockExplorers.kovan,
162
+ default: etherscanBlockExplorers.kovan
163
+ },
164
+ testnet: true
165
+ };
166
+ const optimism = {
167
+ id: chainId.optimism,
168
+ name: 'Optimism',
169
+ network: 'optimism',
170
+ nativeCurrency: {
171
+ name: 'Ether',
172
+ symbol: 'ETH',
173
+ decimals: 18
174
+ },
175
+ rpcUrls: {
176
+ alchemy: rpcs.alchemyRpcUrls.optimism,
177
+ infura: rpcs.infuraRpcUrls.optimism,
178
+ default: 'https://mainnet.optimism.io'
179
+ },
180
+ blockExplorers: {
181
+ etherscan: etherscanBlockExplorers.optimism,
182
+ default: etherscanBlockExplorers.optimism
183
+ }
184
+ };
185
+ const optimismKovan = {
186
+ id: chainId.optimismKovan,
187
+ name: 'Optimism Kovan',
188
+ network: 'optimism-kovan',
189
+ nativeCurrency: {
190
+ name: 'Kovan Ether',
191
+ symbol: 'KOR',
192
+ decimals: 18
193
+ },
194
+ rpcUrls: {
195
+ alchemy: rpcs.alchemyRpcUrls.optimismKovan,
196
+ infura: rpcs.infuraRpcUrls.optimismKovan,
197
+ default: 'https://kovan.optimism.io'
198
+ },
199
+ blockExplorers: {
200
+ etherscan: etherscanBlockExplorers.optimismKovan,
201
+ default: etherscanBlockExplorers.optimismKovan
202
+ },
203
+ testnet: true
204
+ };
205
+ const polygon = {
206
+ id: chainId.polygon,
207
+ name: 'Polygon',
208
+ network: 'matic',
209
+ nativeCurrency: {
210
+ name: 'MATIC',
211
+ symbol: 'MATIC',
212
+ decimals: 18
213
+ },
214
+ rpcUrls: {
215
+ alchemy: rpcs.alchemyRpcUrls.polygon,
216
+ infura: rpcs.infuraRpcUrls.polygon,
217
+ default: 'https://polygon-rpc.com'
218
+ },
219
+ blockExplorers: {
220
+ etherscan: etherscanBlockExplorers.polygon,
221
+ default: etherscanBlockExplorers.polygon
222
+ }
223
+ };
224
+ const polygonMumbai = {
225
+ id: chainId.polygonMumbai,
226
+ name: 'Polygon Mumbai',
227
+ network: 'maticmum',
228
+ nativeCurrency: {
229
+ name: 'MATIC',
230
+ symbol: 'MATIC',
231
+ decimals: 18
232
+ },
233
+ rpcUrls: {
234
+ alchemy: rpcs.alchemyRpcUrls.polygonMumbai,
235
+ infura: rpcs.infuraRpcUrls.polygonMumbai,
236
+ default: 'https://matic-mumbai.chainstacklabs.com'
237
+ },
238
+ blockExplorers: {
239
+ etherscan: etherscanBlockExplorers.polygonMumbai,
240
+ default: etherscanBlockExplorers.polygonMumbai
241
+ },
242
+ testnet: true
243
+ };
244
+ const arbitrum = {
245
+ id: chainId.arbitrum,
246
+ name: 'Arbitrum',
247
+ network: 'arbitrum',
248
+ nativeCurrency: {
249
+ name: 'Ether',
250
+ symbol: 'AETH',
251
+ decimals: 18
252
+ },
253
+ rpcUrls: {
254
+ alchemy: rpcs.alchemyRpcUrls.arbitrum,
255
+ infura: rpcs.infuraRpcUrls.arbitrum,
256
+ default: 'https://arb1.arbitrum.io/rpc'
257
+ },
258
+ blockExplorers: {
259
+ arbitrum: {
260
+ name: 'Arbitrum Explorer',
261
+ url: 'https://explorer.arbitrum.io'
262
+ },
263
+ etherscan: etherscanBlockExplorers.arbitrum,
264
+ default: etherscanBlockExplorers.arbitrum
265
+ }
266
+ };
267
+ const arbitrumRinkeby = {
268
+ id: chainId.arbitrumRinkeby,
269
+ name: 'Arbitrum Rinkeby',
270
+ network: 'arbitrum-rinkeby',
271
+ nativeCurrency: {
272
+ name: 'Arbitrum Rinkeby Ether',
273
+ symbol: 'ARETH',
274
+ decimals: 18
275
+ },
276
+ rpcUrls: {
277
+ alchemy: rpcs.alchemyRpcUrls.arbitrumRinkeby,
278
+ infura: rpcs.infuraRpcUrls.arbitrumRinkeby,
279
+ default: 'https://rinkeby.arbitrum.io/rpc'
280
+ },
281
+ blockExplorers: {
282
+ arbitrum: {
283
+ name: 'Arbitrum Explorer',
284
+ url: 'https://rinkeby-explorer.arbitrum.io'
285
+ },
286
+ etherscan: etherscanBlockExplorers.arbitrumRinkeby,
287
+ default: etherscanBlockExplorers.arbitrumRinkeby
288
+ },
289
+ testnet: true
290
+ };
291
+ const localhost = {
292
+ id: chainId.localhost,
293
+ name: 'Localhost',
294
+ network: 'localhost',
295
+ rpcUrls: {
296
+ default: 'http://127.0.0.1:8545'
297
+ }
298
+ };
299
+ const hardhat = {
300
+ id: chainId.hardhat,
301
+ name: 'Hardhat',
302
+ network: 'hardhat',
303
+ rpcUrls: {
304
+ default: 'http://127.0.0.1:8545'
305
+ }
306
+ };
307
+ /**
308
+ * Common chains for convenience
309
+ * Should not contain all possible chains
310
+ */
311
+
312
+ const chain = {
313
+ mainnet,
314
+ ropsten,
315
+ rinkeby,
316
+ goerli,
317
+ kovan,
318
+ optimism,
319
+ optimismKovan,
320
+ polygon,
321
+ polygonMumbai,
322
+ arbitrum,
323
+ arbitrumRinkeby,
324
+ localhost,
325
+ hardhat
326
+ };
327
+ const allChains = Object.values(chain);
328
+ const defaultChains = [chain.mainnet, chain.ropsten, chain.rinkeby, chain.goerli, chain.kovan];
329
+ const defaultL2Chains = [chain.arbitrum, chain.arbitrumRinkeby, chain.optimism, chain.optimismKovan];
330
+
331
+ exports.allChains = allChains;
332
+ exports.arbitrum = arbitrum;
333
+ exports.arbitrumRinkeby = arbitrumRinkeby;
334
+ exports.chain = chain;
335
+ exports.chainId = chainId;
336
+ exports.defaultChains = defaultChains;
337
+ exports.defaultL2Chains = defaultL2Chains;
338
+ exports.etherscanBlockExplorers = etherscanBlockExplorers;
339
+ exports.goerli = goerli;
340
+ exports.hardhat = hardhat;
341
+ exports.kovan = kovan;
342
+ exports.localhost = localhost;
343
+ exports.mainnet = mainnet;
344
+ exports.optimism = optimism;
345
+ exports.optimismKovan = optimismKovan;
346
+ exports.polygon = polygon;
347
+ exports.polygonMumbai = polygonMumbai;
348
+ exports.rinkeby = rinkeby;
349
+ exports.ropsten = ropsten;
@@ -0,0 +1,329 @@
1
+ import { a as alchemyRpcUrls, i as infuraRpcUrls, d as defaultAlchemyId } from './rpcs-7cfbd91c.esm.js';
2
+
3
+ const etherscanBlockExplorers = {
4
+ mainnet: {
5
+ name: 'Etherscan',
6
+ url: 'https://etherscan.io'
7
+ },
8
+ ropsten: {
9
+ name: 'Etherscan',
10
+ url: 'https://ropsten.etherscan.io'
11
+ },
12
+ rinkeby: {
13
+ name: 'Etherscan',
14
+ url: 'https://rinkeby.etherscan.io'
15
+ },
16
+ goerli: {
17
+ name: 'Etherscan',
18
+ url: 'https://goerli.etherscan.io'
19
+ },
20
+ kovan: {
21
+ name: 'Etherscan',
22
+ url: 'https://kovan.etherscan.io'
23
+ },
24
+ optimism: {
25
+ name: 'Etherscan',
26
+ url: 'https://optimistic.etherscan.io'
27
+ },
28
+ optimismKovan: {
29
+ name: 'Etherscan',
30
+ url: 'https://kovan-optimistic.etherscan.io'
31
+ },
32
+ polygon: {
33
+ name: 'PolygonScan',
34
+ url: 'https://polygonscan.com'
35
+ },
36
+ polygonMumbai: {
37
+ name: 'PolygonScan',
38
+ url: 'https://mumbai.polygonscan.com'
39
+ },
40
+ arbitrum: {
41
+ name: 'Arbiscan',
42
+ url: 'https://arbiscan.io'
43
+ },
44
+ arbitrumRinkeby: {
45
+ name: 'Arbiscan',
46
+ url: 'https://testnet.arbiscan.io'
47
+ }
48
+ };
49
+
50
+ const chainId = {
51
+ mainnet: 1,
52
+ ropsten: 3,
53
+ rinkeby: 4,
54
+ goerli: 5,
55
+ kovan: 42,
56
+ optimism: 10,
57
+ optimismKovan: 69,
58
+ polygon: 137,
59
+ polygonMumbai: 80001,
60
+ arbitrum: 42161,
61
+ arbitrumRinkeby: 421611,
62
+ localhost: 1337,
63
+ hardhat: 31337
64
+ };
65
+ const mainnet = {
66
+ id: chainId.mainnet,
67
+ name: 'Ethereum',
68
+ network: 'homestead',
69
+ nativeCurrency: {
70
+ name: 'Ether',
71
+ symbol: 'ETH',
72
+ decimals: 18
73
+ },
74
+ rpcUrls: {
75
+ alchemy: alchemyRpcUrls.mainnet,
76
+ infura: infuraRpcUrls.mainnet,
77
+ default: "".concat(alchemyRpcUrls.mainnet, "/").concat(defaultAlchemyId)
78
+ },
79
+ blockExplorers: {
80
+ etherscan: etherscanBlockExplorers.mainnet,
81
+ default: etherscanBlockExplorers.mainnet
82
+ }
83
+ };
84
+ const ropsten = {
85
+ id: chainId.ropsten,
86
+ name: 'Ropsten',
87
+ network: 'ropsten',
88
+ nativeCurrency: {
89
+ name: 'Ropsten Ether',
90
+ symbol: 'ropETH',
91
+ decimals: 18
92
+ },
93
+ rpcUrls: {
94
+ alchemy: alchemyRpcUrls.ropsten,
95
+ infura: infuraRpcUrls.ropsten,
96
+ default: "".concat(alchemyRpcUrls.ropsten, "/").concat(defaultAlchemyId)
97
+ },
98
+ blockExplorers: {
99
+ etherscan: etherscanBlockExplorers.ropsten,
100
+ default: etherscanBlockExplorers.ropsten
101
+ },
102
+ testnet: true
103
+ };
104
+ const rinkeby = {
105
+ id: chainId.rinkeby,
106
+ name: 'Rinkeby',
107
+ network: 'rinkeby',
108
+ nativeCurrency: {
109
+ name: 'Rinkeby Ether',
110
+ symbol: 'rETH',
111
+ decimals: 18
112
+ },
113
+ rpcUrls: {
114
+ alchemy: alchemyRpcUrls.rinkeby,
115
+ infura: infuraRpcUrls.rinkeby,
116
+ default: "".concat(alchemyRpcUrls.rinkeby, "/").concat(defaultAlchemyId)
117
+ },
118
+ blockExplorers: {
119
+ etherscan: etherscanBlockExplorers.rinkeby,
120
+ default: etherscanBlockExplorers.rinkeby
121
+ },
122
+ testnet: true
123
+ };
124
+ const goerli = {
125
+ id: chainId.goerli,
126
+ name: 'Goerli',
127
+ network: 'goerli',
128
+ nativeCurrency: {
129
+ name: 'Goerli Ether',
130
+ symbol: 'gETH',
131
+ decimals: 18
132
+ },
133
+ rpcUrls: {
134
+ alchemy: alchemyRpcUrls.goerli,
135
+ infura: infuraRpcUrls.goerli,
136
+ default: "".concat(alchemyRpcUrls.goerli, "/").concat(defaultAlchemyId)
137
+ },
138
+ blockExplorers: {
139
+ etherscan: etherscanBlockExplorers.goerli,
140
+ default: etherscanBlockExplorers.goerli
141
+ },
142
+ testnet: true
143
+ };
144
+ const kovan = {
145
+ id: chainId.kovan,
146
+ name: 'Kovan',
147
+ network: 'kovan',
148
+ nativeCurrency: {
149
+ name: 'Kovan Ether',
150
+ symbol: 'kETH',
151
+ decimals: 18
152
+ },
153
+ rpcUrls: {
154
+ alchemy: alchemyRpcUrls.kovan,
155
+ infura: infuraRpcUrls.kovan,
156
+ default: "".concat(alchemyRpcUrls.kovan, "/").concat(defaultAlchemyId)
157
+ },
158
+ blockExplorers: {
159
+ etherscan: etherscanBlockExplorers.kovan,
160
+ default: etherscanBlockExplorers.kovan
161
+ },
162
+ testnet: true
163
+ };
164
+ const optimism = {
165
+ id: chainId.optimism,
166
+ name: 'Optimism',
167
+ network: 'optimism',
168
+ nativeCurrency: {
169
+ name: 'Ether',
170
+ symbol: 'ETH',
171
+ decimals: 18
172
+ },
173
+ rpcUrls: {
174
+ alchemy: alchemyRpcUrls.optimism,
175
+ infura: infuraRpcUrls.optimism,
176
+ default: 'https://mainnet.optimism.io'
177
+ },
178
+ blockExplorers: {
179
+ etherscan: etherscanBlockExplorers.optimism,
180
+ default: etherscanBlockExplorers.optimism
181
+ }
182
+ };
183
+ const optimismKovan = {
184
+ id: chainId.optimismKovan,
185
+ name: 'Optimism Kovan',
186
+ network: 'optimism-kovan',
187
+ nativeCurrency: {
188
+ name: 'Kovan Ether',
189
+ symbol: 'KOR',
190
+ decimals: 18
191
+ },
192
+ rpcUrls: {
193
+ alchemy: alchemyRpcUrls.optimismKovan,
194
+ infura: infuraRpcUrls.optimismKovan,
195
+ default: 'https://kovan.optimism.io'
196
+ },
197
+ blockExplorers: {
198
+ etherscan: etherscanBlockExplorers.optimismKovan,
199
+ default: etherscanBlockExplorers.optimismKovan
200
+ },
201
+ testnet: true
202
+ };
203
+ const polygon = {
204
+ id: chainId.polygon,
205
+ name: 'Polygon',
206
+ network: 'matic',
207
+ nativeCurrency: {
208
+ name: 'MATIC',
209
+ symbol: 'MATIC',
210
+ decimals: 18
211
+ },
212
+ rpcUrls: {
213
+ alchemy: alchemyRpcUrls.polygon,
214
+ infura: infuraRpcUrls.polygon,
215
+ default: 'https://polygon-rpc.com'
216
+ },
217
+ blockExplorers: {
218
+ etherscan: etherscanBlockExplorers.polygon,
219
+ default: etherscanBlockExplorers.polygon
220
+ }
221
+ };
222
+ const polygonMumbai = {
223
+ id: chainId.polygonMumbai,
224
+ name: 'Polygon Mumbai',
225
+ network: 'maticmum',
226
+ nativeCurrency: {
227
+ name: 'MATIC',
228
+ symbol: 'MATIC',
229
+ decimals: 18
230
+ },
231
+ rpcUrls: {
232
+ alchemy: alchemyRpcUrls.polygonMumbai,
233
+ infura: infuraRpcUrls.polygonMumbai,
234
+ default: 'https://matic-mumbai.chainstacklabs.com'
235
+ },
236
+ blockExplorers: {
237
+ etherscan: etherscanBlockExplorers.polygonMumbai,
238
+ default: etherscanBlockExplorers.polygonMumbai
239
+ },
240
+ testnet: true
241
+ };
242
+ const arbitrum = {
243
+ id: chainId.arbitrum,
244
+ name: 'Arbitrum',
245
+ network: 'arbitrum',
246
+ nativeCurrency: {
247
+ name: 'Ether',
248
+ symbol: 'AETH',
249
+ decimals: 18
250
+ },
251
+ rpcUrls: {
252
+ alchemy: alchemyRpcUrls.arbitrum,
253
+ infura: infuraRpcUrls.arbitrum,
254
+ default: 'https://arb1.arbitrum.io/rpc'
255
+ },
256
+ blockExplorers: {
257
+ arbitrum: {
258
+ name: 'Arbitrum Explorer',
259
+ url: 'https://explorer.arbitrum.io'
260
+ },
261
+ etherscan: etherscanBlockExplorers.arbitrum,
262
+ default: etherscanBlockExplorers.arbitrum
263
+ }
264
+ };
265
+ const arbitrumRinkeby = {
266
+ id: chainId.arbitrumRinkeby,
267
+ name: 'Arbitrum Rinkeby',
268
+ network: 'arbitrum-rinkeby',
269
+ nativeCurrency: {
270
+ name: 'Arbitrum Rinkeby Ether',
271
+ symbol: 'ARETH',
272
+ decimals: 18
273
+ },
274
+ rpcUrls: {
275
+ alchemy: alchemyRpcUrls.arbitrumRinkeby,
276
+ infura: infuraRpcUrls.arbitrumRinkeby,
277
+ default: 'https://rinkeby.arbitrum.io/rpc'
278
+ },
279
+ blockExplorers: {
280
+ arbitrum: {
281
+ name: 'Arbitrum Explorer',
282
+ url: 'https://rinkeby-explorer.arbitrum.io'
283
+ },
284
+ etherscan: etherscanBlockExplorers.arbitrumRinkeby,
285
+ default: etherscanBlockExplorers.arbitrumRinkeby
286
+ },
287
+ testnet: true
288
+ };
289
+ const localhost = {
290
+ id: chainId.localhost,
291
+ name: 'Localhost',
292
+ network: 'localhost',
293
+ rpcUrls: {
294
+ default: 'http://127.0.0.1:8545'
295
+ }
296
+ };
297
+ const hardhat = {
298
+ id: chainId.hardhat,
299
+ name: 'Hardhat',
300
+ network: 'hardhat',
301
+ rpcUrls: {
302
+ default: 'http://127.0.0.1:8545'
303
+ }
304
+ };
305
+ /**
306
+ * Common chains for convenience
307
+ * Should not contain all possible chains
308
+ */
309
+
310
+ const chain = {
311
+ mainnet,
312
+ ropsten,
313
+ rinkeby,
314
+ goerli,
315
+ kovan,
316
+ optimism,
317
+ optimismKovan,
318
+ polygon,
319
+ polygonMumbai,
320
+ arbitrum,
321
+ arbitrumRinkeby,
322
+ localhost,
323
+ hardhat
324
+ };
325
+ const allChains = Object.values(chain);
326
+ const defaultChains = [chain.mainnet, chain.ropsten, chain.rinkeby, chain.goerli, chain.kovan];
327
+ const defaultL2Chains = [chain.arbitrum, chain.arbitrumRinkeby, chain.optimism, chain.optimismKovan];
328
+
329
+ export { allChains as a, chainId as b, chain as c, defaultChains as d, defaultL2Chains as e, etherscanBlockExplorers as f, arbitrum as g, arbitrumRinkeby as h, goerli as i, hardhat as j, kovan as k, localhost as l, mainnet as m, optimismKovan as n, optimism as o, polygon as p, polygonMumbai as q, rinkeby as r, ropsten as s };