IVoting.sol

View Source: contracts/interfaces/IVoting.solarrow-up-right

↘ Derived Contracts: VotingCheckpointarrow-up-right

IVoting

Functions

changeBallotStatus

⤿ Overridden Implementation(s): PLCRVotingCheckpoint.changeBallotStatusarrow-up-right,WeightedVoteCheckpoint.changeBallotStatusarrow-up-right

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.getBallotResultsarrow-up-right,WeightedVoteCheckpoint.getBallotResultsarrow-up-right

Queries the result of a given ballot

Returns

uint256 voteWeighting

Arguments

Name

Type

Description

_ballotId

uint256

Id of the target ballot

getSelectedProposal

⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getSelectedProposalarrow-up-right,WeightedVoteCheckpoint.getSelectedProposalarrow-up-right

Get the voted proposal

Arguments

Name

Type

Description

_ballotId

uint256

Id of the ballot

_voter

address

Address of the voter

getBallotDetails

⤿ Overridden Implementation(s): PLCRVotingCheckpoint.getBallotDetailsarrow-up-right,WeightedVoteCheckpoint.getBallotDetailsarrow-up-right

Get the details of the ballot

Returns

uint256 quorum

Arguments

Name

Type

Description

_ballotId

uint256

The index of the target ballot

Last updated

Was this helpful?