Skip to content

Commit cfef13d

Browse files
committed
condensend network names to a single table
1 parent fe9b191 commit cfef13d

2 files changed

Lines changed: 65 additions & 137 deletions

File tree

packages/network/networkNames.md

Lines changed: 62 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -6,128 +6,65 @@ A name slug is the name, sometimes simplified, and in kebab-case. This maximizes
66

77
You can use this file as a reference to look up the correct network name slug a network's full name or its chain ID.
88

9-
| Chain ID | Name Slug |
10-
| --- | --- |
11-
| 1 | mainnet |
12-
| 3 | ropsten |
13-
| 4 | rinkeby |
14-
| 5 | goerli |
15-
| 10 | optimism |
16-
| 40 | telos |
17-
| 41 | telos-testnet |
18-
| 42 | kovan |
19-
| 56 | bsc |
20-
| 69 | optimism-kovan |
21-
| 97 | bsc-testnet |
22-
| 100 | gnosis |
23-
| 137 | polygon |
24-
| 273 | xr1 |
25-
| 420 | optimism-goerli |
26-
| 1101 | polygon-zkevm |
27-
| 1284 | moonbeam |
28-
| 1287 | moonbase-alpha |
29-
| 1868 | soneium |
30-
| 1946 | soneium-minato |
31-
| 1993 | b3-sepolia |
32-
| 2730 | xr-sepolia |
33-
| 6283 | laos |
34-
| 7668 | rootnet |
35-
| 7672 | rootnet-porcini |
36-
| 8333 | b3 |
37-
| 8453 | base |
38-
| 10143 | monad-testnet |
39-
| 13371 | immutable-zkevm |
40-
| 13473 | immutable-zkevm-testnet |
41-
| 19011 | homeverse |
42-
| 31337 | hardhat |
43-
| 31338 | hardhat2 |
44-
| 33111 | apechain-testnet |
45-
| 33139 | apechain |
46-
| 40875 | homeverse-testnet |
47-
| 42161 | arbitrum |
48-
| 42170 | arbitrum-nova |
49-
| 42793 | etherlink |
50-
| 43113 | avalanche-testnet |
51-
| 43114 | avalanche |
52-
| 50312 | somnia-testnet |
53-
| 62850 | laos-sigma-testnet |
54-
| 80001 | mumbai |
55-
| 80002 | amoy |
56-
| 81457 | blast |
57-
| 84531 | base-goerli |
58-
| 84532 | base-sepolia |
59-
| 94984 | borne-testnet |
60-
| 128123 | etherlink-testnet |
61-
| 421613 | arbitrum-goerli |
62-
| 421614 | arbitrum-sepolia |
63-
| 660279 | xai |
64-
| 11155111 | sepolia |
65-
| 11155420 | optimism-sepolia |
66-
| 21000000 | toy-testnet |
67-
| 37084624 | skale-nebula-testnet |
68-
| 168587773 | blast-sepolia |
69-
| 1482601649 | skale-nebula |
70-
| 37714555429 | xai-sepolia |
71-
72-
| Chain Name | Name Slug |
73-
| --- | --- |
74-
| APE Chain | apechain |
75-
| APE Chain Testnet | apechain-testnet |
76-
| Arbitrum Goerli | arbitrum-goerli |
77-
| Arbitrum Nova | arbitrum-nova |
78-
| Arbitrum One | arbitrum |
79-
| Arbitrum Sepolia | arbitrum-sepolia |
80-
| Avalanche | avalanche |
81-
| Avalanche Testnet | avalanche-testnet |
82-
| B3 | b3 |
83-
| B3 Sepolia | b3-sepolia |
84-
| Base (Coinbase) | base |
85-
| Base Goerli | base-goerli |
86-
| Base Sepolia | base-sepolia |
87-
| Blast | blast |
88-
| Blast Sepolia | blast-sepolia |
89-
| BNB Smart Chain | bsc |
90-
| BNB Smart Chain Testnet | bsc-testnet |
91-
| Borne Testnet | borne-testnet |
92-
| Ethereum | mainnet |
93-
| ETHERLINK | etherlink |
94-
| ETHERLINK Testnet | etherlink-testnet |
95-
| Gnosis Chain | gnosis |
96-
| Goerli | goerli |
97-
| Hardhat (local testnet) | hardhat |
98-
| Hardhat (local testnet) | hardhat2 |
99-
| Immutable zkEVM | immutable-zkevm |
100-
| Immutable zkEVM Testnet | immutable-zkevm-testnet |
101-
| Kovan | kovan |
102-
| LAOS | laos |
103-
| LAOS Sigma Testnet | laos-sigma-testnet |
104-
| MONAD Testnet | monad-testnet |
105-
| Moonbase Alpha | moonbase-alpha |
106-
| Moonbeam | moonbeam |
107-
| Oasys Homeverse | homeverse |
108-
| Oasys Homeverse Testnet | homeverse-testnet |
109-
| Optimism | optimism |
110-
| Optimism Goerli | optimism-goerli |
111-
| Optimism Kovan | optimism-kovan |
112-
| Optimism Sepolia | optimism-sepolia |
113-
| Polygon | polygon |
114-
| Polygon Amoy | amoy |
115-
| Polygon Mumbai | mumbai |
116-
| Polygon zkEVM | polygon-zkevm |
117-
| Rinkeby | rinkeby |
118-
| Ropsten | ropsten |
119-
| Sepolia | sepolia |
120-
| SKALE Nebula Gaming Hub | skale-nebula |
121-
| SKALE Nebula Gaming Hub Testnet | skale-nebula-testnet |
122-
| SOMNIA Testnet | somnia-testnet |
123-
| Soneium | soneium |
124-
| Soneium Minato (Testnet) | soneium-minato |
125-
| Telos | telos |
126-
| Telos Testnet | telos-testnet |
127-
| The Root Network | rootnet |
128-
| The Root Network Porcini Testnet | rootnet-porcini |
129-
| TOY (Testnet) | toy-testnet |
130-
| Xai | xai |
131-
| Xai Sepolia | xai-sepolia |
132-
| XR Sepolia | xr-sepolia |
133-
| XR1 | xr1 |
9+
| Network Name | Chain ID | Name Slug |
10+
| --- | --- | --- |
11+
| Ethereum | 1 | mainnet |
12+
| Ropsten | 3 | ropsten |
13+
| Rinkeby | 4 | rinkeby |
14+
| Goerli | 5 | goerli |
15+
| Optimism | 10 | optimism |
16+
| Telos | 40 | telos |
17+
| Telos Testnet | 41 | telos-testnet |
18+
| Kovan | 42 | kovan |
19+
| BNB Smart Chain | 56 | bsc |
20+
| Optimism Kovan | 69 | optimism-kovan |
21+
| BNB Smart Chain Testnet | 97 | bsc-testnet |
22+
| Gnosis Chain | 100 | gnosis |
23+
| Polygon | 137 | polygon |
24+
| XR1 | 273 | xr1 |
25+
| Optimism Goerli | 420 | optimism-goerli |
26+
| Polygon zkEVM | 1101 | polygon-zkevm |
27+
| Moonbeam | 1284 | moonbeam |
28+
| Moonbase Alpha | 1287 | moonbase-alpha |
29+
| Soneium | 1868 | soneium |
30+
| Soneium Minato (Testnet) | 1946 | soneium-minato |
31+
| B3 Sepolia | 1993 | b3-sepolia |
32+
| XR Sepolia | 2730 | xr-sepolia |
33+
| LAOS | 6283 | laos |
34+
| The Root Network | 7668 | rootnet |
35+
| The Root Network Porcini Testnet | 7672 | rootnet-porcini |
36+
| B3 | 8333 | b3 |
37+
| Base (Coinbase) | 8453 | base |
38+
| MONAD Testnet | 10143 | monad-testnet |
39+
| Immutable zkEVM | 13371 | immutable-zkevm |
40+
| Immutable zkEVM Testnet | 13473 | immutable-zkevm-testnet |
41+
| Oasys Homeverse | 19011 | homeverse |
42+
| Hardhat (local testnet) | 31337 | hardhat |
43+
| Hardhat (local testnet) | 31338 | hardhat2 |
44+
| APE Chain Testnet | 33111 | apechain-testnet |
45+
| APE Chain | 33139 | apechain |
46+
| Oasys Homeverse Testnet | 40875 | homeverse-testnet |
47+
| Arbitrum One | 42161 | arbitrum |
48+
| Arbitrum Nova | 42170 | arbitrum-nova |
49+
| ETHERLINK | 42793 | etherlink |
50+
| Avalanche Testnet | 43113 | avalanche-testnet |
51+
| Avalanche | 43114 | avalanche |
52+
| SOMNIA Testnet | 50312 | somnia-testnet |
53+
| LAOS Sigma Testnet | 62850 | laos-sigma-testnet |
54+
| Polygon Mumbai | 80001 | mumbai |
55+
| Polygon Amoy | 80002 | amoy |
56+
| Blast | 81457 | blast |
57+
| Base Goerli | 84531 | base-goerli |
58+
| Base Sepolia | 84532 | base-sepolia |
59+
| Borne Testnet | 94984 | borne-testnet |
60+
| ETHERLINK Testnet | 128123 | etherlink-testnet |
61+
| Arbitrum Goerli | 421613 | arbitrum-goerli |
62+
| Arbitrum Sepolia | 421614 | arbitrum-sepolia |
63+
| Xai | 660279 | xai |
64+
| Sepolia | 11155111 | sepolia |
65+
| Optimism Sepolia | 11155420 | optimism-sepolia |
66+
| TOY (Testnet) | 21000000 | toy-testnet |
67+
| SKALE Nebula Gaming Hub Testnet | 37084624 | skale-nebula-testnet |
68+
| Blast Sepolia | 168587773 | blast-sepolia |
69+
| SKALE Nebula Gaming Hub | 1482601649 | skale-nebula |
70+
| Xai Sepolia | 37714555429 | xai-sepolia |

scripts/update-network-names-doc.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,10 @@ const networkObjs = Object.values(networks) as Array<{
1515

1616
networkObjs.sort((a, b) => a.chainId - b.chainId);
1717
const lines:string[] = [];
18-
lines.push(`| Chain ID | Name Slug |`);
19-
lines.push(`| --- | --- |`);
18+
lines.push(`| Network Name | Chain ID | Name Slug |`);
19+
lines.push(`| --- | --- | --- |`);
2020
for (const n of networkObjs) {
21-
lines.push(`| ${n.chainId} | ${n.name} |`);
22-
}
23-
24-
lines.push("");
25-
26-
networkObjs.sort((a, b) => a.title?.localeCompare(b.title || "") || 0);
27-
lines.push(`| Chain Name | Name Slug |`);
28-
lines.push(`| --- | --- |`);
29-
for (const n of networkObjs) {
30-
lines.push(`| ${n.title} | ${n.name} |`);
21+
lines.push(`| ${n.title} | ${n.chainId} | ${n.name} |`);
3122
}
3223

3324
const doc = template.replace("<!-- tables start here -->", lines.join("\n"));

0 commit comments

Comments
 (0)