mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-13 11:01:03 +00:00
a1808f590e
* adapt ss58 * fix yarn.lock ? * cater for kusama hashes * yarn update-interactive * much nicer chains
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import known from '@polkadot/networks';
|
|
|
|
type ChainDef = string[];
|
|
|
|
const chains: Record <string, ChainDef> = known
|
|
.filter(({ genesisHash }) => genesisHash.length > 1)
|
|
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
|
|
|
|
export default chains;
|