Chain names updates (#1605)

This commit is contained in:
Jaco Greeff 2019-09-12 21:38:32 +02:00 committed by GitHub
parent 8bfb3b9f00
commit 4a6db79ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
export const UNSAFE_CHAINS = ['Development', 'Kusama CC1', 'Kusama'];
export const UNSAFE_CHAINS = ['Development', 'Kusama CC1', 'Kusama CC2', 'Kusama'];
export default function detectUnsafe (chain: Text | string): boolean {
return UNSAFE_CHAINS.includes(chain.toString());

View File

@ -25,7 +25,8 @@ import substrate from '@polkadot/ui-assets/substrate-hexagon.svg';
// overrides based on the actual matched chain name
const CHAINS: Record<string, any> = {
Kusama: chainKusama, // old name, the W3F nodes still has these
'Kusama CC1': chainKusama
'Kusama CC1': chainKusama,
'Kusama CC2': chainKusama
};
// overrides based on the actual software node type

View File

@ -23,7 +23,8 @@ const BASE = 'https://polkascan.io/pre/';
const CHAINS: Record<string, string> = {
Alexander: 'alexander',
Kusama: 'kusama', // old name via W3F nodes
'Kusama CC1': 'kusama'
'Kusama CC1': 'kusama',
'Kusama CC2': 'kusama'
};
const TYPES: Record<string, string> = {