[][src]Trait evmc_vm::EvmcVm

pub trait EvmcVm {
    fn init() -> Self;
fn execute<'a>(
        &self,
        revision: Revision,
        code: &'a [u8],
        message: &'a ExecutionMessage,
        context: Option<&'a mut ExecutionContext<'a>>
    ) -> ExecutionResult; }

Trait EVMC VMs have to implement.

Required methods

fn init() -> Self

This is called once at initialisation time.

fn execute<'a>(
    &self,
    revision: Revision,
    code: &'a [u8],
    message: &'a ExecutionMessage,
    context: Option<&'a mut ExecutionContext<'a>>
) -> ExecutionResult

This is called for every incoming message.

Loading content...

Implementors

Loading content...