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

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

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

Returns

uint256 quorum

Arguments

Name

Type

Description

_ballotId

uint256

The index of the target ballot

Last updated

Was this helpful?