Use records as applicable
This commit is contained in:
parent
7b69c62719
commit
8a87eee996
@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint sort-keys: ["error", "asc", { caseSensitive: false }] */
|
||||
|
||||
// The mapping here is done on the actual chain name (system.chain RPC) or
|
||||
// the actual RPC node it is corrected to (system.name RPC)
|
||||
|
||||
@ -144,126 +146,125 @@ export { emptyColor };
|
||||
|
||||
// Alphabetical overrides based on the actual matched chain name
|
||||
// NOTE: This is as retrieved via the system.chain RPC
|
||||
export const chainColors: Record<string, string> = [
|
||||
['acala mandala pc1', chainRoccoAcala],
|
||||
['acala mandala pc2', chainRoccoAcala],
|
||||
['Apron PC1', chainApron],
|
||||
['Ares PC1', chainRoccoAres],
|
||||
['Bifrost PC1', chainRoccoBifrost],
|
||||
['bifrost', chainRoccoBifrost],
|
||||
['Bit.Country Tewai Chain', chainBitCountry],
|
||||
['Beast Developer', chainBeastEave],
|
||||
['ChainX', chainChainx],
|
||||
['Clover', chainClover],
|
||||
['crust maxwell', chainCrust],
|
||||
['Crust PC1', chainCrust],
|
||||
['darwinia cc1', chainDarwinia],
|
||||
['Darwinia Crab', chainCrab],
|
||||
['Darwinia Crab Redirect', chainCrab],
|
||||
['Darwinia PC2', chainRoccoDarwinia],
|
||||
['DataHighway', chainRoccoDataHighway],
|
||||
['DOTMog.com NET', chainDotMog],
|
||||
['Steam PC', chainRococoEave],
|
||||
['Encointer Canary', nodeEncointerNotee],
|
||||
['Encointer PC1', nodeEncointerNotee],
|
||||
['Equilibrium', nodeEquilibrium],
|
||||
['EquilibriumTestnet', nodeGenshiro],
|
||||
['Galital', chainGalital],
|
||||
['Galois', chainGalois],
|
||||
['GamePower Network', chainGamePower],
|
||||
['Halongbay PC1', chainPolkaFoundry],
|
||||
['hanonycash', chainHanonycash],
|
||||
['HydraDX Hydrate', chainHydrate],
|
||||
['HydraDX Snakenet', chainSnakenet],
|
||||
['HydraDX Snakenet Gen2', chainSnakenet],
|
||||
['HydraDX Snakenet Gen3', chainSnakenet],
|
||||
['Idavoll', chainIdavoll],
|
||||
['IntegriTEE Network', chainIntegritee],
|
||||
['IntegriTEE PC1', chainIntegritee],
|
||||
['IpseTestnet', chainIpse],
|
||||
['Jupiter A1', chainJupiter],
|
||||
['Jupiter PC1', chainJupiter],
|
||||
['Karura', chainKarura],
|
||||
['KILT', chainKilt],
|
||||
['KILT Local', chainKilt],
|
||||
['KILT Peregrine Testnet', chainKilt],
|
||||
['KILT Testnet', chainKilt],
|
||||
['Kylin Testnet', chainKylin],
|
||||
['Khala', chainKhala],
|
||||
['Konomi', chainKonomi],
|
||||
['Kulupu', chainKulupu],
|
||||
['Kusama CC1', chainKusama],
|
||||
['Kusama CC2', chainKusama],
|
||||
['Kusama CC3', chainKusama],
|
||||
['Kusama', chainKusama],
|
||||
['Kylin Testnet', chainKylin],
|
||||
['KLUGDOSSIER.NET', chainKlug],
|
||||
['laminar turbulence pc1', chainRococoLaminar],
|
||||
['Litentry', chainLitentry],
|
||||
['Manta Testnet', chainManta],
|
||||
['MantaChain PC1', chainManta],
|
||||
['MathChain PC1', chainGalois],
|
||||
['Moonbase Alpha', nodeMoonbeam],
|
||||
['Moonbase Stage', nodeMoonbeam],
|
||||
['Moonbase Development Testnet', nodeMoonbeam],
|
||||
['Moonriver', nodeMoonriver],
|
||||
['Moonrock', chainMoonrock],
|
||||
['Moonshadow', nodeMoonbeam],
|
||||
['mybank.network Testnet', chainMybank],
|
||||
['NFTMart Testnet', chainNFTMart],
|
||||
['NFTMart Staging', chainNFTMart],
|
||||
['OAK Testnet', chainOakTestnet],
|
||||
['OriginTrail Parachain', nodeOriginTrail],
|
||||
['Pangolin', chainPangolin],
|
||||
['Parami PC2', chainParami],
|
||||
['Phala PC1', chainPhala],
|
||||
['Phala PoC 4', chainPhala],
|
||||
['PHOENIX', chainPhoenix],
|
||||
['Plasm', chainPlasm],
|
||||
['Plasm PC2', chainPlasm],
|
||||
['PolkaBTC', chainPolkabtc],
|
||||
['PolkaBTC Staging', chainPolkabtc],
|
||||
['Polkadex Testnet', chainPolkadex],
|
||||
['Polkadot CC1', chainPolkadot],
|
||||
['Polkadot', chainPolkadot],
|
||||
['PolkaSmith', chainPolkaSmith],
|
||||
['Pontem Testnet', chainPontem],
|
||||
['Prism Testnet', chainPrism],
|
||||
['Prism PC1', chainPrism],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Rococo', chainRocco],
|
||||
['RioChain CC-1', chainRiochain],
|
||||
['Riochain Staging', chainRiochain],
|
||||
['Sakura', chainSakura],
|
||||
['Shadow', chainShadow],
|
||||
['sherpax', chainChainx],
|
||||
['Shiden', chainShiden],
|
||||
['Shiden Shell', chainShiden],
|
||||
['Statemine', specStatemine],
|
||||
['Statemine Test', specStatemine],
|
||||
['Statemint', specStatemint],
|
||||
['Statemint Test', specStatemint],
|
||||
['SubDAO PC1', chainSubDAO],
|
||||
['Subsocial PC1', chainSubsocial],
|
||||
['Tick', chainRoccoTick],
|
||||
['Track', chainRoccoTrack],
|
||||
['Trick', chainRoccoTrick],
|
||||
['TrustBase PC1', chainTrustBase],
|
||||
['uni arts staging network', chainUniarts],
|
||||
['UniArts Mainnet', chainUniarts],
|
||||
['Unique Node', chainUnique],
|
||||
['UNIT', chainUnitv],
|
||||
['VLN PC', chainVln],
|
||||
['Web3games ', chainWeb3games],
|
||||
['Westend', chainWestend],
|
||||
['Westmint', specWestmint],
|
||||
['Westmint Test', specWestmint],
|
||||
['Westlake', chainWestlake],
|
||||
['Whala', chainWhala],
|
||||
['WILT', chainKilt],
|
||||
['Zenlink PC1', chainZenlink],
|
||||
['ZERO.IO', chainZero]
|
||||
].reduce((colors, [chain, color]): Record<string, string> => ({
|
||||
export const chainColors = Object.entries({
|
||||
'acala mandala pc1': chainRoccoAcala,
|
||||
'acala mandala pc2': chainRoccoAcala,
|
||||
'Apron PC1': chainApron,
|
||||
'Ares PC1': chainRoccoAres,
|
||||
'Beast Developer': chainBeastEave,
|
||||
bifrost: chainRoccoBifrost,
|
||||
'Bifrost PC1': chainRoccoBifrost,
|
||||
'Bit.Country Tewai Chain': chainBitCountry,
|
||||
ChainX: chainChainx,
|
||||
Clover: chainClover,
|
||||
'crust maxwell': chainCrust,
|
||||
'Crust PC1': chainCrust,
|
||||
'darwinia cc1': chainDarwinia,
|
||||
'Darwinia Crab': chainCrab,
|
||||
'Darwinia Crab Redirect': chainCrab,
|
||||
'Darwinia PC2': chainRoccoDarwinia,
|
||||
DataHighway: chainRoccoDataHighway,
|
||||
'DOTMog.com NET': chainDotMog,
|
||||
'Encointer Canary': nodeEncointerNotee,
|
||||
'Encointer PC1': nodeEncointerNotee,
|
||||
Equilibrium: nodeEquilibrium,
|
||||
EquilibriumTestnet: nodeGenshiro,
|
||||
Galital: chainGalital,
|
||||
Galois: chainGalois,
|
||||
'GamePower Network': chainGamePower,
|
||||
'Halongbay PC1': chainPolkaFoundry,
|
||||
hanonycash: chainHanonycash,
|
||||
'HydraDX Hydrate': chainHydrate,
|
||||
'HydraDX Snakenet': chainSnakenet,
|
||||
'HydraDX Snakenet Gen2': chainSnakenet,
|
||||
'HydraDX Snakenet Gen3': chainSnakenet,
|
||||
Idavoll: chainIdavoll,
|
||||
'IntegriTEE Network': chainIntegritee,
|
||||
'IntegriTEE PC1': chainIntegritee,
|
||||
IpseTestnet: chainIpse,
|
||||
'Jupiter A1': chainJupiter,
|
||||
'Jupiter PC1': chainJupiter,
|
||||
Karura: chainKarura,
|
||||
Khala: chainKhala,
|
||||
KILT: chainKilt,
|
||||
'KILT Local': chainKilt,
|
||||
'KILT Peregrine Testnet': chainKilt,
|
||||
'KILT Testnet': chainKilt,
|
||||
'KLUGDOSSIER.NET': chainKlug,
|
||||
Konomi: chainKonomi,
|
||||
Kulupu: chainKulupu,
|
||||
Kusama: chainKusama,
|
||||
'Kusama CC1': chainKusama,
|
||||
'Kusama CC2': chainKusama,
|
||||
'Kusama CC3': chainKusama,
|
||||
'Kylin Testnet': chainKylin,
|
||||
'laminar turbulence pc1': chainRococoLaminar,
|
||||
Litentry: chainLitentry,
|
||||
'Manta Testnet': chainManta,
|
||||
'MantaChain PC1': chainManta,
|
||||
'MathChain PC1': chainGalois,
|
||||
'Moonbase Alpha': nodeMoonbeam,
|
||||
'Moonbase Development Testnet': nodeMoonbeam,
|
||||
'Moonbase Stage': nodeMoonbeam,
|
||||
Moonriver: nodeMoonriver,
|
||||
Moonrock: chainMoonrock,
|
||||
Moonshadow: nodeMoonbeam,
|
||||
'mybank.network Testnet': chainMybank,
|
||||
'NFTMart Staging': chainNFTMart,
|
||||
'NFTMart Testnet': chainNFTMart,
|
||||
'OAK Testnet': chainOakTestnet,
|
||||
'OriginTrail Parachain': nodeOriginTrail,
|
||||
Pangolin: chainPangolin,
|
||||
'Parami PC2': chainParami,
|
||||
'Phala PC1': chainPhala,
|
||||
'Phala PoC 4': chainPhala,
|
||||
PHOENIX: chainPhoenix,
|
||||
Plasm: chainPlasm,
|
||||
'Plasm PC2': chainPlasm,
|
||||
PolkaBTC: chainPolkabtc,
|
||||
'PolkaBTC Staging': chainPolkabtc,
|
||||
'Polkadex Testnet': chainPolkadex,
|
||||
Polkadot: chainPolkadot,
|
||||
'Polkadot CC1': chainPolkadot,
|
||||
PolkaSmith: chainPolkaSmith,
|
||||
'Pontem Testnet': chainPontem,
|
||||
'Prism PC1': chainPrism,
|
||||
'Prism Testnet': chainPrism,
|
||||
'ReAlis Network': nodeRealis,
|
||||
'RioChain CC-1': chainRiochain,
|
||||
'Riochain Staging': chainRiochain,
|
||||
Rococo: chainRocco,
|
||||
Sakura: chainSakura,
|
||||
Shadow: chainShadow,
|
||||
sherpax: chainChainx,
|
||||
Shiden: chainShiden,
|
||||
'Shiden Shell': chainShiden,
|
||||
Statemine: specStatemine,
|
||||
'Statemine Test': specStatemine,
|
||||
Statemint: specStatemint,
|
||||
'Statemint Test': specStatemint,
|
||||
'Steam PC': chainRococoEave,
|
||||
'SubDAO PC1': chainSubDAO,
|
||||
'Subsocial PC1': chainSubsocial,
|
||||
Tick: chainRoccoTick,
|
||||
Track: chainRoccoTrack,
|
||||
Trick: chainRoccoTrick,
|
||||
'TrustBase PC1': chainTrustBase,
|
||||
'uni arts staging network': chainUniarts,
|
||||
'UniArts Mainnet': chainUniarts,
|
||||
'Unique Node': chainUnique,
|
||||
UNIT: chainUnitv,
|
||||
'VLN PC': chainVln,
|
||||
Web3games: chainWeb3games,
|
||||
Westend: chainWestend,
|
||||
Westlake: chainWestlake,
|
||||
Westmint: specWestmint,
|
||||
'Westmint Test': specWestmint,
|
||||
Whala: chainWhala,
|
||||
WILT: chainKilt,
|
||||
'Zenlink PC1': chainZenlink,
|
||||
'ZERO.IO': chainZero
|
||||
}).reduce((colors, [chain, color]): Record<string, string> => ({
|
||||
...colors,
|
||||
[chain.toLowerCase()]: color
|
||||
}), {});
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint sort-keys: ["error", "asc", { caseSensitive: false }] */
|
||||
|
||||
// The mapping here is done on the actual chain name (system.chain RPC) or
|
||||
// the actual RPC node it is corrected to (system.name RPC)
|
||||
|
||||
@ -472,8 +474,8 @@ export const namedLogos: Record<string, unknown> = {
|
||||
rococoPhala: nodePhala,
|
||||
rococoPhoenix: nodePhoenix,
|
||||
rococoPlasm: nodePlasm,
|
||||
rococoPolkaFoundry: nodePolkaFoundry,
|
||||
rococoPolkabtc: chainPolkaBTC,
|
||||
rococoPolkaFoundry: nodePolkaFoundry,
|
||||
rococoPrism: nodePrism,
|
||||
rococoRobonomics: nodeRobonomics,
|
||||
rococoStatemint: nodeStatemine,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user