Trait elrond_wasm::api::ProxyObjApi [−][src]
pub trait ProxyObjApi { type BigUint: BigUintApi + 'static; type BigInt: BigIntApi + 'static; type Storage: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static; type SendApi: SendApi<AmountType = Self::BigUint, ProxyBigInt = Self::BigInt> + Clone + 'static; fn new_proxy_obj(api: Self::SendApi, address: Address) -> Self; fn with_token_transfer(
self,
token: TokenIdentifier,
payment: Self::BigUint
) -> Self; fn with_nft_nonce(self, nonce: u64) -> Self; fn into_fields(
self
) -> (Self::SendApi, Address, TokenIdentifier, Self::BigUint, u64); }
Associated Types
type BigUint: BigUintApi + 'static
[src]
type BigInt: BigIntApi + 'static
[src]
type Storage: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static
[src]
Expand description
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).
type SendApi: SendApi<AmountType = Self::BigUint, ProxyBigInt = Self::BigInt> + Clone + 'static
[src]
Required methods
fn new_proxy_obj(api: Self::SendApi, 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)