revm_context

Trait Cfg

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§

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

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

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

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

Implementations on Foreign Types§

§

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

§

type Spec = <T as Cfg>::Spec

§

fn chain_id(&self) -> u64

§

fn spec(&self) -> <&'a T as Cfg>::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

§

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

§

type Spec = <T as Cfg>::Spec

§

fn chain_id(&self) -> u64

§

fn spec(&self) -> <&'a mut T as Cfg>::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

§

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

§

type Spec = <T as Cfg>::Spec

§

fn chain_id(&self) -> u64

§

fn spec(&self) -> <Box<T> as Cfg>::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

§

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

§

type Spec = <T as Cfg>::Spec

§

fn chain_id(&self) -> u64

§

fn spec(&self) -> <Arc<T> as Cfg>::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

Implementors§

Source§

impl<SPEC: Into<SpecId> + Copy> Cfg for CfgEnv<SPEC>

Source§

type Spec = SPEC