IVoting.sol
View Source: contracts/interfaces/IVoting.sol
↘ Derived Contracts: VotingCheckpoint
IVoting
Functions
changeBallotStatus
⤿ Overridden Implementation(s): PLCRVotingCheckpoint.changeBallotStatus,WeightedVoteCheckpoint.changeBallotStatus
Allows the token issuer to set the active stats of a ballot
function changeBallotStatus(uint256 _ballotId, bool _isActive) external nonpayable
Returns
bool success
Arguments
Name
Type
Description
_ballotId
uint256
The index of the target ballot
_isActive
bool
The bool value of the active stats of the ballot
getBallotResults
⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getBallotResults,WeightedVoteCheckpoint.getBallotResults
Queries the result of a given ballot
function getBallotResults(uint256 _ballotId) external view
returns(voteWeighting uint256[], tieWith uint256[], winningProposal uint256, isVotingSucceed bool, totalVoters uint256)
Returns
uint256 voteWeighting
Arguments
Name
Type
Description
_ballotId
uint256
Id of the target ballot
getSelectedProposal
⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getSelectedProposal,WeightedVoteCheckpoint.getSelectedProposal
Get the voted proposal
function getSelectedProposal(uint256 _ballotId, address _voter) external view
returns(proposalId uint256)
Arguments
Name
Type
Description
_ballotId
uint256
Id of the ballot
_voter
address
Address of the voter
getBallotDetails
⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getBallotDetails,WeightedVoteCheckpoint.getBallotDetails
Get the details of the ballot
function getBallotDetails(uint256 _ballotId) external view
returns(quorum uint256, totalSupplyAtCheckpoint uint256, checkpointId uint256, startTime uint256, endTime uint256, totalProposals uint256, totalVoters uint256, isActive bool)
Returns
uint256 quorum
Arguments
Name
Type
Description
_ballotId
uint256
The index of the target ballot
Last updated
Was this helpful?