Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC20Mixin

Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20Mixin

pub trait IERC20Mixin<TState>

Trait functions

total_supply

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

fn total_supply(self: @TState) -> u256

balance_of

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

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

allowance

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

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

transfer

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

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

transfer_from

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

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

approve

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

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

name

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

fn name(self: @TState) -> ByteArray

symbol

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

fn symbol(self: @TState) -> ByteArray

decimals

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

fn decimals(self: @TState) -> u8

totalSupply

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

fn totalSupply(self: @TState) -> u256

balanceOf

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

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

transferFrom

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

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