revm_transaction/
eip2930.rs

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

/// EIP-2930: Optional access lists
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;
}