This commit is contained in:
Toney 2021-04-06 12:07:38 +08:00 committed by GitHub
parent c63b3e6495
commit 84a71dc3c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,22 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId'
}
}
]
};
export default definitions;

View File

@ -4,6 +4,7 @@
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import acala from './acala';
import apron from './apron';
import aresParachain from './ares-parachain';
import bifrost from './bifrost';
import bifrostParachain from './bifrost-parachain';
@ -78,6 +79,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
Equilibrium: equilibrium,
VLN: vln,
acala,
apron,
'ares-parachain': aresParachain,
bifrost: bifrost,
'bifrost-parachain': bifrostParachain,

View File

@ -55,6 +55,14 @@ export function createRococo (t: TFunction): LinkOption[] {
}
},
// add any additional parachains here, alphabetical
{
info: 'rococoApron',
paraId: 128,
text: t('rpc.rococo.apron', 'Apron PC1', { ns: 'apps-config' }),
providers: {
'Apron Network': 'wss://rococo.apron.network'
}
},
{
info: 'rococoAres',
paraId: 6,

View File

@ -9,6 +9,7 @@ const emptyColor = '#99999';
// based on chain name
// alphabetical
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
const chainBitCountry = '#191a2e';
const chainCrab = '#7C30DD';
const chainCrust = '#ff8812';
@ -61,6 +62,7 @@ const chainTrustBase = '#ff43aa';
const chainUnitv = '#1452F0';
// based on node name
// alphabetical
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
const nodeBitCountry = '#191a2e';
const nodeBifrost = '#002cc3';
const nodeCanvas = '#c77cff';
@ -97,6 +99,7 @@ export { emptyColor };
export const chainColors: Record<string, any> = [
['acala mandala pc1', chainRoccoAcala],
['acala mandala pc2', chainRoccoAcala],
['Apron PC1', chainApron],
['Ares PC1', chainRoccoAres],
['Bifrost PC1', chainRoccoBifrost],
['Bit.Country Tewai Chain', chainBitCountry],
@ -170,6 +173,7 @@ export const chainColors: Record<string, any> = [
// Alphabetical overrides based on the actual software node type
// NOTE: This is as retrieved via the system.name RPC
export const nodeColors: Record<string, any> = [
['Apron Node', nodeApron],
['Bit.Country Node', nodeBitCountry],
['Bifrost Node', nodeBifrost],
['Canvas Node', nodeCanvas],

View File

@ -23,6 +23,7 @@ import externalPolkassembly from './external/polkassembly.png';
import externalPolkastats from './external/polkastats.png';
import externalSubscan from './external/subscan.svg';
import nodeAcala from './nodes/acala-circle.svg';
import nodeApron from './nodes/apron.png';
import nodeAres from './nodes/ares.svg';
import nodeBifrost from './nodes/bifrost.svg';
import nodeBitCountry from './nodes/bitcountry.svg';
@ -88,6 +89,7 @@ import emptyLogo from './empty.svg';
// Alphabetical overrides based on the actual matched chain name
// NOTE: This is as retrieved via system.chain RPC
export const chainLogos: Record<string, unknown> = [
['Apron PC1', nodeApron],
['Ares PC1', nodeAres],
['Crust PC1', nodeCrust],
['ChainX', nodeChainx],
@ -148,6 +150,8 @@ export const chainLogos: Record<string, unknown> = [
// NOTE: This is as retrieved via system.name RPC
export const nodeLogos: Record<string, unknown> = [
['Acala Node', nodeAcala],
['Apron Node', nodeApron],
['Apron Parachain Collator', nodeApron],
['Ares Node', nodeAres],
['Ares Parachain Collator', nodeAres],
['mandala node', nodeAcala],
@ -286,6 +290,7 @@ export const namedLogos: Record<string, unknown> = {
realis: nodeRealis,
rococo: chainRococo,
rococoAcala: nodeAcala,
rococoApron: nodeApron,
rococoAres: nodeAres,
rococoBifrost: nodeBifrost,
rococoBitCountry: nodeBitCountry,

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -1,5 +1,6 @@
{
"lng.detect": "Default browser language (auto-detect)",
"rpc.apron": "Apron",
"rpc.amber": "Amber",
"rpc.ares": "Ares",
"rpc.ava.summary": "user-run public nodes; see https://status.cloud.ava.do/",
@ -65,6 +66,7 @@
"rpc.rocco.litentry": "Litentry Rostock",
"rpc.rococo": "Rococo",
"rpc.rococo.acala": "Mandala PC2",
"rpc.rococo.apron":"Apron PC1",
"rpc.rococo.ares": "Ares PC1",
"rpc.rococo.bifrost": "Bifrost PC1",
"rpc.rococo.bitcountry": "Bit.Country PC1",