// Copyright 2017-2023 @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 = /*#__PURE__*/ selectableNetworks .filter((n) => n.genesisHash.length) .reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});