// Copyright 2017-2021 @polkadot/app-accounts authors & contributors // SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import { selectableNetworks } from '@polkadot/networks'; import { assert } from '@polkadot/util'; function getGenesis (name: string): string { const network = selectableNetworks.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 = '0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a'; export const WESTEND_GENESIS = '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e'; export const NEATCOIN_GENESIS = '0xfbb541421d30423c9a753ffa844b64fd44d823f513bf49e3b73b3a656309a595';