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

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

getSelectedProposal

⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getSelectedProposal,WeightedVoteCheckpoint.getSelectedProposal

Get the voted proposal

function getSelectedProposal(uint256 _ballotId, address _voter) external view
returns(proposalId uint256)

Arguments

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

Last updated