Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC20MixinSafeDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20MixinSafeDispatcherTrait

Part of the group: dispatchers

pub trait IERC20MixinSafeDispatcherTrait<T>

Trait functions

total_supply

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

fn total_supply(self: T) -> Result<u256, Array<felt252>>

balance_of

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

fn balance_of(self: T, account: ContractAddress) -> Result<u256, Array<felt252>>

allowance

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

fn allowance(
    self: T, owner: ContractAddress, spender: ContractAddress,
) -> Result<u256, Array<felt252>>

transfer

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

fn transfer(self: T, recipient: ContractAddress, amount: u256) -> Result<bool, Array<felt252>>

transfer_from

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

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

approve

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

fn approve(self: T, spender: ContractAddress, amount: u256) -> Result<bool, Array<felt252>>

name

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

fn name(self: T) -> Result<ByteArray, Array<felt252>>

symbol

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

fn symbol(self: T) -> Result<ByteArray, Array<felt252>>

decimals

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

fn decimals(self: T) -> Result<u8, Array<felt252>>

totalSupply

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

fn totalSupply(self: T) -> Result<u256, Array<felt252>>

balanceOf

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

fn balanceOf(self: T, account: ContractAddress) -> Result<u256, Array<felt252>>

transferFrom

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

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