Alpha_context.Level
This module re-exports definitions from Level_repr
and Level_storage
.
type t = private {
level : Raw_level.t;
level_position : int32;
cycle : Cycle.t;
cycle_position : int32;
expected_commitment : bool;
}
include BASIC_DATA with type t := t
include Mavryk_protocol_environment_alpha.Compare.S with type t := t
val encoding : t Mavryk_protocol_environment_alpha.Data_encoding.t
val pp : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unit
val pp_full : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unit
type level = t
val from_raw : context -> Raw_level.t -> level
val from_raw_with_offset :
context ->
offset:int32 ->
Raw_level.t ->
level Mavryk_protocol_environment_alpha.Error_monad.tzresult
Fails with Negative_level_and_offset_sum
if the sum of the raw_level and the offset is negative.
val last_preserved_block_level : context -> Raw_level.t
val may_compute_randao : context -> bool