Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

VotesABI

Common interface to interact with the Votes component.

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI

pub trait VotesABI<TState>

Trait functions

get_votes

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::get_votes

fn get_votes(self: @TState, account: ContractAddress) -> u256

get_past_votes

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::get_past_votes

fn get_past_votes(self: @TState, account: ContractAddress, timepoint: u64) -> u256

get_past_total_supply

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::get_past_total_supply

fn get_past_total_supply(self: @TState, timepoint: u64) -> u256

delegates

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::delegates

fn delegates(self: @TState, account: ContractAddress) -> ContractAddress

delegate

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::delegate

fn delegate(ref self: TState, delegatee: ContractAddress)

delegate_by_sig

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::delegate_by_sig

fn delegate_by_sig(
    ref self: TState,
    delegator: ContractAddress,
    delegatee: ContractAddress,
    nonce: felt252,
    expiry: u64,
    signature: Span<felt252>,
)

nonces

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::nonces

fn nonces(self: @TState, owner: ContractAddress) -> felt252

clock

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::clock

fn clock(self: @TState) -> u64

CLOCK_MODE

Fully qualified path: openzeppelin_interfaces::governance::votes::VotesABI::CLOCK_MODE

fn CLOCK_MODE(self: @TState) -> ByteArray