package octez-protocol-alpha-libs
include module type of struct include Tez_helpers end
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
val max_tez : t
val (-?) : t -> t -> t Tezos_base.TzPervasives.tzresult
val (+?) : t -> t -> t Tezos_base.TzPervasives.tzresult
val (*?) : t -> int64 -> t Tezos_base.TzPervasives.tzresult
val (/?) : t -> int64 -> t Tezos_base.TzPervasives.tzresult
val to_mutez : t -> int64
val of_mutez : int64 -> t
module Compare = Tez_helpers.Compare
val pp : Format.formatter -> t -> unit
val to_string : t -> string
val of_int : int -> t
module 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 (=) : Tez_helpers.t -> Tez_helpers.t -> bool
x = y
iff compare x y = 0
val (<>) : Tez_helpers.t -> Tez_helpers.t -> bool
x <> y
iff compare x y <> 0
val (<) : Tez_helpers.t -> Tez_helpers.t -> bool
x < y
iff compare x y < 0
val (<=) : Tez_helpers.t -> Tez_helpers.t -> bool
x <= y
iff compare x y <= 0
val (>=) : Tez_helpers.t -> Tez_helpers.t -> bool
x >= y
iff compare x y >= 0
val (>) : Tez_helpers.t -> Tez_helpers.t -> bool
x > y
iff compare x y > 0
val compare : Tez_helpers.t -> Tez_helpers.t -> int
compare
an alias for the functor parameter's compare
function
val equal : Tez_helpers.t -> Tez_helpers.t -> bool
equal x y
iff compare x y = 0
val max : Tez_helpers.t -> Tez_helpers.t -> Tez_helpers.t
max x y
is x
if x >= y
otherwise it is y
val min : Tez_helpers.t -> Tez_helpers.t -> Tez_helpers.t
min x y
is x
if x <= y
otherwise it is y
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>