package tezos-protocol-013-PtJakart
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-protocol-013-PtJakart.raw/Tezos_raw_protocol_013_PtJakart/Vote_storage/index.html
Module Tezos_raw_protocol_013_PtJakart.Vote_storageSource
Manages all the voting related storage in Storage.Vote.
val record_proposal :
Raw_context.t ->
Tezos_protocol_environment_013_PtJakart.Protocol_hash.t ->
Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tRecords a protocol proposal with the delegate that proposed it.
val recorded_proposal_count_for_delegate :
Raw_context.t ->
Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t ->
int Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tval get_proposals :
Raw_context.t ->
int64 Tezos_protocol_environment_013_PtJakart.Protocol_hash.Map.t
Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tComputes for each proposal how many delegates proposed it.
val clear_proposals :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Lwt.tCounts of the votes
val has_recorded_ballot :
Raw_context.t ->
Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t ->
bool Tezos_protocol_environment_013_PtJakart.Lwt.tval record_ballot :
Raw_context.t ->
Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t ->
Vote_repr.ballot ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.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_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tComputes the sum of the current ballots weighted by stake.
val get_ballot_list :
Raw_context.t ->
(Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t
* Vote_repr.ballot)
list
Tezos_protocol_environment_013_PtJakart.Lwt.tval clear_ballots :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Lwt.tval listings_encoding :
(Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t * int64)
list
Tezos_protocol_environment_013_PtJakart.Data_encoding.tval update_listings :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.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_013_PtJakart.Signature.Public_key_hash.t ->
bool Tezos_protocol_environment_013_PtJakart.Lwt.tVerifies the presence of a delegate in the listing.
val get_listings :
Raw_context.t ->
(Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t * int64)
list
Tezos_protocol_environment_013_PtJakart.Lwt.tval get_total_voting_power_free :
Raw_context.t ->
int64 Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.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_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tReturns the sum of all voting power in the listings.
val get_current_quorum :
Raw_context.t ->
int32 Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tval get_participation_ema :
Raw_context.t ->
int32 Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tval set_participation_ema :
Raw_context.t ->
int32 ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tval clear_current_proposal :
Raw_context.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tval init :
Raw_context.t ->
start_position:Tezos_protocol_environment_013_PtJakart.Int32.t ->
Raw_context.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Tezos_protocol_environment_013_PtJakart.Lwt.tSets the initial quorum to 80% and period kind to proposal.