add darwinia-parachain (#3534)
This commit is contained in:
parent
2b670b58b2
commit
28762cb486
229
packages/apps-config/src/api/spec/darwinia-parachain.ts
Normal file
229
packages/apps-config/src/api/spec/darwinia-parachain.ts
Normal file
@ -0,0 +1,229 @@
|
||||
// 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',
|
||||
BalanceLock: {
|
||||
id: 'LockIdentifier',
|
||||
lock_for: 'LockFor',
|
||||
lock_reasons: 'LockReasons',
|
||||
amount: 'Balance',
|
||||
reasons: 'Reasons'
|
||||
},
|
||||
LockFor: {
|
||||
_enum: {
|
||||
Common: 'Common',
|
||||
Staking: 'StakingLock'
|
||||
}
|
||||
},
|
||||
Common: {
|
||||
amount: 'Balance'
|
||||
},
|
||||
StakingLock: {
|
||||
staking_amount: 'Balance',
|
||||
unbondings: 'Vec<Unbonding>'
|
||||
},
|
||||
LockReasons: {
|
||||
_enum: {
|
||||
Fee: null,
|
||||
Misc: null,
|
||||
All: null
|
||||
}
|
||||
},
|
||||
Unbonding: {
|
||||
amount: 'Balance',
|
||||
until: 'BlockNumber'
|
||||
},
|
||||
AccountData: {
|
||||
free: 'Balance',
|
||||
reserved: 'Balance',
|
||||
free_kton: 'Balance',
|
||||
reserved_kton: 'Balance',
|
||||
misc_frozen: 'Balance',
|
||||
fee_frozen: 'Balance'
|
||||
},
|
||||
RingBalance: 'Balance',
|
||||
KtonBalance: 'Balance',
|
||||
TsInMs: 'u64',
|
||||
Power: 'u32',
|
||||
DepositId: 'U256',
|
||||
StakingBalanceT: {
|
||||
_enum: {
|
||||
RingBalance: 'Balance',
|
||||
KtonBalance: 'Balance'
|
||||
}
|
||||
},
|
||||
StakingLedgerT: {
|
||||
stash: 'AccountId',
|
||||
active_ring: 'Compact<Balance>',
|
||||
active_deposit_ring: 'Compact<Balance>',
|
||||
active_kton: 'Compact<Balance>',
|
||||
deposit_items: 'Vec<TimeDepositItem>',
|
||||
ring_staking_lock: 'StakingLock',
|
||||
kton_staking_lock: 'StakingLock',
|
||||
claimed_rewards: 'Vec<EraIndex>',
|
||||
total: 'Compact<Balance>',
|
||||
active: 'Compact<Balance>',
|
||||
unlocking: 'Vec<UnlockChunk>'
|
||||
},
|
||||
TimeDepositItem: {
|
||||
value: 'Compact<Balance>',
|
||||
start_time: 'Compact<TsInMs>',
|
||||
expire_time: 'Compact<TsInMs>'
|
||||
},
|
||||
RewardDestination: {
|
||||
_enum: {
|
||||
Staked: 'Staked',
|
||||
Stash: null,
|
||||
Controller: null
|
||||
}
|
||||
},
|
||||
Staked: {
|
||||
promise_month: 'u8'
|
||||
},
|
||||
ExposureT: {
|
||||
own_ring_balance: 'Compact<Balance>',
|
||||
own_kton_balance: 'Compact<Balance>',
|
||||
own_power: 'Power',
|
||||
total_power: 'Power',
|
||||
others: 'Vec<IndividualExposure>',
|
||||
total: 'Compact<Balance>',
|
||||
own: 'Compact<Balance>'
|
||||
},
|
||||
IndividualExposure: {
|
||||
who: 'AccountId',
|
||||
ring_balance: 'Compact<Balance>',
|
||||
kton_balance: 'Compact<Balance>',
|
||||
power: 'Power',
|
||||
value: 'Compact<Balance>'
|
||||
},
|
||||
ElectionResultT: {
|
||||
elected_stashes: 'Vec<AccountId>',
|
||||
exposures: 'Vec<(AccountId, ExposureT)>',
|
||||
compute: 'ElectionCompute'
|
||||
},
|
||||
RKT: {
|
||||
r: 'Balance',
|
||||
k: 'Balance'
|
||||
},
|
||||
SpanRecord: {
|
||||
slashed: 'RKT',
|
||||
paid_out: 'RKT'
|
||||
},
|
||||
UnappliedSlash: {
|
||||
validator: 'AccountId',
|
||||
own: 'RKT',
|
||||
others: 'Vec<(AccountId, RKT)>',
|
||||
reporters: 'Vec<AccountId>',
|
||||
payout: 'RKT'
|
||||
},
|
||||
TreasuryProposal: {
|
||||
proposer: 'AccountId',
|
||||
beneficiary: 'AccountId',
|
||||
ring_value: 'Balance',
|
||||
kton_value: 'Balance',
|
||||
ring_bond: 'Balance',
|
||||
kton_bond: 'Balance',
|
||||
value: 'Balance',
|
||||
bond: 'Balance'
|
||||
},
|
||||
EthTransactionIndex: '(H256, u64)',
|
||||
EthHeaderBrief: {
|
||||
total_difficulty: 'U256',
|
||||
parent_hash: 'H256',
|
||||
number: 'EthBlockNumber',
|
||||
relayer: 'AccountId'
|
||||
},
|
||||
EthBlockNumber: 'u64',
|
||||
EthHeaderThing: {
|
||||
eth_header: 'EthHeader',
|
||||
ethash_proof: 'Vec<EthashProof>',
|
||||
mmr_root: 'MMRHash',
|
||||
mmr_proof: 'Vec<MMRHash>'
|
||||
},
|
||||
EthHeader: {
|
||||
parent_hash: 'H256',
|
||||
timestamp: 'u64',
|
||||
number: 'EthBlockNumber',
|
||||
author: 'EthAddress',
|
||||
transactions_root: 'H256',
|
||||
uncles_hash: 'H256',
|
||||
extra_data: 'Bytes',
|
||||
state_root: 'H256',
|
||||
receipts_root: 'H256',
|
||||
log_bloom: 'Bloom',
|
||||
gas_used: 'U256',
|
||||
gas_limit: 'U256',
|
||||
difficulty: 'U256',
|
||||
seal: 'Vec<Bytes>',
|
||||
hash: 'Option<H256>'
|
||||
},
|
||||
EthAddress: 'H160',
|
||||
Bloom: '[u8; 256; Bloom]',
|
||||
H128: '[u8; 16; H128]',
|
||||
EthashProof: {
|
||||
dag_nodes: '(H512, H512)',
|
||||
proof: 'Vec<H128>'
|
||||
},
|
||||
Receipt: {
|
||||
gas_used: 'U256',
|
||||
log_bloom: 'Bloom',
|
||||
logs: 'Vec<LogEntry>',
|
||||
outcome: 'TransactionOutcome'
|
||||
},
|
||||
EthereumNetworkType: {
|
||||
_enum: {
|
||||
Mainnet: null,
|
||||
Ropsten: null
|
||||
}
|
||||
},
|
||||
RedeemFor: {
|
||||
_enum: {
|
||||
Ring: null,
|
||||
Kton: null,
|
||||
Deposit: null
|
||||
}
|
||||
},
|
||||
EthereumReceiptProof: {
|
||||
index: 'u64',
|
||||
proof: 'Bytes',
|
||||
header_hash: 'H256'
|
||||
},
|
||||
MMRProof: 'Vec<H256>',
|
||||
OtherSignature: {
|
||||
_enum: {
|
||||
Eth: 'EcdsaSignature',
|
||||
Tron: 'EcdsaSignature'
|
||||
}
|
||||
},
|
||||
EcdsaSignature: '[u8; 65; EcdsaSignature]',
|
||||
OtherAddress: {
|
||||
_enum: {
|
||||
Eth: '[u8; 20; EthereumAddress]',
|
||||
Tron: '[u8; 20; TronAddress]'
|
||||
}
|
||||
},
|
||||
AddressT: '[u8; 20; AddressT]',
|
||||
MerkleMountainRangeRootLog: {
|
||||
prefix: '[u8; 4; Prefix]',
|
||||
mmr_root: 'Hash'
|
||||
},
|
||||
Round: 'u64',
|
||||
TcBlockNumber: 'Vec<u8>',
|
||||
TcHeaderHash: 'Vec<u8>',
|
||||
TcHeaderMMR: 'Vec<u8>',
|
||||
MMRHash: 'Vec<u8>',
|
||||
GameId: 'TcBlockNumber',
|
||||
RawHeaderThing: 'Vec<u8>',
|
||||
BalancesRuntimeDispatchInfo: {
|
||||
usable_balance: 'Balance'
|
||||
},
|
||||
StakingRuntimeDispatchInfo: {
|
||||
power: 'Power'
|
||||
}
|
||||
};
|
||||
@ -5,6 +5,7 @@
|
||||
import acala from './acala';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import crab from './crab';
|
||||
import darwiniaParachain from './darwinia-parachain';
|
||||
import testPara from './cumulus-test-parachain';
|
||||
import edgeware from './edgeware';
|
||||
import encointerNodeNotee from './encointer-node-notee';
|
||||
@ -22,6 +23,7 @@ export default {
|
||||
acala,
|
||||
'centrifuge-chain': centrifugeChain,
|
||||
'cumulus-test-parachain': testPara,
|
||||
'darwinia-parachain': darwiniaParachain,
|
||||
edgeware,
|
||||
'encointer-node': encointerNodeNotee,
|
||||
'encointer-node-notee': encointerNodeNotee,
|
||||
|
||||
@ -152,6 +152,12 @@ function createTest (t: TFunction): LinkOption[] {
|
||||
text: t<string>('rpc.rococo.acala', 'Mandala PC1 (Acala Testpara, hosted by Acala)', { ns: 'apps-config' }),
|
||||
value: 'wss://rococo-1.acala.laminar.one'
|
||||
},
|
||||
{
|
||||
info: 'rococoDarwinia',
|
||||
isChild: true,
|
||||
text: t<string>('rpc.rococo.darwinia', 'Darwinia PC1 (Darwinia Testpara, hosted by Darwinia Network)', { ns: 'apps-config' }),
|
||||
value: 'wss://parachain-rpc.darwinia.network'
|
||||
},
|
||||
{
|
||||
info: 'rococoLaminar',
|
||||
isChild: true,
|
||||
|
||||
@ -14,6 +14,7 @@ const chainRoccoTick = '#22bb22';
|
||||
const chainRoccoTrack = '#bb2222';
|
||||
const chainRoccoTrick = '#2222bb';
|
||||
const chainRoccoAcala = '#173DC9';
|
||||
const chainRoccoDarwinia = '#7C30DD';
|
||||
const laminarRoccoAcala = '#004FFF';
|
||||
const chainWestend = '#da68a7';
|
||||
|
||||
@ -38,6 +39,7 @@ const chainColors: Record<string, any> = [
|
||||
['Track', chainRoccoTrack],
|
||||
['Trick', chainRoccoTrick],
|
||||
['acala mandala pc1', chainRoccoAcala],
|
||||
['darwinia parachain', chainRoccoDarwinia],
|
||||
['laminar turbulence pc1', laminarRoccoAcala],
|
||||
['Westend', chainWestend]
|
||||
].reduce((colors, [chain, color]): Record<string, any> => ({
|
||||
|
||||
@ -15,6 +15,7 @@ import chainRococoTrick from './chains/rococo-trick.svg';
|
||||
import nodeAcala from './nodes/acala-circle.svg';
|
||||
import nodeCentrifuge from './nodes/centrifuge.png';
|
||||
import nodeCrab from './nodes/crab.svg';
|
||||
import nodeDarwinia from './nodes/darwinia.png';
|
||||
import nodeEdgeware from './nodes/edgeware-circle.svg';
|
||||
import nodeEncointerNotee from './nodes/encointer-notee.svg';
|
||||
import nodeEncointerTeeproxy from './nodes/encointer-teeproxy.svg';
|
||||
@ -53,6 +54,7 @@ const nodeLogos: Record<string, any> = [
|
||||
['centrifuge chain', nodeCentrifuge],
|
||||
['Centrifuge Chain Node', nodeCentrifuge],
|
||||
['crab', nodeCrab],
|
||||
['darwinia parachain', nodeDarwinia],
|
||||
['Edgeware Node', nodeEdgeware],
|
||||
['Encointer Node', nodeEncointerNotee],
|
||||
['Encointer Node noTEE', nodeEncointerNotee],
|
||||
@ -86,6 +88,7 @@ const namedLogos: Record<string, any> = {
|
||||
polkadot: nodePolkadot,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
rococoDarwinia: nodeDarwinia,
|
||||
rococoLaminar: nodeLaminar,
|
||||
rococoTick: chainRococoTick,
|
||||
rococoTrack: chainRococoTrack,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/darwinia.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/darwinia.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user