* use @polkadot/networks * address comments * icon is set * pull latest beta * filtering out if no genesis Co-authored-by: Github Actions <action@github.com>
17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
// Copyright 2019-2020 @polkadot/extension-chains authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { MetadataDefBase } from '@polkadot/extension-inject/types';
|
|
import networks from '@polkadot/networks';
|
|
|
|
const hashes: MetadataDefBase[] = networks
|
|
.filter(({ genesisHash }) => !!genesisHash.length)
|
|
.map((network) => ({
|
|
chain: network.displayName,
|
|
genesisHash: network.genesisHash[0],
|
|
icon: network.icon,
|
|
ss58Format: network.prefix
|
|
}));
|
|
|
|
export default hashes;
|