Mavryk_raw_protocol_001_PtAtLas.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 Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
?active:bool ->
?inactive:bool ->
?with_minimal_stake:bool ->
?without_minimal_stake:bool ->
unit ->
Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t list
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
type consensus_key = {
consensus_key_pkh : Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t;
consensus_key_pk : Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key.t;
}
type consensus_keys_info = {
active : consensus_key;
pendings : (Alpha_context.Cycle.t * consensus_key) list;
}
type info = {
full_balance : Alpha_context.Tez.t;
Balance + Frozen balance
*)current_frozen_deposits : Alpha_context.Tez.t;
frozen_deposits : Alpha_context.Tez.t;
staking_balance : Alpha_context.Tez.t;
frozen_deposits_limit : Alpha_context.Tez.t option;
delegated_contracts : Alpha_context.Contract.t list;
delegated_balance : Alpha_context.Tez.t;
total_delegated_stake : Alpha_context.Tez.t;
staking_denominator : Alpha_context.Staking_pseudotoken.t;
deactivated : bool;
grace_period : Alpha_context.Cycle.t;
voting_info : Alpha_context.Vote.delegate_info;
active_consensus_key : Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t;
pending_consensus_keys : (Alpha_context.Cycle.t
* Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t)
list;
}
val deposit_per_cycle_encoding :
deposit_per_cycle Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val info_encoding :
info Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val current_frozen_deposits :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t ->
Alpha_context.Tez.t
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val unstaked_frozen_deposits :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t ->
deposit_per_cycle list
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val frozen_deposits_limit :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t ->
Alpha_context.Tez.t option
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val delegated_contracts :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t ->
Alpha_context.Contract.t list
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val current_voting_power :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Alpha_context.public_key_hash ->
int64 Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val current_baking_power :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Alpha_context.public_key_hash ->
int64 Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val pending_staking_parameters :
'a Mavryk_protocol_environment_001_PtAtLas.RPC_context.simple ->
'a ->
Alpha_context.public_key_hash ->
(Alpha_context.Cycle.t * Staking_parameters_repr.t) list
Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t