Add Phoenix parachain (#4939)

* Add Phoenix parachain

* Add Phoenix parachain
This commit is contained in:
y 2021-03-26 18:32:26 +08:00 committed by GitHub
parent c1ab13e868
commit 3654cef1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 83 additions and 3 deletions

View File

@ -42,6 +42,7 @@ import moonbeam from './moonbeam';
import nodle from './nodle';
import phala from './phala';
import phalaParachain from './phala-parachain';
import phoenix from './phoenix';
import plasm from './plasm';
import plasmParachain from './plasm-parachain';
import polkabtc from './polkabtc';
@ -117,6 +118,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
'nodle-chain': nodle,
'phala-collator': phalaParachain,
'phala-node': phala,
'phoenix-node': phoenix,
'phoenix-parachain': phoenix,
plasm,
'plasm-parachain': plasmParachain,
realis,

View File

@ -0,0 +1,50 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Attestation: {
attester: 'AccountId',
ctypeHash: 'Hash',
delegationId: 'Option<DelegationNodeId>',
revoked: 'bool'
},
Balance: 'u128',
DelegationNode: {
owner: 'AccountId',
parent: 'Option<DelegationNodeId>',
permissions: 'Permissions',
revoked: 'bool',
rootId: 'DelegationNodeId'
},
DelegationNodeId: 'Hash',
DelegationRoot: {
ctypeHash: 'Hash',
owner: 'AccountId',
revoked: 'bool'
},
DidRecord: {
boxKey: 'Hash',
docRef: 'Option<Vec<u8>>',
signKey: 'Hash'
},
Index: 'u64',
Permissions: 'u32',
PublicBoxKey: 'Hash',
PublicSigningKey: 'Hash',
Signature: 'MultiSignature'
}
}
]
};
export default definitions;

View File

@ -96,6 +96,13 @@ export function createTesting (t: TFunction): LinkOption[] {
DOTMog: 'wss://mogiway-01.dotmog.com'
}
},
{
info: 'phoenix',
text: t('rpc.phoenix', 'Phoenix Mashnet', { ns: 'apps-config' }),
providers: {
'phoenix Protocol': 'wss://phoenix-ws.coinid.pro/'
}
},
{
info: 'dusty',
text: t('rpc.dusty', 'Dusty', { ns: 'apps-config' }),

View File

@ -254,6 +254,14 @@ export function createRococo (t: TFunction): LinkOption[] {
providers: {
Zenlink: 'wss://rococo-parachain.zenlink.pro'
}
},
{
info: 'rococoPhoenix',
paraId: 6806,
text: t('rpc.rococo.phoenix', 'PHOENIX PC1', { ns: 'apps-config' }),
providers: {
'PHOENIX Protocol': 'wss://phoenix-ws.coinid.pro'
}
}
]
}]);

View File

@ -21,6 +21,7 @@ const chainHydrate = '#000000';
const chainIntegritee = '#080808';
const chainKulupu = '#003366';
const chainPhala = '#a7e300';
const chainPhoenix = '#d42181';
const chainPlasm = '#2096F3';
const chainPolkabtc = '#510101';
const chainPolkadex = '#7C30DD';
@ -138,7 +139,8 @@ export const chainColors: Record<string, any> = [
['Unique Node', chainUnique],
['Westend', chainWestend],
['Zenlink PC1', chainZenlink],
['ZΞRO Alphaville', chainZero]
['ZΞRO Alphaville', chainZero],
['PHOENIX', chainPhoenix]
].reduce((colors, [chain, color]): Record<string, any> => ({
...colors,
[chain.toLowerCase()]: color

View File

@ -53,6 +53,7 @@ import nodeMath from './nodes/math.svg';
import moonbeam from './nodes/moonbeam.png';
import nodeNodle from './nodes/nodle.svg';
import nodePhala from './nodes/phala.svg';
import nodePhoenix from './nodes/phoenix.png';
import nodePlasm from './nodes/plasm.png';
import nodePolkaBTC from './nodes/polkabtc.png';
import nodePolkadex from './nodes/polkadex.svg';
@ -116,7 +117,8 @@ export const chainLogos: Record<string, unknown> = [
['TrustBase PC1', nodeTrustBase],
['Uniarts', nodeUniarts],
['Unique', chainUnique],
['Vln', nodeVln]
['Vln', nodeVln],
['PHOENIX PC1', nodePhoenix]
].reduce((logos, [chain, logo]): Record<string, unknown> => ({
...logos,
[(chain as string).toLowerCase()]: logo
@ -192,7 +194,9 @@ export const nodeLogos: Record<string, unknown> = [
['SubDAO Collator', nodeSubDAO],
['Uniarts', nodeUniarts],
['Unique Node', nodeUnique],
['Vln', nodeVln]
['Vln', nodeVln],
['PHOENIX Node', nodePhoenix],
['PHOENIX Collator', nodePhoenix]
].reduce((logos, [node, logo]): Record<string, unknown> => ({
...logos,
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
@ -235,6 +239,7 @@ export const namedLogos: Record<string, unknown> = {
moonbaseAlpha: moonbeam,
nodle: nodeNodle,
phala: nodePhala,
phoenix: nodePhoenix,
plasm: nodePlasm,
polkabtc: nodePolkaBTC,
polkadex: nodePolkadex,
@ -261,6 +266,7 @@ export const namedLogos: Record<string, unknown> = {
rococoLitentry: nodeLitentry,
rococoMathChain: nodeMath,
rococoPhala: nodePhala,
rococoPhoenix: nodePhoenix,
rococoPlasm: nodePlasm,
rococoPolkabtc: chainPolkaBTC,
rococoRobonomics: nodeRobonomics,

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -50,6 +50,7 @@
"rpc.nodle-arcadia": "Arcadia",
"rpc.nodle-main": "Nodle",
"rpc.phala": "Phala PoC-3",
"rpc.phoenix": "Poenix PC1",
"rpc.plasm": "Plasm",
"rpc.polkabtc": "PolkaBTC",
"rpc.polkadex": "Polkadex",
@ -77,6 +78,7 @@
"rpc.rococo.kilt": "KILT PC1",
"rpc.rococo.mathchain": "MathChain PC1",
"rpc.rococo.phala": "Phala PC1",
"rpc.rococo.phoenix": "PHOENIX PC1",
"rpc.rococo.plasm": "Plasm PC2",
"rpc.rococo.polkabtc": "PolkaBTC PC1",
"rpc.rococo.robonomics": "Robonomics PC2",

View File

@ -1264,6 +1264,7 @@
"rpc.local": "Node Lokal (Pribadi, 127.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, dihosting oleh Acala)",
"rpc.nodle-arcadia": "Arcadia (Nodle Testnet, dihosting oleh Nodle)",
"rpc.phoenix": "PHOENIX Protocol (PHOENIX Mashnet, dihosting oleh PHOENIX Protocol)",
"rpc.turbulence": "Turbulence (Laminar Testnet, dihosting oleh Laminar)",
"rpc.westend": "Westend (Polkadot Testnet, dihosting oleh Parity)",
"runners up": "runner up",

View File

@ -1309,6 +1309,7 @@
"rpc.local": "Nodo locale (proprio, 127.0.0.0.1:9944)",
"rpc.mandala": "Mandala (Acala Testnet, ospitato by Acala)",
"rpc.nodle-arcadia": "Arcadia (Nodle Testnet, ospitato da Nodle)",
"rpc.phoenix": "PHOENIX Protocol (PHOENIX Mashnet, ospitato da PHOENIX Protocol)",
"rpc.turbulence": "Turbulence (Laminar Testnet, ospitato da Laminar)",
"rpc.westend": "Westend (Polkadot Testnet, ospitato da Parity)",
"runners up": "finalisti",