Split up substrate-executor into polkadot-executor.

This commit is contained in:
Gav
2018-02-07 18:44:00 +01:00
parent 02848dc9f6
commit 692770e03f
20 changed files with 445 additions and 356 deletions
+9 -9
View File
@@ -41,10 +41,6 @@ extern crate rustc_hex;
extern crate triehash;
#[macro_use] extern crate log;
// TODO: Remove and split out into polkadot-specific crate.
extern crate native_runtime;
extern crate polkadot_primitives;
#[cfg(test)]
#[macro_use]
extern crate hex_literal;
@@ -55,14 +51,18 @@ extern crate error_chain;
#[cfg(test)]
extern crate assert_matches;
// TODO: move into own crate
macro_rules! map {
($( $name:expr => $value:expr ),*) => (
vec![ $( ( $name, $value ) ),* ].into_iter().collect()
)
}
#[macro_use]
mod wasm_utils;
mod wasm_executor;
mod native_executor;
pub mod error;
/// Creates new RustExecutor for contracts.
pub fn executor() -> native_executor::NativeExecutor {
native_executor::NativeExecutor
}
pub use wasm_executor::WasmExecutor;
pub use native_executor::{NativeExecutionDispatch, NativeExecutor};