Tezos_raw_protocol_026_PtUSHuai.Cycle_reprThis module provides a type and functions to manipulate cycle numbers.
Invariant: cycle numbers are always positive.
type cycle = tinclude Tezos_protocol_environment_026_PtUSHuai.Compare.S with type t := tval encoding : cycle Tezos_protocol_environment_026_PtUSHuai.Data_encoding.tval rpc_arg : cycle Tezos_protocol_environment_026_PtUSHuai.RPC_arg.argval pp :
Tezos_protocol_environment_026_PtUSHuai.Format.formatter ->
cycle ->
unitval root : cyclesub c i is Some (c - i) if c - i is a valid (non-negative) cycle, and None otherwise.
The offset i must be non-negative.
val to_int32 : cycle -> int32val of_int32_exn : int32 -> cycleval of_string_opt : string -> cycle optionof_string_opt s parses s as a non-negative cycle number. It returns None if Int32.of_string_opt s fails or the value is negative.
module Map :
Tezos_protocol_environment_026_PtUSHuai.Map.S with type key = cyclemodule Index : Storage_description.INDEX with type t = cycle