Fields relating to a protocol upgrade.

Implements

Constructors

  • Creates a new BlockUpgradeState object.

    Parameters

    • __namedParameters: {
          currentProtocol: string;
          nextProtocol?: string;
          nextProtocolApprovals?: number | bigint;
          nextProtocolSwitchOn?: number | bigint;
          nextProtocolVoteBefore?: number | bigint;
      }
      • currentProtocol: string
      • Optional nextProtocol?: string
      • Optional nextProtocolApprovals?: number | bigint
      • Optional nextProtocolSwitchOn?: number | bigint
      • Optional nextProtocolVoteBefore?: number | bigint

    Returns BlockUpgradeState

Properties

currentProtocol: string

(proto) The current protocol version.

nextProtocol?: string

(nextproto) The next proposed protocol version.

nextProtocolApprovals?: number

(nextyes) Number of blocks which approved the protocol upgrade.

nextProtocolSwitchOn?: bigint

(nextswitch) Round on which the protocol upgrade will take effect.

nextProtocolVoteBefore?: bigint

(nextbefore) Deadline round for this protocol upgrade (No votes will be consider after this round).

encodingSchemaValue: undefined | Schema

Accessors

Methods

Generated using TypeDoc