Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

GovernorVotesTrait

Fully qualified path: openzeppelin_governance::governor::governor::GovernorComponent::GovernorVotesTrait

pub trait GovernorVotesTrait<TContractState>

Trait functions

clock

See ERC6372Clock::clock.

Fully qualified path: openzeppelin_governance::governor::governor::GovernorComponent::GovernorVotesTrait::clock

fn clock(self: @ComponentState<TContractState>) -> u64

CLOCK_MODE

See ERC6372Clock::CLOCK_MODE.

Fully qualified path: openzeppelin_governance::governor::governor::GovernorComponent::GovernorVotesTrait::CLOCK_MODE

fn CLOCK_MODE(self: @ComponentState<TContractState>) -> ByteArray

get_votes

See interface::IGovernor::get_votes.

Fully qualified path: openzeppelin_governance::governor::governor::GovernorComponent::GovernorVotesTrait::get_votes

fn get_votes(
    self: @ComponentState<TContractState>,
    account: ContractAddress,
    timepoint: u64,
    params: Span<felt252>,
) -> u256