Skip to content

Commit ba3c106

Browse files
committed
Remove deprecated chains
1 parent 9a9bc8b commit ba3c106

File tree

1 file changed

+0
-195
lines changed

1 file changed

+0
-195
lines changed

packages/wallet/primitives/src/network.ts

Lines changed: 0 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@ export interface Network {
2828
export const ChainId = {
2929
// Ethereum
3030
MAINNET: 1n,
31-
ROPSTEN: 3n, // network is deprecated
32-
RINKEBY: 4n, // network is deprecated
33-
GOERLI: 5n, // network is deprecated
34-
KOVAN: 42n, // network is deprecated
3531
SEPOLIA: 11155111n,
3632

3733
// Polygon
3834
POLYGON: 137n,
39-
POLYGON_MUMBAI: 80001n, // network is deprecated
4035
POLYGON_ZKEVM: 1101n,
4136
POLYGON_AMOY: 80002n,
4237

@@ -46,13 +41,10 @@ export const ChainId = {
4641

4742
// Optimism
4843
OPTIMISM: 10n,
49-
OPTIMISM_KOVAN: 69n, // network is deprecated
50-
OPTIMISM_GOERLI: 420n, // network is deprecated
5144
OPTIMISM_SEPOLIA: 11155420n,
5245

5346
// Arbitrum One
5447
ARBITRUM: 42161n,
55-
ARBITRUM_GOERLI: 421613n, // network is deprecated
5648
ARBITRUM_SEPOLIA: 421614n,
5749

5850
// Arbitrum Nova
@@ -67,7 +59,6 @@ export const ChainId = {
6759

6860
// BASE
6961
BASE: 8453n,
70-
BASE_GOERLI: 84531n, // network is deprecated
7162
BASE_SEPOLIA: 84532n,
7263

7364
// HOMEVERSE
@@ -94,9 +85,6 @@ export const ChainId = {
9485
BLAST: 81457n,
9586
BLAST_SEPOLIA: 168587773n,
9687

97-
// Borne
98-
BORNE_TESTNET: 94984n,
99-
10088
// SKALE Nebula
10189
SKALE_NEBULA: 1482601649n,
10290
SKALE_NEBULA_TESTNET: 37084624n,
@@ -164,81 +152,6 @@ export const ALL: Network[] = [
164152
},
165153
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
166154
},
167-
{
168-
chainId: ChainId.ROPSTEN,
169-
type: NetworkType.TESTNET,
170-
name: 'ropsten',
171-
title: 'Ropsten',
172-
rpcUrl: getRpcUrl('ropsten'),
173-
logoUrl: getLogoUrl(ChainId.ROPSTEN),
174-
blockExplorer: {
175-
name: 'Etherscan (Ropsten)',
176-
url: 'https://ropsten.etherscan.io/',
177-
},
178-
nativeCurrency: {
179-
symbol: 'roETH',
180-
name: 'Ropsten Ether',
181-
decimals: 18,
182-
},
183-
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
184-
deprecated: true,
185-
},
186-
{
187-
chainId: ChainId.RINKEBY,
188-
type: NetworkType.TESTNET,
189-
name: 'rinkeby',
190-
title: 'Rinkeby',
191-
rpcUrl: getRpcUrl('rinkeby'),
192-
logoUrl: getLogoUrl(ChainId.RINKEBY),
193-
blockExplorer: {
194-
name: 'Etherscan (Rinkeby)',
195-
url: 'https://rinkeby.etherscan.io/',
196-
},
197-
nativeCurrency: {
198-
symbol: 'rETH',
199-
name: 'Rinkeby Ether',
200-
decimals: 18,
201-
},
202-
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
203-
deprecated: true,
204-
},
205-
{
206-
chainId: ChainId.GOERLI,
207-
type: NetworkType.TESTNET,
208-
name: 'goerli',
209-
title: 'Goerli',
210-
rpcUrl: getRpcUrl('goerli'),
211-
logoUrl: getLogoUrl(ChainId.GOERLI),
212-
blockExplorer: {
213-
name: 'Etherscan (Goerli)',
214-
url: 'https://goerli.etherscan.io/',
215-
},
216-
nativeCurrency: {
217-
symbol: 'gETH',
218-
name: 'Goerli Ether',
219-
decimals: 18,
220-
},
221-
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
222-
deprecated: true,
223-
},
224-
{
225-
chainId: ChainId.KOVAN,
226-
type: NetworkType.TESTNET,
227-
name: 'kovan',
228-
title: 'Kovan',
229-
rpcUrl: getRpcUrl('kovan'),
230-
logoUrl: getLogoUrl(ChainId.KOVAN),
231-
blockExplorer: {
232-
name: 'Etherscan (Kovan)',
233-
url: 'https://kovan.etherscan.io/',
234-
},
235-
nativeCurrency: {
236-
symbol: 'kETH',
237-
name: 'Kovan Ether',
238-
decimals: 18,
239-
},
240-
deprecated: true,
241-
},
242155
{
243156
chainId: ChainId.SEPOLIA,
244157
type: NetworkType.TESTNET,
@@ -273,24 +186,6 @@ export const ALL: Network[] = [
273186
decimals: 18,
274187
},
275188
},
276-
{
277-
chainId: ChainId.POLYGON_MUMBAI,
278-
type: NetworkType.TESTNET,
279-
name: 'mumbai',
280-
title: 'Polygon Mumbai',
281-
rpcUrl: getRpcUrl('mumbai'),
282-
logoUrl: getLogoUrl(ChainId.POLYGON_MUMBAI),
283-
blockExplorer: {
284-
name: 'Polygonscan (Mumbai)',
285-
url: 'https://mumbai.polygonscan.com/',
286-
},
287-
nativeCurrency: {
288-
symbol: 'mMATIC',
289-
name: 'Mumbai Polygon',
290-
decimals: 18,
291-
},
292-
deprecated: true,
293-
},
294189
{
295190
chainId: ChainId.POLYGON_AMOY,
296191
type: NetworkType.TESTNET,
@@ -376,42 +271,6 @@ export const ALL: Network[] = [
376271
decimals: 18,
377272
},
378273
},
379-
{
380-
chainId: ChainId.OPTIMISM_KOVAN,
381-
type: NetworkType.TESTNET,
382-
name: 'optimism-kovan',
383-
title: 'Optimism Kovan',
384-
rpcUrl: getRpcUrl('optimism-kovan'),
385-
logoUrl: getLogoUrl(ChainId.OPTIMISM_KOVAN),
386-
blockExplorer: {
387-
name: 'Etherscan (Optimism Kovan)',
388-
url: 'https://kovan-optimistic.etherscan.io/',
389-
},
390-
nativeCurrency: {
391-
symbol: 'kETH',
392-
name: 'Kovan Ether',
393-
decimals: 18,
394-
},
395-
deprecated: true,
396-
},
397-
{
398-
chainId: ChainId.OPTIMISM_GOERLI,
399-
type: NetworkType.TESTNET,
400-
name: 'optimism-goerli',
401-
title: 'Optimism Goerli',
402-
rpcUrl: getRpcUrl('optimism-goerli'),
403-
logoUrl: getLogoUrl(ChainId.OPTIMISM_GOERLI),
404-
blockExplorer: {
405-
name: 'Etherscan (Optimism Goerli)',
406-
url: 'https://goerli-optimistic.etherscan.io/',
407-
},
408-
nativeCurrency: {
409-
symbol: 'gETH',
410-
name: 'Goerli Ether',
411-
decimals: 18,
412-
},
413-
deprecated: true,
414-
},
415274
{
416275
chainId: ChainId.OPTIMISM_SEPOLIA,
417276
type: NetworkType.TESTNET,
@@ -446,24 +305,6 @@ export const ALL: Network[] = [
446305
decimals: 18,
447306
},
448307
},
449-
{
450-
chainId: ChainId.ARBITRUM_GOERLI,
451-
type: NetworkType.TESTNET,
452-
name: 'arbitrum-goerli',
453-
title: 'Arbitrum Goerli',
454-
rpcUrl: getRpcUrl('arbitrum-goerli'),
455-
logoUrl: getLogoUrl(ChainId.ARBITRUM_GOERLI),
456-
blockExplorer: {
457-
name: 'Arbiscan (Goerli Testnet)',
458-
url: 'https://testnet.arbiscan.io/',
459-
},
460-
nativeCurrency: {
461-
symbol: 'gETH',
462-
name: 'Goerli Ether',
463-
decimals: 18,
464-
},
465-
deprecated: true,
466-
},
467308
{
468309
chainId: ChainId.ARBITRUM_SEPOLIA,
469310
type: NetworkType.TESTNET,
@@ -566,24 +407,6 @@ export const ALL: Network[] = [
566407
decimals: 18,
567408
},
568409
},
569-
{
570-
chainId: ChainId.BASE_GOERLI,
571-
type: NetworkType.TESTNET,
572-
name: 'base-goerli',
573-
title: 'Base Goerli',
574-
rpcUrl: getRpcUrl('base-goerli'),
575-
logoUrl: getLogoUrl(ChainId.BASE_GOERLI),
576-
blockExplorer: {
577-
name: 'Base Goerli Explorer',
578-
url: 'https://goerli.basescan.org/',
579-
},
580-
nativeCurrency: {
581-
symbol: 'gETH',
582-
name: 'Goerli Ether',
583-
decimals: 18,
584-
},
585-
deprecated: true,
586-
},
587410
{
588411
chainId: ChainId.BASE_SEPOLIA,
589412
type: NetworkType.TESTNET,
@@ -805,24 +628,6 @@ export const ALL: Network[] = [
805628
decimals: 18,
806629
},
807630
},
808-
{
809-
chainId: ChainId.BORNE_TESTNET,
810-
type: NetworkType.TESTNET,
811-
name: 'borne-testnet',
812-
title: 'Borne Testnet',
813-
rpcUrl: getRpcUrl('borne-testnet'),
814-
logoUrl: getLogoUrl(ChainId.BORNE_TESTNET),
815-
blockExplorer: {
816-
name: 'Borne Testnet Explorer',
817-
url: 'https://subnets-test.avax.network/bornegfdn',
818-
},
819-
nativeCurrency: {
820-
symbol: 'BORNE',
821-
name: 'BORNE',
822-
decimals: 18,
823-
},
824-
deprecated: true,
825-
},
826631
{
827632
chainId: ChainId.SKALE_NEBULA,
828633
type: NetworkType.MAINNET,

0 commit comments

Comments
 (0)