package tezos-protocol-014-PtKathma
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Vote_storage/index.html
Module Tezos_raw_protocol_014_PtKathma.Vote_storageSource
Manages all the voting related storage in Storage.Vote.
val record_proposal :
Raw_context.t ->
Tezos_protocol_environment_014_PtKathma.Protocol_hash.t ->
Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tRecords a protocol proposal with the delegate that proposed it.
val recorded_proposal_count_for_delegate :
Raw_context.t ->
Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t ->
int Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tval get_proposals :
Raw_context.t ->
int64 Tezos_protocol_environment_014_PtKathma.Protocol_hash.Map.t
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tComputes for each proposal how many delegates proposed it.
val clear_proposals :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Lwt.tCounts of the votes
val has_recorded_ballot :
Raw_context.t ->
Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t ->
bool Tezos_protocol_environment_014_PtKathma.Lwt.tval record_ballot :
Raw_context.t ->
Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t ->
Vote_repr.ballot ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tRecords a vote for a delegate, returns a Storage_errorExisting_key if the vote was already registered
val get_ballots :
Raw_context.t ->
ballots Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tComputes the sum of the current ballots weighted by stake.
val get_ballot_list :
Raw_context.t ->
(Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t
* Vote_repr.ballot)
list
Tezos_protocol_environment_014_PtKathma.Lwt.tval clear_ballots :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Lwt.tval listings_encoding :
(Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t * int64)
list
Tezos_protocol_environment_014_PtKathma.Data_encoding.tval update_listings :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tPopulates !Storage.Vote.Listings using the currently existing staking power and sets `Voting_power_in_listings`. Inactive delegates or delegates without rolls are not included in the listings.
val in_listings :
Raw_context.t ->
Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t ->
bool Tezos_protocol_environment_014_PtKathma.Lwt.tVerifies the presence of a delegate in the listing.
val get_listings :
Raw_context.t ->
(Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t * int64)
list
Tezos_protocol_environment_014_PtKathma.Lwt.ttype delegate_info = {voting_power : Tezos_protocol_environment_014_PtKathma.Int64.t option;current_ballot : Vote_repr.ballot option;current_proposals : Tezos_protocol_environment_014_PtKathma.Protocol_hash.t list;remaining_proposals : int;
}val pp_delegate_info :
Tezos_protocol_environment_014_PtKathma.Format.formatter ->
delegate_info ->
unitval delegate_info_encoding :
delegate_info Tezos_protocol_environment_014_PtKathma.Data_encoding.tval get_total_voting_power_free :
Raw_context.t ->
int64 Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tReturns the sum of all voting power in the listings, without accounting for gas cost.
val get_total_voting_power :
Raw_context.t ->
(Raw_context.t * int64)
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tReturns the sum of all voting power in the listings.
val get_current_quorum :
Raw_context.t ->
int32 Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tval get_participation_ema :
Raw_context.t ->
int32 Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tval set_participation_ema :
Raw_context.t ->
int32 ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tval clear_current_proposal :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tval init :
Raw_context.t ->
start_position:Tezos_protocol_environment_014_PtKathma.Int32.t ->
Raw_context.t Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.tSets the initial quorum to 80% and period kind to proposal.