Mavryk_raw_protocol_001_PtAtLas.Raw_level_repr
The shell's notion of a level: an integer indicating the number of blocks since genesis: genesis is 0, all other blocks have increasing levels from there.
type raw_level = t
module Set : Mavryk_protocol_environment_001_PtAtLas.Set.S with type elt = t
module Map : Mavryk_protocol_environment_001_PtAtLas.Map.S with type key = t
val encoding :
raw_level Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val rpc_arg : raw_level Mavryk_protocol_environment_001_PtAtLas.RPC_arg.arg
val pp :
Mavryk_protocol_environment_001_PtAtLas.Format.formatter ->
raw_level ->
unit
include Mavryk_protocol_environment_001_PtAtLas.Compare.S
with type t := raw_level
val to_int32 : raw_level -> int32
val to_int32_non_negative :
raw_level ->
Mavryk_protocol_environment_001_PtAtLas.Bounded.Non_negative_int32.t
val of_int32_exn : int32 -> raw_level
val of_int32 :
int32 ->
raw_level Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Can trigger Unexpected_level error when the level to encode is negative
val of_int32_non_negative :
Mavryk_protocol_environment_001_PtAtLas.Bounded.Non_negative_int32.t ->
raw_level
val root : raw_level
Return the predecessor of l
when l >= 2
, otherwise return None
.
module Index : Storage_description.INDEX with type t = raw_level