package tezos-protocol-018-Proxford

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module provides a type and functions to manipulate cycle numbers.

Invariant: cycle numbers are always positive.

type t
type cycle = t
include Tezos_protocol_environment_018_Proxford.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val root : cycle
val pred : cycle -> cycle option
val add : cycle -> int -> cycle
val sub : cycle -> int -> cycle option
val succ : cycle -> cycle
val diff : cycle -> cycle -> int32
val (--->) : cycle -> cycle -> cycle list

a ---> b = a; ...; b

val to_int32 : cycle -> int32
val of_int32_exn : int32 -> cycle
val of_string_exn : string -> cycle
module Index : Storage_description.INDEX with type t = cycle
OCaml

Innovation. Community. Security.