add kpron to apps (#5718)

* change chainid from 128 to 2048 for apron

* kpron: add kpron spec;

* krpon: fix lint error;

Co-authored-by: Apron2050 <xr.frozen@qq.com>
This commit is contained in:
sharkygg 2021-07-01 03:13:33 +08:00 committed by GitHub
parent 657b1dc28e
commit 4e92501096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 1 deletions

View File

@ -47,6 +47,7 @@ import jupiter from './jupiter';
import jupiterRococo from './jupiter-rococo';
import kilt from './kilt';
import konomi from './konomi';
import kpron from './kpron';
import kulupu from './kulupu';
import kylin from './kylin';
import laminar from './laminar';
@ -156,6 +157,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'kilt-parachain': kilt,
'kilt-spiritnet': kilt,
konomi,
kpron,
kulupu,
kylin,
laminar,

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

@ -142,6 +142,16 @@ export function createKusama (t: TFunction): EndpointOption {
'KILT Protocol': 'wss://spiritnet.kilt.io/'
}
},
{
info: 'kpron',
homepage: 'http://apron.network/',
isUnreachable: true,
paraId: 2019,
text: t('rpc.kusama.kpron', 'Kpron', { ns: 'apps-config' }),
providers: {
Kpron: 'wss://kusama-kpron-rpc.apron.network/'
}
},
{
info: 'mars',
homepage: 'https://www.aresprotocol.io/',

View File

@ -107,6 +107,7 @@ const nodeGeek = '#4f46e5';
const nodeIpse = '#08a1e8';
const nodeJupiter = '#7143ff';
const nodeKonomi = '#007aff';
const nodeKpron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
const nodeKylin = '#ed007e';
const nodeKlug = '#663399';
const nodeLitentry = 'linear-gradient(45deg, #5cc27c 0%, #6de98f 100%)';
@ -199,6 +200,7 @@ export const chainColors: Record<string, string> = Object.entries({
'KILT Testnet': chainKilt,
'KLUGDOSSIER.NET': chainKlug,
Konomi: chainKonomi,
Kpron: nodeKpron,
Kulupu: chainKulupu,
Kusama: chainKusama,
'Kusama CC1': chainKusama,
@ -302,6 +304,7 @@ export const nodeColors = Object.entries({
IpseTestnet: nodeIpse,
'Klug Dossier Node': nodeKlug,
'Konomi Collator': nodeKonomi,
'Kpron Collator': nodeKpron,
'Kylin Collator': nodeKylin,
'Litentry Collator': nodeLitentry,
'Manta Collator': nodeManta,

View File

@ -166,6 +166,7 @@ export const chainLogos = Object.entries({
'KILT Testnet': nodeKilt,
KlugDossier: nodeKlug,
Konomi: nodeKonomi,
Kpron: nodeApron,
Kusama: chainKusama, // new name after CC3
'Kusama CC1': chainKusama,
'Kusama CC2': chainKusama,
@ -284,6 +285,7 @@ export const nodeLogos = Object.entries({
'KILT Local': nodeKilt,
'KILT Peregrine Testnet': nodeKilt,
'Klug Dossier Node': nodeKlug,
'Kpron Collator': nodeApron,
kulupu: nodeKulupu,
'Kylin Node': nodeKylin,
'Laminar Node': nodeLaminar,
@ -426,6 +428,7 @@ export const namedLogos: Record<string, unknown> = {
khala: nodeKhala,
kilt: nodeKilt,
klugdossier: nodeKlug,
kpron: nodeApron,
kulupu: nodeKulupu,
kusama: chainKusama,
kylin: nodeKylin,

View File

@ -25,6 +25,7 @@
"rpc.kusama.karura": "Karura",
"rpc.kusama.khala": "Khala Network",
"rpc.kusama.kilt": "KILT Mainnet",
"rpc.kusama.kpron": "Kpron",
"rpc.kusama.mars": "Mars",
"rpc.kusama.moonriver": "Moonriver",
"rpc.kusama.parity": "Kusama",
@ -181,4 +182,4 @@
"rpc.westend.whala": "Whala Network",
"ss58.default": "Default for the connected node",
"testnet.kylin-node.co.uk": "Kylin Testnet"
}
}