Added Phala PC1 Rococo V1 endpoint (#4468)

* Added Phala PC1 Rococo V1 endpoint

* Update index order

* Change indent size

* Use single quotes

* Remove trailing space
This commit is contained in:
Wenfeng Wang 2021-01-22 15:15:23 +08:00 committed by GitHub
parent 480df422e7
commit f7b5800044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import jupiter from './jupiter';
import kilt from './kilt';
import nodle from './nodle';
import phala from './phala';
import phalaParachain from './phala-parachain';
import plasm from './plasm';
import plasmParachain from './plasm-parachain';
import polkadex from './polkadex';
@ -54,6 +55,7 @@ export default {
'mashnet-node': kilt,
'node-polkadex': polkadex,
'nodle-chain': nodle,
'phala-collator': phalaParachain,
'phala-node': phala,
plasm,
'plasm-parachain': plasmParachain,

View File

@ -0,0 +1,62 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
// structs need to be in order
/* eslint-disable sort-keys */
export default {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
EthereumAddress: 'H160',
EcdsaSignature: '[u8; 65]',
EthereumTxHash: 'H256',
WorkerStateEnum: {
_enum: {
Empty: null,
Free: null,
Gatekeeper: null,
MiningPending: null,
Mining: 'BlockNumber',
MiningStopping: null
}
},
WorkerInfo: {
machineId: 'Vec<u8>',
pubkey: 'Vec<u8>',
lastUpdated: 'u64',
state: 'WorkerStateEnum',
score: 'Option<Score>'
},
Score: {
overallScore: 'u32',
features: 'Vec<u32>'
},
StashInfo: {
controller: 'AccountId',
payoutPrefs: 'PayoutPrefs'
},
PayoutPrefs: {
commission: 'u32',
target: 'AccountId'
},
BlockRewardInfo: {
seed: 'U256',
onlineTarget: 'U256',
computeTarget: 'U256'
},
RoundInfo: {
round: 'u32',
startBlock: 'BlockNumber'
},
RoundStats: {
round: 'u32',
onlineWorkers: 'u32',
computeWorkers: 'u32',
fracTargetOnlineReward: 'u32',
totalPower: 'u32'
},
MinerStatsDelta: {
numWorker: 'i32',
numPower: 'i32'
}
};

View File

@ -83,6 +83,14 @@ export function createRococo (t: TFunction): EndpointOption {
'KILT Protocol': 'wss://para.rococo-v1.kilt.io'
}
},
{
info: 'rococoPhala',
paraId: 30,
text: t('rpc.rococo.phala', 'Phala PC1', { ns: 'apps-config' }),
providers: {
Phala: 'wss://rococov1.phala.network/ws'
}
},
{
info: 'rococoPlasm',
paraId: 5000,

View File

@ -78,6 +78,7 @@ export const chainColors: Record<string, any> = [
['laminar turbulence pc1', chainRococoLaminar],
['Moonbase Alpha', nodeMoonbeam],
['Phala poc 3', chainPhala],
['Phala PC1', chainPhala],
['Plasm', chainPlasm],
['Plasm PC2', chainPlasm],
['PolkaBTC', chainPolkabtc],

View File

@ -70,6 +70,7 @@ export const chainLogos: Record<string, unknown> = [
['Moonbase Alpha', moonbeam],
['PolkaBTC', nodePolkaBTC],
['Polkadex Testnet', nodePolkadex],
['Phala PC1', nodePhala],
['Rococo', chainRococo],
['Tick', chainRococoTick],
['Track', chainRococoTrack],
@ -117,6 +118,7 @@ export const nodeLogos: Record<string, unknown> = [
['Plasm Node', nodePlasm],
['Plasm Parachain Collator', nodePlasm],
['phala-substrate-node', nodePhala],
['Phala Collator', nodePhala],
['polkadot-js', nodePolkadotJs],
['SORA-staging Node', nodeSora],
['Stafi Node', nodeStafi],
@ -174,6 +176,7 @@ export const namedLogos: Record<string, unknown> = {
rococoDarwinia: nodeDarwinia,
rococoKilt: nodeKilt,
rococoLaminar: nodeLaminar,
rococoPhala: nodePhala,
rococoPlasm: nodePlasm,
rococoRobonomics: nodeRobonomics,
rococoTick: chainRococoTick,