Alpha_context.LevelThis 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 := tinclude Mavryk_protocol_environment_alpha.Compare.S with type t := tval encoding : t Mavryk_protocol_environment_alpha.Data_encoding.tval pp : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unitval pp_full : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unittype level = tval from_raw : context -> Raw_level.t -> levelval from_raw_with_offset :
context ->
offset:int32 ->
Raw_level.t ->
level Mavryk_protocol_environment_alpha.Error_monad.tzresultFails 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.tval may_compute_randao : context -> bool