package tezos-protocol-014-PtKathma
This module is an abstraction on top of int64 to build positive (or zero) quantities within the int64 bounds. It comes with a compact encoding to be used in the transaction rollup batches.
Type of postive quantities. Quantities are bounded by Int64.max_int
.
val zero : t
The zero quantity.
val one : t
One quantity.
val of_int64 : int64 -> t option
Build a quantity from an int64. Returns None
if the argument is negative.
val of_int64_exn : int64 -> t
Build a quantity from an int64 and raise Invalid_argument
on negative quantities.
val to_int64 : t -> int64
Convert a quantity to int64
.
val to_z : t -> Tezos_protocol_environment_014_PtKathma.Z.t
Convert a quantity to z
.
val to_string : t -> string
Returns a string representation of a quantity.
val of_string : string -> t option
Parse a quantity from a string. Returns None
if the string is not a valid quantity representation.
val pp : Tezos_protocol_environment_014_PtKathma.Format.formatter -> t -> unit
Pretty-printer for quantities.
val compact_encoding :
t Tezos_protocol_environment_014_PtKathma.Data_encoding.Compact.t
Compact encoding for quantities
val encoding : t Tezos_protocol_environment_014_PtKathma.Data_encoding.t
Encoding for quantities
include Tezos_protocol_environment_014_PtKathma.Compare.S with type t := t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>