Trait tetsy_vm::Exec[][src]

pub trait Exec: Send {
    fn exec(self: Box<Self>, ext: &mut dyn Ext) -> ExecTrapResult<GasLeft>;
}

Virtual Machine interface

Required methods

fn exec(self: Box<Self>, ext: &mut dyn Ext) -> ExecTrapResult<GasLeft>[src]

This function should be used to execute transaction. It returns either an error, a known amount of gas left, or parameters to be used to compute the final gas left.

Loading content...

Implementors

Loading content...