Mavryk_raw_protocol_alpha.Voting_services
This module provides RPC services that return voting-related information.
val ballots : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Alpha_context.Vote.ballots Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val ballot_list : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> (Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t * Alpha_context.Vote.ballot) list Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val current_period : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Alpha_context.Voting_period.info Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val successor_period : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Alpha_context.Voting_period.info Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val current_quorum : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Mavryk_protocol_environment_alpha.Int32.t Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val listings : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> (Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t * int64) list Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val proposals : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Mavryk_protocol_environment_alpha.Int64.t Mavryk_protocol_environment_alpha.Protocol_hash.Map.t Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val current_proposal : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Mavryk_protocol_environment_alpha.Protocol_hash.t option Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val register : unit -> unit
val total_voting_power : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Mavryk_protocol_environment_alpha.Int64.t Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t
val delegate_proposal_count : 'a Mavryk_protocol_environment_alpha.RPC_context.simple -> 'a -> Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t -> int Mavryk_protocol_environment_alpha.Error_monad.shell_tzresult Mavryk_protocol_environment_alpha.Lwt.t