package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Representation of Unstaked frozen deposits

type 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;
}
type t = r list
type get_info = {
  1. cycle : Cycle.t;
  2. request : Tez.t;
  3. current : Tez.t;
}
type get_info_list = get_info list
type finalizable_info = {
  1. amount : Tez.t;
  2. slashed_requests : Tez.t Tezos_base.TzPervasives.String.Map.t;
}
val zero : 'a list
val apply_slash_to_request : int -> Tez.t -> Tez.t
val remove_zeros : t -> t
val sum_current : r list -> Tez.t
val sub_unstake : Tez.t -> Tezos_base.TzPervasives.String.Map.key -> r -> r
val pop_cycle : Cycle.t -> t -> finalizable_info * t
val 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.