package octez-protocol-alpha-libs

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

Module Tezos_alpha_test_helpers.Tez_helpersSource

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 equal : t -> t -> bool
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
val min : t -> t -> t
Sourcemodule Compare : Tezos_base.TzPervasives.Compare.S with type t := t
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 : sig ... end

Functions to manipulate Tez in a high level way

OCaml

Innovation. Community. Security.