package tezos-protocol-008-PtEdoTez
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-008-PtEdoTez.raw/Tezos_raw_protocol_008_PtEdoTez/Voting_period_repr/index.html
Module Tezos_raw_protocol_008_PtEdoTez.Voting_period_repr
Source
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.
Source
type voting_period = {
index : Tezos_protocol_environment_008_PtEdoTez.Int32.t;
kind : kind;
start_position : Tezos_protocol_environment_008_PtEdoTez.Int32.t;
}
A voting period can be of 5 kinds and is uniquely identified by a counter since the root.
Source
type info = {
voting_period : t;
position : Tezos_protocol_environment_008_PtEdoTez.Int32.t;
remaining : Tezos_protocol_environment_008_PtEdoTez.Int32.t;
}
include Tezos_protocol_environment_008_PtEdoTez.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
val max : voting_period -> voting_period -> voting_period
val min : voting_period -> voting_period -> voting_period
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.
Source
val remaining_blocks :
Level_repr.t ->
t ->
blocks_per_voting_period:Tezos_protocol_environment_008_PtEdoTez.Int32.t ->
Tezos_protocol_environment_008_PtEdoTez.Int32.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>