Add pichiu network (#6461)
* add pichiu * fix merge conflicts * lint issue fixes Co-authored-by: Ubuntu <ubuntu@ip-172-31-20-247.eu-west-2.compute.internal>
This commit is contained in:
parent
61c11e638b
commit
95cca4eb6c
@ -74,6 +74,7 @@ import pangoro from './pangoro';
|
||||
import parallel from './parallel';
|
||||
import parami from './parami';
|
||||
import phoenix from './phoenix';
|
||||
import pichiu from './pichiu';
|
||||
import plasm from './plasm';
|
||||
import polkadex from './polkadex';
|
||||
import polkafoundry from './polkafoundry';
|
||||
@ -207,6 +208,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
parami,
|
||||
'phoenix-node': phoenix,
|
||||
'phoenix-parachain': phoenix,
|
||||
pichiu,
|
||||
'pioneer-runtime': bitcountryPioneer,
|
||||
plasm,
|
||||
polymesh,
|
||||
|
||||
@ -14,9 +14,17 @@ const definitions: OverrideBundleDefinition = {
|
||||
types: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
DataInfo: {
|
||||
url: 'Text',
|
||||
data: 'Text'
|
||||
DataRequest: {
|
||||
para_id: 'Option<ParaId>',
|
||||
account_id: 'Option<AccountId>',
|
||||
requested_block_number: 'BlockNumber',
|
||||
processed_block_number: 'Option<BlockNumber>',
|
||||
requested_timestamp: 'u128',
|
||||
processed_timestamp: 'Option<u128>',
|
||||
payload: 'Text',
|
||||
feed_name: 'Text',
|
||||
is_query: 'bool',
|
||||
url: 'Option<Text>'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
34
packages/apps-config/src/api/spec/pichiu.ts
Normal file
34
packages/apps-config/src/api/spec/pichiu.ts
Normal file
@ -0,0 +1,34 @@
|
||||
// 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: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
DataRequest: {
|
||||
para_id: 'Option<ParaId>',
|
||||
account_id: 'Option<AccountId>',
|
||||
requested_block_number: 'BlockNumber',
|
||||
processed_block_number: 'Option<BlockNumber>',
|
||||
requested_timestamp: 'u128',
|
||||
processed_timestamp: 'Option<u128>',
|
||||
payload: 'Text',
|
||||
feed_name: 'Text',
|
||||
is_query: 'bool',
|
||||
url: 'Option<Text>'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -345,6 +345,13 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
|
||||
'phoenix Protocol': 'wss://phoenix-ws.coinid.pro/'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'pichiu',
|
||||
text: t('westend.kylin-node.co.uk', 'Pichiu Testnet', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Kylin Network': 'wss://westend.kylin-node.co.uk'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'polkadex',
|
||||
isDisabled: true, // https://github.com/polkadot-js/apps/issues/6312
|
||||
|
||||
@ -100,6 +100,15 @@ export function createWestend (t: TFunction): EndpointOption {
|
||||
Unique: 'wss://westend-opal.unique.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'westendPichiu',
|
||||
homepage: 'https://kylin.network/',
|
||||
paraId: 2104,
|
||||
text: t('westend.kylin-node.co.uk', 'Pichiu', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Kylin Network': 'wss://westend.kylin-node.co.uk'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'westendStandard',
|
||||
paraId: 2094,
|
||||
|
||||
@ -65,6 +65,7 @@ const chainKusama = '#000000';
|
||||
const chainKylin = '#ed007e';
|
||||
const chainLitentry = 'linear-gradient(45deg, #5cc27c 0%, #6de98f 100%)';
|
||||
const chainMybank = '#282736';
|
||||
const chainPichiu = '#ed007e';
|
||||
const chainQuartz = '#FF4D6A';
|
||||
const chainRocco = '#6f36dc';
|
||||
const chainRoccoAcala = '#173DC9';
|
||||
@ -144,6 +145,7 @@ const nodePangolin = '#5744ff';
|
||||
const nodePangoro = '#5745de';
|
||||
const nodeParallel = '#ef18ac';
|
||||
const nodeParami = '#ee06e2';
|
||||
const nodePichiu = '#ed007e';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
const nodePolymesh = '#1348e4';
|
||||
const nodePontem = '#A92FAC';
|
||||
@ -270,6 +272,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'Phala PC1': chainPhala,
|
||||
'Phala PoC 4': chainPhala,
|
||||
PHOENIX: chainPhoenix,
|
||||
'Pichiu Testnet': chainPichiu,
|
||||
'Pioneer Network': chainBitCountryPioneer,
|
||||
Plasm: chainPlasm,
|
||||
'Plasm PC2': chainPlasm,
|
||||
@ -354,7 +357,7 @@ export const nodeColors = Object.entries({
|
||||
'Klug Dossier Node': nodeKlug,
|
||||
'Konomi Collator': nodeKonomi,
|
||||
'Kpron Collator': nodeKpron,
|
||||
'Kylin Collator': nodeKylin,
|
||||
'Kylin Parachain Collator': nodeKylin,
|
||||
'Litentry Collator': nodeLitentry,
|
||||
'Manta Collator': nodeManta,
|
||||
'Manta Node': nodeManta,
|
||||
@ -373,6 +376,7 @@ export const nodeColors = Object.entries({
|
||||
'Parallel Heiko': nodeHeiko,
|
||||
'Parami Collator': nodeParami,
|
||||
'Patract Node': nodeJupiter,
|
||||
'Pichiu Parachain Collator': nodePichiu,
|
||||
'Polkadex Node': nodePolkadex,
|
||||
'Polymesh Node': nodePolymesh,
|
||||
'Pontem Node': nodePontem,
|
||||
|
||||
@ -109,6 +109,7 @@ import nodeParallel from './nodes/parallel.svg';
|
||||
import nodeParami from './nodes/parami.png';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
import nodePhoenix from './nodes/phoenix.png';
|
||||
import nodePichiu from './nodes/pichiu.png';
|
||||
import nodePioneerNetwork from './nodes/pioneer.png';
|
||||
import nodePlasm from './nodes/plasm.png';
|
||||
import nodePolkadex from './nodes/polkadex.svg';
|
||||
@ -237,6 +238,7 @@ export const chainLogos = Object.entries({
|
||||
'Parami PC2': nodeParami,
|
||||
'Phala PC1': nodePhala,
|
||||
'PHOENIX PC1': nodePhoenix,
|
||||
'Pichiu Testnet': nodePichiu,
|
||||
'Pioneer Network': nodePioneerNetwork,
|
||||
'Polkadex Mainnet': nodePolkadex,
|
||||
'Polkadex Testnet': nodePolkadex,
|
||||
@ -377,6 +379,7 @@ export const nodeLogos = Object.entries({
|
||||
'phala-substrate-node': nodePhala,
|
||||
'PHOENIX Collator': nodePhoenix,
|
||||
'PHOENIX Node': nodePhoenix,
|
||||
'Pichiu Node': nodePichiu,
|
||||
'Pioneer Network Collator Node': nodePioneerNetwork,
|
||||
Plasm: nodePlasm,
|
||||
'Plasm Node': nodePlasm,
|
||||
@ -628,6 +631,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
vln: nodeVln,
|
||||
web3games: nodeWeb3games,
|
||||
westend: nodeWestend,
|
||||
westendPichiu: nodePichiu,
|
||||
westendStandard: chainStandard,
|
||||
westlake: nodeWestlake,
|
||||
westmint: nodeStatemine,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/pichiu.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/pichiu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
@ -203,5 +203,6 @@
|
||||
"rpc.westend.whala": "Whala",
|
||||
"ss58.default": "Default for the connected node",
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet",
|
||||
"westend.kylin-node.co.uk": "Pichiu Network",
|
||||
"westend-opal.unique.network": "OPAL by UNIQUE"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user