revm_context_interface::transaction::eip2930

Trait Eip2930Tx

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

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

EIP-2930: Optional access lists

Required Associated Types§

Required Methods§

Source

fn chain_id(&self) -> u64

The chain ID of the chain the transaction is intended for.

Source

fn gas_price(&self) -> u128

The gas price of the transaction.

Source

fn kind(&self) -> TxKind

The kind of transaction.

Source

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

The access list of the transaction.

Implementations on Foreign Types§

Source§

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

Source§

type AccessList = <T as Eip2930Tx>::AccessList

Source§

fn chain_id(&self) -> u64

Source§

fn gas_price(&self) -> u128

Source§

fn kind(&self) -> TxKind

Source§

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

Source§

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

Source§

type AccessList = <T as Eip2930Tx>::AccessList

Source§

fn chain_id(&self) -> u64

Source§

fn gas_price(&self) -> u128

Source§

fn kind(&self) -> TxKind

Source§

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

Source§

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

Source§

type AccessList = <T as Eip2930Tx>::AccessList

Source§

fn chain_id(&self) -> u64

Source§

fn gas_price(&self) -> u128

Source§

fn kind(&self) -> TxKind

Source§

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

Source§

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

Source§

type AccessList = <T as Eip2930Tx>::AccessList

Source§

fn chain_id(&self) -> u64

Source§

fn gas_price(&self) -> u128

Source§

fn kind(&self) -> TxKind

Source§

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

Implementors§