pub trait Precompile {
    // Required method
    fn execute(
        handle: &mut impl PrecompileHandle
    ) -> Result<PrecompileOutput, PrecompileFailure>;
}
Expand description

One single precompile used by EVM engine.

Required Methods§

fn execute( handle: &mut impl PrecompileHandle ) -> Result<PrecompileOutput, PrecompileFailure>

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

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> Precompile for T