package tezos-protocol-alpha

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

Module Alpha_context.DelegateSource

This module re-exports definitions from Deposits_repr, Delegate_storage, Delegate_consensus_key, Delegate_missed_attestations_storage, Delegate_slashed_deposits_storage, Delegate_cycles, Delegate_rewards.

Sourceval fold : context -> order:[ `Sorted | `Undefined ] -> init:'a -> f:(public_key_hash -> 'a -> 'a Tezos_protocol_environment_alpha.Lwt.t) -> 'a Tezos_protocol_environment_alpha.Lwt.t
Sourcetype participation_info = {
  1. expected_cycle_activity : int;
  2. minimal_cycle_activity : int;
  3. missed_slots : int;
  4. missed_levels : int;
  5. remaining_allowed_missed_slots : int;
  6. expected_attesting_rewards : Tez.t;
}
Sourcetype reward_and_burn = {
  1. reward : Tez.t;
  2. amount_to_burn : Tez.t;
}
Sourcetype punishing_amounts = {
  1. staked : reward_and_burn;
  2. unstaked : (Cycle.t * reward_and_burn) list;
}
Sourcetype level_participation =
  1. | Participated
  2. | Didn't_participate
Sourceval record_baking_activity_and_pay_rewards_and_fees : context -> payload_producer:public_key_hash -> block_producer:public_key_hash -> baking_reward:Tez.t -> reward_bonus:Tez.t option -> (context * Receipt.balance_updates) Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
Sourceval record_attesting_participation : context -> delegate:public_key_hash -> participation:level_participation -> attesting_power:int -> context Tezos_protocol_environment_alpha.Error_monad.tzresult Tezos_protocol_environment_alpha.Lwt.t
Sourcetype deposits = {
  1. initial_amount : Tez.t;
  2. current_amount : Tez.t;
}
Sourceval is_forbidden_delegate : t -> public_key_hash -> bool
Sourcemodule Consensus_key : sig ... end
Sourcemodule Rewards : sig ... end
Sourcemodule Staking_parameters : sig ... end
Sourcemodule For_RPC : sig ... end

The functions in this module are considered too costly to be used in the protocol. They are meant to be used only to answer RPC calls.

OCaml

Innovation. Community. Security.