update chainspec and populate with extra bootnodes

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-17 16:02:09 +03:00
parent 20c73d53b6
commit 9e3e01fecf
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
4 changed files with 25 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "ghost-wallet",
"version": "0.1.2",
"version": "0.1.3",
"description": "Browser extension to manage ghost blockchain light clients.",
"main": "dist/src/index.js",
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",

View File

@ -22,24 +22,24 @@ export const wellKnownGenesisHashByChainId: Record<string, string> =
networks.reduce((wellKnownChainIds, { chainId, value }) => {
wellKnownChainIds[value] = chainId
return wellKnownChainIds
})
}, {})
export const wellKnownChainIdByGenesisHash: Record<string, string> =
networks.reduce((wellKnownChainName, { chainId, value }) => {
wellKnownChainName[chainId] = value
return wellKnownChainName
})
}, {})
export const wellKnownPrefixByGenesisHash: Record<string, number> =
networks.reduce((wellKnownPrefixes, { chainId, prefix }) => {
wellKnownPrefixes[chainId] = prefix
return wellKnownPrefixes
})
}, {})
export const wellKnownDecimalsByGenesisHash: Record<string, number> =
networks.reduce((wellKnownDecimals, { decimals, chainId }) => {
wellKnownDecimals[chainId] = decimals
return wellKnownDecimals
})
}, {})
export const CHANNEL_ID = "ghost-extension"

View File

@ -9,7 +9,7 @@ export async function getDefaultBootnodes(
chain: string,
): Promise<string[] | undefined> {
if (
networks.some(network => network.value.includes(chain))
networks.map(network => network.value).includes(chain)
) {
const bootNodes = (
await (