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