[big refactor] Remove crate aliasing. (#4395)

* Rename: Phase 1.

* Unify codec.

* Fixing: Phase 2

* Fixing: Phase 3.

* Fixing: Phase 4.

* Fixing: Phase 5.

* Fixing: Phase 6.

* Fixing: Phase 7.

* Fixing: Phase 8. Tests

* Fixing: Phase 9. Tests!!!

* Fixing: Phase 10. Moar tests!

* Finally done!

* More fixes.

* Rename primitives:: to sp_core::

* Apply renames in finality-grandpa.

* Fix benches.

* Fix benches 2.

* Revert node-template.

* Fix frame-system in our modules.
This commit is contained in:
Tomasz Drwięga
2019-12-16 13:36:49 +01:00
committed by Gavin Wood
parent f14d98a439
commit 8778ca7dc8
485 changed files with 4023 additions and 4005 deletions
+2 -2
View File
@@ -20,11 +20,11 @@
mod tests;
use futures::{channel::{mpsc, oneshot}, compat::Compat};
use api::Receiver;
use sc_rpc_api::Receiver;
use sp_runtime::traits::{self, Header as HeaderT};
use self::error::Result;
pub use api::system::*;
pub use sc_rpc_api::system::*;
pub use self::helpers::{Properties, SystemInfo, Health, PeerInfo, NodeRole};
pub use self::gen_client::Client as SystemClient;
+6 -6
View File
@@ -16,9 +16,9 @@
use super::*;
use network::{self, PeerId};
use network::config::Roles;
use test_client::runtime::Block;
use sc_network::{self, PeerId};
use sc_network::config::Roles;
use substrate_test_runtime_client::runtime::Block;
use assert_matches::assert_matches;
use futures::{prelude::*, channel::mpsc};
use std::thread;
@@ -69,7 +69,7 @@ fn api<T: Into<Option<Status>>>(sync: T) -> System<Block> {
let _ = sender.send(peers);
}
Request::NetworkState(sender) => {
let _ = sender.send(serde_json::to_value(&network::NetworkState {
let _ = sender.send(serde_json::to_value(&sc_network::NetworkState {
peer_id: String::new(),
listened_addresses: Default::default(),
external_addresses: Default::default(),
@@ -211,8 +211,8 @@ fn system_peers() {
fn system_network_state() {
let res = wait_receiver(api(None).system_network_state());
assert_eq!(
serde_json::from_value::<network::NetworkState>(res).unwrap(),
network::NetworkState {
serde_json::from_value::<sc_network::NetworkState>(res).unwrap(),
sc_network::NetworkState {
peer_id: String::new(),
listened_addresses: Default::default(),
external_addresses: Default::default(),