Interface GenesisBlockExecuteContext

Context for the genesis block execution hook.

Hierarchy

  • GenesisBlockExecuteContext

Properties

chainID: Buffer

The identifier of the blockchain, the genesis block belongs to.

eventQueue: EventQueue
getMethodContext: (() => MethodContext)

Type declaration

getStore: ((moduleID: Buffer, storePrefix: Buffer) => SubStore)

Type declaration

    • (moduleID: Buffer, storePrefix: Buffer): SubStore
    • State store interface to get data from the module stores.

      Parameters

      • moduleID: Buffer
      • storePrefix: Buffer

      Returns SubStore

logger: Logger
setNextValidators: ((preCommitThreshold: bigint, certificateThreshold: bigint, validators: Validator[]) => void)

Type declaration

    • (preCommitThreshold: bigint, certificateThreshold: bigint, validators: Validator[]): void
    • Sets the next active validators to generate blocks after the genesis block.

      Parameters

      • preCommitThreshold: bigint
      • certificateThreshold: bigint
      • validators: Validator[]

      Returns void

Generated using TypeDoc