RPC.Attestation_rights
type delegate_rights = {
delegate : Mavryk_protocol_001_PtAtLas.Environment.Signature.Public_key_hash.t;
consensus_key : Mavryk_protocol_001_PtAtLas.Environment.Signature.Public_key_hash.t;
first_slot : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Slot.t;
attestation_power : int;
}
type t = {
level : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Raw_level.t;
delegates_rights : delegate_rights list;
estimated_time : Mavryk_protocol_001_PtAtLas.Environment.Time.t option;
}
val delegate_rights_encoding :
bool ->
delegate_rights
Mavryk_protocol_001_PtAtLas.Environment.Data_encoding.encoding
val encoding :
use_legacy_attestation_name:bool ->
t Mavryk_protocol_001_PtAtLas.Environment.Data_encoding.encoding
module S : sig ... end
val attestation_rights_at_level :
Mavryk_raw_protocol_001_PtAtLas.Alpha_context.context ->
Mavryk_raw_protocol_001_PtAtLas.Alpha_context.Level.t ->
(Mavryk_raw_protocol_001_PtAtLas.Alpha_context.context * t,
Mavryk_protocol_environment_001_PtAtLas.Error_monad.error
Mavryk_protocol_environment_001_PtAtLas.Error_monad.trace)
Stdlib.result
Lwt.t
val get_attestation_rights :
Mavryk_raw_protocol_001_PtAtLas__Alpha_context.t ->
S.attestation_rights_query ->
(t list,
Mavryk_protocol_environment_001_PtAtLas.Error_monad.error
Mavryk_protocol_environment_001_PtAtLas.Error_monad.trace)
Stdlib.result
Lwt.t
val get :
'a Mavryk_protocol_001_PtAtLas.Environment.RPC_context.simple ->
?levels:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Raw_level.t list ->
?cycle:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Cycle.t ->
?delegates:
Mavryk_protocol_001_PtAtLas.Environment.Signature.Public_key_hash.t list ->
?consensus_keys:
Mavryk_protocol_001_PtAtLas.Environment.Signature.Public_key_hash.t list ->
'b ->
t list Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t