pub struct ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,{
pub basic: ContractCallNoPayment<SA, OriginalResult>,
pub payment: EgldOrMultiEsdtPayment<SA>,
}
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Expand description
Holds data for calling another contract, with any type of payment: none, EGLD, Multi-ESDT.
Gets created when chaining method with_any_payment
.
Fields§
§basic: ContractCallNoPayment<SA, OriginalResult>
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
§payment: EgldOrMultiEsdtPayment<SA>
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Implementations§
Source§impl<SA, OriginalResult> ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
impl<SA, OriginalResult> ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
Sourcepub fn new<N: Into<ManagedBuffer<SA>>>(
to: ManagedAddress<SA>,
endpoint_name: N,
payment: EgldOrMultiEsdtPayment<SA>,
) -> Self
pub fn new<N: Into<ManagedBuffer<SA>>>( to: ManagedAddress<SA>, endpoint_name: N, payment: EgldOrMultiEsdtPayment<SA>, ) -> Self
Creates a new instance directly.
Trait Implementations§
Source§impl<SA, OriginalResult> ContractCall<SA> for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
impl<SA, OriginalResult> ContractCall<SA> for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
Source§fn transfer_execute(self)
fn transfer_execute(self)
Immediately launches a transfer-execute call. Read more
Source§fn argument<T: TopEncodeMulti>(self, arg: &T) -> Self
fn argument<T: TopEncodeMulti>(self, arg: &T) -> Self
Serializes and pushes a value to the arguments buffer. Read more
Source§fn push_raw_argument<RawArg: Into<ManagedBuffer<SA>>>(
&mut self,
raw_arg: RawArg,
)
fn push_raw_argument<RawArg: Into<ManagedBuffer<SA>>>( &mut self, raw_arg: RawArg, )
For cases where we build the contract call by hand. Read more
Source§fn with_raw_arguments(self, raw_argument_buffer: ManagedArgBuffer<SA>) -> Self
fn with_raw_arguments(self, raw_argument_buffer: ManagedArgBuffer<SA>) -> Self
For cases where we build the contract call by hand.
Source§fn with_gas_limit(self, gas_limit: u64) -> Self
fn with_gas_limit(self, gas_limit: u64) -> Self
Sets an explicit gas limit to the call.
fn into_call_data_string(self) -> ManagedBuffer<SA>
Source§fn async_call(self) -> AsyncCall<SA>
fn async_call(self) -> AsyncCall<SA>
Converts to a legacy async call.
Source§fn async_call_promise(self) -> AsyncCallPromises<SA>
fn async_call_promise(self) -> AsyncCallPromises<SA>
Converts to an async promise.
Source§fn execute_on_dest_context<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
fn execute_on_dest_context<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
Executes immediately, synchronously, and returns contract call result.
Only works if the target contract is in the same shard.
Source§fn execute_on_dest_context_with_back_transfers<RequestedResult>(
self,
) -> (RequestedResult, BackTransfers<SA>)where
RequestedResult: TopDecodeMulti,
fn execute_on_dest_context_with_back_transfers<RequestedResult>(
self,
) -> (RequestedResult, BackTransfers<SA>)where
RequestedResult: TopDecodeMulti,
Executes immediately, synchronously, and returns contract call result.
Only works if the target contract is in the same shard.
Source§fn execute_on_dest_context_ignore_result(self)
fn execute_on_dest_context_ignore_result(self)
👎Deprecated since 0.36.1: Redundant method, use
let _: IgnoreValue = contract_call.execute_on_dest_context(...)
insteadExecutes immediately, synchronously. Read more
Source§fn execute_on_dest_context_readonly<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
fn execute_on_dest_context_readonly<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
Executes immediately, synchronously, and returns contract call result. Read more
Source§fn execute_on_same_context<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
fn execute_on_same_context<RequestedResult>(self) -> RequestedResultwhere
RequestedResult: TopDecodeMulti,
Executes immediately, synchronously, and returns contract call result. Read more
Source§impl<SA, OriginalResult> ContractCallBase<SA> for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
impl<SA, OriginalResult> ContractCallBase<SA> for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: CallTypeApi + 'static,
OriginalResult: TopEncodeMulti,
Source§type OriginalResult = OriginalResult
type OriginalResult = OriginalResult
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Auto Trait Implementations§
impl<SA, OriginalResult> Freeze for ContractCallWithAnyPayment<SA, OriginalResult>where
<SA as HandleTypeInfo>::ManagedBufferHandle: Freeze,
<SA as HandleTypeInfo>::BigIntHandle: Freeze,
impl<SA, OriginalResult> RefUnwindSafe for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: RefUnwindSafe,
OriginalResult: RefUnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
<SA as HandleTypeInfo>::BigIntHandle: RefUnwindSafe,
impl<SA, OriginalResult> Send for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: Send,
OriginalResult: Send,
<SA as HandleTypeInfo>::ManagedBufferHandle: Send,
<SA as HandleTypeInfo>::BigIntHandle: Send,
impl<SA, OriginalResult> Sync for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: Sync,
OriginalResult: Sync,
<SA as HandleTypeInfo>::ManagedBufferHandle: Sync,
<SA as HandleTypeInfo>::BigIntHandle: Sync,
impl<SA, OriginalResult> Unpin for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: Unpin,
OriginalResult: Unpin,
<SA as HandleTypeInfo>::ManagedBufferHandle: Unpin,
<SA as HandleTypeInfo>::BigIntHandle: Unpin,
impl<SA, OriginalResult> UnwindSafe for ContractCallWithAnyPayment<SA, OriginalResult>where
SA: UnwindSafe,
OriginalResult: UnwindSafe,
<SA as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
<SA as HandleTypeInfo>::BigIntHandle: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more