ghost-portal/packages/apps-config/src/api/constants.ts
Jaco Greeff e9b192dbb4
New Rococo (& old paths removal) (#4908)
* New Rococo (& old paths removal)

* Remove old useProposal (extracted)

* new genesis
2021-03-23 23:06:13 +01:00

25 lines
773 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 = '0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd';