ghost-keychain/packages/extension-chains/src/genesisHashes.ts
Thibaut Sardan 7d6542fba7
Use @polkadot/networks (#504)
* use @polkadot/networks

* address comments

* icon is set

* pull latest beta

* filtering out if no genesis

Co-authored-by: Github Actions <action@github.com>
2020-10-16 14:35:41 +02:00

23 lines
406 B
TypeScript

// Copyright 2019-2020 @polkadot/extension-chains authors & contributors
// SPDX-License-Identifier: Apache-2.0
import chains from './chains';
interface Option {
text: string;
value: string;
}
const hashes: Option[] = [
{
text: 'Allow use on any chain',
value: ''
},
...chains.map(({ chain, genesisHash }) => ({
text: chain,
value: genesisHash
}))
];
export default hashes;