* Fix chain ordering (alpahbetical) * Split relays * Split live relays * Ordering * Adjust first with spacer
27 lines
875 B
TypeScript
27 lines
875 B
TypeScript
// Copyright 2017-2021 @polkadot/app-accounts authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import BN from 'bn.js';
|
|
|
|
import networks from '@polkadot/networks';
|
|
import { assert } from '@polkadot/util';
|
|
|
|
function getGenesis (name: string): string {
|
|
const network = networks.find(({ network }) => network === name);
|
|
|
|
assert(network && network.genesisHash[0], `Unable to find genesisHash for ${name}`);
|
|
|
|
return network.genesisHash[0];
|
|
}
|
|
|
|
export const KULUPU_GENESIS = getGenesis('kulupu');
|
|
|
|
export const KUSAMA_GENESIS = getGenesis('kusama');
|
|
|
|
export const POLKADOT_GENESIS = getGenesis('polkadot');
|
|
export const POLKADOT_DENOM_BLOCK = new BN(1248328);
|
|
|
|
export const ROCOCO_GENESIS = '0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215';
|
|
|
|
export const WESTEND_GENESIS = '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e';
|