revm_context_interface::transaction

Trait CommonTxFields

Source
pub trait CommonTxFields {
    // Required methods
    fn caller(&self) -> Address;
    fn gas_limit(&self) -> u64;
    fn value(&self) -> U256;
    fn input(&self) -> &Bytes;
    fn nonce(&self) -> u64;
}
Expand description

Trait that contains all common field that are shared by all transactions. This trait is base for Legacy, EIp2930 and Eip1559 transactions.

Required Methods§

Source

fn caller(&self) -> Address

Caller aka Author aka transaction signer.

Source

fn gas_limit(&self) -> u64

The maximum amount of gas the transaction can use.

Source

fn value(&self) -> U256

The value sent to the receiver of TxKind::Call.

Source

fn input(&self) -> &Bytes

Returns the input data of the transaction.

Source

fn nonce(&self) -> u64

The nonce of the transaction.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + CommonTxFields + ?Sized> CommonTxFields for &'a T

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn input(&self) -> &Bytes

Source§

fn nonce(&self) -> u64

Source§

impl<T: CommonTxFields + ?Sized> CommonTxFields for Box<T>

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn input(&self) -> &Bytes

Source§

fn nonce(&self) -> u64

Source§

impl<T: CommonTxFields + ?Sized> CommonTxFields for Rc<T>

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn input(&self) -> &Bytes

Source§

fn nonce(&self) -> u64

Source§

impl<T: CommonTxFields + ?Sized> CommonTxFields for Arc<T>

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn input(&self) -> &Bytes

Source§

fn nonce(&self) -> u64

Implementors§