RPC.Baking_rights
type t = {
level : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Raw_level.t;
delegate : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.public_key_hash;
consensus_key : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.public_key_hash;
round : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Round.t;
timestamp : Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Timestamp.t
option;
}
val encoding : t Mavryk_protocol_001_PtAtLas.Environment.Data_encoding.encoding
module S : sig ... end
val baking_rights_at_level :
Mavryk_raw_protocol_001_PtAtLas__Alpha_context.t ->
Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Round.t ->
Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Level.t ->
(Mavryk_raw_protocol_001_PtAtLas__Alpha_context.t * 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 ->
?all:bool ->
?max_round:int ->
'b ->
t list Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t