Don't reexport bigint from util
This commit is contained in:
@@ -37,6 +37,7 @@ jsonrpc-pubsub = { git = "https://github.com/paritytech/jsonrpc.git", branch = "
|
||||
ethcore-io = { path = "../util/io" }
|
||||
ethcore-ipc = { path = "../ipc/rpc" }
|
||||
ethcore-util = { path = "../util" }
|
||||
ethcore-bigint = { path = "../util/bigint" }
|
||||
ethcore = { path = "../ethcore" }
|
||||
ethcrypto = { path = "../ethcrypto" }
|
||||
ethkey = { path = "../ethkey" }
|
||||
|
||||
@@ -22,7 +22,7 @@ use itertools::Itertools;
|
||||
use rand::Rng;
|
||||
use rand::os::OsRng;
|
||||
use hash::keccak;
|
||||
use util::H256;
|
||||
use bigint::hash::H256;
|
||||
|
||||
/// Providing current time in seconds
|
||||
pub trait TimeProvider {
|
||||
@@ -234,7 +234,7 @@ mod tests {
|
||||
use std::cell::Cell;
|
||||
use hash::keccak;
|
||||
|
||||
use util::H256;
|
||||
use bigint::hash::H256;
|
||||
use super::*;
|
||||
|
||||
fn generate_hash(val: &str, time: u64) -> H256 {
|
||||
|
||||
@@ -44,6 +44,7 @@ extern crate jsonrpc_pubsub;
|
||||
|
||||
extern crate ethash;
|
||||
extern crate ethcore;
|
||||
extern crate ethcore_bigint as bigint;
|
||||
extern crate ethcore_devtools as devtools;
|
||||
extern crate ethcore_io as io;
|
||||
extern crate ethcore_ipc;
|
||||
|
||||
@@ -25,7 +25,7 @@ use ipc;
|
||||
use jsonrpc_core as core;
|
||||
use jsonrpc_pubsub::Session;
|
||||
use ws;
|
||||
use util::H256;
|
||||
use bigint::hash::H256;
|
||||
|
||||
use v1::{Metadata, Origin};
|
||||
use v1::informant::RpcStats;
|
||||
|
||||
@@ -27,7 +27,9 @@ use light::on_demand::{request, OnDemand};
|
||||
use light::TransactionQueue as LightTransactionQueue;
|
||||
use rlp;
|
||||
use hash::keccak;
|
||||
use util::{Address, H520, H256, U256, Bytes, Mutex, RwLock};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::{H256, H520};
|
||||
use util::{Address, Bytes, Mutex, RwLock};
|
||||
use stats::Corpus;
|
||||
|
||||
use ethkey::Signature;
|
||||
|
||||
@@ -18,7 +18,7 @@ use std::sync::Arc;
|
||||
use ethcore::client::MiningBlockChainClient;
|
||||
use ethcore::miner::MinerService;
|
||||
use ethcore::transaction::{Transaction, SignedTransaction, Action};
|
||||
use util::U256;
|
||||
use bigint::prelude::U256;
|
||||
|
||||
use jsonrpc_core::Error;
|
||||
use v1::helpers::CallRequest;
|
||||
|
||||
@@ -37,7 +37,8 @@ use light::on_demand::{request, OnDemand, HeaderRef, Request as OnDemandRequest,
|
||||
use light::request::Field;
|
||||
|
||||
use ethsync::LightSync;
|
||||
use util::{Address, Mutex, U256};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Address, Mutex};
|
||||
|
||||
use v1::helpers::{CallRequest as CallRequestHelper, errors, dispatch};
|
||||
use v1::types::{BlockNumber, CallRequest, Log};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Helper type with all filter state data.
|
||||
|
||||
use std::collections::HashSet;
|
||||
use util::hash::H256;
|
||||
use bigint::hash::H256;
|
||||
use v1::types::{Filter, Log};
|
||||
|
||||
pub type BlockNumber = u64;
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use util::{Address, U256, Bytes};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Address, Bytes};
|
||||
use v1::types::{Origin, TransactionCondition};
|
||||
|
||||
/// Transaction request coming from RPC
|
||||
|
||||
@@ -19,7 +19,8 @@ use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use std::collections::BTreeMap;
|
||||
use jsonrpc_core;
|
||||
use util::{Mutex, RwLock, U256, Address};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Mutex, RwLock, Address};
|
||||
use ethcore::account_provider::DappId;
|
||||
use v1::helpers::{ConfirmationRequest, ConfirmationPayload};
|
||||
use v1::types::{ConfirmationResponse, H160 as RpcH160, Origin, DappId as RpcDappId};
|
||||
@@ -297,7 +298,8 @@ mod test {
|
||||
use std::time::Duration;
|
||||
use std::thread;
|
||||
use std::sync::{mpsc, Arc};
|
||||
use util::{Address, U256, Mutex};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Address, Mutex};
|
||||
use v1::helpers::{SigningQueue, ConfirmationsQueue, QueueEvent, FilledTransactionRequest, ConfirmationPayload};
|
||||
use v1::types::ConfirmationResponse;
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@ use std::sync::Arc;
|
||||
use futures::{self, future, BoxFuture, Future};
|
||||
use rlp::{self, UntrustedRlp};
|
||||
use time::get_time;
|
||||
use util::{H160, H256, Address, U256, H64};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::{H64, H160, H256};
|
||||
use util::Address;
|
||||
use util::Mutex;
|
||||
|
||||
use ethash::SeedHashCompute;
|
||||
|
||||
@@ -23,7 +23,8 @@ use jsonrpc_core::*;
|
||||
use ethcore::miner::MinerService;
|
||||
use ethcore::filter::Filter as EthcoreFilter;
|
||||
use ethcore::client::{BlockChainClient, BlockId};
|
||||
use util::{H256, Mutex};
|
||||
use bigint::hash::H256;
|
||||
use util::Mutex;
|
||||
|
||||
use futures::{future, Future, BoxFuture};
|
||||
|
||||
|
||||
@@ -39,7 +39,8 @@ use light::cache::Cache;
|
||||
use light::on_demand::OnDemand;
|
||||
use light::client::{LightChainClient, LightChainNotify};
|
||||
use parity_reactor::Remote;
|
||||
use util::{RwLock, Mutex, H256, Bytes};
|
||||
use bigint::hash::H256;
|
||||
use util::{RwLock, Mutex, Bytes};
|
||||
|
||||
type Client = Sink<pubsub::Result>;
|
||||
|
||||
|
||||
@@ -39,7 +39,8 @@ use ethcore::transaction::{Action, SignedTransaction, Transaction as EthTransact
|
||||
use ethsync::LightSync;
|
||||
use rlp::UntrustedRlp;
|
||||
use hash::{KECCAK_NULL_RLP, KECCAK_EMPTY_LIST_RLP};
|
||||
use util::{RwLock, Mutex, U256};
|
||||
use bigint::prelude::U256;
|
||||
use util::{RwLock, Mutex};
|
||||
|
||||
use futures::{future, Future, BoxFuture, IntoFuture};
|
||||
use futures::sync::oneshot;
|
||||
@@ -472,7 +473,7 @@ impl Filterable for EthClient {
|
||||
self.client.block_hash(id).map(Into::into)
|
||||
}
|
||||
|
||||
fn pending_transactions_hashes(&self, _block_number: u64) -> Vec<::util::H256> {
|
||||
fn pending_transactions_hashes(&self, _block_number: u64) -> Vec<::bigint::hash::H256> {
|
||||
Vec::new()
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ use std::sync::Arc;
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
use ethcore::transaction::PendingTransaction;
|
||||
|
||||
use util::{Address, U128, ToPretty};
|
||||
use bigint::prelude::U128;
|
||||
use util::{Address, ToPretty};
|
||||
|
||||
use futures::{future, Future, BoxFuture};
|
||||
use jsonrpc_core::Error;
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
|
||||
use std::sync::Arc;
|
||||
use transient_hashmap::TransientHashMap;
|
||||
use util::{U256, Mutex};
|
||||
use bigint::prelude::U256;
|
||||
use util::Mutex;
|
||||
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
|
||||
|
||||
@@ -29,7 +29,9 @@ use ethcore::miner::{MinerOptions, Banning, GasPricer, MinerService, ExternalMin
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
use ethjson::blockchain::BlockChain;
|
||||
use io::IoChannel;
|
||||
use util::{U256, H256, Address};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::H256;
|
||||
use util::Address;
|
||||
|
||||
use jsonrpc_core::IoHandler;
|
||||
use v1::impls::{EthClient, SigningUnsafeClient};
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
|
||||
use std::collections::{BTreeMap, HashMap};
|
||||
use std::collections::hash_map::Entry;
|
||||
use util::{Address, H256, Bytes, U256, RwLock, Mutex};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::H256;
|
||||
use util::{Address, Bytes, RwLock, Mutex};
|
||||
use ethcore::error::Error;
|
||||
use ethcore::client::MiningBlockChainClient;
|
||||
use ethcore::block::ClosedBlock;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use ethcore::snapshot::{ManifestData, RestorationStatus, SnapshotService};
|
||||
|
||||
use util::{Bytes, Mutex};
|
||||
use util::hash::H256;
|
||||
use bigint::hash::H256;
|
||||
|
||||
/// Mocked snapshot service (used for sync info extensions).
|
||||
pub struct TestSnapshotService {
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
//! Test implementation of SyncProvider.
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use util::{H256, RwLock};
|
||||
use bigint::hash::H256;
|
||||
use util::RwLock;
|
||||
use ethsync::{SyncProvider, EthProtocolInfo, SyncStatus, SyncState, PeerInfo, TransactionStats};
|
||||
|
||||
/// TestSyncProvider config.
|
||||
|
||||
@@ -22,7 +22,9 @@ use rustc_hex::{FromHex, ToHex};
|
||||
use time::get_time;
|
||||
use rlp;
|
||||
|
||||
use util::{U256, Address, H256, Mutex};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::H256;
|
||||
use util::{Address, Mutex};
|
||||
use ethkey::Secret;
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
use ethcore::client::{TestBlockChainClient, EachBlockWith, Executed, TransactionId};
|
||||
@@ -533,7 +535,7 @@ fn rpc_eth_transaction_count_by_number_pending() {
|
||||
|
||||
#[test]
|
||||
fn rpc_eth_pending_transaction_by_hash() {
|
||||
use util::H256;
|
||||
use bigint::hash::H256;
|
||||
use rlp;
|
||||
use ethcore::transaction::SignedTransaction;
|
||||
|
||||
|
||||
@@ -485,7 +485,8 @@ fn rpc_parity_local_transactions() {
|
||||
|
||||
#[test]
|
||||
fn rpc_parity_chain_status() {
|
||||
use util::{H256, U256};
|
||||
use bigint::prelude::U256;
|
||||
use bigint::hash::H256;
|
||||
|
||||
let deps = Dependencies::new();
|
||||
let io = deps.default_client();
|
||||
@@ -523,7 +524,7 @@ fn rpc_parity_cid() {
|
||||
|
||||
#[test]
|
||||
fn rpc_parity_call() {
|
||||
use util::U256;
|
||||
use bigint::prelude::U256;
|
||||
|
||||
let deps = Dependencies::new();
|
||||
deps.client.set_execution_result(Ok(Executed {
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
use std::sync::Arc;
|
||||
use std::str::FromStr;
|
||||
use rustc_hex::FromHex;
|
||||
use util::{U256, Address};
|
||||
use bigint::prelude::U256;
|
||||
use util::Address;
|
||||
|
||||
use ethcore::miner::MinerService;
|
||||
use ethcore::client::TestBlockChainClient;
|
||||
|
||||
@@ -21,7 +21,8 @@ use ethcore::account_provider::AccountProvider;
|
||||
use ethcore::client::TestBlockChainClient;
|
||||
use ethcore::transaction::{Action, Transaction};
|
||||
use jsonrpc_core::IoHandler;
|
||||
use util::{U256, Address};
|
||||
use bigint::prelude::U256;
|
||||
use util::Address;
|
||||
|
||||
use v1::{PersonalClient, Personal, Metadata};
|
||||
use v1::helpers::dispatch::FullDispatcher;
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::str::FromStr;
|
||||
use util::{U256, Address, ToPretty};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Address, ToPretty};
|
||||
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
use ethcore::client::TestBlockChainClient;
|
||||
|
||||
@@ -28,7 +28,8 @@ use v1::types::ConfirmationResponse;
|
||||
use v1::tests::helpers::TestMinerService;
|
||||
use v1::tests::mocked::parity;
|
||||
|
||||
use util::{Address, U256, ToPretty};
|
||||
use bigint::prelude::U256;
|
||||
use util::{Address, ToPretty};
|
||||
use ethkey::Secret;
|
||||
use ethcore::account_provider::AccountProvider;
|
||||
use ethcore::client::TestBlockChainClient;
|
||||
|
||||
@@ -124,7 +124,7 @@ impl Serialize for FilterChanges {
|
||||
mod tests {
|
||||
use serde_json;
|
||||
use std::str::FromStr;
|
||||
use util::hash::H256;
|
||||
use bigint::hash::H256;
|
||||
use super::{VariadicValue, Topic, Filter};
|
||||
use v1::types::BlockNumber;
|
||||
use ethcore::filter::Filter as EthFilter;
|
||||
|
||||
@@ -20,7 +20,7 @@ use std::cmp::Ordering;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use serde;
|
||||
use rustc_hex::{ToHex, FromHex};
|
||||
use util::{H64 as Eth64, H160 as Eth160, H256 as Eth256, H520 as Eth520, H512 as Eth512, H2048 as Eth2048};
|
||||
use bigint::hash::{H64 as Eth64, H160 as Eth160, H256 as Eth256, H520 as Eth520, H512 as Eth512, H2048 as Eth2048};
|
||||
|
||||
macro_rules! impl_hash {
|
||||
($name: ident, $other: ident, $size: expr) => {
|
||||
|
||||
@@ -29,8 +29,8 @@ pub struct Histogram {
|
||||
pub counts: Vec<usize>,
|
||||
}
|
||||
|
||||
impl From<::stats::Histogram<::util::U256>> for Histogram {
|
||||
fn from(h: ::stats::Histogram<::util::U256>) -> Self {
|
||||
impl From<::stats::Histogram<::bigint::prelude::U256>> for Histogram {
|
||||
fn from(h: ::stats::Histogram<::bigint::prelude::U256>) -> Self {
|
||||
Histogram {
|
||||
bucket_bounds: h.bucket_bounds.into_iter().map(Into::into).collect(),
|
||||
counts: h.counts
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use std::str::FromStr;
|
||||
use std::fmt;
|
||||
use serde;
|
||||
use util::{U256 as EthU256, U128 as EthU128};
|
||||
use bigint::prelude::{U256 as EthU256, U128 as EthU128};
|
||||
|
||||
macro_rules! impl_uint {
|
||||
($name: ident, $other: ident, $size: expr) => {
|
||||
|
||||
Reference in New Issue
Block a user