Module Tezos_raw_protocol_alpha.Voting_period_storage

Initializes the current context with voting period information.

Sets the initial period to {voting_period = root; kind = Proposal; start_position}.

Increment the index by one and set the kind to Proposal.

Increment the index by one and set the kind to its successor.

Returns information about the current voting period.

Returns the current voting period kind.

Returns true if the context level is the last of current voting period.

blocks_before_activation ctxt returns Some b if the current voting period is the Adoption and b blocks must be waited before activation of the next protocol amendment. Returns None if the current period is not Adoption (then more than Constants_storage.blocks_per_voting_period must be waited before activation).

Returns the voting period information for the current level.

Returns the voting period information for the next level.

module Testnet_dictator : sig ... end