package octez-protocol-alpha-libs

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

Functions to manipulate Tez in a high level way

type tez_quantity =
  1. | Half
  2. | All
  3. | All_but_one
  4. | Nothing
  5. | Max_tez
  6. | Amount of t

Aliases for tez values

val tez_quantity_pp : Format.formatter -> tez_quantity -> unit
val quantity_to_tez : t -> tez_quantity -> t

quantity_to_tez max qty returns a tez value corresponding to the given qty. If qty is All, then returns max. If qty is All_but_one, returns max - one_mutez.

OCaml

Innovation. Community. Security.