pub trait Precompile<T, Balance>where
    T: ConfigSystem,
    Balance: Encode + Decode,{
    // Required methods
    fn lookup(dest: &T::Hash) -> Option<u8>;
    fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8>);
    fn invoke(
        args: PrecompileArgs<T, Balance>
    ) -> Result<PrecompileInvocation<T, Balance>, DispatchError>;
}

Required Methods§

source

fn lookup(dest: &T::Hash) -> Option<u8>

Looks up a precompile function pointer

source

fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8>)

Invoke a precompile, providing raw bytes and a pointer

source

fn invoke( args: PrecompileArgs<T, Balance> ) -> Result<PrecompileInvocation<T, Balance>, DispatchError>

Invoke a precompile

Implementors§

source§

impl<T, Balance> Precompile<T, Balance> for NoopThreeVmwhere T: ConfigSystem, Balance: Encode + Decode,