add jupiter testnet (#4334)
* feat(jupiter): add jupiter testnet * feat(jupiter): change jupiter types add ```Address: 'MultiAddress'``` types.
This commit is contained in:
parent
3c71176d59
commit
8cdcd912ce
@ -17,6 +17,7 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||
import equilibrium from './equilibrium';
|
||||
import galois from './galois';
|
||||
import hanonycash from './hanonycash';
|
||||
import jupiter from './jupiter';
|
||||
import kilt from './kilt';
|
||||
import nodle from './nodle';
|
||||
import phala from './phala';
|
||||
@ -47,6 +48,7 @@ export default {
|
||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||
galois: galois,
|
||||
hanonycash,
|
||||
jupiter,
|
||||
'mashnet-node': kilt,
|
||||
'nodle-chain': nodle,
|
||||
'phala-node': phala,
|
||||
|
||||
10
packages/apps-config/src/api/spec/jupiter.ts
Normal file
10
packages/apps-config/src/api/spec/jupiter.ts
Normal file
@ -0,0 +1,10 @@
|
||||
// Copyright 2017-2021 @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'
|
||||
};
|
||||
@ -158,6 +158,20 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
text: t('rpc.zero', 'zero', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'ZERO' } }),
|
||||
value: 'wss://alphaville-0.zero.io'
|
||||
},
|
||||
{
|
||||
dnslink: 'jupiter',
|
||||
info: 'jupiter',
|
||||
text: t('rpc.jupiter', 'Jupiter', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Elara' } }),
|
||||
value: 'wss://jupiter.elara.patract.io'
|
||||
},
|
||||
{
|
||||
dnslink: 'jupiter',
|
||||
info: 'jupiter',
|
||||
text: t('rpc.jupiter', 'Jupiter', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Patract' } }),
|
||||
value: 'wss://ws.jupiter.patract.cn'
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -29,6 +29,7 @@ const chainRoccoTrick = '#2222bb';
|
||||
const chainWestend = '#da68a7';
|
||||
const chainGalois = '#000000';
|
||||
const chainZero = '#000000';
|
||||
const chainJupiter = '#7143ff';
|
||||
|
||||
// based on node name
|
||||
// alphabetical
|
||||
@ -46,6 +47,7 @@ const nodeSora = '#2D2926';
|
||||
const nodeStafi = '#00F3AB';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
const nodeZero = '#0099cc';
|
||||
const nodeJupiter = '#7143ff';
|
||||
|
||||
export { emptyColor };
|
||||
|
||||
@ -76,7 +78,8 @@ export const chainColors: Record<string, any> = [
|
||||
['Trick', chainRoccoTrick],
|
||||
['Westend', chainWestend],
|
||||
['Galois', chainGalois],
|
||||
['ZΞRO Alphaville', chainZero]
|
||||
['ZΞRO Alphaville', chainZero],
|
||||
['Jupiter Testnet', chainJupiter]
|
||||
].reduce((colors, [chain, color]): Record<string, any> => ({
|
||||
...colors,
|
||||
[chain.toLowerCase()]: color
|
||||
@ -99,7 +102,8 @@ export const nodeColors: Record<string, any> = [
|
||||
['SORA-staging Node', nodeSora],
|
||||
['Stafi node', nodeStafi],
|
||||
['subsocial node', nodeSubsocial],
|
||||
['SUBZΞRO', nodeZero]
|
||||
['SUBZΞRO', nodeZero],
|
||||
['Jupiter Node', nodeJupiter]
|
||||
// ['node template', emptyColor],
|
||||
// ['parity polkadot', emptyColor],
|
||||
// ['substrate node', emptyColor]
|
||||
|
||||
@ -32,6 +32,7 @@ import nodeEncointerNotee from './nodes/encointer-notee.svg';
|
||||
import nodeEncointerTeeproxy from './nodes/encointer-teeproxy.svg';
|
||||
import nodeEquilibrium from './nodes/equilibrium.svg';
|
||||
import nodeHanonycash from './nodes/hanonycash.svg';
|
||||
import nodeJupiter from './nodes/jupiter.svg';
|
||||
import nodeKilt from './nodes/kilt.svg';
|
||||
import nodeKulupu from './nodes/kulupu.svg';
|
||||
import nodeLaminar from './nodes/laminar-circle.svg';
|
||||
@ -109,7 +110,8 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['substrate-node', nodeSubstrate],
|
||||
['Equilibrium Node', nodeEquilibrium],
|
||||
['Equilibrium', nodeEquilibrium],
|
||||
['SUBZΞRO', nodeZero]
|
||||
['SUBZΞRO', nodeZero],
|
||||
['Jupiter Node', nodeJupiter]
|
||||
].reduce((logos, [node, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -138,6 +140,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
equilibrium: nodeEquilibrium,
|
||||
galois: nodeMath,
|
||||
hanonycash: nodeHanonycash,
|
||||
jupiter: nodeJupiter,
|
||||
kilt: nodeKilt,
|
||||
kulupu: nodeKulupu,
|
||||
kusama: chainKusama,
|
||||
|
||||
1
packages/apps-config/src/ui/logos/nodes/jupiter.svg
Executable file
1
packages/apps-config/src/ui/logos/nodes/jupiter.svg
Executable file
@ -0,0 +1 @@
|
||||
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1,.cls-6{fill:red;}.cls-1,.cls-2,.cls-3{stroke:#000072;stroke-miterlimit:10;stroke-width:0.42px;}.cls-2{fill:aqua;stroke-linecap:round;}.cls-3,.cls-7{fill:#fff;}.cls-4{fill:#ff1e97;}.cls-5{fill:#000072;}</style></defs><rect class="cls-1" x="3.7" y="4.1" width="11.5" height="15.71" rx="1.3" transform="translate(-4.7 6.3) rotate(-30)"/><line class="cls-2" x1="4.5" y1="11.6" x2="11.1" y2="7.8"/><line class="cls-2" x1="5.9" y1="14" x2="12.4" y2="10.2"/><line class="cls-2" x1="7.2" y1="16.4" x2="13.8" y2="12.6"/><rect class="cls-3" x="7.1" y="3.7" width="13.1" height="16.66" rx="1.3" transform="translate(-4.2 8.4) rotate(-30)"/><circle class="cls-4" cx="20.4" cy="15.3" r="0.8"/><path class="cls-5" d="M19.8,11.1c-.1-.9-1.6-1.1-2.9-1.2h-.1a3.6,3.6,0,0,0-2.3-1.4A3.8,3.8,0,0,0,10,11.1H9.9c-1.1.4-2.4,1.2-2.3,2.1s.7.9,1.6,1l1.1.2h0A4.5,4.5,0,0,0,13,16.3a4,4,0,0,0,4.7-3.1h0C18.8,12.6,20,12,19.8,11.1Zm-6.6,4.5a3.7,3.7,0,0,1-2-1.2l2.9-.3,2.8-.7A3.3,3.3,0,0,1,13.2,15.6Zm4.6-3.3-.5.2H17l-3.1.8a19.5,19.5,0,0,1-3.2.2H9.9c-1-.1-1.5-.4-1.5-.5s.3-.6,1.4-1.1a3.7,3.7,0,0,0,.1,1.5h.8a3.7,3.7,0,0,1-.2-1.8,3.3,3.3,0,0,1,3.9-2.5A3.1,3.1,0,0,1,17,12.5h.2l.6-.3a8.3,8.3,0,0,0-.4-1.5l-.3-.4.3.4c1.2.1,1.7.4,1.7.5S18.8,11.8,17.8,12.3Z"/><ellipse class="cls-6" cx="14.4" cy="14.6" rx="0.9" ry="0.4" transform="translate(-2.7 3.2) rotate(-11.7)"/><circle class="cls-5" cx="8.4" cy="8.9" r="1.4"/><circle class="cls-7" cx="7.7" cy="8.2" r="0.3"/><circle class="cls-7" cx="9.2" cy="8.4" r="0.2"/><circle class="cls-7" cx="8.4" cy="8.9" r="0.2"/><circle class="cls-7" cx="8" cy="10.1" r="0.1"/><circle class="cls-7" cx="7.2" cy="8.9" r="0.1"/><circle class="cls-7" cx="8.8" cy="9.6" r="0.1"/></svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue
Block a user