Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§