revm_context_interface::cfg

Trait Cfg

Source
pub trait Cfg {
    type Spec: Into<SpecId>;

    // Required methods
    fn chain_id(&self) -> u64;
    fn spec(&self) -> Self::Spec;
    fn blob_max_count(&self, spec_id: SpecId) -> u8;
    fn max_code_size(&self) -> usize;
    fn is_eip3607_disabled(&self) -> bool;
    fn is_balance_check_disabled(&self) -> bool;
    fn is_gas_refund_disabled(&self) -> bool;
    fn is_block_gas_limit_disabled(&self) -> bool;
    fn is_nonce_check_disabled(&self) -> bool;
    fn is_base_fee_check_disabled(&self) -> bool;
}

Required Associated Types§

Source

type Spec: Into<SpecId>

Required Methods§

Source

fn chain_id(&self) -> u64

Source

fn spec(&self) -> Self::Spec

Source

fn blob_max_count(&self, spec_id: SpecId) -> u8

Returns the blob target and max count for the given spec id.

EIP-7840: Add blob schedule to execution client configuration files

Source

fn max_code_size(&self) -> usize

Source

fn is_eip3607_disabled(&self) -> bool

Source

fn is_balance_check_disabled(&self) -> bool

Source

fn is_gas_refund_disabled(&self) -> bool

Source

fn is_block_gas_limit_disabled(&self) -> bool

Source

fn is_nonce_check_disabled(&self) -> bool

Source

fn is_base_fee_check_disabled(&self) -> bool

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

impl<T: Cfg + ?Sized> Cfg for Box<T>

Source§

impl<T: Cfg + ?Sized> Cfg for Arc<T>

Implementors§