Trait dharitri_wasm::api::CallbackProxyObjApi
source · pub trait CallbackProxyObjApi {
type BigUint: BigUintApi + 'static;
type BigInt: BigIntApi + 'static;
type EllipticCurve: EllipticCurveApi<BigUint = Self::BigUint> + 'static;
type Storage: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static;
type SendApi: SendApi<AmountType = Self::BigUint, ProxyBigInt = Self::BigInt> + Clone + 'static;
type ErrorApi: ErrorApi + Clone + 'static;
// Required methods
fn new_cb_proxy_obj(api: Self::ErrorApi) -> Self;
fn into_api(self) -> Self::ErrorApi;
}Required Associated Types§
type BigUint: BigUintApi + 'static
type BigInt: BigIntApi + 'static
type EllipticCurve: EllipticCurveApi<BigUint = Self::BigUint> + 'static
sourcetype Storage: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static
type Storage: StorageReadApi + StorageWriteApi + ErrorApi + Clone + 'static
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
type ErrorApi: ErrorApi + Clone + 'static
Required Methods§
Object Safety§
This trait is not object safe.