Struct multiversx_chain_vm::tx_mock::TxInput
source · 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 gas_limit: u64,
pub gas_price: u64,
pub tx_hash: H256,
pub promise_callback_closure_data: 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>>
§gas_limit: u64
§gas_price: u64
§tx_hash: H256
§promise_callback_closure_data: 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 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