package tezos-protocol-020-PsParisC

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

    The baker itself.

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

    A single staker, cannot be the delegate.

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

    The delegate's stakers simultaneously (delegate excluded).

    *)
  4. | Baker_edge of Tezos_protocol_environment_020_PsParisC.Signature.public_key_hash
    (*

    The baker edge over its stakers rewards.

    *)

Adding and removing stake can be done from/toward the funds

  • a delegate directly stakes,
  • one of its stakers stakes,
  • all its stakers stakes at once,
  • or from the edge a delegate may have on its stakers rewards. We need to distinguish these cases to enforce the staking over baking limit.
val compare : t -> t -> int
OCaml

Innovation. Community. Security.