Skip to content

Commit 8037de7

Browse files
patcitoDhaiwat10
andauthored
Add some missing L2s to constants (#286)
* add missing L2s to constant optimism, arbitrum and metis * Fix typo * Add changeset Co-authored-by: Dhaiwat Pandya <[email protected]>
1 parent 851868c commit 8037de7

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/violet-llamas-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web3-ui/hooks': minor
3+
---
4+
5+
Arbitrum, Optimism and Metis have been to the list of networks available in the NETWORKS mapping export

packages/hooks/src/constants.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ export const NETWORKS = {
33
ropsten: 3,
44
rinkeby: 4,
55
goerli: 5,
6+
optimism: 10,
67
kovan: 42,
78
BSC: 56,
9+
optimismKovan: 69,
810
BSCTestnet: 97,
911
xdai: 100,
1012
polygon: 137,
1113
theta: 361,
1214
thetaTestnet: 365,
15+
metisStardust: 588,
16+
metisAndromeda: 1088,
1317
moonriver: 1285,
18+
arbitrumOne: 42161,
19+
arbitrumRinkeby: 421611,
1420
mumbai: 80001,
1521
harmony: 1666600000,
1622
palm: 11297108109,
@@ -27,14 +33,20 @@ export const CHAIN_ID_TO_NETWORK = {
2733
3: 'ropsten',
2834
4: 'rinkeby',
2935
5: 'goerli',
36+
10: 'optimism',
3037
42: 'kovan',
3138
56: 'BSC',
39+
69: 'optimismKovan',
3240
97: 'BSCTestnet',
3341
100: 'xdai',
3442
137: 'polygon',
3543
361: 'theta',
3644
365: 'thetaTestnet',
45+
588: 'metisStardust',
46+
1088: 'metisAndromeda',
3747
1285: 'moonriver',
48+
42161: 'arbitrumOne',
49+
421611: 'arbitrumRinkeby',
3850
80001: 'mumbai',
3951
1666600000: 'harmony',
4052
11297108109: 'palm',

0 commit comments

Comments
 (0)