Skip to content

Commit

Permalink
Add asset hub logos (#9593)
Browse files Browse the repository at this point in the history
* Add asset hub logos

* Sort common/system parachains
  • Loading branch information
jacogr authored Jun 16, 2023
1 parent def6026 commit de76b40
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 59 deletions.
11 changes: 9 additions & 2 deletions packages/apps-config/src/endpoints/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,22 @@ describe('urls are sorted', (): void => {
return !hasDevelopment;
});

filtered.forEach(({ isHeader, text, textBy }, index): void => {
filtered.forEach(({ isHeader, paraId, text, textBy }, index): void => {
if (isHeader) {
lastHeader = text as string;
} else {
it(`${lastHeader}:: ${text as string}:: ${textBy}`, (): void => {
assert((
filtered[index - 1].isHeader ||
filtered[index - 1].linked ||
(isNumber(filtered[index - 1].paraId) && (filtered[index - 1].paraId as number) < 2000) ||
(
isNumber(filtered[index - 1].paraId) &&
(
(filtered[index - 1].paraId as number) < 2000
? isNumber(paraId) && paraId >= 2000
: false
)
) ||
filtered[index - 1].text === '' ||
text === filtered[index - 1].text ||
(text as string).localeCompare(filtered[index - 1].text as string) === 1
Expand Down
32 changes: 16 additions & 16 deletions packages/apps-config/src/endpoints/productionRelayKusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';

import { KUSAMA_GENESIS } from '../api/constants.js';
import { chainsAbandPNG, chainsAltairSVG, chainsAmplitudeSVG, chainsDorafactoryPNG, chainsGenshiroSVG, chainsGmJPEG, chainsKaruraSVG, chainsKicoPNG, chainsKintsugiPNG, chainsKusamaSVG, chainsListenPNG, chainsMangataPNG, chainsRiodefiPNG, chainsShidenPNG, chainsTinkerPNG, chainsTuringPNG, chainsUnorthodoxPNG } from '../ui/logos/chains/index.js';
import { nodesApronPNG, nodesAresMarsPNG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCrabSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesImbuePNG, nodesIntegriteeSVG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLitmusPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesTrustbasePNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { nodesApronPNG, nodesAresMarsPNG, nodesAssetHubSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCrabSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesImbuePNG, nodesIntegriteeSVG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLitmusPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesTrustbasePNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { getTeleports } from './util.js';

// The available endpoints that will show in the dropdown. For the most part (with the exception of
Expand Down Expand Up @@ -790,7 +790,21 @@ export const prodParasKusamaCommon: EndpointOption[] = [
text: 'AssetHub',
ui: {
color: '#113911',
logo: nodesStatemineSVG
logo: nodesAssetHubSVG
}
},
{
info: 'kusamaBridgeHub',
paraId: 1002,
providers: {
'IBP-GeoDNS1': 'wss://sys.ibp.network/bridgehub-kusama',
'IBP-GeoDNS2': 'wss://sys.dotters.network/bridgehub-kusama',
Parity: 'wss://kusama-bridge-hub-rpc.polkadot.io',
Stakeworld: 'wss://ksm-rpc.stakeworld.io/bridgehub'
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubBlackSVG
}
},
{
Expand All @@ -809,20 +823,6 @@ export const prodParasKusamaCommon: EndpointOption[] = [
color: '#0000cc',
logo: nodesEncointerBlueSVG
}
},
{
info: 'kusamaBridgeHub',
paraId: 1002,
providers: {
'IBP-GeoDNS1': 'wss://sys.ibp.network/bridgehub-kusama',
'IBP-GeoDNS2': 'wss://sys.dotters.network/bridgehub-kusama',
Parity: 'wss://kusama-bridge-hub-rpc.polkadot.io',
Stakeworld: 'wss://ksm-rpc.stakeworld.io/bridgehub'
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubBlackSVG
}
}
];

Expand Down
28 changes: 14 additions & 14 deletions packages/apps-config/src/endpoints/productionRelayPolkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';

import { POLKADOT_GENESIS } from '../api/constants.js';
import { chainsAcalaSVG, chainsBitgreenPNG, chainsComposableFinancePNG, chainsEquilibriumSVG, chainsFrequencySVG, chainsGeminisPNG, chainsInvarchJPEG, chainsOakPNG, chainsOrigintrailPNG, chainsPeaqPNG, chainsPendulumSVG, chainsPolkadotCircleSVG, chainsSnakenetSVG, chainsTotemSVG, chainsWatrPNG } from '../ui/logos/chains/index.js';
import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesT3rnPNG, nodesUniqueSVG, nodesZeitgeistPNG } from '../ui/logos/nodes/index.js';
import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAssetHubSVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesT3rnPNG, nodesUniqueSVG, nodesZeitgeistPNG } from '../ui/logos/nodes/index.js';
import { getTeleports } from './util.js';

// The available endpoints that will show in the dropdown. For the most part (with the exception of
Expand Down Expand Up @@ -678,7 +678,19 @@ export const prodParasPolkadotCommon: EndpointOption[] = [
text: 'AssetHub',
ui: {
color: '#86e62a',
logo: nodesStatemineSVG
logo: nodesAssetHubSVG
}
},
{
info: 'polkadotBridgeHub',
paraId: 1002,
providers: {
Parity: 'wss://polkadot-bridge-hub-rpc.polkadot.io',
Stakeworld: 'wss://dot-rpc.stakeworld.io/bridgehub'
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubSVG
}
},
{
Expand All @@ -698,18 +710,6 @@ export const prodParasPolkadotCommon: EndpointOption[] = [
color: '#e6777a',
logo: 'fa;people-group'
}
},
{
info: 'polkadotBridgeHub',
paraId: 1002,
providers: {
Parity: 'wss://polkadot-bridge-hub-rpc.polkadot.io',
Stakeworld: 'wss://dot-rpc.stakeworld.io/bridgehub'
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubSVG
}
}
];

Expand Down
28 changes: 14 additions & 14 deletions packages/apps-config/src/endpoints/testingRelayRococo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';

import { ROCOCO_GENESIS } from '../api/constants.js';
import { chainsAcurastPNG, chainsAmplitudeSVG, chainsBitgreenPNG, chainsFrequencySVG, chainsGenshiroSVG, chainsHydratePNG, chainsIdiyanaleLogoWhiteSVG, chainsJurPNG, chainsMangataPNG, chainsMoonsamaPNG, chainsOrigintrailTestnetPNG, chainsRococoSVG, chainsSnowbridgePNG, chainsT0rnPNG, chainsTanglePNG, chainsTinkerPNG, chainsTotemSVG, chainsTuringPNG, chainsVirtoPNG, chainsWatrPNG } from '../ui/logos/chains/index.js';
import { nodesArcticPNG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryRococoPNG, nodesMd5PNG, nodesNodleSVG, nodesOliSVG, nodesPangolinSVG, nodesPhalaSVG, nodesPicassoPNG, nodesPolkadexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSocietalSVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubstrateContractsNodePNG, nodesUnitnetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { nodesArcticPNG, nodesAssetHubSVG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryRococoPNG, nodesMd5PNG, nodesNodleSVG, nodesOliSVG, nodesPangolinSVG, nodesPhalaSVG, nodesPicassoPNG, nodesPolkadexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSocietalSVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesSubstrateContractsNodePNG, nodesUnitnetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
import { getTeleports } from './util.js';

// The available endpoints that will show in the dropdown. For the most part (with the exception of
Expand Down Expand Up @@ -638,7 +638,19 @@ export const testParasRococoCommon: EndpointOption[] = [
text: 'AssetHub',
ui: {
color: '#77bb77',
logo: nodesStatemineSVG
logo: nodesAssetHubSVG
}
},
{
info: 'rococoBridgehub',
paraId: 1013,
providers: {
Parity: 'wss://rococo-bridge-hub-rpc.polkadot.io'
},
teleport: [-1],
text: 'Bridgehub',
ui: {
logo: nodesBridgeHubBlackSVG
}
},
{
Expand Down Expand Up @@ -667,18 +679,6 @@ export const testParasRococoCommon: EndpointOption[] = [
color: '#0000cc',
logo: nodesEncointerBlueSVG
}
},
{
info: 'rococoBridgehub',
paraId: 1013,
providers: {
Parity: 'wss://rococo-bridge-hub-rpc.polkadot.io'
},
teleport: [-1],
text: 'Bridgehub',
ui: {
logo: nodesBridgeHubBlackSVG
}
}
];

Expand Down
26 changes: 13 additions & 13 deletions packages/apps-config/src/endpoints/testingRelayWestend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';

import { WESTEND_GENESIS } from '../api/constants.js';
import { chainsKaruraSVG, chainsStandardPNG } from '../ui/logos/chains/index.js';
import { nodesBridgeHubSVG, nodesCentrifugePNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKhalaSVG, nodesKiltPNG, nodesKylinPNG, nodesMoonshadowPNG, nodesStatemineSVG, nodesWestendColourSVG } from '../ui/logos/nodes/index.js';
import { nodesAssetHubSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKhalaSVG, nodesKiltPNG, nodesKylinPNG, nodesMoonshadowPNG, nodesWestendColourSVG } from '../ui/logos/nodes/index.js';
import { getTeleports } from './util.js';

// The available endpoints that will show in the dropdown. For the most part (with the exception of
Expand Down Expand Up @@ -139,7 +139,18 @@ export const testParasWestendCommon: EndpointOption[] = [
text: 'AssetHub',
ui: {
color: '#77bb77',
logo: nodesStatemineSVG
logo: nodesAssetHubSVG
}
},
{
info: 'westendBridgeHub',
paraId: 1002,
providers: {
// Parity: 'wss://westend-bridge-hub-rpc.polkadot.io' // https://github.com/polkadot-js/apps/issues/9348
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubSVG
}
},
{
Expand All @@ -156,17 +167,6 @@ export const testParasWestendCommon: EndpointOption[] = [
color: '#e6777a',
logo: 'fa;people-group'
}
},
{
info: 'westendBridgeHub',
paraId: 1002,
providers: {
// Parity: 'wss://westend-bridge-hub-rpc.polkadot.io' // https://github.com/polkadot-js/apps/issues/9348
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubSVG
}
}
];

Expand Down
22 changes: 22 additions & 0 deletions packages/apps-config/src/ui/logos/nodes/assetHub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit. Auto-generated via node scripts/imgConvert.mjs

export const nodesAssetHubSVG = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCk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jbGFzcz0ic3QyIiBjeD0iNDk0LjMiIGN5PSIyMTYiIHI9IjQ2LjkiLz4KCTxjaXJjbGUgY2xhc3M9InN0MiIgY3g9IjE0Ny44IiBjeT0iNDI0LjgiIHI9IjQ2LjkiLz4KCTxjaXJjbGUgY2xhc3M9InN0MiIgY3g9IjQ5NC4zIiBjeT0iNDI0LjgiIHI9IjQ2LjkiLz4KPC9nPgo8L3N2Zz4K';
1 change: 1 addition & 0 deletions packages/apps-config/src/ui/logos/nodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export { nodesAresGladiosSVG } from './generated/ares-gladiosSVG.js';
export { nodesAresMarsPNG } from './generated/ares-marsPNG.js';
export { nodesAresOdysseySVG } from './generated/ares-odysseySVG.js';
export { nodesAresPNG } from './generated/aresPNG.js';
export { nodesAssetHubSVG } from './generated/assetHubSVG.js';
export { nodesAstarPNG } from './generated/astarPNG.js';
export { nodesAutomataPNG } from './generated/automataPNG.js';
export { nodesAventusSVG } from './generated/aventusSVG.js';
Expand Down

0 comments on commit de76b40

Please sign in to comment.