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/Frozen_tez/index.html

Module Tez_staking_helpers.Frozen_tezSource

Frozen_tez represents frozen stake and frozen unstaked funds. Properties:

  • sum of all current partial tez is an integer
  • Can only add integer amounts
  • Can always subtract integer amount (if lower than frozen amount)
  • If subtracting partial amount, must be the whole frozen amount (for given contract). The remainder is then distributed equally amongst remaining accounts, to keep property 1.
  • All entries of current are positive, non zero.
Sourcetype t = {
  1. delegate : string;
  2. initial : Tez.t;
  3. self_current : Tez.t;
  4. co_current : Partial_tez.t Tezos_base.TzPervasives.String.Map.t;
}
Sourceval pp : Format.formatter -> t -> unit
Sourceval zero : t
Sourceval union : t -> t -> t
Sourceval total_co_current : t -> Tez.t
Sourceval total_current : t -> Tez.t
Sourceval total_current_with_limits : limit_of_staking_over_baking:Q.t -> t -> Tez.t
Sourceval add_tez_to_all_current : edge:Q.t -> Tez.t -> t -> t
Sourceval sub_tez_from_all_current : Tez.t -> t -> t
Sourceval add_self_current : Tez.t -> t -> t
Sourceval sub_current : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_base.TzPervasives.String.Map.key -> t -> t * Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
Sourceval sub_current_q : Q.t -> Tezos_base.TzPervasives.String.Map.key -> t -> t
Sourceval sub_current_and_init : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tezos_base.TzPervasives.String.Map.key -> t -> t * Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
Sourceval slash : Tezos_protocol_alpha.Protocol.Alpha_context.Constants.Parametric.t -> Tez.t -> Tezos_protocol_alpha.Protocol.Percentage.t -> t -> t * Tez.t * Tez.t
OCaml

Innovation. Community. Security.