Add Phoenix parachain (#4939)
* Add Phoenix parachain * Add Phoenix parachain
This commit is contained in:
parent
c1ab13e868
commit
3654cef1b6
@ -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,
|
||||
|
||||
50
packages/apps-config/src/api/spec/phoenix.ts
Normal file
50
packages/apps-config/src/api/spec/phoenix.ts
Normal 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;
|
||||
@ -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' }),
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
}]);
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/phoenix.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/phoenix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user