package octez-protocol-alpha-libs

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

Module Tez_staking_helpers.TezSource

include module type of struct include Tez_helpers end
type t = Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t

This module wraps the errors from the protocol and provides some helpful functions manipulating Tez.

val zero : t
val one_mutez : t
val one_cent : t
val fifty_cents : t
val one : t
Sourceval max_tez : t
val sub_opt : t -> t -> t option
Sourceval (-!) : t -> t -> t
Sourceval (+!) : t -> t -> t
Sourceval (*!) : t -> int64 -> t
Sourceval (/!) : t -> int64 -> t
Sourceval to_mutez : t -> int64
Sourceval of_mutez : int64 -> t
Sourcemodule Compare = Tez_helpers.Compare
val pp : Format.formatter -> t -> unit
val to_string : t -> string
Sourceval ratio : t -> t -> Q.t
Sourceval mul_q : t -> Q.t -> Q.t
Sourceval of_int : int -> t
Sourceval of_q : round:[ `Down | `Up ] -> Q.t -> t
Sourceval of_z : Z.t -> t
Sourceval to_z : t -> Z.t
Sourcemodule Ez_tez = Tez_helpers.Ez_tez

Functions to manipulate Tez in a high level way

include module type of struct include Tez_helpers.Compare end
val (=) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val (<>) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val (<) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val (<=) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val (>=) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val (>) : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val compare : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> int
val equal : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> bool
val max : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
val min : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
OCaml

Innovation. Community. Security.