pub struct TxCall {
pub from: AddressValue,
pub to: AddressValue,
pub egld_value: BigUintValue,
pub esdt_value: Vec<TxESDT>,
pub function: String,
pub arguments: Vec<BytesValue>,
pub gas_limit: U64Value,
pub gas_price: U64Value,
}
Fields§
§from: AddressValue
§to: AddressValue
§egld_value: BigUintValue
§esdt_value: Vec<TxESDT>
§function: String
§arguments: Vec<BytesValue>
§gas_limit: U64Value
§gas_price: U64Value
Implementations§
Source§impl TxCall
impl TxCall
pub fn to_contract_call(&self) -> ContractCallWithEgld<StaticApi, ()>
👎Deprecated since 0.49.0: Please use the unified transaction syntax instead.
Sourcepub fn normalize(&self) -> TxCall
pub fn normalize(&self) -> TxCall
Converts call to builtin function ESDT transfer call, if necessary.
Sourcepub fn compute_data_field(&self) -> String
pub fn compute_data_field(&self) -> String
Creates the data field of the transaction represented by object.
Trait Implementations§
Source§impl InterpretableFrom<TxCallRaw> for TxCall
impl InterpretableFrom<TxCallRaw> for TxCall
fn interpret_from(from: TxCallRaw, context: &InterpreterContext) -> Self
Auto Trait Implementations§
impl Freeze for TxCall
impl RefUnwindSafe for TxCall
impl Send for TxCall
impl Sync for TxCall
impl Unpin for TxCall
impl UnwindSafe for TxCall
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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