package tezos-protocol-alpha
Tezos protocol alpha package
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Tez_repr/index.html
Module Tezos_raw_protocol_alpha.Tez_repr
Source
Internal representation of the Tez currency. Behaves mostly like a natural number where number 1 represents 1/1,000,000 Tez (1 micro-Tez or mutez). It's protected from ever becoming negative and overflowing by special arithmetic functions, which fail in case something undesired would happen. When divided, it's always rounded down to 1 mutez.
Internally encoded as int64
, which may be relevant to guard against overflow errors.
t
is made algebraic in order to distinguish it from the other type parameters of Script_typed_ir.ty
.
Source
val mul_ratio :
t ->
num:int64 ->
den:int64 ->
t Tezos_protocol_environment_alpha.Error_monad.tzresult
mul_ratio tez ~num ~den
returns tez * num / den
without failing when tez * num
overflows.
of_mutez_exn n
fails if n is negative. It should only be used at toplevel for constants.
include Tezos_protocol_environment_alpha.Compare.S with type t := t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>