revm_precompile::interface

Trait StatefulPrecompile

Source
pub trait StatefulPrecompile: Sync + Send {
    // Required method
    fn call(
        &self,
        bytes: &Bytes,
        gas_limit: u64,
        env: &CfgEnv,
    ) -> PrecompileResult;
}
Expand description

Stateful precompile trait. It is used to create a arc precompile Precompile::Stateful.

Required Methods§

Source

fn call(&self, bytes: &Bytes, gas_limit: u64, env: &CfgEnv) -> PrecompileResult

Implementors§