Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ERC20ABIDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait

Part of the group: dispatchers

pub trait ERC20ABIDispatcherTrait<T>

Trait functions

total_supply

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::total_supply

fn total_supply(self: T) -> u256

balance_of

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::balance_of

fn balance_of(self: T, account: ContractAddress) -> u256

allowance

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::allowance

fn allowance(self: T, owner: ContractAddress, spender: ContractAddress) -> u256

transfer

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::transfer

fn transfer(self: T, recipient: ContractAddress, amount: u256) -> bool

transfer_from

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::transfer_from

fn transfer_from(self: T, sender: ContractAddress, recipient: ContractAddress, amount: u256) -> bool

approve

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::approve

fn approve(self: T, spender: ContractAddress, amount: u256) -> bool

name

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::name

fn name(self: T) -> ByteArray

symbol

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::symbol

fn symbol(self: T) -> ByteArray

decimals

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::decimals

fn decimals(self: T) -> u8

totalSupply

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::totalSupply

fn totalSupply(self: T) -> u256

balanceOf

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::balanceOf

fn balanceOf(self: T, account: ContractAddress) -> u256

transferFrom

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::transferFrom

fn transferFrom(self: T, sender: ContractAddress, recipient: ContractAddress, amount: u256) -> bool

permit

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::permit

fn permit(
    self: T,
    owner: ContractAddress,
    spender: ContractAddress,
    amount: u256,
    deadline: u64,
    signature: Span<felt252>,
)

nonces

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::nonces

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

DOMAIN_SEPARATOR

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::DOMAIN_SEPARATOR

fn DOMAIN_SEPARATOR(self: T) -> felt252

snip12_metadata

Fully qualified path: openzeppelin_interfaces::token::erc20::ERC20ABIDispatcherTrait::snip12_metadata

fn snip12_metadata(self: T) -> (felt252, felt252)