package tezos-protocol-011-PtHangz2

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

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
include Tezos_protocol_environment_011_PtHangz2.Compare.S with type t := raw_level
val (=) : raw_level -> raw_level -> bool
val (<>) : raw_level -> raw_level -> bool
val (<) : raw_level -> raw_level -> bool
val (<=) : raw_level -> raw_level -> bool
val (>=) : raw_level -> raw_level -> bool
val (>) : raw_level -> raw_level -> bool
val compare : raw_level -> raw_level -> int
val equal : raw_level -> raw_level -> bool
val max : raw_level -> raw_level -> raw_level
val min : raw_level -> raw_level -> raw_level
val to_int32 : raw_level -> int32
val of_int32_exn : int32 -> raw_level

Can trigger Unexpected_level error when the level to encode is negative

val diff : raw_level -> raw_level -> int32
val root : raw_level
val succ : raw_level -> raw_level
val pred : raw_level -> raw_level option
OCaml

Innovation. Community. Security.