Add Apron (#5028)
This commit is contained in:
parent
c63b3e6495
commit
84a71dc3c4
22
packages/apps-config/src/api/spec/apron.ts
Normal file
22
packages/apps-config/src/api/spec/apron.ts
Normal 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;
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/apron.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/apron.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user