package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val init : own_frozen:Tez_repr.t -> staked_frozen:Tez_repr.t -> delegated:Tez_repr.t -> current_level:Level_repr.t -> t

The weight of a delegate used for voting rights.

val apply_slashing : percentage:Percentage.t -> t -> t
val own_frozen : t -> Tez_repr.t
val staked_frozen : t -> Tez_repr.t
val current_delegated : t -> Tez_repr.t
val min_delegated_in_cycle : current_cycle:Cycle_repr.t -> t -> Tez_repr.t

Sum of own_frozen and staked_frozen.

Sum of own_frozen, staked_frozen, and current_delegated.

own_ratio full_staking_balance returns (num, den) representing the ratio of own_frozen over total_frozen for full_staking_balance. If total_frozen is zero, the returned ratio is (1L, 1L).

val has_minimal_frozen_stake : minimal_frozen_stake:Tez_repr.t -> t -> bool
val has_minimal_stake_to_be_considered : minimal_stake:Tez_repr.t -> t -> bool
val remove_delegated : current_level:Level_repr.t -> amount:Tez_repr.t -> t -> t Tezos_protocol_environment_alpha.Error_monad.tzresult
val add_delegated : current_level:Level_repr.t -> amount:Tez_repr.t -> t -> t Tezos_protocol_environment_alpha.Error_monad.tzresult
module Internal_for_tests_and_RPCs : sig ... end
OCaml

Innovation. Community. Security.