revm_context_interface/transaction/
eip2930.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use super::{AccessListTrait, CommonTxFields};
use auto_impl::auto_impl;
use primitives::TxKind;

/// EIP-2930: Optional access lists
#[auto_impl(&, Box, Arc, Rc)]
pub trait Eip2930Tx: CommonTxFields {
    type AccessList: AccessListTrait;

    /// The chain ID of the chain the transaction is intended for.
    fn chain_id(&self) -> u64;

    /// The gas price of the transaction.
    fn gas_price(&self) -> u128;

    /// The kind of transaction.
    fn kind(&self) -> TxKind;

    /// The access list of the transaction.
    fn access_list(&self) -> &Self::AccessList;
}