[−][src]Trait evmc_vm::EvmcVm
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
&self,
revision: Revision,
code: &'a [u8],
message: &'a ExecutionMessage,
context: Option<&'a mut ExecutionContext<'a>>
) -> ExecutionResult
This is called for every incoming message.