package tezos-protocol-008-PtEdo2Zk

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-008-PtEdo2Zk.raw/Tezos_raw_protocol_008_PtEdo2Zk/Voting_period_repr/index.html

Module Tezos_raw_protocol_008_PtEdo2Zk.Voting_period_reprSource

Sourcetype kind =
  1. | Proposal
    (*

    protocols can be proposed

    *)
  2. | Testing_vote
    (*

    a proposal can be voted

    *)
  3. | Testing
    (*

    winning proposal is forked on a testnet

    *)
  4. | Promotion_vote
    (*

    activation can be voted

    *)
  5. | Adoption
    (*

    a delay before activation

    *)

The voting period kinds are ordered as follows: Proposal -> Testing_vote -> Testing -> Promotion_vote -> Adoption. This order is the one used be the function succ below.

A voting period can be of 5 kinds and is uniquely identified by a counter since the root.

include Tezos_protocol_environment_008_PtEdo2Zk.Compare.S with type t := voting_period
val (=) : voting_period -> voting_period -> bool
val (<>) : voting_period -> voting_period -> bool
val (<) : voting_period -> voting_period -> bool
val (<=) : voting_period -> voting_period -> bool
val (>=) : voting_period -> voting_period -> bool
val (>) : voting_period -> voting_period -> bool
val compare : voting_period -> voting_period -> int
val equal : voting_period -> voting_period -> bool

reset period ~start_position increment the index by one and set the kind to Proposal which is the period kind that start the voting process. start_position is the level at wich this voting_period started.

succ period ~start_position increment the index by one and set the kind to its successor. start_position is the level at which this voting_period started.

OCaml

Innovation. Community. Security.