revm_context_interface::transaction::eip1559

Trait Eip1559CommonTxFields

Source
pub trait Eip1559CommonTxFields: CommonTxFields {
    type AccessList: AccessListTrait;

    // Required methods
    fn chain_id(&self) -> u64;
    fn max_fee_per_gas(&self) -> u128;
    fn max_priority_fee_per_gas(&self) -> u128;
    fn access_list(&self) -> &Self::AccessList;
}
Expand description

This trait is base for Eip1559, EIp4844 and Eip7702 transactions.

Required Associated Types§

Source

type AccessList: AccessListTrait

Access list type.

Required Methods§

Source

fn chain_id(&self) -> u64

Chain id became mandatory in all transaction after EIP-2930.

Source

fn max_fee_per_gas(&self) -> u128

Maximum fee per gas.

Source

fn max_priority_fee_per_gas(&self) -> u128

Maximum priority fee per gas.

Source

fn access_list(&self) -> &Self::AccessList

EIP-1559 access list.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§