package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private
  1. | Baker of Tezos_protocol_environment_alpha.Signature.public_key_hash
    (*

    The baker itself.

    *)
  2. | Single_staker of {
    1. staker : Contract_repr.t;
    2. delegate : Tezos_protocol_environment_alpha.Signature.public_key_hash;
    }
    (*

    A single staker, cannot be the delegate.

    *)
  3. | Shared_between_stakers of {
    1. delegate : Tezos_protocol_environment_alpha.Signature.public_key_hash;
    }
    (*

    The delegate's stakers simultaneously (delegate excluded).

    *)

Adding and removing stake can be done from/toward a delegate, one of its staker, or all its stakers at once. We need to distinguish these cases to enforce the staking over baking limit.

val shared_between_stakers : delegate:Tezos_protocol_environment_alpha.Signature.public_key_hash -> t
val compare : t -> t -> int
OCaml

Innovation. Community. Security.