RPC.Validators
type delegate = {
delegate : Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t;
consensus_key : Tezos_protocol_alpha.Environment.Signature.public_key_hash;
companion_key : Tezos_protocol_alpha.Environment.Bls.Public_key_hash.t option;
slots : Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t list;
attesting_power : int64;
}
type t = {
level : Tezos_protocol_alpha.Protocol.Alpha_context.Raw_level.t;
consensus_threshold : int64;
consensus_committee : int64;
delegates : delegate list;
}
val delegate_encoding :
delegate Tezos_protocol_alpha.Environment.Data_encoding.encoding
val encoding : t Tezos_protocol_alpha.Environment.Data_encoding.encoding
module S : sig ... end
val attestation_slots_at_level :
Tezos_raw_protocol_alpha.Alpha_context.context ->
Tezos_raw_protocol_alpha.Alpha_context.Level.t ->
(Tezos_raw_protocol_alpha.Alpha_context.context * delegate list,
Tezos_protocol_environment_alpha.Error_monad.error
Tezos_protocol_environment_alpha.Error_monad.trace)
Stdlib.result
Lwt.t
val get :
'a Tezos_protocol_alpha.Environment.RPC_context.simple ->
?levels:Tezos_protocol_alpha.Protocol.Alpha_context.Raw_level.t list ->
?delegates:Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t list ->
?consensus_keys:
Tezos_protocol_alpha.Environment.Signature.Public_key_hash.t list ->
'a ->
t list Tezos_protocol_environment_alpha.Error_monad.shell_tzresult
Tezos_protocol_environment_alpha.Lwt.t