multiversx_wegld_swap_sc

Trait EgldEsdtSwap

Source
pub trait EgldEsdtSwap:
    ContractBase
    + Sized
    + PauseModule {
    // Required method
    fn wrapped_egld_token_id(
        &self,
    ) -> SingleValueMapper<Self::Api, TokenIdentifier<Self::Api>>;

    // Provided methods
    fn init(&self, wrapped_egld_token_id: TokenIdentifier<Self::Api>) { ... }
    fn wrap_egld(&self) -> EsdtTokenPayment<Self::Api> { ... }
    fn unwrap_egld(&self) { ... }
    fn get_locked_egld_balance(&self) -> BigUint<Self::Api> { ... }
}

Required Methods§

Provided Methods§

Source

fn init(&self, wrapped_egld_token_id: TokenIdentifier<Self::Api>)

Source

fn wrap_egld(&self) -> EsdtTokenPayment<Self::Api>

Source

fn unwrap_egld(&self)

Source

fn get_locked_egld_balance(&self) -> BigUint<Self::Api>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> EgldEsdtSwap for C
where C: AutoImpl + PauseModule,