Struct elrond_wasm_sc_dns::Proxy[][src]

pub struct Proxy<SA> where
    SA: SendApi + 'static, 
{ pub api: SA, pub address: Address, pub payment_token: TokenIdentifier, pub payment_amount: SA::AmountType, pub payment_nonce: u64, }

Fields

api: SAaddress: Addresspayment_token: TokenIdentifierpayment_amount: SA::AmountTypepayment_nonce: u64

Trait Implementations

impl<SA> ProxyObjApi for Proxy<SA> where
    SA: SendApi + 'static, 
[src]

type BigUint = SA::AmountType

type BigInt = SA::ProxyBigInt

type Storage = SA::ProxyStorage

The code generator produces the same types in the proxy, as for the main contract. Sometimes endpoints return types that contain a Self::Storage type argument, as for example in SingleValueMapper<Self::Storage, i32>. In order for the proxy code to compile, it is necessary to specify this type here too (even though it is not required by the trait’s methods per se). Read more

type SendApi = SA

fn new_proxy_obj(api: SA, address: Address) -> Self[src]

fn with_token_transfer(
    self,
    token: TokenIdentifier,
    payment: Self::BigUint
) -> Self
[src]

fn with_nft_nonce(self, nonce: u64) -> Self[src]

fn into_fields(
    self
) -> (Self::SendApi, Address, TokenIdentifier, Self::BigUint, u64)
[src]

impl<SA> ProxyTrait for Proxy<SA> where
    SA: SendApi
[src]

fn init(
    self,
    registration_cost: &Self::BigUint
) -> ContractCall<Self::SendApi, <() as EndpointResult>::DecodeAs>
[src]

fn can_register(
    self,
    name: BoxedBytes
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]

fn register(
    self,
    name: BoxedBytes,
    payment: Self::BigUint
) -> ContractCall<Self::SendApi, <SCResult<AsyncCall<Self::SendApi>> as EndpointResult>::DecodeAs>
[src]

fn resolve(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]

fn resolve_from_hash(
    self,
    name_hash: H256
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]

fn check_pending(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]

fn reset_pending(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]

fn claim(
    self
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]

fn get_registration_cost(
    self
) -> ContractCall<Self::SendApi, <Self::BigUint as EndpointResult>::DecodeAs>
[src]

fn get_owner_address_endpoint(
    self
) -> ContractCall<Self::SendApi, <Address as EndpointResult>::DecodeAs>
[src]

fn get_own_shard_id(
    self
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
[src]

fn name_hash(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <H256 as EndpointResult>::DecodeAs>
[src]

fn name_shard(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
[src]

fn validate_name(
    self,
    name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]

fn version(
    self
) -> ContractCall<Self::SendApi, <&'static [u8] as EndpointResult>::DecodeAs>
[src]

impl<SA> ProxyTrait for Proxy<SA> where
    SA: SendApi
[src]

fn set_feature_flag_endpoint(
    self,
    feature_name: Vec<u8, Global>,
    value: bool
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]

Auto Trait Implementations

impl<SA> Send for Proxy<SA> where
    SA: Send,
    <SA as SendApi>::AmountType: Send

impl<SA> Sync for Proxy<SA> where
    SA: Sync,
    <SA as SendApi>::AmountType: Sync

impl<SA> Unpin for Proxy<SA> where
    SA: Unpin,
    <SA as SendApi>::AmountType: 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.