Struct elrond_wasm_sc_dns::ContractObj[][src]

pub struct ContractObj<A: ContractBase> { /* fields omitted */ }

Trait Implementations

impl<A> CallableContract<A> for ContractObj<A> where
    A::BigUint: BigUintApi,
    &'a A::BigUint: Add<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: Sub<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: Mul<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: Div<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: Rem<&'b A::BigUint, Output = A::BigUint>,
    A::BigUint: AddAssign<&'b A::BigUint>,
    A::BigUint: SubAssign<&'b A::BigUint>,
    A::BigUint: MulAssign<&'b A::BigUint>,
    A::BigUint: DivAssign<&'b A::BigUint>,
    A::BigUint: RemAssign<&'b A::BigUint>,
    &'a A::BigUint: BitAnd<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: BitOr<&'b A::BigUint, Output = A::BigUint>,
    &'a A::BigUint: BitXor<&'b A::BigUint, Output = A::BigUint>,
    A::BigUint: BitAndAssign<&'b A::BigUint>,
    A::BigUint: BitOrAssign<&'b A::BigUint>,
    A::BigUint: BitXorAssign<&'b A::BigUint>,
    &'a A::BigUint: Shr<usize, Output = A::BigUint>,
    &'a A::BigUint: Shl<usize, Output = A::BigUint>,
    A::BigInt: BigIntApi,
    &'a A::BigInt: Add<&'b A::BigInt, Output = A::BigInt>,
    &'a A::BigInt: Sub<&'b A::BigInt, Output = A::BigInt>,
    &'a A::BigInt: Mul<&'b A::BigInt, Output = A::BigInt>,
    &'a A::BigInt: Div<&'b A::BigInt, Output = A::BigInt>,
    &'a A::BigInt: Rem<&'b A::BigInt, Output = A::BigInt>,
    A::BigInt: AddAssign<&'b A::BigInt>,
    A::BigInt: SubAssign<&'b A::BigInt>,
    A::BigInt: MulAssign<&'b A::BigInt>,
    A::BigInt: DivAssign<&'b A::BigInt>,
    A::BigInt: RemAssign<&'b A::BigInt>,
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

fn call(&self, fn_name: &[u8]) -> bool[src]

fn into_api(self: Box<Self>) -> A[src]

impl<A> ContractBase for ContractObj<A> where
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

type BigUint = A::BigUint

type BigInt = A::BigInt

type Storage = A::Storage

Abstracts the lower-level storage functionality.

type CallValue = A::CallValue

Abstracts the call value handling at the beginning of a function call.

type SendApi = A::SendApi

Abstracts the sending of EGLD & ESDT transactions, as well as async calls.

type BlockchainApi = A::BlockchainApi

type CryptoApi = A::CryptoApi

type LogApi = A::LogApi

type ErrorApi = A::ErrorApi

fn get_storage_raw(&self) -> Self::Storage[src]

Gateway into the lower-level storage functionality. Storage related annotations make use of this. Using it directly is not recommended. Read more

fn call_value(&self) -> Self::CallValue[src]

Gateway into the call value retrieval functionality. The payment annotations should normally be the ones to handle this, but the developer is also given direct access to the API. Read more

fn send(&self) -> Self::SendApi[src]

Gateway to the functionality related to sending transactions from the current contract.

fn blockchain(&self) -> Self::BlockchainApi[src]

Gateway blockchain info related to the current transaction and to accounts.

fn crypto(&self) -> Self::CryptoApi[src]

Stateless crypto functions provided by the Arwen VM.

fn log_api_raw(&self) -> Self::LogApi[src]

Gateway into the lower-level event log functionality. Gets called in auto-generated Using it directly is not recommended. TODO: consider moving to ContractPrivateApi. Read more

fn error_api(&self) -> Self::ErrorApi[src]

Currently for some auto-generated code involving callbacks. Please avoid using it directly. TODO: find a way to hide this API. Read more

fn proxy<P>(&self, address: Address) -> P where
    P: ProxyObjApi<SendApi = Self::SendApi>, 
[src]

impl<A> ContractPrivateApi for ContractObj<A> where
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

type ArgumentApi = A

type FinishApi = A

fn argument_api(&self) -> Self::ArgumentApi[src]

fn finish_api(&self) -> Self::FinishApi[src]

impl<A> EndpointWrappers for ContractObj<A> where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>,
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

impl<A> EndpointWrappers for ContractObj<A> where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>,
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

fn call_set_feature_flag_endpoint(&self)[src]

fn call(&self, fn_name: &[u8]) -> bool[src]

fn callback(&self)[src]

impl<A> AutoImpl for ContractObj<A> where
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

impl<A> AutoImpl for ContractObj<A> where
    A: ContractBase + ErrorApi + EndpointArgumentApi + EndpointFinishApi + Clone + 'static, 
[src]

Auto Trait Implementations

impl<A> Send for ContractObj<A> where
    A: Send

impl<A> Sync for ContractObj<A> where
    A: Sync

impl<A> Unpin for ContractObj<A> where
    A: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.