package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Cycle_repr/index.html

Module Tezos_raw_protocol_alpha.Cycle_reprSource

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

Invariant: cycle numbers are always positive.

Sourcetype t
Sourcetype cycle = t
include Tezos_protocol_environment_alpha.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
Sourceval root : cycle
Sourceval pred : cycle -> cycle option
Sourceval add : cycle -> int -> cycle
Sourceval sub : cycle -> int -> cycle option
Sourceval succ : cycle -> cycle
Sourceval diff : cycle -> cycle -> int32
Sourceval (--->) : cycle -> cycle -> cycle list

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

Sourceval to_int32 : cycle -> int32
Sourceval of_int32_exn : int32 -> cycle
Sourceval of_string_exn : string -> cycle
OCaml

Innovation. Community. Security.