Trait pallet_circuit::threevm::Precompile
pub trait Precompile<T, Balance>where
T: Config,
Balance: Encode + Decode,{
// Required methods
fn lookup(dest: &<T as Config>::Hash) -> Option<u8>;
fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8, Global>);
fn invoke(
args: PrecompileArgs<T, Balance>
) -> Result<PrecompileInvocation<T, Balance>, DispatchError>;
}
Required Methods§
fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8, Global>)
fn invoke_raw(precompile: &u8, args: &[u8], output: &mut Vec<u8, Global>)
Invoke a precompile, providing raw bytes and a pointer
fn invoke(
args: PrecompileArgs<T, Balance>
) -> Result<PrecompileInvocation<T, Balance>, DispatchError>
fn invoke( args: PrecompileArgs<T, Balance> ) -> Result<PrecompileInvocation<T, Balance>, DispatchError>
Invoke a precompile