Added Stafi Network logos & endpoints (#3683)

* Added Stafi Network logos & endpoints

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts
This commit is contained in:
Tore19 2020-09-15 22:14:12 +08:00 committed by GitHub
parent cd5bfea42b
commit f82e464df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import nodle from './nodle';
import plasm from './plasm';
import robonomics from './robonomics';
import stablePoc from './stable-poc';
import stafi from './stafi';
import subsocialNode from './subsocial';
export default {
@ -42,5 +43,6 @@ export default {
robonomics,
'stable-poc': stablePoc,
stable_poc: stablePoc,
stafi,
subsocial: subsocialNode
};

View File

@ -0,0 +1,11 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// structs need to be in order
/* eslint-disable sort-keys */
export default {
Address: 'AccountId',
LookupSource: 'AccountId'
};

View File

@ -116,6 +116,11 @@ function createLiveNetworks (t: TFunction): LinkOption[] {
text: t<string>('rpc.plasm', 'Plasm (Plasm Mainnet, hosted by Stake Technologies)', { ns: 'apps-config' }),
value: 'wss://rpc.plasmnet.io/'
},
{
info: 'stafi',
text: t<string>('rpc.stafi', 'Stafi (Stafi Mainnet, hosted by Stafi Foundation)', { ns: 'apps-config' }),
value: 'wss://mainnet-rpc.stafi.io'
},
{
info: 'subsocial',
text: t<string>('rpc.subsocial', 'Subsocial (Subsocial Network, hosted by DappForce)', { ns: 'apps-config' }),

View File

@ -48,6 +48,11 @@ export default function create (t: TFunction): Option[] {
text: t<string>('ss58.plasm', 'Plasm (live)', { ns: 'apps-config' }),
value: 5
},
{
info: 'stafi',
text: t<string>('ss58.stafi', 'Stafi (live)', { ns: 'apps-config' }),
value: 20
},
{
info: 'subsocial',
text: t<string>('ss58.subsocial', 'Subsocial (live)', { ns: 'apps-config' }),

View File

@ -29,6 +29,7 @@ const nodeCentrifuge = '#fcc367';
const nodeEdgeware = '#0a95df';
const nodeNodle = '#1ab394';
const nodeKilt = '#eb5b2a';
const nodeStafi = '#00F3AB';
const nodeSubsocial = '#b9018c';
// overrides based on the actual matched chain name
@ -65,6 +66,7 @@ const nodeColors: Record<string, any> = [
['edgeware node', nodeEdgeware],
['kilt node', nodeKilt],
['nodle chain node', nodeNodle],
['Stafi node', nodeStafi],
['subsocial node', nodeSubsocial]
// ['node template', emptyColor],
// ['parity polkadot', emptyColor],

View File

@ -32,6 +32,7 @@ import nodePlasm from './nodes/plasm.png';
import nodePolkadot from './nodes/polkadot-circle.svg';
import nodePolkadotJs from './nodes/polkadot-js.svg';
import nodeRobonomics from './nodes/robonomics.svg';
import nodeStafi from './nodes/stafi.png';
import nodeSubsocial from './nodes/subsocial.svg';
import nodeSubstrate from './nodes/substrate-hexagon.svg';
@ -89,6 +90,8 @@ const nodeLogos: Record<string, any> = [
['Plasm Node', nodePlasm],
['phala-substrate-node', nodePhala],
['polkadot-js', nodePolkadotJs],
['Stafi Node', nodeStafi],
['Stafi', nodeStafi],
['subsocial-node', nodeSubsocial],
['substrate-node', nodeSubstrate]
].reduce((logos, [node, logo]): Record<string, any> => ({
@ -124,6 +127,7 @@ const namedLogos: Record<string, any> = {
rococoTick: chainRococoTick,
rococoTrack: chainRococoTrack,
rococoTrick: chainRococoTrick,
stafi: nodeStafi,
subsocial: nodeSubsocial,
substrate: nodeSubstrate,
westend: nodePolkadot

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB