Struct odra_modules::erc20::Erc20
source · pub struct Erc20 { /* private fields */ }Implementations§
source§impl Erc20
impl Erc20
pub fn init( &mut self, symbol: String, name: String, decimals: u8, initial_supply: &Option<U256> )
pub fn transfer(&mut self, recipient: &Address, amount: &U256)
pub fn transfer_from( &mut self, owner: &Address, recipient: &Address, amount: &U256 )
pub fn approve(&mut self, spender: &Address, amount: &U256)
pub fn name(&self) -> String
pub fn symbol(&self) -> String
pub fn decimals(&self) -> u8
pub fn total_supply(&self) -> U256
pub fn balance_of(&self, address: &Address) -> U256
pub fn allowance(&self, owner: &Address, spender: &Address) -> U256
pub fn mint(&mut self, address: &Address, amount: &U256)
pub fn burn(&mut self, address: &Address, amount: &U256)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Erc20
impl RefUnwindSafe for Erc20
impl Send for Erc20
impl Sync for Erc20
impl Unpin for Erc20
impl UnwindSafe for Erc20
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more