Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ERC4626ABISafeDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc4626::ERC4626ABISafeDispatcherTrait

Part of the group: dispatchers

pub trait ERC4626ABISafeDispatcherTrait<T>

Trait functions

asset

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

fn asset(self: T) -> Result<ContractAddress, Array<felt252>>

total_assets

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

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

convert_to_shares

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

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

convert_to_assets

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

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

max_deposit

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

fn max_deposit(self: T, receiver: ContractAddress) -> Result<u256, Array<felt252>>

preview_deposit

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

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

deposit

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

fn deposit(self: T, assets: u256, receiver: ContractAddress) -> Result<u256, Array<felt252>>

max_mint

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

fn max_mint(self: T, receiver: ContractAddress) -> Result<u256, Array<felt252>>

preview_mint

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

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

mint

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

fn mint(self: T, shares: u256, receiver: ContractAddress) -> Result<u256, Array<felt252>>

max_withdraw

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

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

preview_withdraw

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

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

withdraw

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

fn withdraw(
    self: T, assets: u256, receiver: ContractAddress, owner: ContractAddress,
) -> Result<u256, Array<felt252>>

max_redeem

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

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

preview_redeem

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

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

redeem

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

fn redeem(
    self: T, shares: u256, receiver: ContractAddress, owner: ContractAddress,
) -> Result<u256, Array<felt252>>

total_supply

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

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

balance_of

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

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

allowance

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

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

transfer

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

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

transfer_from

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

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

approve

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

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

name

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

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

symbol

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

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

decimals

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

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

totalSupply

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

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

balanceOf

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

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

transferFrom

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

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