multiversx_sc::types

Type Alias AsyncCall

Source
pub type AsyncCall<Api> = Tx<TxScEnv<Api>, (), ManagedAddress<Api>, EgldPayment<Api>, (), FunctionCall<Api>, Option<CallbackClosure<Api>>>;
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Expand description

Kept as alias for backwards compatibility.

Aliased Type§

struct AsyncCall<Api> {
    pub env: TxScEnv<Api>,
    pub from: (),
    pub to: ManagedAddress<Api>,
    pub payment: Egld<BigUint<Api>>,
    pub gas: (),
    pub data: FunctionCall<Api>,
    pub result_handler: Option<CallbackClosure<Api>>,
}

Fields§

§env: TxScEnv<Api>§from: ()§to: ManagedAddress<Api>§payment: Egld<BigUint<Api>>§gas: ()§data: FunctionCall<Api>§result_handler: Option<CallbackClosure<Api>>

Implementations§

Source§

impl<Api> AsyncCall<Api>
where Api: CallTypeApi,

Source

pub fn with_callback(self, callback_call: CallbackClosure<Api>) -> Self

Source§

impl<Api> AsyncCall<Api>