Skip to content

nooschain v0.1.0


nooschain / config/genesis / normalizeGenesisConfig

Function: normalizeGenesisConfig()

normalizeGenesisConfig(config): object

Defined in: config/genesis.ts:392

Validates and canonicalizes a genesis config.

Optional nullable fields are made explicit, entity arrays are sorted by id, validator voting power defaults to 1, node status defaults to active, and missing chain access rules grant chain:admin to the first genesis user and that user's organization. These transformations keep the genesis hash stable across equivalent input documents.

Parameters

config

unknown

Returns

object

buckets

buckets: object[]

chainAccessRules?

optional chainAccessRules?: object[]

chainId

chainId: string

chainName

chainName: string

createdAt

createdAt: string = isoDateSchema

nodes

nodes: object[]

organizations

organizations: object[]

protocolVersion

protocolVersion: number

users

users: object[]

validators

validators: object[]

Audience-first NOOSChain documentation.