pub trait LinearCostPrecompile {
    const BASE: u64;
    const WORD: u64;

    // Required method
    fn execute(
        input: &[u8],
        cost: u64
    ) -> Result<(ExitSucceed, Vec<u8>), PrecompileFailure>;
}

Required Associated Constants§

Required Methods§

source

fn execute( input: &[u8], cost: u64 ) -> Result<(ExitSucceed, Vec<u8>), PrecompileFailure>

Implementors§