17 lines
242 B
Rust
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;
|
|
}
|