12 lines
464 B
TypeScript
12 lines
464 B
TypeScript
// Copyright 2017-2026 @polkadot/ui-settings authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { selectableNetworks } from '@polkadot/networks';
|
|
import { objectSpread } from '@polkadot/util';
|
|
|
|
type ChainDef = string[];
|
|
|
|
export const chains: Record <string, ChainDef> = /*#__PURE__*/ selectableNetworks
|
|
.filter((n) => n.genesisHash.length)
|
|
.reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});
|