* use @polkadot/networks * address comments * icon is set * pull latest beta * filtering out if no genesis Co-authored-by: Github Actions <action@github.com>
23 lines
406 B
TypeScript
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;
|