Struct odra_modules::wrapped_native::WrappedNativeToken
source · pub struct WrappedNativeToken { /* private fields */ }Implementations§
source§impl WrappedNativeToken
impl WrappedNativeToken
pub fn init(&mut self)
pub fn deposit(&mut self)
pub fn withdraw(&mut self, amount: &U256)
pub fn allowance(&self, owner: &Address, spender: &Address) -> U256
pub fn balance_of(&self, address: &Address) -> U256
pub fn total_supply(&self) -> U256
pub fn decimals(&self) -> u8
pub fn symbol(&self) -> String
pub fn name(&self) -> String
pub fn approve(&mut self, spender: &Address, amount: &U256)
pub fn transfer_from( &mut self, owner: &Address, recipient: &Address, amount: &U256 )
pub fn transfer(&mut self, recipient: &Address, amount: &U256)
Trait Implementations§
source§impl Clone for WrappedNativeToken
impl Clone for WrappedNativeToken
source§fn clone(&self) -> WrappedNativeToken
fn clone(&self) -> WrappedNativeToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl DynamicInstance for WrappedNativeToken
impl DynamicInstance for WrappedNativeToken
source§impl Node for WrappedNativeToken
impl Node for WrappedNativeToken
source§impl OdraItem for WrappedNativeToken
impl OdraItem for WrappedNativeToken
source§impl StaticInstance for WrappedNativeToken
impl StaticInstance for WrappedNativeToken
Auto Trait Implementations§
impl Freeze for WrappedNativeToken
impl RefUnwindSafe for WrappedNativeToken
impl Send for WrappedNativeToken
impl Sync for WrappedNativeToken
impl Unpin for WrappedNativeToken
impl UnwindSafe for WrappedNativeToken
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