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: SA
address: Address
payment_token: TokenIdentifier
payment_amount: SA::AmountType
payment_nonce: u64
Trait Implementations
impl<SA> ProxyObjApi for Proxy<SA> where
SA: SendApi + 'static,
[src]
impl<SA> ProxyObjApi for Proxy<SA> where
SA: SendApi + 'static,
[src]type BigUint = SA::AmountType
type BigInt = SA::ProxyBigInt
type Storage = SA::ProxyStorage
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]
self,
token: TokenIdentifier,
payment: Self::BigUint
) -> Self
fn with_nft_nonce(self, nonce: u64) -> Self
[src]
fn into_fields(
self
) -> (Self::SendApi, Address, TokenIdentifier, Self::BigUint, u64)
[src]
self
) -> (Self::SendApi, Address, TokenIdentifier, Self::BigUint, u64)
impl<SA> ProxyTrait for Proxy<SA> where
SA: SendApi,
[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]
self,
registration_cost: &Self::BigUint
) -> ContractCall<Self::SendApi, <() as EndpointResult>::DecodeAs>
fn can_register(
self,
name: BoxedBytes
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]
self,
name: BoxedBytes
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
fn register(
self,
name: BoxedBytes,
payment: Self::BigUint
) -> ContractCall<Self::SendApi, <SCResult<AsyncCall<Self::SendApi>> as EndpointResult>::DecodeAs>
[src]
self,
name: BoxedBytes,
payment: Self::BigUint
) -> ContractCall<Self::SendApi, <SCResult<AsyncCall<Self::SendApi>> as EndpointResult>::DecodeAs>
fn resolve(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
fn resolve_from_hash(
self,
name_hash: H256
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]
self,
name_hash: H256
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
fn check_pending(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <OptionalResult<Address> as EndpointResult>::DecodeAs>
fn reset_pending(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
fn claim(
self
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]
self
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
fn get_registration_cost(
self
) -> ContractCall<Self::SendApi, <Self::BigUint as EndpointResult>::DecodeAs>
[src]
self
) -> ContractCall<Self::SendApi, <Self::BigUint as EndpointResult>::DecodeAs>
fn get_owner_address_endpoint(
self
) -> ContractCall<Self::SendApi, <Address as EndpointResult>::DecodeAs>
[src]
self
) -> ContractCall<Self::SendApi, <Address as EndpointResult>::DecodeAs>
fn get_own_shard_id(
self
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
[src]
self
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
fn name_hash(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <H256 as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <H256 as EndpointResult>::DecodeAs>
fn name_shard(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <u8 as EndpointResult>::DecodeAs>
fn validate_name(
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
[src]
self,
name: &[u8]
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
fn version(
self
) -> ContractCall<Self::SendApi, <&'static [u8] as EndpointResult>::DecodeAs>
[src]
self
) -> ContractCall<Self::SendApi, <&'static [u8] as EndpointResult>::DecodeAs>
impl<SA> ProxyTrait for Proxy<SA> where
SA: SendApi,
[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]
self,
feature_name: Vec<u8, Global>,
value: bool
) -> ContractCall<Self::SendApi, <SCResult<()> as EndpointResult>::DecodeAs>
Auto Trait Implementations
impl<SA> Send for Proxy<SA> where
SA: Send,
<SA as SendApi>::AmountType: Send,
SA: Send,
<SA as SendApi>::AmountType: Send,
impl<SA> Sync for Proxy<SA> where
SA: Sync,
<SA as SendApi>::AmountType: Sync,
SA: Sync,
<SA as SendApi>::AmountType: Sync,
impl<SA> Unpin for Proxy<SA> where
SA: Unpin,
<SA as SendApi>::AmountType: Unpin,
SA: Unpin,
<SA as SendApi>::AmountType: Unpin,