Remove logo exports (all via uiLogo) (#8957)
* Remove logo exports (all via uiLogo) * lint * Adjust * Adjust * Adjust empty * Adjust * Allow empty
This commit is contained in:
parent
d8c6322096
commit
acaafecf92
@ -4,8 +4,6 @@
|
||||
import { identityNodes, identitySpec } from './identityIcons';
|
||||
import { sanitize } from './util';
|
||||
|
||||
export * from './logos';
|
||||
|
||||
export function getSystemIcon (systemName: string, specName: string): 'beachball' | 'polkadot' | 'substrate' {
|
||||
return (
|
||||
identityNodes[sanitize(systemName)] ||
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '*.gif' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '*.png' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '*.svg' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="15 15 140 140" style="enable-background:new 0 0 170 170;" xml:space="preserve">
|
||||
<style type="text/css">.bg{fill: rgba(255, 255, 255, 0)}</style>
|
||||
<style type="text/css">.bg{fill: rgba(160, 160, 160, 0.25)}</style>
|
||||
<g><circle class="bg" cx="85" cy="85" r="70"/></g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 380 B |
File diff suppressed because one or more lines are too long
@ -1,957 +0,0 @@
|
||||
// Copyright 2017-2023 @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)
|
||||
|
||||
// anything for a specific chain, most would probably fit into the node category (but allow for chain-specific)
|
||||
// alphabetical
|
||||
import { sanitize } from '../util';
|
||||
import chain3dpass from './chains/3dpass.png';
|
||||
import chainAband from './chains/aband.png';
|
||||
import chainAcala from './chains/acala.svg';
|
||||
import chainAcurast from './chains/acurast.png';
|
||||
import chainAleph from './chains/aleph.svg';
|
||||
import chainAltair from './chains/altair.svg';
|
||||
import chainAmplitude from './chains/amplitude.svg';
|
||||
import chainAstar from './chains/astar.png';
|
||||
import chainAventus from './chains/aventus.svg';
|
||||
import chainBitgreen from './chains/bitgreen.png';
|
||||
import chainBittensor from './chains/bittensor.png';
|
||||
import chainBrainstorm from './chains/brainstorm.png';
|
||||
import chainCoinversation from './chains/coinversation.png';
|
||||
import chainCompetitorsClub from './chains/competitors-club.png';
|
||||
import chainComposableFinance from './chains/composableFinance.png';
|
||||
import chainCreditcoin from './chains/creditcoin.png';
|
||||
import chainCreditcoinTest from './chains/creditcoin-test.png';
|
||||
import chainCrownSterling from './chains/crown-sterling.png';
|
||||
import chainRococoDali from './chains/dali.png';
|
||||
import chainRoccoDataHighway from './chains/datahighway.png';
|
||||
import chainDeBio from './chains/debio.svg';
|
||||
import chainDorafactory from './chains/dorafactory.png';
|
||||
import chainEfinity from './chains/efinity.svg';
|
||||
import chainEquilibrium from './chains/equilibrium.svg';
|
||||
import chainFerrum from './chains/ferrum.png';
|
||||
import chainFrequency from './chains/frequency.svg';
|
||||
import chainGeminis from './chains/geminis.png';
|
||||
import chainGenshiro from './chains/genshiro.svg';
|
||||
import chainGM from './chains/gm.png';
|
||||
import chainHashed from './chains/hashed.png';
|
||||
import chainHydrate from './chains/hydrate.png';
|
||||
import chainInterlay from './chains/interlay.svg';
|
||||
import chainEthos from './chains/jur.png';
|
||||
import chainKabocha from './chains/kabocha.svg';
|
||||
import chainKarura from './chains/karura.svg';
|
||||
import chainKico from './chains/kico.png';
|
||||
import chainKintsugi from './chains/kintsugi.png';
|
||||
import chainListen from './chains/listen.png';
|
||||
import chainLogion from './chains/logion.png';
|
||||
import chainLuhn from './chains/luhn.png';
|
||||
import chainMangata from './chains/mangatax.svg';
|
||||
import chainMoonsamaDevelopment from './chains/moonsama.png';
|
||||
import chainMyriad from './chains/myriad.svg';
|
||||
import chainOAK from './chains/oak.png';
|
||||
import chainOLI from './chains/oli.svg';
|
||||
import chainOmniBTC from './chains/omnibtc.svg';
|
||||
import chainOpal from './chains/opal-logo.png';
|
||||
import chainOriginTrail from './chains/origintrail.png';
|
||||
import chainOriginTrailTestnet from './chains/origintrail-testnet.png';
|
||||
import chainParallel from './chains/parallel.svg';
|
||||
import chainPendulum from './chains/pendulum.svg';
|
||||
import chainPicasso from './chains/picasso.svg';
|
||||
import chainQuartz from './chains/quartz.png';
|
||||
import chainRiodefi from './chains/riodefi.png';
|
||||
import chainRocfinity from './chains/rocfinity.svg';
|
||||
import chainRococo from './chains/rococo.svg';
|
||||
import chainRococoContracts from './chains/rococo-contracts.png';
|
||||
import chainRococoTick from './chains/rococo-tick.svg';
|
||||
import chainRococoTrack from './chains/rococo-track.svg';
|
||||
import chainRococoTrick from './chains/rococo-trick.svg';
|
||||
import chainShiden from './chains/shiden.png';
|
||||
import chainSkyeKiwi from './chains/skyekiwi.png';
|
||||
import chainSnakenet from './chains/snakenet.svg';
|
||||
import chainSnowbridge from './chains/snowbridge.png';
|
||||
import chainSpanner from './chains/spanner.png';
|
||||
import chainStandard from './chains/standard.png';
|
||||
import chainKusamaDataHighway from './chains/tanganika.png';
|
||||
import chainTangle from './chains/tangle.png';
|
||||
import nodeTotem from './chains/totem.svg';
|
||||
import chainUnique from './chains/unique.svg';
|
||||
import chainUnorthodox from './chains/unorthodox.png';
|
||||
import chainVara from './chains/vara.svg';
|
||||
import nodeApron from './nodes/apron.png';
|
||||
import nodeArctic from './nodes/arctic.png';
|
||||
import nodeAres from './nodes/ares.png';
|
||||
import nodeAresGladios from './nodes/ares-gladios.svg';
|
||||
import nodeAresMars from './nodes/ares-mars.png';
|
||||
import nodeAresOdyssey from './nodes/ares-odyssey.svg';
|
||||
import nodeAstar from './nodes/astar.png';
|
||||
import nodeAutomata from './nodes/automata.png';
|
||||
import nodeAventus from './nodes/aventus.svg';
|
||||
import nodeBajun from './nodes/bajun.png';
|
||||
import nodeBasilisk from './nodes/basilisk.png';
|
||||
import nodeBeast from './nodes/beast.svg';
|
||||
import nodeBifrost from './nodes/bifrost.svg';
|
||||
import nodeBitCountry from './nodes/bitcountry.png';
|
||||
import nodeCalamari from './nodes/calamari.png';
|
||||
import nodeCentrifuge from './nodes/centrifuge.png';
|
||||
import nodeCESS from './nodes/cess.png';
|
||||
import nodeChainx from './nodes/chainx.svg';
|
||||
import nodeClover from './nodes/clover.svg';
|
||||
import nodeCoinversation from './nodes/coinversation.png';
|
||||
import nodeCompetitorsClub from './nodes/competitors-club.png';
|
||||
import nodeConfti from './nodes/confti.svg';
|
||||
import nodeCrab from './nodes/crab.svg';
|
||||
import nodeCrownSterling from './nodes/crown-sterling.png';
|
||||
import nodeCrust from './nodes/crust.svg';
|
||||
import nodeCrustMaxwell from './nodes/crust-maxwell.svg';
|
||||
import nodeCrustParachain from './nodes/crustParachain.svg';
|
||||
import nodeDaliTestnet from './nodes/dali.png';
|
||||
import nodeDarwinia from './nodes/darwinia.svg';
|
||||
import nodeDataHighway from './nodes/datahighway.png';
|
||||
import nodeDockMainnet from './nodes/dock-mainnet.png';
|
||||
import nodeDockTestnet from './nodes/dock-testnet.png';
|
||||
import nodeDolphin from './nodes/dolphin.svg';
|
||||
import nodeDotMog from './nodes/dotmog.svg';
|
||||
import nodeEave from './nodes/eave.svg';
|
||||
import nodeEdgeware from './nodes/edgeware-white.png';
|
||||
import nodeEfinity from './nodes/efinity.svg';
|
||||
import nodeEncointer from './nodes/encointer-blue.svg';
|
||||
import nodeFantour from './nodes/fantour.png';
|
||||
import nodeGalital from './nodes/galital-logo.png';
|
||||
import nodeGamePower from './nodes/gamepower.svg';
|
||||
import nodeGeek from './nodes/geek.svg';
|
||||
import nodeHanonycash from './nodes/hanonycash.svg';
|
||||
import nodeHashed from './nodes/hashed.png';
|
||||
import nodeHelixstreet from './nodes/helixstreet.png';
|
||||
import nodeIdavoll from './nodes/idavoll.png';
|
||||
import nodeImbue from './nodes/imbue.png';
|
||||
import nodeIntegritee from './nodes/integritee.svg';
|
||||
import nodeInterBTC from './nodes/interlay.svg';
|
||||
import nodeIPCI from './nodes/ipci.svg';
|
||||
import nodeIpse from './nodes/ipse.png';
|
||||
import nodeJaz from './nodes/jaz.png';
|
||||
import nodeJoystream from './nodes/joystream.svg';
|
||||
import nodeJupiter from './nodes/jupiter.svg';
|
||||
import nodeKabocha from './nodes/kabocha.svg';
|
||||
import nodeKhala from './nodes/khala.svg';
|
||||
import nodeKilt from './nodes/kilt.png';
|
||||
import nodeKlug from './nodes/klug.png';
|
||||
import nodeKonomi from './nodes/konomi.png';
|
||||
import nodeKulupu from './nodes/kulupu.svg';
|
||||
import nodeKusari from './nodes/kusari.svg';
|
||||
import nodeKylin from './nodes/kylin.png';
|
||||
import nodeLaminar from './nodes/laminar-circle.svg';
|
||||
import nodeLitentry from './nodes/litentry.png';
|
||||
import nodeLitmus from './nodes/litmus.png';
|
||||
import nodeLoomNetwork from './nodes/loom_network.png';
|
||||
import nodeLuhn from './nodes/luhn.png';
|
||||
import nodeManta from './nodes/manta.png';
|
||||
import nodeMath from './nodes/math.svg';
|
||||
import nodeMd5 from './nodes/md5.png';
|
||||
import nodeMinix from './nodes/minix.png';
|
||||
import moonbase from './nodes/moonbase_alpha.png';
|
||||
import moonbeam from './nodes/moonbeam.png';
|
||||
import moonriver from './nodes/moonriver.svg';
|
||||
import nodeMoonrock from './nodes/moonrock.png';
|
||||
import moonshadow from './nodes/moonshadow.png';
|
||||
import mybank from './nodes/mybank.png';
|
||||
import nodeNFTMart from './nodes/nftmart.png';
|
||||
import nodeNodle from './nodes/nodle.svg';
|
||||
import nodeChainOLI from './nodes/oli.svg';
|
||||
import nodeOmniBTC from './nodes/omnibtc.svg';
|
||||
import nodeUniqueWestend from './nodes/opal-logo.png';
|
||||
import nodeOpportunity from './nodes/opportunity.png';
|
||||
import nodePangolin from './nodes/pangolin.svg';
|
||||
import nodePangoro from './nodes/pangoro.svg';
|
||||
import nodeParallel from './nodes/parallel.svg';
|
||||
import nodeParami from './nodes/parami.png';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
import nodePhoenix from './nodes/phoenix.png';
|
||||
import nodePichiu from './nodes/pichiu.png';
|
||||
import nodePioneerNetwork from './nodes/pioneer.png';
|
||||
import nodePolkadex from './nodes/polkadex.svg';
|
||||
import nodePolkaFoundry from './nodes/polkafoundry.svg';
|
||||
import nodePolkaSmith from './nodes/polkasmith.svg';
|
||||
import nodePolymesh from './nodes/polymesh.svg';
|
||||
import nodePontem from './nodes/pontem.svg';
|
||||
import nodePrism from './nodes/prism.png';
|
||||
import nodeQuartz from './nodes/quartz.png';
|
||||
import nodeRealis from './nodes/realis.png';
|
||||
import nodeRiochain from './nodes/riochain.svg';
|
||||
import nodeRobonomics from './nodes/robonomics.svg';
|
||||
import nodeRocfinity from './nodes/rocfinity.svg';
|
||||
import nodeSakura from './nodes/sakura.svg';
|
||||
import nodeShadow from './nodes/shadow.svg';
|
||||
import nodeSherpax from './nodes/sherpax.png';
|
||||
import nodeSingLavender from './nodes/singlavender.svg';
|
||||
import nodeSnow from './nodes/snow.png';
|
||||
import nodeSoonsocial from './nodes/soonsocial.png';
|
||||
import nodeSoonsocialX from './nodes/soonsocialX.png';
|
||||
import nodeSora from './nodes/sora-substrate.svg';
|
||||
import nodeStafi from './nodes/stafi.png';
|
||||
import nodeSubDAO from './nodes/subdao.png';
|
||||
import nodeSubGame from './nodes/subgame.svg';
|
||||
import nodeSubsocial from './nodes/subsocial.svg';
|
||||
import nodeSubsocialX from './nodes/subsocialX.svg';
|
||||
import nodeSubspace from './nodes/subspace.png';
|
||||
import nodeSubstrateContractsNode from './nodes/substrate-contracts-node.png';
|
||||
import nodeSubstrate from './nodes/substrate-hexagon.svg';
|
||||
import nodeSwapdex from './nodes/swapdex.svg';
|
||||
import nodeTernoa from './nodes/ternoa.svg';
|
||||
import nodeTheBifrost from './nodes/thebifrost.png';
|
||||
import nodeTrustBase from './nodes/trustbase.png';
|
||||
import nodeUniarts from './nodes/uniarts.png';
|
||||
import nodeUnique from './nodes/unique.svg';
|
||||
import nodeUnitNetwork from './nodes/unitnetwork.png';
|
||||
import nodeUnitv from './nodes/unitv.png';
|
||||
import nodeVln from './nodes/valiu.png';
|
||||
import nodeVara from './nodes/vara.svg';
|
||||
import nodeWeb3games from './nodes/web3games.svg';
|
||||
import nodeWestend from './nodes/westend_colour.svg';
|
||||
import nodeWestlake from './nodes/westlake.png';
|
||||
import nodeWhala from './nodes/whala.svg';
|
||||
import nodeZCloak from './nodes/zCloak.svg';
|
||||
import nodeZenlink from './nodes/zenlink.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
import { externalEmptySVG } from './external';
|
||||
|
||||
const chainWestendCollectives = { fa: 'people-group' };
|
||||
|
||||
// Alphabetical overrides based on the actual matched chain name
|
||||
// NOTE: This is as retrieved via system.chain RPC
|
||||
export const chainLogos = Object.entries({
|
||||
Aband: chainAband,
|
||||
'Acurast Rococo Testnet': chainAcurast,
|
||||
'Aleph Zero': chainAleph,
|
||||
'Aleph Zero Testnet': chainAleph,
|
||||
Altair: chainAltair,
|
||||
Amplitude: chainAmplitude,
|
||||
'Apron PC1': nodeApron,
|
||||
Arctic: nodeArctic,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares Odyssey': nodeAresOdyssey,
|
||||
'Ares PC1': nodeAres,
|
||||
Astar: chainAstar,
|
||||
Automata: nodeAutomata,
|
||||
'Automata ContextFree': nodeAutomata,
|
||||
Aventus: chainAventus,
|
||||
'Bajun Testnet': nodeBajun,
|
||||
'Beast Developer': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
'Bifrost Asgard CC4': nodeBifrost,
|
||||
'Bifrost K Rococo': nodeBifrost,
|
||||
'Bifrost Kusama': nodeBifrost,
|
||||
'Bifrost Polkadot': nodeBifrost,
|
||||
'Bifrost Stage Testnet': nodeBifrost,
|
||||
Bitgreen: chainBitgreen,
|
||||
'Bitgreen Testnet': chainBitgreen,
|
||||
BitgreenRococo: chainBitgreen,
|
||||
Bittensor: chainBittensor,
|
||||
'Bittensor Testnet': chainBittensor,
|
||||
'Calamari Parachain': nodeCalamari,
|
||||
'Calamari Parachain Development': nodeCalamari,
|
||||
'Calamari Parachain Local': nodeCalamari,
|
||||
'Calamari Parachain Testnet': nodeCalamari,
|
||||
'Catalyst Testnet': nodeCentrifuge,
|
||||
Centrifuge: nodeCentrifuge,
|
||||
'CESS Testnet': nodeCESS,
|
||||
ChainOLI: chainOLI,
|
||||
ChainX: nodeChainx,
|
||||
'Charcoal Testnet': nodeCentrifuge,
|
||||
Coinversation: chainCoinversation,
|
||||
Collectives: chainWestendCollectives,
|
||||
'Competitors Club': chainCompetitorsClub,
|
||||
'Composable Finance': chainComposableFinance,
|
||||
'Contracts on Rococo': chainRococoContracts,
|
||||
'Crab Parachain': nodeCrab,
|
||||
Creditcoin: chainCreditcoin,
|
||||
'Creditcoin Testnet': chainCreditcoinTest,
|
||||
'Crown Sterling': chainCrownSterling,
|
||||
'Crust Maxwell': nodeCrustMaxwell,
|
||||
'Crust PC1': nodeCrust,
|
||||
'Crust Testnet': nodeCrustParachain,
|
||||
'darwinia crab': nodeCrab,
|
||||
'Darwinia Crab PC2': nodeCrab,
|
||||
'Darwinia Parachain': nodeDarwinia,
|
||||
'Darwinia PC2': nodeDarwinia,
|
||||
DataHighway: nodeDataHighway,
|
||||
'DataHighway Spreehafen Rococo Parachain Testnet': chainRoccoDataHighway,
|
||||
'DataHighway Tanganika Kusama Parachain': chainKusamaDataHighway,
|
||||
DeBio: chainDeBio,
|
||||
'DeBio Testnet': chainDeBio,
|
||||
'Dolphin Testnet': nodeDolphin,
|
||||
'Dora Factory': chainDorafactory,
|
||||
Efinity: chainEfinity,
|
||||
Equilibrium: chainEquilibrium,
|
||||
'Equilibrium parachain': chainEquilibrium,
|
||||
EquilibriumTestnet: chainEquilibrium,
|
||||
'Ethos Testnet': chainEthos,
|
||||
'Ferrum Testnet': chainFerrum,
|
||||
Frequency: chainFrequency,
|
||||
'Frequency Rococo': chainFrequency,
|
||||
Galital: nodeGalital,
|
||||
'GamePower Network': nodeGamePower,
|
||||
GEEK: nodeGeek,
|
||||
Geminis: chainGeminis,
|
||||
Genshiro: chainGenshiro,
|
||||
'Genshiro Rococo Testnet': chainGenshiro,
|
||||
'GM Parachain': chainGM,
|
||||
'Hashed Network': chainHashed,
|
||||
helixstreet: nodeHelixstreet,
|
||||
HydraDX: chainSnakenet,
|
||||
'HydraDX testnet': chainHydrate,
|
||||
Idavoll: nodeIdavoll,
|
||||
'Imbue Testnet': nodeImbue,
|
||||
InterBTC: nodeInterBTC,
|
||||
'InterBTC Staging': nodeInterBTC,
|
||||
Interlay: chainInterlay,
|
||||
'InvArch Brainstorm Testnet': chainBrainstorm,
|
||||
ipci: nodeIPCI,
|
||||
IpseTestnet: nodeIpse,
|
||||
'Jupiter A1': nodeJupiter,
|
||||
'Jupiter PC1': nodeJupiter,
|
||||
Kabocha: chainKabocha,
|
||||
'Kabocha (kabsoup)': chainKabocha,
|
||||
Kapex: nodeTotem,
|
||||
Karura: chainKarura,
|
||||
Kerria: chainParallel,
|
||||
'Kerria Dev': chainParallel,
|
||||
Khala: nodeKhala,
|
||||
KICO: chainKico,
|
||||
KICO2: chainKico,
|
||||
KILT: nodeKilt,
|
||||
'KILT Local': nodeKilt,
|
||||
'KILT Peregrine': nodeKilt,
|
||||
'KILT Testnet': nodeKilt,
|
||||
Kintsugi: chainKintsugi,
|
||||
KlugDossier: nodeKlug,
|
||||
Konomi: nodeKonomi,
|
||||
Kpron: nodeApron,
|
||||
kusari: nodeKusari,
|
||||
'Kylin Testnet': nodeKylin,
|
||||
'Listen Network': chainListen,
|
||||
Litentry: nodeLitentry,
|
||||
'Litentry-rococo': nodeLitentry,
|
||||
Litmus: nodeLitmus,
|
||||
'Loom Network Local': nodeLoomNetwork,
|
||||
LoomNetwork: nodeLoomNetwork,
|
||||
'Luhn Network': chainLuhn,
|
||||
'Mangata Kusama Mainnet': chainMangata,
|
||||
'Mangata Public Testnet': chainMangata,
|
||||
'Manta Parachain': nodeManta,
|
||||
'Manta Parachain Development': nodeManta,
|
||||
'Manta Parachain Local': nodeManta,
|
||||
'Manta Parachain Testnet': nodeManta,
|
||||
Mars: nodeAresMars,
|
||||
MathChain: nodeMath,
|
||||
'MathChain PC1': nodeMath,
|
||||
'mathchain-galois': nodeMath,
|
||||
MD5: nodeMd5,
|
||||
Minix: nodeMinix,
|
||||
'Minix Testnet': nodeMinix,
|
||||
'Moonbase Alpha': moonbase,
|
||||
'Moonbase Development Testnet': moonbase,
|
||||
'Moonbase Stage': moonbase,
|
||||
Moonbeam: moonbeam,
|
||||
Moonriver: moonriver,
|
||||
Moonrock: nodeMoonrock,
|
||||
'Moonsama Development': chainMoonsamaDevelopment,
|
||||
Moonshadow: moonshadow,
|
||||
'mybank.network PC1': mybank,
|
||||
Myriad: chainMyriad,
|
||||
'Myriad Testnet': chainMyriad,
|
||||
'Nakamoto Bittensor Mainnet': chainBittensor,
|
||||
NFTMart: nodeNFTMart,
|
||||
'NFTMart Staging': nodeNFTMart,
|
||||
'NFTMart Testnet': nodeNFTMart,
|
||||
Odyssey: nodeAresOdyssey,
|
||||
'OLI Parachain': chainOLI,
|
||||
OmniBTC: chainOmniBTC,
|
||||
'OPAL by UNIQUE': chainOpal,
|
||||
'OriginTrail Parachain': chainOriginTrail,
|
||||
'OriginTrail Parachain Testnet': chainOriginTrailTestnet,
|
||||
Pangolin: nodePangolin,
|
||||
Pangoro: nodePangoro,
|
||||
Parallel: chainParallel,
|
||||
'Parallel Dev': chainParallel,
|
||||
'Parallel Heiko': chainParallel,
|
||||
'Parallel Heiko Dev': chainParallel,
|
||||
'Parami PC2': nodeParami,
|
||||
Pendulum: chainPendulum,
|
||||
Phala: nodePhala,
|
||||
'PHOENIX PC1': nodePhoenix,
|
||||
Picasso: chainPicasso,
|
||||
'Pichiu Mainnet': nodePichiu,
|
||||
'Pichiu Testnet': nodePichiu,
|
||||
'Pioneer Network': nodePioneerNetwork,
|
||||
'Polkadex Mainnet': nodePolkadex,
|
||||
'Polkadex Testnet': nodePolkadex,
|
||||
'PolkaFoundry PC1': nodePolkaFoundry,
|
||||
'Pontem Testnet': nodePontem,
|
||||
'Prism PC1': nodePrism,
|
||||
'Prism Testnet': nodePrism,
|
||||
'QUARTZ by UNIQUE': chainQuartz,
|
||||
'ReAlis Network': nodeRealis,
|
||||
'RioChain CC-1': nodeRiochain,
|
||||
'RioChain Staging': nodeRiochain,
|
||||
Riodefi: chainRiodefi,
|
||||
Robonomics: nodeRobonomics,
|
||||
Rocfinity: chainRocfinity,
|
||||
Rococo: chainRococo,
|
||||
Sherpax: nodeSherpax,
|
||||
'Sherpax Testnet': nodeSherpax,
|
||||
Shiden: chainShiden,
|
||||
SingLavender: nodeSingLavender,
|
||||
SkyeKiwi: chainSkyeKiwi,
|
||||
'Snow Kusama': nodeSnow,
|
||||
soonsocial: nodeSoonsocial,
|
||||
soonsocialX: nodeSoonsocialX,
|
||||
SORA: nodeSora,
|
||||
'SORA Kusama': nodeSora,
|
||||
'SORA Rococo': nodeSora,
|
||||
Spanner: chainSpanner,
|
||||
Stagex: nodeTotem,
|
||||
'Steam PC': nodeEave,
|
||||
subdao: nodeSubDAO,
|
||||
'SubDAO PC1': nodeSubDAO,
|
||||
'SubDAO Staging': nodeSubDAO,
|
||||
subgame: nodeSubGame,
|
||||
'SubGame Gamma': nodeSubGame,
|
||||
'SubGame Staging': nodeSubGame,
|
||||
subsocial: nodeSubsocial,
|
||||
subsocialX: nodeSubsocialX,
|
||||
subspace: nodeSubspace,
|
||||
Subzero: nodeZero,
|
||||
swapdex: nodeSwapdex,
|
||||
'Tangle Rococo': chainTangle,
|
||||
'Tangle Testnet': chainTangle,
|
||||
Tick: chainRococoTick,
|
||||
Track: chainRococoTrack,
|
||||
Trick: chainRococoTrick,
|
||||
trustbase: nodeTrustBase,
|
||||
'TrustBase PC1': nodeTrustBase,
|
||||
'uni arts staging network': nodeUniarts,
|
||||
'UniArts Mainnet': nodeUniarts,
|
||||
Unique: chainUnique,
|
||||
UNIQUE: chainUnique,
|
||||
'Unit Network': nodeUnitNetwork,
|
||||
'Unitv Network': nodeUnitv,
|
||||
Unorthodox: chainUnorthodox,
|
||||
'Vara Network': chainVara,
|
||||
Vln: nodeVln,
|
||||
'VLN PC': nodeVln,
|
||||
Wapex: nodeTotem,
|
||||
'Web3Games Plum': nodeWeb3games,
|
||||
Westend: nodeWestend,
|
||||
'Westend Collectives': chainWestendCollectives,
|
||||
Westlake: nodeWestlake,
|
||||
WILT: nodeKilt,
|
||||
'zcloak poc1': nodeZCloak
|
||||
}).reduce<Record<string, unknown>>((logos, [chain, external]) => ({
|
||||
...logos,
|
||||
[sanitize(chain)]: external
|
||||
}), {});
|
||||
|
||||
// Alphabetical overrides based on the actual software node type
|
||||
// NOTE: This is as retrieved via system.name RPC
|
||||
export const nodeLogos = Object.entries({
|
||||
Aband: chainAband,
|
||||
'Acala Node': chainAcala,
|
||||
'Acurast Parachain Collator': chainAcurast,
|
||||
Amplitude: chainAmplitude,
|
||||
'Apron Node': nodeApron,
|
||||
'Apron Parachain Collator': nodeApron,
|
||||
Arctic: nodeArctic,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares Node': nodeAres,
|
||||
'Ares Odyssey': nodeAresOdyssey,
|
||||
'Ares Parachain Collator': nodeAres,
|
||||
Astar: nodeAstar,
|
||||
'Automata ContextFree Node': nodeAutomata,
|
||||
'Automata Node': nodeAutomata,
|
||||
Aventus: nodeAventus,
|
||||
'Bajun Node': nodeBajun,
|
||||
Basilisk: nodeBasilisk,
|
||||
'Beast Node': nodeBeast,
|
||||
Bifrost: nodeBifrost,
|
||||
'Bifrost Node': nodeBifrost,
|
||||
'Bifrost Stage Testnet': nodeBifrost,
|
||||
'Bit Country Tewai Parachain Collator': nodeBitCountry,
|
||||
'Bit.Country': nodeBitCountry,
|
||||
'BitCountry Node': nodeBitCountry,
|
||||
'Calamari Parachain Collator': nodeCalamari,
|
||||
Centrifuge: nodeCentrifuge,
|
||||
'centrifuge chain': nodeCentrifuge,
|
||||
'Centrifuge Chain Node': nodeCentrifuge,
|
||||
'CESS Testnet': nodeCESS,
|
||||
ChainOLI: nodeChainOLI,
|
||||
'ChainX Node': nodeChainx,
|
||||
'Clover Node': nodeClover,
|
||||
Coinversation: nodeCoinversation,
|
||||
'Competitors Club': nodeCompetitorsClub,
|
||||
'Composable Finance': chainComposableFinance,
|
||||
'Crown Sterling': nodeCrownSterling,
|
||||
crust: nodeCrust,
|
||||
'Crust Collator': nodeCrust,
|
||||
'Crust Maxwell': nodeCrustMaxwell,
|
||||
'Crust Testnet': nodeCrustParachain,
|
||||
'DAO IPCI': nodeIPCI,
|
||||
darwinia: nodeDarwinia,
|
||||
'darwinia crab': nodeCrab,
|
||||
'darwinia parachain': nodeDarwinia,
|
||||
'Darwinia Runtime Module Library': nodeDarwinia,
|
||||
DataHighway: nodeDataHighway,
|
||||
'DataHighway Node': nodeDataHighway,
|
||||
'DataHighway Parachain Collator': nodeDataHighway,
|
||||
'DataHighway Spreehafen Rococo Parachain Testnet': chainRoccoDataHighway,
|
||||
'DataHighway Tanganika Kusama Parachain': chainKusamaDataHighway,
|
||||
DeBio: chainDeBio,
|
||||
'Dock Full Node': nodeDockMainnet,
|
||||
'Dock Node': nodeDockMainnet,
|
||||
'Dora Factory': chainDorafactory,
|
||||
'DOTMog Node': nodeDotMog,
|
||||
'Eave Node': nodeEave,
|
||||
'Edgeware Node': nodeEdgeware,
|
||||
Efinity: nodeEfinity,
|
||||
'Efinity Node': nodeEfinity,
|
||||
'Encointer collator': nodeEncointer,
|
||||
'Encointer Node noTEE': nodeEncointer,
|
||||
'Fantour Node': nodeFantour,
|
||||
'Galital Parachain Collator': nodeGalital,
|
||||
'GamePower Node': nodeGamePower,
|
||||
GEEK: nodeGeek,
|
||||
Geminis: chainGeminis,
|
||||
'GM Collator': chainGM,
|
||||
'Halongbay Parachain Collator': nodePolkaFoundry,
|
||||
hanonycash: nodeHanonycash,
|
||||
'Hashed Collator': nodeHashed,
|
||||
Helixstreet: nodeHelixstreet,
|
||||
'Idavoll Node': nodeIdavoll,
|
||||
'Imbue Node': nodeImbue,
|
||||
'Integritee Collator': nodeIntegritee,
|
||||
'Integritee Node': nodeIntegritee,
|
||||
Interlay: chainInterlay,
|
||||
'InvArch Brainstorm Node': chainBrainstorm,
|
||||
IpseTestnet: nodeIpse,
|
||||
'Jaz Node': nodeJaz,
|
||||
'Joystream Node': nodeJoystream,
|
||||
'Jur Collator': chainEthos,
|
||||
Kabocha: nodeKabocha,
|
||||
'Kabocha (kabsoup)': nodeKabocha,
|
||||
Kerria: nodeParallel,
|
||||
'Kerria Dev': nodeParallel,
|
||||
Khala: nodeKhala,
|
||||
'Khala Node': nodeKhala,
|
||||
KICO: chainKico,
|
||||
KICO2: chainKico,
|
||||
KILT: nodeKilt,
|
||||
'KILT Local': nodeKilt,
|
||||
'KILT Peregrine': nodeKilt,
|
||||
Kintsugi: chainKintsugi,
|
||||
'Klug Dossier Node': nodeKlug,
|
||||
'Kpron Collator': nodeApron,
|
||||
kulupu: nodeKulupu,
|
||||
kusari: nodeKusari,
|
||||
'Kylin Node': nodeKylin,
|
||||
'Laminar Node': nodeLaminar,
|
||||
'Listen Network': chainListen,
|
||||
'Litentry node': nodeLitentry,
|
||||
'logion Collator': chainLogion,
|
||||
'Logion Node': chainLogion,
|
||||
'Luhn Collator': nodeLuhn,
|
||||
'mandala node': chainAcala,
|
||||
'Manta Node': nodeManta,
|
||||
'Manta Parachain Collator': nodeManta,
|
||||
MathChain: nodeMath,
|
||||
'mathChain-galois': nodeMath,
|
||||
'MD5 Network': nodeMd5,
|
||||
minix: nodeMinix,
|
||||
Moonrock: nodeMoonrock,
|
||||
'Moonsama Development': chainMoonsamaDevelopment,
|
||||
'mybank.network': mybank,
|
||||
Myriad: chainMyriad,
|
||||
NFTMart: nodeNFTMart,
|
||||
'NFTMart Staging': nodeNFTMart,
|
||||
'NFTMart Testnet': nodeNFTMart,
|
||||
'node-template': nodeSubstrate,
|
||||
'Nodle Chain Node': nodeNodle,
|
||||
OmniBTC: nodeOmniBTC,
|
||||
'Opal Node': nodeUniqueWestend,
|
||||
'Opportunity Standalone Testnet': nodeOpportunity,
|
||||
Pangolin: nodePangolin,
|
||||
Pangoro: nodePangoro,
|
||||
Parallel: nodeParallel,
|
||||
'Parallel Dev': nodeParallel,
|
||||
'Parallel Heiko': nodeParallel,
|
||||
'Parallel Heiko Dev': nodeParallel,
|
||||
Parami: nodeParami,
|
||||
'Patract Node': nodeJupiter,
|
||||
Pendulum: chainPendulum,
|
||||
Phala: nodePhala,
|
||||
phala: nodePhala,
|
||||
'Phala Collator': nodePhala,
|
||||
'phala-substrate-node': nodePhala,
|
||||
'PHOENIX Collator': nodePhoenix,
|
||||
'PHOENIX Node': nodePhoenix,
|
||||
'Pichiu Node': nodePichiu,
|
||||
'Pioneer Network Collator Node': nodePioneerNetwork,
|
||||
'Polkadex Node': nodePolkadex,
|
||||
'PolkaFoundry Node': nodePolkaFoundry,
|
||||
'PolkaFoundry Parachain Collator': nodePolkaFoundry,
|
||||
'PolkaSmith Parachain Collator': nodePolkaSmith,
|
||||
'Pontem Testnet': nodePontem,
|
||||
'Prism Collator': nodePrism,
|
||||
'Prism Node': nodePrism,
|
||||
'Quartz Node': nodeQuartz,
|
||||
'ReAlis Network': nodeRealis,
|
||||
'Rio Defi Chain Node': nodeRiochain,
|
||||
'RioChain Staging': nodeRiochain,
|
||||
Riodefi: chainRiodefi,
|
||||
robonomics: nodeRobonomics,
|
||||
Rocfinity: nodeRocfinity,
|
||||
Sakura: nodeSakura,
|
||||
Shadow: nodeShadow,
|
||||
sherpax: nodeSherpax,
|
||||
'Shiden Collator': chainShiden,
|
||||
'SingLavender Parachain Collator': nodeSingLavender,
|
||||
Snow: nodeSnow,
|
||||
Sora: nodeSora,
|
||||
Stafi: nodeStafi,
|
||||
'Stafi Node': nodeStafi,
|
||||
subdao: nodeSubDAO,
|
||||
'SubDAO Collator': nodeSubDAO,
|
||||
'SubDAO Staging': nodeSubDAO,
|
||||
subgame: nodeSubGame,
|
||||
'SubGame Gamma': nodeSubGame,
|
||||
'SubGame Staging': nodeSubGame,
|
||||
subspace: nodeSubspace,
|
||||
'substrate-contracts-node': nodeSubstrateContractsNode,
|
||||
'substrate-node': nodeSubstrate,
|
||||
'subzero node': nodeZero,
|
||||
swapdex: nodeSwapdex,
|
||||
'Ternoa Node': nodeTernoa,
|
||||
'Totem Parachain Collator': nodeTotem,
|
||||
'TrustBase Collator': nodeTrustBase,
|
||||
'TrustBase Node': nodeTrustBase,
|
||||
'uni arts node': nodeUniarts,
|
||||
'UniArts Node': nodeUniarts,
|
||||
'Unique Node': nodeUnique,
|
||||
'Unit Collator': nodeUnitv,
|
||||
'Unit Network Collator': nodeUnitNetwork,
|
||||
'Unit Network Node': nodeUnitNetwork,
|
||||
'Unit Node': nodeUnitv,
|
||||
Vanilla: nodeParallel,
|
||||
'Vanilla Dev': nodeParallel,
|
||||
Vln: nodeVln,
|
||||
'VLN PC': nodeVln,
|
||||
'Web3Games Node': nodeWeb3games,
|
||||
Westend: nodeWestend,
|
||||
Westlake: nodeWestlake,
|
||||
Whala: nodeWhala,
|
||||
'Whala Node': nodeWhala,
|
||||
WILT: nodeKilt,
|
||||
'zcloak node': nodeZCloak,
|
||||
Zenlink: nodeZenlink,
|
||||
'Zenlink Collator': nodeZenlink
|
||||
}).reduce<Record<string, unknown>>((logos, [node, external]) => ({
|
||||
...logos,
|
||||
[sanitize(node)]: external
|
||||
}), {});
|
||||
|
||||
// Alphabetical overrides when we pass an explicit external name
|
||||
// NOTE: Matches with what is defined as "info" in settings/endpoints.ts
|
||||
// (Generally would be the 'network' key in the known ss58 as per
|
||||
// https://github.com/polkadot-js/common/blob/master/packages/networks/src/index.ts)
|
||||
export const namedLogos: Record<string, unknown> = {
|
||||
'3dpass': chain3dpass,
|
||||
'3dpass-testnet': chain3dpass,
|
||||
aband: chainAband,
|
||||
acala: chainAcala,
|
||||
aleph: chainAleph,
|
||||
altair: chainAltair,
|
||||
amplitude: chainAmplitude,
|
||||
arctic: nodeArctic,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares Odyssey': nodeAresOdyssey,
|
||||
astar: chainAstar,
|
||||
automata: nodeAutomata,
|
||||
'automata-contextfree': nodeAutomata,
|
||||
aventus: chainAventus,
|
||||
bajun: nodeBajun,
|
||||
basilisk: nodeBasilisk,
|
||||
beast: nodeBeast,
|
||||
bifrost: nodeBifrost,
|
||||
'Bifrost Stage Testnet': nodeBifrost,
|
||||
bitcountry: nodeBitCountry,
|
||||
bitcountryPioneer: nodePioneerNetwork,
|
||||
bitgreen: chainBitgreen,
|
||||
bittensor: chainBittensor,
|
||||
brainstorm: chainBrainstorm,
|
||||
calamari: nodeCalamari,
|
||||
centrifuge: nodeCentrifuge,
|
||||
cess: nodeCESS,
|
||||
'cess-testnet': nodeCESS,
|
||||
chainoli: nodeChainOLI,
|
||||
chainx: nodeChainx,
|
||||
charcoal: nodeCentrifuge,
|
||||
clover: nodeClover,
|
||||
coinversation: chainCoinversation,
|
||||
'competitors-club': chainCompetitorsClub,
|
||||
composableFinance: chainComposableFinance,
|
||||
crab: nodeCrab,
|
||||
creditcoin: chainCreditcoin,
|
||||
'creditcoin-testnet': chainCreditcoinTest,
|
||||
'crown-sterling': chainCrownSterling,
|
||||
crust: nodeCrust,
|
||||
'Crust Maxwell': nodeCrustMaxwell,
|
||||
'Crust Testnet': nodeCrustParachain,
|
||||
crustParachain: nodeCrustParachain,
|
||||
'Dali Testnet (Rococo Relay)': chainRococoDali,
|
||||
DaliTestnet: nodeDaliTestnet,
|
||||
darwinia: nodeDarwinia,
|
||||
datahighway: nodeDataHighway,
|
||||
debio: chainDeBio,
|
||||
'debio-testnet': chainDeBio,
|
||||
'dock-pos-mainnet': nodeDockMainnet,
|
||||
'dock-pos-testnet': nodeDockTestnet,
|
||||
dolphin: nodeDolphin,
|
||||
dorafactory: chainDorafactory,
|
||||
dotmog: nodeDotMog,
|
||||
eave: nodeEave,
|
||||
edgeware: nodeEdgeware,
|
||||
efinity: nodeEfinity,
|
||||
empty: externalEmptySVG,
|
||||
encointer: nodeEncointer,
|
||||
equilibrium: chainEquilibrium,
|
||||
fantour: nodeFantour,
|
||||
ferrum: chainFerrum,
|
||||
frequency: chainFrequency,
|
||||
galital: nodeGalital,
|
||||
galois: nodeMath,
|
||||
gamepower: nodeGamePower,
|
||||
geek: nodeGeek,
|
||||
geminis: chainGeminis,
|
||||
genshiro: chainGenshiro,
|
||||
gm: chainGM,
|
||||
halongbay: nodePolkaFoundry,
|
||||
hanonycash: nodeHanonycash,
|
||||
hashed: nodeHashed,
|
||||
heiko: chainParallel,
|
||||
helixstreet: nodeHelixstreet,
|
||||
hydra: chainSnakenet,
|
||||
idavoll: nodeIdavoll,
|
||||
imbue: nodeImbue,
|
||||
integritee: nodeIntegritee,
|
||||
interlay: chainInterlay,
|
||||
'interlay-testnet': chainInterlay,
|
||||
ipci: nodeIPCI,
|
||||
ipse: nodeIpse,
|
||||
jaz: nodeJaz,
|
||||
joystream: nodeJoystream,
|
||||
jupiter: nodeJupiter,
|
||||
kabocha: nodeKabocha,
|
||||
'Kabocha (kabsoup)': nodeKabocha,
|
||||
kapex: nodeTotem,
|
||||
karura: chainKarura,
|
||||
kerria: nodeParallel,
|
||||
khala: nodeKhala,
|
||||
kico: chainKico,
|
||||
kico2: chainKico,
|
||||
kilt: nodeKilt,
|
||||
kintsugi: chainKintsugi,
|
||||
'kintsugi-testnet': chainKintsugi,
|
||||
klugdossier: nodeKlug,
|
||||
kpron: nodeApron,
|
||||
kulupu: nodeKulupu,
|
||||
kusari: nodeKusari,
|
||||
kylin: nodeKylin,
|
||||
laminar: nodeLaminar,
|
||||
listen: chainListen,
|
||||
litentry: nodeLitentry,
|
||||
litmus: nodeLitmus,
|
||||
logion: chainLogion,
|
||||
loomNetwork: nodeLoomNetwork,
|
||||
luhn: nodeLuhn,
|
||||
mangata: chainMangata,
|
||||
manta: nodeManta,
|
||||
mars: nodeAresMars,
|
||||
mathchain: nodeMath,
|
||||
minix: nodeMinix,
|
||||
moonbaseAlpha: moonbase,
|
||||
moonbeam,
|
||||
moonriver,
|
||||
moonrock: nodeMoonrock,
|
||||
moonshadow,
|
||||
mybank,
|
||||
myriad: chainMyriad,
|
||||
'myriad-testnet': chainMyriad,
|
||||
nftmart: nodeNFTMart,
|
||||
nodle: nodeNodle,
|
||||
oak: chainOAK,
|
||||
odyssey: nodeAresOdyssey,
|
||||
omnibtc: nodeOmniBTC,
|
||||
opal: nodeUniqueWestend,
|
||||
opportunity: nodeOpportunity,
|
||||
'origintrail-parachain': chainOriginTrail,
|
||||
pangolin: nodePangolin,
|
||||
pangoro: nodePangoro,
|
||||
parallel: chainParallel,
|
||||
pendulum: chainPendulum,
|
||||
phala: nodePhala,
|
||||
phoenix: nodePhoenix,
|
||||
picasso: chainPicasso,
|
||||
pichiu: nodePichiu,
|
||||
polkadex: nodePolkadex,
|
||||
polkadotCollectives: chainWestendCollectives,
|
||||
polkafoundry: nodePolkaFoundry,
|
||||
polkasmith: nodePolkaSmith,
|
||||
polymesh: nodePolymesh,
|
||||
pontem: nodePontem,
|
||||
prism: nodePrism,
|
||||
quartz: nodeQuartz,
|
||||
realis: nodeRealis,
|
||||
riochain: nodeRiochain,
|
||||
riodefi: chainRiodefi,
|
||||
robonomics: nodeRobonomics,
|
||||
rocfinity: nodeRocfinity,
|
||||
rocky: nodeCrust,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: chainAcala,
|
||||
rococoAcurast: chainAcurast,
|
||||
rococoAmplitude: chainAmplitude,
|
||||
rococoApron: nodeApron,
|
||||
rococoAres: nodeAres,
|
||||
rococoAventus: nodeAventus,
|
||||
rococoBajun: nodeBajun,
|
||||
rococoBasilisk: nodeBasilisk,
|
||||
rococoBifrost: nodeBifrost,
|
||||
rococoBitCountry: nodeBitCountry,
|
||||
rococoBitgreen: chainBitgreen,
|
||||
rococoCatalyst: nodeCentrifuge,
|
||||
rococoChainX: nodeChainx,
|
||||
rococoClover: nodeClover,
|
||||
rococoConfti: nodeConfti,
|
||||
rococoContracts: chainRococoContracts,
|
||||
rococoCrab: nodeCrab,
|
||||
rococoCrust: nodeCrust,
|
||||
rococoDali: chainRococoDali,
|
||||
rococoDarwinia: nodeDarwinia,
|
||||
rococoDolphin: nodeDolphin,
|
||||
rococoEave: nodeEave,
|
||||
rococoEncointer: nodeEncointer,
|
||||
rococoEthos: chainEthos,
|
||||
rococoFrequency: chainFrequency,
|
||||
rococoGalital: nodeGalital,
|
||||
rococoGenshiro: chainGenshiro,
|
||||
rococoHelixstreet: nodeHelixstreet,
|
||||
rococoHydraDX: chainHydrate,
|
||||
rococoIdavoll: nodeIdavoll,
|
||||
rococoImbue: nodeImbue,
|
||||
rococoIntegritee: nodeIntegritee,
|
||||
rococoInterBTC: chainInterlay,
|
||||
rococoJupiter: nodeJupiter,
|
||||
rococoKabocha: nodeKabocha,
|
||||
rococoKilt: nodeKilt,
|
||||
rococoKonomi: nodeKonomi,
|
||||
rococoKylin: nodeKylin,
|
||||
rococoLaminar: nodeLaminar,
|
||||
rococoLitentry: nodeLitentry,
|
||||
rococoLoomNetwork: nodeLoomNetwork,
|
||||
rococoMangata: chainMangata,
|
||||
rococoManta: nodeManta,
|
||||
rococoMathChain: nodeMath,
|
||||
rococoMd5: nodeMd5,
|
||||
rococoMoonrock: nodeMoonrock,
|
||||
rococoMoonsama: chainMoonsamaDevelopment,
|
||||
rococoNodle: nodeNodle,
|
||||
rococoOriginTrailParachain: chainOriginTrailTestnet,
|
||||
rococoPangolin: nodePangolin,
|
||||
rococoParami: nodeParami,
|
||||
rococoPhala: nodePhala,
|
||||
rococoPhoenix: nodePhoenix,
|
||||
rococoPolkaFoundry: nodePolkaFoundry,
|
||||
rococoPrism: nodePrism,
|
||||
rococoSingLavender: nodeSingLavender,
|
||||
rococoSora: nodeSora,
|
||||
rococoSpreehafen: chainRoccoDataHighway,
|
||||
rococoStandard: chainStandard,
|
||||
rococoSubDAO: nodeSubDAO,
|
||||
rococoSubsocial: nodeSoonsocialX,
|
||||
rococoSubzero: nodeZero,
|
||||
rococoTick: chainRococoTick,
|
||||
rococoTrack: chainRococoTrack,
|
||||
rococoTrick: chainRococoTrick,
|
||||
rococoTrustBase: nodeTrustBase,
|
||||
rococoUnitNetwork: nodeUnitNetwork,
|
||||
rococoUnitv: nodeUnitv,
|
||||
rococoVln: nodeVln,
|
||||
rococoZenlink: nodeZenlink,
|
||||
sakura: nodeSakura,
|
||||
shadow: nodeShadow,
|
||||
sherpax: nodeSherpax,
|
||||
shibuya: chainShiden,
|
||||
shiden: chainShiden,
|
||||
singLavender: nodeSingLavender,
|
||||
skyekiwi: chainSkyeKiwi,
|
||||
snakenet: chainSnakenet,
|
||||
snow: nodeSnow,
|
||||
snowbridge: chainSnowbridge,
|
||||
soonsocial: nodeSoonsocial,
|
||||
sora: nodeSora,
|
||||
'sora-substrate': nodeSora,
|
||||
sora_ksm: nodeSora,
|
||||
spanner: chainSpanner,
|
||||
stafi: nodeStafi,
|
||||
stagex: nodeTotem,
|
||||
subdao: nodeSubDAO,
|
||||
'SubDAO PC1': nodeSubDAO,
|
||||
'SubDAO Staging': nodeSubDAO,
|
||||
subgame: nodeSubGame,
|
||||
'SubGame Gamma': nodeSubGame,
|
||||
'SubGame Staging': nodeSubGame,
|
||||
subsocial: nodeSubsocial,
|
||||
subsocialX: nodeSubsocialX,
|
||||
subspace: nodeSubspace,
|
||||
'subspace-farmnet': nodeSubspace,
|
||||
'subspace-gemini-1': nodeSubspace,
|
||||
'subspace-gemini-2a': nodeSubspace,
|
||||
substrate: nodeSubstrate,
|
||||
substrateContractsNode: nodeSubstrateContractsNode,
|
||||
swapdex: nodeSwapdex,
|
||||
tanganika: chainKusamaDataHighway,
|
||||
tangle: chainTangle,
|
||||
ternoa: nodeTernoa,
|
||||
'ternoa-alphanet': nodeTernoa,
|
||||
'ternoa-testnet': nodeTernoa,
|
||||
'thebifrost-mainnet': nodeTheBifrost,
|
||||
'thebifrost-testnet': nodeTheBifrost,
|
||||
'totem-parachain': nodeTotem,
|
||||
trustbase: nodeTrustBase,
|
||||
uniarts: nodeUniarts,
|
||||
unique: nodeUnique,
|
||||
unitnetwork: nodeUnitNetwork,
|
||||
unitv: nodeUnitv,
|
||||
unorthodox: chainUnorthodox,
|
||||
vanilla: nodeParallel,
|
||||
vara: nodeVara,
|
||||
vln: nodeVln,
|
||||
web3games: nodeWeb3games,
|
||||
westend: nodeWestend,
|
||||
westendCollectives: chainWestendCollectives,
|
||||
westendPichiu: nodePichiu,
|
||||
westendStandard: chainStandard,
|
||||
westlake: nodeWestlake,
|
||||
whala: nodeWhala,
|
||||
zCloak: nodeZCloak,
|
||||
zero: nodeZero
|
||||
};
|
||||
|
||||
// preload all
|
||||
[chainLogos, namedLogos, nodeLogos].forEach((imageSet): void => {
|
||||
Object.values(imageSet).forEach((src): void => {
|
||||
new Image().src = src as string;
|
||||
});
|
||||
});
|
||||
@ -19,7 +19,7 @@ interface Props {
|
||||
value: Network;
|
||||
}
|
||||
|
||||
function NetworkDisplay ({ apiUrl, className = '', setApiUrl, value: { icon, isChild, isRelay, isUnreachable, name, nameRelay: relay, paraId, providers, uiLogo } }: Props): React.ReactElement<Props> {
|
||||
function NetworkDisplay ({ apiUrl, className = '', setApiUrl, value: { isChild, isRelay, isUnreachable, name, nameRelay: relay, paraId, providers, uiLogo } }: Props): React.ReactElement<Props> {
|
||||
const { t } = useTranslation();
|
||||
const isSelected = useMemo(
|
||||
() => providers.some(({ url }) => url === apiUrl),
|
||||
@ -49,7 +49,7 @@ function NetworkDisplay ({ apiUrl, className = '', setApiUrl, value: { icon, isC
|
||||
<ChainImg
|
||||
className='endpointIcon'
|
||||
isInline
|
||||
logo={uiLogo || (icon === 'local' ? 'empty' : (icon || 'empty'))}
|
||||
logo={uiLogo || 'empty'}
|
||||
withoutHl
|
||||
/>
|
||||
<div className='endpointValue'>
|
||||
|
||||
@ -54,7 +54,6 @@ function combineEndpoints (endpoints: LinkOption[]): Group[] {
|
||||
prev.networks[prev.networks.length - 1].providers.push(prov);
|
||||
} else if (!e.isUnreachable) {
|
||||
prev.networks.push({
|
||||
icon: e.info,
|
||||
isChild: e.isChild,
|
||||
isRelay: !!e.genesisHash,
|
||||
name: e.text as string,
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
import React from 'react';
|
||||
|
||||
export interface Network {
|
||||
icon?: string;
|
||||
isChild?: boolean;
|
||||
isLightClient?: boolean;
|
||||
isRelay?: boolean;
|
||||
|
||||
@ -6,7 +6,6 @@ import type { IconName } from '@fortawesome/fontawesome-svg-core';
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { chainLogos, namedLogos, nodeLogos } from '@polkadot/apps-config';
|
||||
import { externalEmptySVG } from '@polkadot/apps-config/ui/logos/external';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
|
||||
@ -15,31 +14,24 @@ import Icon from './Icon';
|
||||
interface Props {
|
||||
className?: string;
|
||||
isInline?: boolean;
|
||||
logo?: keyof typeof namedLogos;
|
||||
logo?: string;
|
||||
onClick?: () => any;
|
||||
withoutHl?: boolean;
|
||||
}
|
||||
|
||||
function sanitize (value?: string): string {
|
||||
return value?.toLowerCase().replace('-', ' ') || '';
|
||||
}
|
||||
|
||||
function ChainImg ({ className = '', isInline, logo, onClick, withoutHl }: Props): React.ReactElement<Props> {
|
||||
const { apiEndpoint, systemChain, systemName } = useApi();
|
||||
const { apiEndpoint } = useApi();
|
||||
const [isEmpty, img, isFa] = useMemo((): [boolean, unknown, boolean] => {
|
||||
const found = logo && logo !== 'empty'
|
||||
? logo.startsWith('data:image/') || logo.startsWith('fa;')
|
||||
? logo
|
||||
: namedLogos[logo]
|
||||
: apiEndpoint?.uiLogo || chainLogos[sanitize(systemChain)] || nodeLogos[sanitize(systemName)];
|
||||
const found = logo || apiEndpoint?.uiLogo;
|
||||
const imgBase = found || externalEmptySVG;
|
||||
const isFa = (imgBase as string).startsWith('fa;');
|
||||
const img = isFa
|
||||
? (imgBase as string).substring(3)
|
||||
: imgBase;
|
||||
const [isFa, img] = !imgBase || imgBase === 'empty' || !(imgBase.startsWith('data:') || imgBase.startsWith('fa;'))
|
||||
? [false, externalEmptySVG]
|
||||
: imgBase.startsWith('fa;')
|
||||
? [true, imgBase.substring(3)]
|
||||
: [false, imgBase];
|
||||
|
||||
return [!found || logo === 'empty', img, isFa];
|
||||
}, [apiEndpoint, logo, systemChain, systemName]);
|
||||
}, [apiEndpoint, logo]);
|
||||
|
||||
const iconClassName = `${className} ui--ChainImg ${(isEmpty && !withoutHl) ? 'highlight--bg' : ''} ${isInline ? 'isInline' : ''}`;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user