Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 2a7ed45

Browse files
authored
Remove CallContract and RegistryInfo re-exports from ethcore/client (#10205)
* Remove re-export of `CallContract` and `RegistryInfo` from `ethcore/client` * Remove CallContract and RegistryInfo re-exports again This was missed while fixing merge conflicts
1 parent 35bbf11 commit 2a7ed45

File tree

25 files changed

+45
-22
lines changed

25 files changed

+45
-22
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ethcore = { path = "ethcore", features = ["parity"] }
3434
parity-bytes = "0.1"
3535
common-types = { path = "ethcore/types" }
3636
ethcore-blockchain = { path = "ethcore/blockchain" }
37+
ethcore-call-contract = { path = "ethcore/call-contract"}
3738
ethcore-db = { path = "ethcore/db" }
3839
ethcore-io = { path = "util/io" }
3940
ethcore-light = { path = "ethcore/light" }

ethcore/private-tx/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ethabi = "6.0"
1212
ethabi-contract = "6.0"
1313
ethabi-derive = "6.0"
1414
ethcore = { path = ".." }
15+
ethcore-call-contract = { path = "../call-contract" }
1516
ethcore-io = { path = "../../util/io" }
1617
ethcore-miner = { path = "../../miner" }
1718
ethereum-types = "0.4"

ethcore/private-tx/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ mod error;
2828
extern crate common_types as types;
2929
extern crate ethabi;
3030
extern crate ethcore;
31+
extern crate ethcore_call_contract as call_contract;
3132
extern crate ethcore_io as io;
3233
extern crate ethcore_miner;
3334
extern crate ethereum_types;
@@ -82,11 +83,12 @@ use types::transaction::{SignedTransaction, Transaction, Action, UnverifiedTrans
8283
use ethcore::{contract_address as ethcore_contract_address};
8384
use ethcore::client::{
8485
Client, ChainNotify, NewBlocks, ChainMessageType, ClientIoMessage, BlockId,
85-
CallContract, Call, BlockInfo
86+
Call, BlockInfo
8687
};
8788
use ethcore::account_provider::AccountProvider;
8889
use ethcore::miner::{self, Miner, MinerService, pool_client::NonceCache};
8990
use ethcore::trace::{Tracer, VMTracer};
91+
use call_contract::CallContract;
9092
use rustc_hex::FromHex;
9193
use ethkey::Password;
9294
use ethabi::FunctionOutputDecoder;

ethcore/src/client/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ pub use types::trace_filter::Filter as TraceFilter;
4848
pub use types::pruning_info::PruningInfo;
4949
pub use types::call_analytics::CallAnalytics;
5050

51-
// TODO: Get rid of re-exports: https://github.com/paritytech/parity-ethereum/issues/10130
52-
pub use call_contract::{CallContract, RegistryInfo};
53-
5451
pub use executive::{Executed, Executive, TransactOptions};
5552
pub use vm::{LastHashes, EnvInfo};
5653

ethcore/src/engines/validator_set/contract.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ mod tests {
145145
use miner::MinerService;
146146
use types::ids::BlockId;
147147
use test_helpers::generate_dummy_client_with_spec_and_accounts;
148-
use client::{BlockChainClient, ChainInfo, BlockInfo, CallContract};
148+
use call_contract::CallContract;
149+
use client::{BlockChainClient, ChainInfo, BlockInfo};
149150
use super::super::ValidatorSet;
150151
use super::ValidatorContract;
151152

ethcore/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@
6060
extern crate ansi_term;
6161
extern crate bn;
6262
extern crate byteorder;
63-
extern crate ethcore_call_contract as call_contract;
6463
extern crate common_types as types;
6564
extern crate crossbeam;
6665
extern crate ethabi;
6766
extern crate ethash;
6867
extern crate ethcore_blockchain as blockchain;
6968
extern crate ethcore_bloom_journal as bloom_journal;
69+
extern crate ethcore_call_contract as call_contract;
7070
extern crate ethcore_db as db;
7171
extern crate ethcore_io as io;
7272
extern crate ethcore_miner;

ethcore/src/machine.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ use vm::{EnvInfo, Schedule, CreateContractAddress};
3030

3131
use block::{ExecutedBlock, IsBlock};
3232
use builtin::Builtin;
33-
use client::{BlockInfo, CallContract};
33+
use call_contract::CallContract;
34+
use client::BlockInfo;
3435
use error::Error;
3536
use executive::Executive;
3637
use spec::CommonParams;

ethcore/src/miner/miner.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use std::sync::Arc;
2121

2222
use ansi_term::Colour;
2323
use bytes::Bytes;
24+
use call_contract::CallContract;
2425
use ethcore_miner::gas_pricer::GasPricer;
2526
use ethcore_miner::pool::{self, TransactionQueue, VerifiedTransaction, QueueStatus, PrioritizationStrategy};
2627
#[cfg(feature = "work-notify")]
@@ -48,7 +49,7 @@ use using_queue::{UsingQueue, GetAction};
4849
use account_provider::{AccountProvider, SignError as AccountError};
4950
use block::{ClosedBlock, IsBlock, SealedBlock};
5051
use client::{
51-
BlockChain, ChainInfo, CallContract, BlockProducer, SealedBlockImporter, Nonce, TransactionInfo, TransactionId
52+
BlockChain, ChainInfo, BlockProducer, SealedBlockImporter, Nonce, TransactionInfo, TransactionId
5253
};
5354
use client::{BlockId, ClientIoMessage};
5455
use engines::{EthEngine, Seal};

ethcore/src/miner/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ use types::header::Header;
4242
use types::receipt::RichReceipt;
4343

4444
use block::SealedBlock;
45+
use call_contract::{CallContract, RegistryInfo};
4546
use client::{
46-
CallContract, RegistryInfo, ScheduleInfo,
47+
ScheduleInfo,
4748
BlockChain, BlockProducer, SealedBlockImporter, ChainInfo,
4849
AccountData, Nonce,
4950
};

0 commit comments

Comments
 (0)