Tezos_protocol_plugin_021_PsQuebec.Delegate_services
This module defines RPC services to access the information associated to delegates (who they are, their delegators, their different kinds of balances, their activity, etc.).
val list :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
?active:bool ->
?inactive:bool ->
?with_minimal_stake:bool ->
?without_minimal_stake:bool ->
unit ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t list
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
type consensus_key = {
consensus_key_pkh : Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t;
consensus_key_pk : Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key.t;
}
type consensus_keys_info = {
active : consensus_key;
pendings : (Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t
* consensus_key)
list;
}
type deposit_per_cycle = {
cycle : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t;
deposit : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
}
val deposit_per_cycle_encoding :
deposit_per_cycle Tezos_protocol_021_PsQuebec.Environment.Data_encoding.t
type info = {
full_balance : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
current_frozen_deposits : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
frozen_deposits : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
staking_balance : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
frozen_deposits_limit : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
option;
delegated_contracts : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Contract.t
list;
delegated_balance : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
min_delegated_in_current_cycle : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
* Tezos_protocol_021_PsQuebec.Protocol.Level_repr.t
option;
total_delegated_stake : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t;
staking_denominator : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Staking_pseudotoken.t;
deactivated : bool;
grace_period : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t;
pending_denunciations : bool;
voting_info : Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Vote.delegate_info;
active_consensus_key : Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t;
pending_consensus_keys : (Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t
* Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t)
list;
}
val full_balance :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val current_frozen_deposits :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val frozen_deposits :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val unstaked_frozen_deposits :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
deposit_per_cycle list
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val staking_balance :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val frozen_deposits_limit :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t option
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val delegated_contracts :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Contract.t list
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val total_delegated_stake :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Tez.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val staking_denominator :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Staking_pseudotoken.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val grace_period :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val voting_info :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Vote.delegate_info
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val participation :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Delegate.For_RPC.participation_info
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val active_staking_parameters :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Staking_parameters_repr.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val pending_staking_parameters :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
(Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.Cycle.t
* Tezos_protocol_021_PsQuebec.Protocol.Staking_parameters_repr.t)
list
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
val pending_denunciations :
'a Tezos_protocol_021_PsQuebec.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_021_PsQuebec.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_021_PsQuebec.Protocol.Denunciations_repr.t
Tezos_protocol_021_PsQuebec.Environment.Error_monad.shell_tzresult
Tezos_protocol_021_PsQuebec.Environment.Lwt.t
module Implem : sig ... end
Functions used in the implementation of this file's RPCs, but also useful elsewhere (as opposed to the functions above, which call the RPCs). These functions are gathered in a separate module to avoid naming conflicts.