package tezos-protocol-012-Psithaca

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

Module Tezos_raw_protocol_012_Psithaca.Tez_reprSource

type t
Sourcetype tez = t
Sourceval zero : t
Sourceval one_mutez : t
Sourceval one_cent : t
Sourceval fifty_cents : t
Sourceval one : t
Sourceval sub_opt : t -> t -> t option

Same as ( -? ) but returns None instead of an error.

Sourceval to_mutez : t -> int64
Sourceval of_mutez : int64 -> t option

of_mutez n (micro tez) is None if n is negative

Sourceval of_mutez_exn : int64 -> t

of_mutez_exn n fails if n is negative. It should only be used at toplevel for constants.

Sourceval mul_exn : t -> int -> t

It should only be used at toplevel for constants.

Sourceval div_exn : t -> int -> t

It should only be used at toplevel for constants.

include Tezos_protocol_environment_012_Psithaca.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 of_string : string -> t option
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.