Tezos_protocol_plugin_alpha.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.).
type Tezos_protocol_alpha.Environment.Error_monad.error +=
| Not_registered of Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t
val list :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
?active:bool ->
?inactive:bool ->
?with_minimal_stake:bool ->
?without_minimal_stake:bool ->
unit ->
Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t list
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
type consensus_key = {
consensus_key_pkh : Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t;
consensus_key_pk : Tezos_protocol_alpha.Environment.Signature.Public_key.t;
}
type consensus_keys_info = {
active : consensus_key;
pendings : (Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t * consensus_key)
list;
}
type companion_key = {
companion_key_pkh : Tezos_protocol_alpha.Environment.Bls.Public_key_hash.t;
companion_key_pk : Tezos_protocol_alpha.Environment.Bls.Public_key.t;
}
type companion_keys_info = {
active_companion_key : companion_key option;
pending_companion_keys : (Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t
* companion_key)
list;
}
type deposit_per_cycle = {
cycle : Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t;
deposit : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
}
val deposit_per_cycle_encoding :
deposit_per_cycle Tezos_protocol_alpha.Environment.Data_encoding.t
type info = {
full_balance : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
current_frozen_deposits : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
frozen_deposits : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
staking_balance : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
frozen_deposits_limit : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
option;
delegated_contracts : Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t
list;
delegated_balance : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
min_delegated_in_current_cycle : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
* Tezos_protocol_alpha.Protocol.Level_repr.t
option;
total_delegated_stake : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t;
staking_denominator : Tezos_protocol_alpha.Protocol.Alpha_context.Staking_pseudotoken.t;
deactivated : bool;
grace_period : Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t;
pending_denunciations : bool;
voting_info : Tezos_protocol_alpha.Protocol.Alpha_context.Vote.delegate_info;
active_consensus_key : Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t;
pending_consensus_keys : (Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t
* Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t)
list;
active_companion_key : Tezos_protocol_alpha.Environment.Bls.Public_key_hash.t
option;
pending_companion_keys : (Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t
* Tezos_protocol_alpha.Environment.Bls.Public_key_hash.t)
list;
}
val current_frozen_deposits :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val frozen_deposits_limit :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val delegated_contracts :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t list
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val total_delegated_stake :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val staking_denominator :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Alpha_context.Staking_pseudotoken.t
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val voting_info :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Alpha_context.Vote.delegate_info
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val participation :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Alpha_context.Delegate.For_RPC.participation_info
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val dal_participation :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Alpha_context.Delegate.For_RPC.dal_participation_info
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val active_staking_parameters :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Staking_parameters_repr.t
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val pending_staking_parameters :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
(Tezos_protocol_alpha.Protocol.Alpha_context.Cycle.t
* Tezos_protocol_alpha.Protocol.Staking_parameters_repr.t)
list
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.Environment.Lwt.t
val pending_denunciations :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
'a ->
Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_alpha.Protocol.Denunciations_repr.t
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Tezos_protocol_alpha.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.