openethereum/src/evm/evm.rs
2016-01-07 19:20:23 +01:00

17 lines
242 B
Rust

//! Evm interface.
use evm::{RuntimeData, Ext};
#[derive(Debug, Eq, PartialEq)]
pub enum ReturnCode {
Stop,
Return,
Suicide,
OutOfGas,
InternalError
}
pub trait Evm {
fn exec(&self, data: RuntimeData, ext: &mut Ext) -> ReturnCode;
}