add ternoa network to the list of testnets (#4585)
* add endpoint * add type spec * fix color and logo * Fix spacing with paranthesis Co-authored-by: Jaco Greeff <jacogr@gmail.com> * remove dnslink Co-authored-by: Jaco Greeff <jacogr@gmail.com> * linting Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
parent
d36b1294b4
commit
8ff68ec208
@ -37,6 +37,7 @@ import robonomics from './robonomics';
|
||||
import stablePoc from './stable-poc';
|
||||
import stafi from './stafi';
|
||||
import subsocial from './subsocial';
|
||||
import ternoa from './ternoa';
|
||||
import uniarts from './uniarts';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
@ -83,6 +84,7 @@ export default {
|
||||
stafi,
|
||||
subsocial,
|
||||
subzero: zero,
|
||||
ternoa: ternoa,
|
||||
uniarts: uniarts,
|
||||
zenlink
|
||||
};
|
||||
|
||||
18
packages/apps-config/src/api/spec/ternoa.ts
Normal file
18
packages/apps-config/src/api/spec/ternoa.ts
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'AccountId',
|
||||
CapsuleID: 'u32',
|
||||
CapsuleIDOf: 'CapsuleID',
|
||||
CapsuleData: {
|
||||
offchain_uri: 'Vec<u8>',
|
||||
pk_hash: 'Hash',
|
||||
creator: 'AccountId',
|
||||
owner: 'AccountId',
|
||||
locked: 'bool'
|
||||
},
|
||||
LookupSource: 'AccountId'
|
||||
};
|
||||
@ -204,6 +204,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
Soramitsu: 'wss://ws.stage.sora2.soramitsu.co.jp'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'ternoa-chaos',
|
||||
text: t('rpc.ternoa-chaos', 'Ternoa Chaos', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
CapsuleCorp: 'wss://chaos.ternoa.com'
|
||||
}
|
||||
},
|
||||
{
|
||||
dnslink: 'westend',
|
||||
info: 'westend',
|
||||
|
||||
@ -60,6 +60,7 @@ const nodePolkadex = '#7C30DD';
|
||||
const nodeSora = '#2D2926';
|
||||
const nodeStafi = '#00F3AB';
|
||||
const nodeSubsocial = '#b9018c';
|
||||
const nodeTernoa = '#d622ff';
|
||||
const nodeZero = '#0099cc';
|
||||
const nodeZenlink = 'linear-gradient(45deg, #F20082 0%, #FF4D4D 100%)';
|
||||
|
||||
@ -138,6 +139,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Stafi node', nodeStafi],
|
||||
['subsocial node', nodeSubsocial],
|
||||
['SUBZΞRO', nodeZero],
|
||||
['Ternoa Node', nodeTernoa],
|
||||
['Zenlink Collator', nodeZenlink]
|
||||
// ['node template', emptyColor],
|
||||
// ['parity polkadot', emptyColor],
|
||||
|
||||
@ -58,6 +58,7 @@ import nodeSora from './nodes/sora-substrate.svg';
|
||||
import nodeStafi from './nodes/stafi.png';
|
||||
import nodeSubsocial from './nodes/subsocial.svg';
|
||||
import nodeSubstrate from './nodes/substrate-hexagon.svg';
|
||||
import nodeTernoa from './nodes/ternoa.svg';
|
||||
import nodeUniarts from './nodes/uniarts.png';
|
||||
import nodeZenlink from './nodes/zenlink.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
@ -154,6 +155,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Equilibrium Node', nodeEquilibrium],
|
||||
['Equilibrium', nodeEquilibrium],
|
||||
['SUBZΞRO', nodeZero],
|
||||
['Ternoa Node', nodeTernoa],
|
||||
['Zenlink', nodeZenlink],
|
||||
['Zenlink Collator', nodeZenlink],
|
||||
['Uniarts', nodeUniarts]
|
||||
@ -226,6 +228,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
stafi: nodeStafi,
|
||||
subsocial: nodeSubsocial,
|
||||
substrate: nodeSubstrate,
|
||||
'ternoa-chaos': nodeTernoa,
|
||||
uniarts: nodeUniarts,
|
||||
westend: nodePolkadot,
|
||||
zero: nodeZero
|
||||
|
||||
15
packages/apps-config/src/ui/logos/nodes/ternoa.svg
Normal file
15
packages/apps-config/src/ui/logos/nodes/ternoa.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 30.5 29.9" style="enable-background:new 0 0 30.5 29.9;" xml:space="preserve">
|
||||
<g id="Calque_2_1_">
|
||||
<g id="Calque_1-2">
|
||||
<path d="M15.3,0C6.8,0,0,6.8,0,15.3c0,6.7,4.3,12.5,10.6,14.6c0.3,0.1,0.6,0,0.8-0.1l0.2-0.1h0c1-0.4,1.7-1.4,1.7-2.5v-9.5h-3.3
|
||||
c-1,0-1.8-0.8-1.8-1.8S9.2,14,10.2,14l0,0h10.2c1,0,1.8,0.8,1.8,1.8s-0.8,1.8-1.8,1.8h-3.3v9.5c0,1.2,0.7,2.2,1.8,2.5l0,0l0,0h0
|
||||
c0.2,0.1,0.4,0.1,0.5,0.1c0.1,0,0.2,0,0.3,0c8-2.6,12.5-11.2,9.9-19.2C27.8,4.3,21.9,0,15.3,0z M4.5,17.7c-1,0-1.8-0.8-1.8-1.8
|
||||
S3.5,14,4.5,14c1,0,1.8,0.8,1.8,1.8c0,0,0,0,0,0C6.3,16.9,5.5,17.7,4.5,17.7z M15.3,11c-2,0-3.6-1.6-3.6-3.6s1.6-3.6,3.6-3.6
|
||||
c2,0,3.6,1.6,3.6,3.6c0,0,0,0,0,0C18.9,9.4,17.3,11,15.3,11z M26.1,17.7c-1,0-1.8-0.8-1.8-1.8s0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8
|
||||
c0,0,0,0,0,0C27.9,16.9,27.1,17.7,26.1,17.7L26.1,17.7z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue
Block a user