package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Period_repr/index.html

Module Tezos_raw_protocol_alpha.Period_reprSource

Sourcetype t
Sourcetype period = t

Represents a period of time as a non-negative integer.

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 equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
Sourceval to_seconds : period -> int64

Returns the number of seconds contained in the period.

Converts a number of seconds to a period.

of_second s fails if s is not positive.

Sourceval of_seconds_exn : int64 -> period

Converts a number of seconds to period.

of_second s fails if s is not positive. It should only be used at toplevel for constants.

Safe addition of periods, guarded against overflow.

Safe multiplication by a positive integer. Guarded against overflow.

Sourceval zero : period
Sourceval one_second : period
Sourceval one_minute : period
Sourceval one_hour : period
val compare : period -> period -> int

compare x y returns 0 if x is equal to y, a negative integer if x is shorter than y, and a positive integer if x is longer than y.

OCaml

Innovation. Community. Security.