anvil

Trait PrecompileFactory

Source
pub trait PrecompileFactory:
    Send
    + Sync
    + Unpin
    + Debug {
    // Required method
    fn precompiles(&self) -> Vec<(Address, Precompile)>;
}
Expand description

Object-safe trait that enables injecting extra precompiles when using anvil as a library.

Required Methods§

Source

fn precompiles(&self) -> Vec<(Address, Precompile)>

Returns a set of precompiles to extend the EVM with.

Implementors§