pub struct Proxy<A>
where A: VMApi + 'static,
{ pub address: ManagedOption<A, ManagedAddress<A>>, }

Fields§

§address: ManagedOption<A, ManagedAddress<A>>

Trait Implementations§

source§

impl<A> ProxyObjBase for Proxy<A>
where A: VMApi + 'static,

§

type Api = A

source§

fn contract(self, address: ManagedAddress<Self::Api>) -> Self

Specify the target contract to call. Not taken into account for deploys.
source§

impl<A> ProxyTrait for Proxy<A>
where A: VMApi,

source§

impl<A> ProxyTrait for Proxy<A>
where A: VMApi,

source§

fn init<Arg0: CodecInto<TokenIdentifier<Self::Api>>>( &mut self, wrapped_egld_token_id: Arg0 ) -> ContractDeploy<Self::Api, ()>

source§

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

source§

fn unwrap_egld(&mut self) -> ContractCallNoPayment<Self::Api, ()>

source§

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

source§

fn wrapped_egld_token_id( &mut self ) -> ContractCallNoPayment<Self::Api, SingleValueMapper<Self::Api, TokenIdentifier<Self::Api>>>

Auto Trait Implementations§

§

impl<A> CodecFromSelf for Proxy<A>
where A: CodecFromSelf, <A as HandleTypeInfo>::ManagedBufferHandle: CodecFromSelf,

§

impl<A> RefUnwindSafe for Proxy<A>

§

impl<A> Send for Proxy<A>

§

impl<A> Sync for Proxy<A>

§

impl<A> Unpin for Proxy<A>

§

impl<A> UnwindSafe for Proxy<A>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.