package tezos-protocol-008-PtEdoTez
type t = private {
level : Raw_level_repr.t;
(*The level of the block relative to genesis. This is also the Shell's notion of level.
*)level_position : int32;
(*The level of the block relative to the block that started the first version of protocol alpha.
*)cycle : Cycle_repr.t;
(*The current cycle's number. Note that cycles are a protocol-specific notion. As a result, the cycle number starts at 0 with the first block of the first version of protocol alpha.
*)cycle_position : int32;
(*The current level of the block relative to the first block of the current cycle.
*)expected_commitment : bool;
}
type level = t
include Tezos_protocol_environment_008_PtEdoTez.Compare.S with type t := level
val encoding : level Tezos_protocol_environment_008_PtEdoTez.Data_encoding.t
val pp :
Tezos_protocol_environment_008_PtEdoTez.Format.formatter ->
level ->
unit
val pp_full :
Tezos_protocol_environment_008_PtEdoTez.Format.formatter ->
level ->
unit
val root_level : Raw_level_repr.t -> level
val level_from_raw :
first_level:Raw_level_repr.t ->
blocks_per_cycle:int32 ->
blocks_per_commitment:int32 ->
Raw_level_repr.t ->
level
type compat_t = {
level : Raw_level_repr.t;
level_position : int32;
cycle : Cycle_repr.t;
cycle_position : int32;
voting_period : int32;
voting_period_position : int32;
expected_commitment : bool;
}
Compatibility module with Level_repr.t from protocol 007. In this version, the voting_period
and voting_period_position
fields are deprecated and replaced by a new RPC endpoint at Voting_services.voting_period
val compat_encoding :
compat_t Tezos_protocol_environment_008_PtEdoTez.Data_encoding.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>