package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Octez protocol alpha libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-protocol-alpha-libs.test-helpers/Tezos_alpha_test_helpers/Tez_staking_helpers/Tez/index.html

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.