pub struct TxInput {
pub from: VMAddress,
pub to: VMAddress,
pub egld_value: BigUint,
pub esdt_values: Vec<TxTokenTransfer>,
pub func_name: TxFunctionName,
pub args: Vec<Vec<u8>>,
pub call_type: CallType,
pub gas_limit: u64,
pub gas_price: u64,
pub tx_hash: H256,
pub promise_callback_closure_data: Option<Vec<u8>>,
pub callback_payments: CallbackPayments,
}
Fields§
§from: VMAddress
§to: VMAddress
§egld_value: BigUint
§esdt_values: Vec<TxTokenTransfer>
§func_name: TxFunctionName
§args: Vec<Vec<u8>>
§call_type: CallType
§gas_limit: u64
§gas_price: u64
§tx_hash: H256
§promise_callback_closure_data: Option<Vec<u8>>
§callback_payments: CallbackPayments
Implementations§
Source§impl TxInput
impl TxInput
pub fn add_arg(&mut self, arg: Vec<u8>)
pub fn func_name_from_arg_index(&self, arg_index: usize) -> TxFunctionName
Source§impl TxInput
impl TxInput
Sourcepub fn received_egld(&self) -> &BigUint
pub fn received_egld(&self) -> &BigUint
The received EGLD can come either from the original caller, or from an async call, during callback.
Sourcepub fn received_esdt(&self) -> &[TxTokenTransfer]
pub fn received_esdt(&self) -> &[TxTokenTransfer]
The received ESDT tokens can come either from the original caller, or from an async call, during callback.
pub fn get_argument_vec_u8(&self, arg_index: i32) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxInput
impl RefUnwindSafe for TxInput
impl Send for TxInput
impl Sync for TxInput
impl Unpin for TxInput
impl UnwindSafe for TxInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more