Struct eest_types::TransactionParts
source · pub struct TransactionParts {Show 14 fields
pub data: Vec<Bytes>,
pub gas_limit: Vec<U256>,
pub gas_price: Option<U256>,
pub nonce: U256,
pub secret_key: H256,
pub sender: Option<Address>,
pub to: Option<Address>,
pub value: Vec<U256>,
pub max_fee_per_gas: Option<U256>,
pub max_priority_fee_per_gas: Option<U256>,
pub access_lists: Vec<Option<AccessList>>,
pub authorization_list: Option<Vec<TestAuthorization>>,
pub blob_versioned_hashes: Vec<H256>,
pub max_fee_per_blob_gas: Option<U256>,
}
Expand description
Transaction parts.
Fields§
§data: Vec<Bytes>
§gas_limit: Vec<U256>
§gas_price: Option<U256>
§nonce: U256
§secret_key: H256
§sender: Option<Address>
if sender is not present we need to derive it from secret key.
to: Option<Address>
§value: Vec<U256>
§max_fee_per_gas: Option<U256>
§max_priority_fee_per_gas: Option<U256>
§access_lists: Vec<Option<AccessList>>
§blob_versioned_hashes: Vec<H256>
§max_fee_per_blob_gas: Option<U256>
Implementations§
source§impl TransactionParts
impl TransactionParts
sourcepub fn tx_type(&self, access_list_index: usize) -> Option<TransactionType>
pub fn tx_type(&self, access_list_index: usize) -> Option<TransactionType>
Returns the transaction type.
As this information is derived from the fields it is not stored in the struct.
Returns None
if the transaction is invalid:
- It has both blob gas and no destination.
- It has authorization list and no destination.
Trait Implementations§
source§impl Debug for TransactionParts
impl Debug for TransactionParts
source§impl Default for TransactionParts
impl Default for TransactionParts
source§fn default() -> TransactionParts
fn default() -> TransactionParts
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionParts
impl<'de> Deserialize<'de> for TransactionParts
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 PartialEq for TransactionParts
impl PartialEq for TransactionParts
source§fn eq(&self, other: &TransactionParts) -> bool
fn eq(&self, other: &TransactionParts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionParts
impl Serialize for TransactionParts
impl Eq for TransactionParts
impl StructuralPartialEq for TransactionParts
Auto Trait Implementations§
impl Freeze for TransactionParts
impl RefUnwindSafe for TransactionParts
impl Send for TransactionParts
impl Sync for TransactionParts
impl Unpin for TransactionParts
impl UnwindSafe for TransactionParts
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.