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_001_PtAtLas.Compare.S with type t := t
val encoding : t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val pp : Mavryk_protocol_environment_001_PtAtLas.Format.formatter -> t -> unit
val pp_full :
Mavryk_protocol_environment_001_PtAtLas.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_001_PtAtLas.Error_monad.tzresult
Fails with Negative_level_and_offset_sum
if the sum of the raw_level and the offset is negative.
val last_allowed_fork_level : context -> Raw_level.t
val may_snapshot_stake_distribution : context -> bool
val may_compute_randao : context -> bool