Trait t3rn_primitives::threevm::Precompile
source · 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§
sourcefn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8>)
fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8>)
Invoke a precompile, providing raw bytes and a pointer
sourcefn invoke(
args: PrecompileArgs<T, Balance>
) -> Result<PrecompileInvocation<T, Balance>, DispatchError>
fn invoke( args: PrecompileArgs<T, Balance> ) -> Result<PrecompileInvocation<T, Balance>, DispatchError>
Invoke a precompile