Don't reexport bigint from util

This commit is contained in:
Fredrik
2017-09-04 16:36:49 +02:00
parent 56f46edab8
commit 308f36a532
285 changed files with 675 additions and 332 deletions

View File

@@ -6,6 +6,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
byteorder = "1.0"
ethcore-util = { path = "../../util" }
ethcore-bigint = { path = "../../util/bigint" }
log = "0.3"
common-types = { path = "../types" }
evmjit = { path = "../../evmjit", optional = true }

View File

@@ -15,8 +15,9 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
//! Evm input params.
use util::{Address, Bytes, U256};
use util::hash::{H256};
use bigint::prelude::U256;
use bigint::hash::{H256};
use util::{Address, Bytes};
use hash::{keccak, KECCAK_EMPTY};
use ethjson;

View File

@@ -19,7 +19,9 @@
use std::cmp;
use std::sync::Arc;
use hash::keccak;
use util::{U256, Address, H256};
use bigint::hash::H256;
use bigint::prelude::U256;
use util::Address;
use types::BlockNumber;
use ethjson;
@@ -79,7 +81,8 @@ impl From<ethjson::vm::Env> for EnvInfo {
mod tests {
use std::str::FromStr;
use super::*;
use util::{U256, Address};
use bigint::prelude::U256;
use util::Address;
use ethjson;
#[test]

View File

@@ -17,6 +17,8 @@
//! Interface for Evm externalities.
use std::sync::Arc;
use bigint::prelude::U256;
use bigint::hash::H256;
use util::*;
use call_type::CallType;
use env_info::EnvInfo;

View File

@@ -17,6 +17,7 @@
//! Virtual machines support library
extern crate ethcore_util as util;
extern crate ethcore_bigint as bigint;
extern crate common_types as types;
extern crate ethjson;
extern crate rlp;

View File

@@ -14,7 +14,7 @@
//! Return data structures
use util::U256;
use bigint::prelude::U256;
/// Return data buffer. Holds memory from a previous call and a slice into that memory.
#[derive(Debug)]
@@ -65,4 +65,4 @@ pub enum GasLeft {
/// Apply or revert state changes on revert.
apply_state: bool
},
}
}

View File

@@ -17,7 +17,9 @@
use std::sync::Arc;
use std::collections::{HashMap, HashSet};
use util::{H256, U256, Address, Bytes};
use bigint::prelude::U256;
use bigint::hash::H256;
use util::{Address, Bytes};
use {
CallType, Schedule, EnvInfo,
ReturnData, Ext, ContractCreateResult, MessageCallResult,