pub struct NativeTransaction {
    pub nonce: U256,
    pub gas_price: U256,
    pub gas: U256,
    pub action: Action,
    pub value: U256,
    pub storage_limit: u64,
    pub epoch_height: u64,
    pub chain_id: u32,
    pub data: Bytes,
}Fields§
§nonce: U256Nonce.
gas_price: U256Gas price.
gas: U256Gas paid up front for transaction execution.
action: ActionAction, can be either call or contract create.
value: U256Transferred value.
storage_limit: u64Maximum storage increasement in this execution.
epoch_height: u64The epoch height of the transaction. A transaction can only be packed between the epochs of [epoch_height - TRANSACTION_EPOCH_BOUND, epoch_height + TRANSACTION_EPOCH_BOUND]
chain_id: u32The chain id of the transaction
data: BytesTransaction data.
Implementations§
Source§impl NativeTransaction
 
impl NativeTransaction
Sourcepub fn fake_sign(self, from: AddressWithSpace) -> SignedTransaction
 
pub fn fake_sign(self, from: AddressWithSpace) -> SignedTransaction
Specify the sender; this won’t survive the serialize/deserialize process, but can be cloned.
Trait Implementations§
Source§impl Clone for NativeTransaction
 
impl Clone for NativeTransaction
Source§fn clone(&self) -> NativeTransaction
 
fn clone(&self) -> NativeTransaction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for NativeTransaction
 
impl Debug for NativeTransaction
Source§impl Decodable for NativeTransaction
 
impl Decodable for NativeTransaction
Source§impl Default for NativeTransaction
 
impl Default for NativeTransaction
Source§fn default() -> NativeTransaction
 
fn default() -> NativeTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NativeTransaction
 
impl<'de> Deserialize<'de> for NativeTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encodable for NativeTransaction
 
impl Encodable for NativeTransaction
Source§impl From<NativeTransaction> for Transaction
 
impl From<NativeTransaction> for Transaction
Source§fn from(tx: NativeTransaction) -> Self
 
fn from(tx: NativeTransaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NativeTransaction
 
impl PartialEq for NativeTransaction
Source§impl Serialize for NativeTransaction
 
impl Serialize for NativeTransaction
impl Eq for NativeTransaction
impl StructuralPartialEq for NativeTransaction
Auto Trait Implementations§
impl Freeze for NativeTransaction
impl RefUnwindSafe for NativeTransaction
impl Send for NativeTransaction
impl Sync for NativeTransaction
impl Unpin for NativeTransaction
impl UnwindSafe for NativeTransaction
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