openethereum/src/evm/evm.rs
2015-12-29 12:37:38 +01:00

17 lines
241 B
Rust

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