Add Darwinia Network (#4003)
* update crab types * lint * Add darwinia mainnet * Update crab types
This commit is contained in:
parent
5e7a4f48ad
commit
51c8a70b0d
@ -10,8 +10,8 @@ export default {
|
||||
BalanceInfo: 'Null',
|
||||
BalanceLock: {
|
||||
id: 'LockIdentifier',
|
||||
lock_for: 'LockFor',
|
||||
lock_reasons: 'LockReasons',
|
||||
lockFor: 'LockFor',
|
||||
LockReasons: 'Reasons',
|
||||
amount: 'Balance',
|
||||
reasons: 'Reasons'
|
||||
},
|
||||
@ -25,28 +25,25 @@ export default {
|
||||
amount: 'Balance'
|
||||
},
|
||||
StakingLock: {
|
||||
staking_amount: 'Balance',
|
||||
stakingAmount: 'Balance',
|
||||
unbondings: 'Vec<Unbonding>'
|
||||
},
|
||||
LockReasons: {
|
||||
_enum: {
|
||||
Fee: null,
|
||||
Misc: null,
|
||||
All: null
|
||||
}
|
||||
Reasons: {
|
||||
_enum: ['Fee', 'Misc', 'All']
|
||||
},
|
||||
Unbonding: {
|
||||
amount: 'Balance',
|
||||
until: 'BlockNumber'
|
||||
moment: 'BlockNumber'
|
||||
},
|
||||
AccountData: {
|
||||
free: 'Balance',
|
||||
reserved: 'Balance',
|
||||
free_kton: 'Balance',
|
||||
reserved_kton: 'Balance',
|
||||
misc_frozen: 'Balance',
|
||||
fee_frozen: 'Balance'
|
||||
freeKton: 'Balance',
|
||||
reservedKton: 'Balance',
|
||||
miscFrozen: 'Balance',
|
||||
feeFrozen: 'Balance'
|
||||
},
|
||||
|
||||
RingBalance: 'Balance',
|
||||
KtonBalance: 'Balance',
|
||||
TsInMs: 'u64',
|
||||
@ -60,37 +57,38 @@ export default {
|
||||
},
|
||||
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>',
|
||||
activeRing: 'Compact<Balance>',
|
||||
activeDepositRing: 'Compact<Balance>',
|
||||
activeKton: 'Compact<Balance>',
|
||||
depositItems: 'Vec<TimeDepositItem>',
|
||||
ringStakingLock: 'StakingLock',
|
||||
ktonStakingLock: 'StakingLock',
|
||||
claimedRewards: 'Vec<EraIndex>',
|
||||
total: 'Compact<Balance>',
|
||||
active: 'Compact<Balance>',
|
||||
unlocking: 'Vec<UnlockChunk>'
|
||||
},
|
||||
TimeDepositItem: {
|
||||
value: 'Compact<Balance>',
|
||||
start_time: 'Compact<TsInMs>',
|
||||
expire_time: 'Compact<TsInMs>'
|
||||
startTime: 'Compact<TsInMs>',
|
||||
expireTime: 'Compact<TsInMs>'
|
||||
},
|
||||
ExposureT: {
|
||||
own_ring_balance: 'Compact<Balance>',
|
||||
own_kton_balance: 'Compact<Balance>',
|
||||
own_power: 'Power',
|
||||
total_power: 'Power',
|
||||
ownRingBalance: 'Compact<Balance>',
|
||||
ownKtonBalance: 'Compact<Balance>',
|
||||
ownPower: 'Power',
|
||||
totalPower: 'Power',
|
||||
others: 'Vec<IndividualExposure>'
|
||||
},
|
||||
Exposure: 'ExposureT',
|
||||
IndividualExposure: {
|
||||
who: 'AccountId',
|
||||
ring_balance: 'Compact<Balance>',
|
||||
kton_balance: 'Compact<Balance>',
|
||||
ringBalance: 'Compact<Balance>',
|
||||
ktonBalance: 'Compact<Balance>',
|
||||
power: 'Power'
|
||||
},
|
||||
ElectionResultT: {
|
||||
elected_stashes: 'Vec<AccountId>',
|
||||
electedStashes: 'Vec<AccountId>',
|
||||
exposures: 'Vec<(AccountId, ExposureT)>',
|
||||
compute: 'ElectionCompute'
|
||||
},
|
||||
@ -100,7 +98,7 @@ export default {
|
||||
},
|
||||
SpanRecord: {
|
||||
slashed: 'RKT',
|
||||
paid_out: 'RKT'
|
||||
paidOut: 'RKT'
|
||||
},
|
||||
UnappliedSlash: {
|
||||
validator: 'AccountId',
|
||||
@ -109,15 +107,18 @@ export default {
|
||||
reporters: 'Vec<AccountId>',
|
||||
payout: 'RKT'
|
||||
},
|
||||
|
||||
TreasuryProposal: {
|
||||
proposer: 'AccountId',
|
||||
beneficiary: 'AccountId',
|
||||
ring_value: 'Balance',
|
||||
kton_value: 'Balance',
|
||||
ring_bond: 'Balance',
|
||||
kton_bond: 'Balance'
|
||||
ringValue: 'Balance',
|
||||
ktonValue: 'Balance',
|
||||
ringBond: 'Balance',
|
||||
ktonBond: 'Balance'
|
||||
},
|
||||
|
||||
MappedRing: 'u128',
|
||||
|
||||
EthereumTransactionIndex: '(H256, u64)',
|
||||
EthereumBlockNumber: 'u64',
|
||||
EthereumHeader: {
|
||||
@ -141,15 +142,19 @@ export default {
|
||||
Bloom: '[u8; 256; Bloom]',
|
||||
H128: '[u8; 16; H128]',
|
||||
EthashProof: {
|
||||
dag_nodes: '(H512, H512)',
|
||||
dagNodes: '(H512, H512)',
|
||||
proof: 'Vec<H128>'
|
||||
},
|
||||
EthereumReceipt: {
|
||||
gas_used: 'U256',
|
||||
log_bloom: 'Bloom',
|
||||
gasUsed: 'U256',
|
||||
logBloom: 'Bloom',
|
||||
logs: 'Vec<LogEntry>',
|
||||
outcome: 'TransactionOutcome'
|
||||
},
|
||||
|
||||
LogEntry: {},
|
||||
TransactionOutcome: {},
|
||||
|
||||
EthereumNetworkType: {
|
||||
_enum: {
|
||||
Mainnet: null,
|
||||
@ -165,22 +170,23 @@ export default {
|
||||
EthereumReceiptProof: {
|
||||
index: 'u64',
|
||||
proof: 'Bytes',
|
||||
header_hash: 'H256'
|
||||
headerHash: 'H256'
|
||||
},
|
||||
EthereumReceiptProofThing: '(EthereumHeader, EthereumReceiptProof, MMRProof)',
|
||||
MMRProof: {
|
||||
member_leaf_index: 'u64',
|
||||
last_leaf_index: 'u64',
|
||||
memberLeafIndex: 'u64',
|
||||
lastLeafIndex: 'u64',
|
||||
proof: 'Vec<H256>'
|
||||
},
|
||||
EthereumRelayHeaderParcel: {
|
||||
header: 'EthereumHeader',
|
||||
mmr_root: 'H256'
|
||||
mmrRoot: 'H256'
|
||||
},
|
||||
EthereumRelayProofs: {
|
||||
ethash_proof: 'Vec<EthashProof>',
|
||||
mmr_proof: 'Vec<H256>'
|
||||
ethashProof: 'Vec<EthashProof>',
|
||||
mmrProof: 'Vec<H256>'
|
||||
},
|
||||
|
||||
OtherSignature: {
|
||||
_enum: {
|
||||
Eth: 'EcdsaSignature',
|
||||
@ -188,31 +194,37 @@ export default {
|
||||
}
|
||||
},
|
||||
EcdsaSignature: '[u8; 65; EcdsaSignature]',
|
||||
TronAddress: 'EthereumAddress',
|
||||
OtherAddress: {
|
||||
_enum: {
|
||||
Eth: '[u8; 20; EthereumAddress]',
|
||||
Tron: '[u8; 20; TronAddress]'
|
||||
Eth: 'EthereumAddress',
|
||||
Tron: 'TronAddress'
|
||||
}
|
||||
},
|
||||
AddressT: '[u8; 20; AddressT]',
|
||||
|
||||
MerkleMountainRangeRootLog: {
|
||||
prefix: '[u8; 4; Prefix]',
|
||||
mmr_root: 'Hash'
|
||||
mmrRoot: 'Hash'
|
||||
},
|
||||
RelayHeaderId: 'u64',
|
||||
RelayHeaderParcel: 'EthereumRelayHeaderParcel',
|
||||
RelayProofs: 'Vec<u8>',
|
||||
RelayAffirmationId: {
|
||||
relay_header_id: 'Vec<u8>',
|
||||
round: 'u32',
|
||||
index: 'u32'
|
||||
|
||||
ChainProperties: {
|
||||
ss58Format: 'Option<u8>',
|
||||
tokenDecimals: 'Option<u32>',
|
||||
tokenSymbol: 'Option<Text>',
|
||||
ktonTokenDecimals: 'Option<u32>',
|
||||
ktonTokenSymbol: 'Option<Text>'
|
||||
},
|
||||
RelayAffirmationT: {
|
||||
relayer: 'AccountId',
|
||||
relay_header_parcels: 'Vec<u8>',
|
||||
bond: 'Balance',
|
||||
maybe_extended_relay_affirmation_id: 'Option<Vec<u8>>',
|
||||
verified: 'bool'
|
||||
|
||||
AccountInfo: {
|
||||
nonce: 'Index',
|
||||
refcount: 'RefCount',
|
||||
data: 'AccountData'
|
||||
},
|
||||
ProxyDefinition: {
|
||||
delegate: 'AccountId',
|
||||
proxyType: 'ProxyType',
|
||||
delay: 'BlockNumber'
|
||||
},
|
||||
ProxyType: {
|
||||
_enum: {
|
||||
@ -224,10 +236,32 @@ export default {
|
||||
EthereumBridge: null
|
||||
}
|
||||
},
|
||||
BalancesRuntimeDispatchInfo: {
|
||||
usable_balance: 'Balance'
|
||||
ProxyAnnouncement: {
|
||||
real: 'AccountId',
|
||||
callHash: 'Hash',
|
||||
height: 'BlockNumber'
|
||||
},
|
||||
StakingRuntimeDispatchInfo: {
|
||||
Announcement: 'ProxyAnnouncement',
|
||||
RelayHeaderId: 'EthereumBlockNumber',
|
||||
RelayHeaderParcel: 'EthereumRelayHeaderParcel',
|
||||
RelayProofs: 'EthereumRelayProofs',
|
||||
RelayAffirmationId: {
|
||||
relayHeaderId: 'EthereumBlockNumber',
|
||||
round: 'u32',
|
||||
index: 'u32'
|
||||
},
|
||||
RelayAffirmationT: {
|
||||
relayer: 'AccountId',
|
||||
relayHeaderParcels: 'EthereumRelayHeaderParcel',
|
||||
bond: 'Balance',
|
||||
maybeExtendedRelayAffirmationId: 'Option<RelayAffirmationId>',
|
||||
verified: 'bool'
|
||||
},
|
||||
RelayVotingState: {
|
||||
ayes: 'Vec<AccountId>',
|
||||
nays: 'Vec<AccountId>'
|
||||
},
|
||||
PowerOf: {
|
||||
power: 'Power'
|
||||
}
|
||||
};
|
||||
|
||||
267
packages/apps-config/src/api/spec/darwinia.ts
Normal file
267
packages/apps-config/src/api/spec/darwinia.ts
Normal file
@ -0,0 +1,267 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
BalanceInfo: 'Null',
|
||||
BalanceLock: {
|
||||
id: 'LockIdentifier',
|
||||
lockFor: 'LockFor',
|
||||
LockReasons: 'Reasons',
|
||||
amount: 'Balance',
|
||||
reasons: 'Reasons'
|
||||
},
|
||||
LockFor: {
|
||||
_enum: {
|
||||
Common: 'Common',
|
||||
Staking: 'StakingLock'
|
||||
}
|
||||
},
|
||||
Common: {
|
||||
amount: 'Balance'
|
||||
},
|
||||
StakingLock: {
|
||||
stakingAmount: 'Balance',
|
||||
unbondings: 'Vec<Unbonding>'
|
||||
},
|
||||
Reasons: {
|
||||
_enum: ['Fee', 'Misc', 'All']
|
||||
},
|
||||
Unbonding: {
|
||||
amount: 'Balance',
|
||||
moment: 'BlockNumber'
|
||||
},
|
||||
AccountData: {
|
||||
free: 'Balance',
|
||||
reserved: 'Balance',
|
||||
freeKton: 'Balance',
|
||||
reservedKton: 'Balance',
|
||||
miscFrozen: 'Balance',
|
||||
feeFrozen: 'Balance'
|
||||
},
|
||||
|
||||
RingBalance: 'Balance',
|
||||
KtonBalance: 'Balance',
|
||||
TsInMs: 'u64',
|
||||
Power: 'u32',
|
||||
DepositId: 'U256',
|
||||
StakingBalanceT: {
|
||||
_enum: {
|
||||
RingBalance: 'Balance',
|
||||
KtonBalance: 'Balance'
|
||||
}
|
||||
},
|
||||
StakingLedgerT: {
|
||||
stash: 'AccountId',
|
||||
activeRing: 'Compact<Balance>',
|
||||
activeDepositRing: 'Compact<Balance>',
|
||||
activeKton: 'Compact<Balance>',
|
||||
depositItems: 'Vec<TimeDepositItem>',
|
||||
ringStakingLock: 'StakingLock',
|
||||
ktonStakingLock: 'StakingLock',
|
||||
claimedRewards: 'Vec<EraIndex>',
|
||||
total: 'Compact<Balance>',
|
||||
active: 'Compact<Balance>',
|
||||
unlocking: 'Vec<UnlockChunk>'
|
||||
},
|
||||
TimeDepositItem: {
|
||||
value: 'Compact<Balance>',
|
||||
startTime: 'Compact<TsInMs>',
|
||||
expireTime: 'Compact<TsInMs>'
|
||||
},
|
||||
ExposureT: {
|
||||
ownRingBalance: 'Compact<Balance>',
|
||||
ownKtonBalance: 'Compact<Balance>',
|
||||
ownPower: 'Power',
|
||||
totalPower: 'Power',
|
||||
others: 'Vec<IndividualExposure>'
|
||||
},
|
||||
Exposure: 'ExposureT',
|
||||
IndividualExposure: {
|
||||
who: 'AccountId',
|
||||
ringBalance: 'Compact<Balance>',
|
||||
ktonBalance: 'Compact<Balance>',
|
||||
power: 'Power'
|
||||
},
|
||||
ElectionResultT: {
|
||||
electedStashes: 'Vec<AccountId>',
|
||||
exposures: 'Vec<(AccountId, ExposureT)>',
|
||||
compute: 'ElectionCompute'
|
||||
},
|
||||
RKT: {
|
||||
r: 'Balance',
|
||||
k: 'Balance'
|
||||
},
|
||||
SpanRecord: {
|
||||
slashed: 'RKT',
|
||||
paidOut: 'RKT'
|
||||
},
|
||||
UnappliedSlash: {
|
||||
validator: 'AccountId',
|
||||
own: 'RKT',
|
||||
others: 'Vec<(AccountId, RKT)>',
|
||||
reporters: 'Vec<AccountId>',
|
||||
payout: 'RKT'
|
||||
},
|
||||
|
||||
TreasuryProposal: {
|
||||
proposer: 'AccountId',
|
||||
beneficiary: 'AccountId',
|
||||
ringValue: 'Balance',
|
||||
ktonValue: 'Balance',
|
||||
ringBond: 'Balance',
|
||||
ktonBond: 'Balance'
|
||||
},
|
||||
|
||||
MappedRing: 'u128',
|
||||
|
||||
EthereumTransactionIndex: '(H256, u64)',
|
||||
EthereumBlockNumber: 'u64',
|
||||
EthereumHeader: {
|
||||
parent_hash: 'H256',
|
||||
timestamp: 'u64',
|
||||
number: 'EthereumBlockNumber',
|
||||
author: 'EthereumAddress',
|
||||
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>'
|
||||
},
|
||||
EthereumAddress: 'H160',
|
||||
Bloom: '[u8; 256; Bloom]',
|
||||
H128: '[u8; 16; H128]',
|
||||
EthashProof: {
|
||||
dagNodes: '(H512, H512)',
|
||||
proof: 'Vec<H128>'
|
||||
},
|
||||
EthereumReceipt: {
|
||||
gasUsed: 'U256',
|
||||
logBloom: 'Bloom',
|
||||
logs: 'Vec<LogEntry>',
|
||||
outcome: 'TransactionOutcome'
|
||||
},
|
||||
|
||||
LogEntry: {},
|
||||
TransactionOutcome: {},
|
||||
|
||||
EthereumNetworkType: {
|
||||
_enum: {
|
||||
Mainnet: null,
|
||||
Ropsten: null
|
||||
}
|
||||
},
|
||||
RedeemFor: {
|
||||
_enum: {
|
||||
Token: null,
|
||||
Deposit: null
|
||||
}
|
||||
},
|
||||
EthereumReceiptProof: {
|
||||
index: 'u64',
|
||||
proof: 'Bytes',
|
||||
headerHash: 'H256'
|
||||
},
|
||||
EthereumReceiptProofThing: '(EthereumHeader, EthereumReceiptProof, MMRProof)',
|
||||
MMRProof: {
|
||||
memberLeafIndex: 'u64',
|
||||
lastLeafIndex: 'u64',
|
||||
proof: 'Vec<H256>'
|
||||
},
|
||||
EthereumRelayHeaderParcel: {
|
||||
header: 'EthereumHeader',
|
||||
mmrRoot: 'H256'
|
||||
},
|
||||
EthereumRelayProofs: {
|
||||
ethashProof: 'Vec<EthashProof>',
|
||||
mmrProof: 'Vec<H256>'
|
||||
},
|
||||
|
||||
OtherSignature: {
|
||||
_enum: {
|
||||
Eth: 'EcdsaSignature',
|
||||
Tron: 'EcdsaSignature'
|
||||
}
|
||||
},
|
||||
EcdsaSignature: '[u8; 65; EcdsaSignature]',
|
||||
TronAddress: 'EthereumAddress',
|
||||
OtherAddress: {
|
||||
_enum: {
|
||||
Eth: 'EthereumAddress',
|
||||
Tron: 'TronAddress'
|
||||
}
|
||||
},
|
||||
AddressT: '[u8; 20; AddressT]',
|
||||
|
||||
MerkleMountainRangeRootLog: {
|
||||
prefix: '[u8; 4; Prefix]',
|
||||
mmrRoot: 'Hash'
|
||||
},
|
||||
|
||||
ChainProperties: {
|
||||
ss58Format: 'Option<u8>',
|
||||
tokenDecimals: 'Option<u32>',
|
||||
tokenSymbol: 'Option<Text>',
|
||||
ktonTokenDecimals: 'Option<u32>',
|
||||
ktonTokenSymbol: 'Option<Text>'
|
||||
},
|
||||
|
||||
AccountInfo: {
|
||||
nonce: 'Index',
|
||||
refcount: 'RefCount',
|
||||
data: 'AccountData'
|
||||
},
|
||||
ProxyDefinition: {
|
||||
delegate: 'AccountId',
|
||||
proxyType: 'ProxyType',
|
||||
delay: 'BlockNumber'
|
||||
},
|
||||
ProxyType: {
|
||||
_enum: {
|
||||
Any: null,
|
||||
NonTransfer: null,
|
||||
Governance: null,
|
||||
Staking: null,
|
||||
IdentityJudgement: null,
|
||||
EthereumBridge: null
|
||||
}
|
||||
},
|
||||
ProxyAnnouncement: {
|
||||
real: 'AccountId',
|
||||
callHash: 'Hash',
|
||||
height: 'BlockNumber'
|
||||
},
|
||||
Announcement: 'ProxyAnnouncement',
|
||||
RelayHeaderId: 'EthereumBlockNumber',
|
||||
RelayHeaderParcel: 'EthereumRelayHeaderParcel',
|
||||
RelayProofs: 'EthereumRelayProofs',
|
||||
RelayAffirmationId: {
|
||||
relayHeaderId: 'EthereumBlockNumber',
|
||||
round: 'u32',
|
||||
index: 'u32'
|
||||
},
|
||||
RelayAffirmationT: {
|
||||
relayer: 'AccountId',
|
||||
relayHeaderParcels: 'EthereumRelayHeaderParcel',
|
||||
bond: 'Balance',
|
||||
maybeExtendedRelayAffirmationId: 'Option<RelayAffirmationId>',
|
||||
verified: 'bool'
|
||||
},
|
||||
RelayVotingState: {
|
||||
ayes: 'Vec<AccountId>',
|
||||
nays: 'Vec<AccountId>'
|
||||
},
|
||||
PowerOf: {
|
||||
power: 'Power'
|
||||
}
|
||||
};
|
||||
@ -6,6 +6,7 @@ import canvas from './canvas';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import crab from './crab';
|
||||
import crust from './crust';
|
||||
import darwinia from './darwinia';
|
||||
import darwiniaParachain from './darwinia-parachain';
|
||||
import dock from './dock';
|
||||
import testPara from './cumulus-test-parachain';
|
||||
@ -27,6 +28,7 @@ import subsocial from './subsocial';
|
||||
// mapping from specName in state.getRuntimeVersion
|
||||
export default {
|
||||
Crab: crab,
|
||||
Darwinia: darwinia,
|
||||
Equilibrium: equilibrium,
|
||||
bifrost: bifrost,
|
||||
canvas,
|
||||
|
||||
@ -109,6 +109,12 @@ function createLiveNetworks (t: TFunction): LinkOption[] {
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Darwinia Network' } }),
|
||||
value: 'wss://crab.darwinia.network'
|
||||
},
|
||||
{
|
||||
info: 'darwinia',
|
||||
text: t('rpc.darwinia', 'Darwinia', { ns: 'apps-config' }),
|
||||
textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Darwinia Network' } }),
|
||||
value: 'wss://cc1.darwinia.network'
|
||||
},
|
||||
{
|
||||
info: 'dock-mainnet',
|
||||
text: t('rpc.dock-mainnet', 'Dock Mainnet', { ns: 'apps-config' }),
|
||||
|
||||
@ -8,6 +8,7 @@ const emptyColor = '#99999';
|
||||
// alphabetical
|
||||
const chainCrab = '#7C30DD';
|
||||
const chainCrust = '#ff8812';
|
||||
const chainDarwinia = 'linear-gradient(-45deg, #FE3876 0%, #7C30DD 71%, #3A30DD 100%)';
|
||||
const chainHanonycash = '#0099CC';
|
||||
const chainKulupu = '#003366';
|
||||
const chainPhala = '#4dc56a';
|
||||
@ -39,8 +40,9 @@ const nodeSubsocial = '#b9018c';
|
||||
// alphabetical
|
||||
const chainColors: Record<string, any> = [
|
||||
['acala mandala pc1', chainRoccoAcala],
|
||||
['Crab', chainCrab],
|
||||
['Darwinia Crab', chainCrab],
|
||||
['crust maxwell cc2', chainCrust],
|
||||
['darwinia cc1', chainDarwinia],
|
||||
['darwinia parachain', chainRoccoDarwinia],
|
||||
['hanonycash', chainHanonycash],
|
||||
['Kulupu', chainKulupu],
|
||||
|
||||
@ -60,6 +60,7 @@ import emptyLogo from './empty.svg';
|
||||
// NOTE: this matches up with RPC system.chain
|
||||
// alphabetical
|
||||
const chainLogos: Record<string, any> = [
|
||||
['darwinia crab', nodeCrab],
|
||||
['Dusty', chainDusty],
|
||||
['Kusama', chainKusama], // new name after CC3
|
||||
['Kusama CC1', chainKusama],
|
||||
@ -84,8 +85,9 @@ const nodeLogos: Record<string, any> = [
|
||||
['Canvas Node', nodeCanvas],
|
||||
['centrifuge chain', nodeCentrifuge],
|
||||
['Centrifuge Chain Node', nodeCentrifuge],
|
||||
['crab', nodeCrab],
|
||||
['darwinia crab', nodeCrab],
|
||||
['crust node', nodeCrust],
|
||||
['darwinia', nodeDarwinia],
|
||||
['darwinia parachain', nodeDarwinia],
|
||||
['Dock Full Node', nodeDockMainnet],
|
||||
['Edgeware Node', nodeEdgeware],
|
||||
@ -124,6 +126,7 @@ const namedLogos: Record<string, any> = {
|
||||
centrifuge: nodeCentrifuge,
|
||||
crab: nodeCrab,
|
||||
crust: nodeCrust,
|
||||
darwinia: nodeDarwinia,
|
||||
'dock-mainnet': nodeDockMainnet,
|
||||
'dock-testnet': nodeDockTestnet,
|
||||
dusty: chainDusty,
|
||||
|
||||
18
packages/apps-config/src/ui/logos/nodes/darwinia.svg
Normal file
18
packages/apps-config/src/ui/logos/nodes/darwinia.svg
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="117px" height="117px" viewBox="0 0 117 117" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>编组</title>
|
||||
<defs>
|
||||
<linearGradient x1="100%" y1="99.1489517%" x2="0%" y2="0.851048287%" id="linearGradient-1">
|
||||
<stop stop-color="#FE3876" offset="0%"></stop>
|
||||
<stop stop-color="#7C30DD" offset="71.4447846%"></stop>
|
||||
<stop stop-color="#3A30DD" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="编组" transform="translate(0.000000, 0.500000)">
|
||||
<ellipse id="椭圆形" fill="url(#linearGradient-1)" cx="58.5" cy="58" rx="58.5" ry="58"></ellipse>
|
||||
<path d="M37.7963293,41.5 C39.9824632,41.5 41.7547918,43.279328 41.7547918,45.4743151 C41.7547918,47.1928414 40.6681548,48.6567557 39.1471488,49.2111776 L39.1473608,69.7990411 C41.9789596,69.6735315 44.6120387,69.1533422 46.9514658,68.2911374 L46.9513819,52.5074105 C45.4303759,51.9529886 44.3437389,50.4890743 44.3437389,48.7705479 C44.3437389,46.5755608 46.1160675,44.7962329 48.3022014,44.7962329 C50.4883354,44.7962329 52.260664,46.5755608 52.260664,48.7705479 C52.260664,50.4890743 51.1740269,51.9529886 49.653021,52.5074105 L49.6531476,67.0732838 C52.2541893,65.6614956 54.3379792,63.7507164 55.7197953,61.4432064 C54.7822379,60.5949052 54.1929941,59.366518 54.1929941,58 C54.1929941,55.4408465 56.2592231,53.3664384 58.8080736,53.3664384 C59.0173771,53.3664384 59.2234261,53.3804264 59.4253438,53.4075224 C62.9403905,47.2712649 70.477406,43.5546777 79.4700228,43.4607288 L79.819818,43.4589041 L94.2653923,43.4589041 C95.0113936,43.4589041 95.6161473,44.0660796 95.6161473,44.8150685 C95.6161473,45.5373078 95.053819,46.1276823 94.3447594,46.1689307 L94.2653923,46.1712329 L91.6764452,46.1712329 L91.6765426,66.7888024 C93.1975662,67.3431828 94.2841527,68.8070168 94.2841527,70.5256849 C94.2841527,72.720491 92.5117418,74.5 90.3256902,74.5 C88.1396386,74.5 86.3672276,72.720491 86.3672276,70.5256849 C86.3672276,68.8068464 87.4540297,67.3428925 88.9752902,66.7886375 L88.9749352,46.1712329 L81.1702728,46.1712329 L81.1706704,66.7888024 C82.691694,67.3431828 83.7782806,68.8070168 83.7782806,70.5256849 C83.7782806,72.720491 82.0058696,74.5 79.819818,74.5 C77.6337664,74.5 75.8613554,72.720491 75.8613554,70.5256849 C75.8613554,68.8070168 76.947942,67.3431828 78.4689656,66.7888024 L78.4687864,46.2009589 C75.6371877,46.3264685 73.0041086,46.8466578 70.6646814,47.7088626 L70.6647983,63.4925695 C72.1858218,64.0469499 73.2724084,65.510784 73.2724084,67.2294521 C73.2724084,69.4242582 71.5,71.2037671 69.3139458,71.2037671 C67.1278942,71.2037671 65.3554833,69.4242582 65.3554833,67.2294521 C65.3554833,65.510784 66.4420698,64.0469499 67.9630934,63.4925695 L67.9629996,48.9267162 C65.3619579,50.3385044 63.278168,52.2492836 61.8963519,54.5567936 C62.8339332,55.4050054 63.4231532,56.633386 63.4231532,58 C63.4231532,60.5589739 61.3568404,62.6335616 58.8080736,62.6335616 C58.5987771,62.6335616 58.3927338,62.6195724 58.1908208,62.5924743 C54.6758024,68.7287126 47.1387685,72.445322 38.1461244,72.5392712 L37.7963293,72.5410959 L23.350755,72.5410959 C22.6047536,72.5410959 22,71.9339204 22,71.1849315 C22,70.4626922 22.5623283,69.8723177 23.2713879,69.8310693 L23.350755,69.8287671 L25.9397021,69.8286164 L25.939706,49.2112026 C24.4186642,48.6567997 23.3319945,47.1928672 23.3319945,45.4743151 C23.3319945,43.279328 25.1043231,41.5 27.2904571,41.5 C29.476591,41.5 31.2489196,43.279328 31.2489196,45.4743151 C31.2489196,47.1926976 30.1624645,48.6565106 28.6416586,49.2110383 L28.6412121,69.8286164 L36.4454242,69.8286164 L36.4455097,49.2111776 C34.9245037,48.6567557 33.8378667,47.1928414 33.8378667,45.4743151 C33.8378667,43.279328 35.6101953,41.5 37.7963293,41.5 Z" id="路径" fill="#FFFFFF"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
@ -10,6 +10,7 @@
|
||||
"rpc.crust.network": "Crust Maxwell CC2",
|
||||
"rpc.custom": "Custom environment",
|
||||
"rpc.custom.entry": "Custom",
|
||||
"rpc.darwinia": "Darwinia",
|
||||
"rpc.datahighway.harbour": "Harbour",
|
||||
"rpc.dock-mainnet": "Dock Mainnet",
|
||||
"rpc.dock-testnet": "Dock Testnet",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user