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

Module Tez_staking_helpers.Unstaked_frozenSource

Representation of Unstaked frozen deposits

Sourcetype r = {
  1. cycle : Cycle.t;
  2. initial : Tez.t;
  3. current : Tez.t;
  4. requests : Tez.t Tezos_base.TzPervasives.String.Map.t;
  5. slash_pct : int;
}
Sourcetype t = r list
Sourcetype get_info = {
  1. cycle : Cycle.t;
  2. request : Tez.t;
  3. current : Tez.t;
}
Sourcetype get_info_list = get_info list
Sourcetype finalizable_info = {
  1. amount : Tez.t;
  2. slashed_requests : Tez.t Tezos_base.TzPervasives.String.Map.t;
}
Sourceval zero : 'a list
Sourceval apply_slash_to_request : int -> Tez.t -> Tez.t
Sourceval apply_slash_to_current : Tezos_protocol_alpha.Protocol.Alpha_context.Constants.Parametric.t -> int -> Tez.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> Tez.t * Tez.t * Tez.t
Sourceval remove_zeros : t -> t
Sourceval sum_current : r list -> Tez.t
Sourceval add_unstake : Cycle.t -> Tez.t -> Tezos_base.TzPervasives.String.Map.key -> t -> t
Sourceval pop_cycle : Cycle.t -> t -> finalizable_info * t
Sourceval slash : Tezos_protocol_alpha.Protocol.Alpha_context.Constants.Parametric.t -> slashable_deposits_period:int -> Cycle.t -> int -> t -> r list * (Tez.t * Tez.t) list
OCaml

Innovation. Community. Security.