Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ERC4626ABIDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait

Part of the group: dispatchers

pub trait ERC4626ABIDispatcherTrait<T>

Trait functions

asset

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::asset

fn asset(self: T) -> ContractAddress

total_assets

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::total_assets

fn total_assets(self: T) -> u256

convert_to_shares

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::convert_to_shares

fn convert_to_shares(self: T, assets: u256) -> u256

convert_to_assets

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::convert_to_assets

fn convert_to_assets(self: T, shares: u256) -> u256

max_deposit

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::max_deposit

fn max_deposit(self: T, receiver: ContractAddress) -> u256

preview_deposit

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::preview_deposit

fn preview_deposit(self: T, assets: u256) -> u256

deposit

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::deposit

fn deposit(self: T, assets: u256, receiver: ContractAddress) -> u256

max_mint

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::max_mint

fn max_mint(self: T, receiver: ContractAddress) -> u256

preview_mint

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::preview_mint

fn preview_mint(self: T, shares: u256) -> u256

mint

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::mint

fn mint(self: T, shares: u256, receiver: ContractAddress) -> u256

max_withdraw

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::max_withdraw

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

preview_withdraw

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::preview_withdraw

fn preview_withdraw(self: T, assets: u256) -> u256

withdraw

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::withdraw

fn withdraw(self: T, assets: u256, receiver: ContractAddress, owner: ContractAddress) -> u256

max_redeem

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::max_redeem

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

preview_redeem

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::preview_redeem

fn preview_redeem(self: T, shares: u256) -> u256

redeem

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::redeem

fn redeem(self: T, shares: u256, receiver: ContractAddress, owner: ContractAddress) -> u256

total_supply

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::total_supply

fn total_supply(self: T) -> u256

balance_of

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::balance_of

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

allowance

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::allowance

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

transfer

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::transfer

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

transfer_from

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::transfer_from

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

approve

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::approve

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

name

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::name

fn name(self: T) -> ByteArray

symbol

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::symbol

fn symbol(self: T) -> ByteArray

decimals

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::decimals

fn decimals(self: T) -> u8

totalSupply

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::totalSupply

fn totalSupply(self: T) -> u256

balanceOf

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::balanceOf

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

transferFrom

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABIDispatcherTrait::transferFrom

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