revm_context_interface::transaction::legacy

Trait LegacyTx

Source
pub trait LegacyTx: CommonTxFields {
    // Required methods
    fn kind(&self) -> TxKind;
    fn chain_id(&self) -> Option<u64>;
    fn gas_price(&self) -> u128;
}
Expand description

Legacy transaction trait before introduction of EIP-2929

Required Methods§

Source

fn kind(&self) -> TxKind

Transaction kind.

Source

fn chain_id(&self) -> Option<u64>

Chain Id is optional for legacy transactions As it was introduced in EIP-155.

Source

fn gas_price(&self) -> u128

Gas price for the transaction.

Implementations on Foreign Types§

Source§

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

Source§

fn kind(&self) -> TxKind

Source§

fn chain_id(&self) -> Option<u64>

Source§

fn gas_price(&self) -> u128

Source§

impl<T: LegacyTx + ?Sized> LegacyTx for Box<T>
where Box<T>: CommonTxFields,

Source§

fn kind(&self) -> TxKind

Source§

fn chain_id(&self) -> Option<u64>

Source§

fn gas_price(&self) -> u128

Source§

impl<T: LegacyTx + ?Sized> LegacyTx for Rc<T>
where Rc<T>: CommonTxFields,

Source§

fn kind(&self) -> TxKind

Source§

fn chain_id(&self) -> Option<u64>

Source§

fn gas_price(&self) -> u128

Source§

impl<T: LegacyTx + ?Sized> LegacyTx for Arc<T>
where Arc<T>: CommonTxFields,

Source§

fn kind(&self) -> TxKind

Source§

fn chain_id(&self) -> Option<u64>

Source§

fn gas_price(&self) -> u128

Implementors§