Mavryk_alpha_test_helpers.Tez_staking_helpersTez_staking_helpers defines different kinds of tez Modules that manipulate them in different ways. They involve more complicated operations, as they are related to staking, thus are represented as partial amounts, and are related to pseudotokens.
module Cycle = Mavryk_protocol_alpha.Protocol.Alpha_context.Cyclemodule Tez : sig ... endmodule Partial_tez : sig ... endRepresentation of Tez with non integer values
module Frozen_tez : sig ... endFrozen_tez represents frozen stake and frozen unstaked funds. Properties:
module Unstaked_frozen : sig ... endRepresentation of Unstaked frozen deposits
module Unstaked_finalizable : sig ... endRepresentation of unstaked finalizable tez
val tez_to_pseudo :
round:[ `Down | `Up ] ->
Tez.t ->
Z.t ->
Frozen_tez.t ->
Z.tPseudotoken helpers
val pseudo_to_partial_tez : Z.t -> Z.t -> Frozen_tez.t -> Q.tval stake_values_real : Tez.t -> Z.t -> Frozen_tez.t -> Z.t * Q.tval unstake_values_real : Tez.t -> Z.t -> Frozen_tez.t -> Z.t * Q.t