add MathChain-Galois (#4202)

* add mathchain galois support

* fix typo

* fix eslint

* fix lint
This commit is contained in:
Hging 2020-12-14 19:04:04 +08:00 committed by GitHub
parent cfdc444be7
commit 3f1bbb095e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,11 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
// structs need to be in order
/* eslint-disable sort-keys */
export default {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
RefCount: 'u8'
};

View File

@ -15,6 +15,7 @@ import edgeware from './edgeware';
import encointerNodeNotee from './encointer-node-notee';
import encointerNodeTeeproxy from './encointer-node-teeproxy';
import equilibrium from './equilibrium';
import galois from './galois';
import hanonycash from './hanonycash';
import kilt from './kilt';
import kulupu from './kulupu';
@ -45,6 +46,7 @@ export default {
'encointer-node': encointerNodeNotee,
'encointer-node-notee': encointerNodeNotee,
'encointer-node-teeproxy': encointerNodeTeeproxy,
galois: galois,
hanonycash,
kulupu,
'mashnet-node': kilt,

View File

@ -367,6 +367,13 @@ function createTestNetworks (t: TFunction): LinkOption[] {
text: t('rpc.westend', 'Westend', { ns: 'apps-config' }),
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Parity' } }),
value: 'wss://westend-rpc.polkadot.io'
},
{
dnslink: 'galois',
info: 'galois',
text: t('rpc.galois', 'Galois', { ns: 'apps-config' }),
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'MathWallet ' } }),
value: 'wss://galois.maiziqianbao.net/ws'
}
];
}

View File

@ -26,6 +26,7 @@ const chainRoccoTick = '#22bb22';
const chainRoccoTrack = '#bb2222';
const chainRoccoTrick = '#2222bb';
const chainWestend = '#da68a7';
const chainGalois = '#000000';
// based on node name
// alphabetical
@ -67,7 +68,8 @@ export const chainColors: Record<string, any> = [
['Tick', chainRoccoTick],
['Track', chainRoccoTrack],
['Trick', chainRoccoTrick],
['Westend', chainWestend]
['Westend', chainWestend],
['Galois', chainGalois]
].reduce((colors, [chain, color]): Record<string, any> => ({
...colors,
[chain.toLowerCase()]: color

View File

@ -41,6 +41,7 @@ import nodeHanonycash from './nodes/hanonycash.svg';
import nodeKilt from './nodes/kilt.svg';
import nodeKulupu from './nodes/kulupu.svg';
import nodeLaminar from './nodes/laminar-circle.svg';
import nodeMath from './nodes/math.svg';
import moonbeam from './nodes/moonbeam.png';
import nodeNodle from './nodes/nodle.svg';
import nodePhala from './nodes/phala.svg';
@ -60,6 +61,7 @@ import emptyLogo from './empty.svg';
export const chainLogos: Record<string, unknown> = [
['darwinia crab', nodeCrab],
['Dusty', chainDusty],
['Galois', nodeMath],
['Kusama', chainKusama], // new name after CC3
['Kusama CC1', chainKusama],
['Kusama CC2', chainKusama],
@ -92,6 +94,7 @@ export const nodeLogos: Record<string, unknown> = [
['Encointer Node', nodeEncointerNotee],
['Encointer Node noTEE', nodeEncointerNotee],
['Encointer Node TEE proxy', nodeEncointerTeeproxy],
['Galois', nodeMath],
['hanonycash', nodeHanonycash],
['KILT Node', nodeKilt],
['kulupu', nodeKulupu],
@ -133,6 +136,7 @@ export const namedLogos: Record<string, unknown> = {
edgeware: nodeEdgeware,
empty: emptyLogo,
equilibrium: nodeEquilibrium,
galois: nodeMath,
hanonycash: nodeHanonycash,
kilt: nodeKilt,
kulupu: nodeKulupu,

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.4 KiB