Module-level declarations
Types
Queries
Retrieves the vote cast by a specific citizen for a given proposal. The query is used to determine the voting record of a citizen for a specific proposal.
Retrieves a paginated list of votes for a specific proposal. The query is used to fetch and navigate through the votes tied to a particular proposal in the paginated format.
Retrieves a paginated and sorted list of votes for a specific proposal. The query is used to fetch, sort, and navigate through votes for a proposal.
Retrieves a paginated and sorted list of votes for a specific proposal, ordered by vote power. The query is used to fetch, sort, and navigate through votes based on their vote power.
Operations
Approves or disapproves a specific proposal based on the citizen's decision.
Approves or disapproves a veto based on the citizen's decision.
Creates a veto for a specific proposal and option.
Finalizes the specified veto if it meets the required conditions.
Ends the voting process for a specific proposal. The operation is used to finalize the voting process and prevent further voting on the specified proposal.
Updates the veto configuration, including the veto period and vetoable duration.
Allows a citizen to vote on a proposal option.