export type NetworkType = { chainId: string label: string value: string prefix: number decimals: number symbol: string } export const networks: NetworkType[] = [ { chainId: "0xcaf9c5ddccc7ba6f96149a6b8a81c26a3641742795cd5e7e0aee79bf3f4e77b7", value: "casper_staging_testnet", label: "CASPER Testnet", symbol: "CSPR", prefix: 1996, decimals: 18, } ] export const wellKnownGenesisHashByChainId: Record = networks.reduce>((wellKnownChainIds, { chainId, value }) => { wellKnownChainIds[value] = chainId return wellKnownChainIds }, {}) export const wellKnownChainIdByGenesisHash: Record = networks.reduce>((wellKnownChainName, { chainId, value }) => { wellKnownChainName[chainId] = value return wellKnownChainName }, {}) export const wellKnownPrefixByGenesisHash: Record = networks.reduce>((wellKnownPrefixes, { chainId, prefix }) => { wellKnownPrefixes[chainId] = prefix return wellKnownPrefixes }, {}) export const wellKnownDecimalsByGenesisHash: Record = networks.reduce>((wellKnownDecimals, { decimals, chainId }) => { wellKnownDecimals[chainId] = decimals return wellKnownDecimals }, {}) export const CHANNEL_ID = "ghost-extension"