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§

source

type BigUint: BigUintApi + 'static

source

type BigInt: BigIntApi + 'static

source

type EllipticCurve: EllipticCurveApi<BigUint = Self::BigUint> + 'static

source

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).

source

type SendApi: SendApi<AmountType = Self::BigUint, ProxyBigInt = Self::BigInt> + Clone + 'static

source

type ErrorApi: ErrorApi + Clone + 'static

Required Methods§

source

fn new_cb_proxy_obj(api: Self::ErrorApi) -> Self

source

fn into_api(self) -> Self::ErrorApi

Object Safety§

This trait is not object safe.

Implementors§