Trait fp_evm::Precompile

source ·
pub trait Precompile {
    // Required method
    fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult;
}
Expand description

One single precompile used by EVM engine.

Required Methods§

source

fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult

Try to execute the precompile with given handle which provides all call data and allow to register costs and logs.

Implementors§