Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ProposalVote

Fully qualified path: openzeppelin_governance::governor::extensions::governor_counting_simple::GovernorCountingSimpleComponent::ProposalVote

[starknet::storage_node]
pub struct ProposalVote {
    pub against_votes: u256,
    pub for_votes: u256,
    pub abstain_votes: u256,
    pub has_voted: Map<ContractAddress, bool>,
}

Members

against_votes

Fully qualified path: openzeppelin_governance::governor::extensions::governor_counting_simple::GovernorCountingSimpleComponent::ProposalVote::against_votes

pub against_votes: u256

for_votes

Fully qualified path: openzeppelin_governance::governor::extensions::governor_counting_simple::GovernorCountingSimpleComponent::ProposalVote::for_votes

pub for_votes: u256

abstain_votes

Fully qualified path: openzeppelin_governance::governor::extensions::governor_counting_simple::GovernorCountingSimpleComponent::ProposalVote::abstain_votes

pub abstain_votes: u256

has_voted

Fully qualified path: openzeppelin_governance::governor::extensions::governor_counting_simple::GovernorCountingSimpleComponent::ProposalVote::has_voted

pub has_voted: Map<ContractAddress, bool>