revm_context::cfg

Trait Cfg

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

    // Required methods
    fn chain_id(&self) -> u64;
    fn spec(&self) -> Self::Spec;
    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§

Required Methods§

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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

Source§

type Spec = SPEC