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:
parent
cd5bfea42b
commit
f82e464df7
@ -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
|
||||
};
|
||||
|
||||
11
packages/apps-config/src/api/spec/stafi.ts
Normal file
11
packages/apps-config/src/api/spec/stafi.ts
Normal 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'
|
||||
};
|
||||
@ -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' }),
|
||||
|
||||
@ -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' }),
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/stafi.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/stafi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Loading…
Reference in New Issue
Block a user