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

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

Required Associated Constants§

const BASE: u64

const WORD: u64

Required Methods§

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

Implementors§