add MathChain-Galois (#4202)
* add mathchain galois support * fix typo * fix eslint * fix lint
This commit is contained in:
parent
cfdc444be7
commit
3f1bbb095e
11
packages/apps-config/src/api/spec/galois.ts
Normal file
11
packages/apps-config/src/api/spec/galois.ts
Normal 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'
|
||||
};
|
||||
@ -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,
|
||||
|
||||
@ -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'
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
14
packages/apps-config/src/ui/logos/nodes/math.svg
Executable file
14
packages/apps-config/src/ui/logos/nodes/math.svg
Executable file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.4 KiB |
Loading…
Reference in New Issue
Block a user