package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Stake_repr/index.html

Module Tezos_raw_protocol_alpha.Stake_reprSource

Sourcetype t = private {
  1. frozen : Tez_repr.t;
  2. weighted_delegated : Tez_repr.t;
}

Stake of a delegate.

It has the invariants enforced by Stake_context.apply_limits: frozen excludes any overstaked tez, and weighted_delegated includes overstaked tez but excludes overdelegated tez.

Sourceval zero : t
Sourceval make : frozen:Tez_repr.t -> weighted_delegated:Tez_repr.t -> t

Builds a t. Should only be called in Stake_context.apply_limits to enforce the invariants.

Sourceval get_frozen : t -> Tez_repr.t

Returns only the frozen part of a stake. This includes the frozen balances from the delegate and any stakers, but excludes any overstaked tez.

Sourceval staking_weight : t -> int64

The weight of a staker or a set of stakers. Since this function is applied on a Stake_repr.t, the limits should already have been applied using apply_limits if necessary.

Sourceval compare : t -> t -> int
Sourceval has_minimal_stake_to_participate : minimal_stake:Tez_repr.t -> t -> bool
OCaml

Innovation. Community. Security.