[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
+7 -7
View File
@@ -21,16 +21,16 @@ use std::{
thread::sleep,
};
use primitives::offchain::OffchainStorage;
use sp_core::offchain::OffchainStorage;
use futures::Future;
use log::error;
use network::{PeerId, Multiaddr, NetworkStateInfo};
use sc_network::{PeerId, Multiaddr, NetworkStateInfo};
use codec::{Encode, Decode};
use primitives::offchain::{
use sp_core::offchain::{
Externalities as OffchainExt, HttpRequestId, Timestamp, HttpRequestStatus, HttpError,
OpaqueNetworkState, OpaquePeerId, OpaqueMultiaddr, StorageKind,
};
pub use offchain_primitives::STORAGE_PREFIX;
pub use sp_offchain::STORAGE_PREFIX;
#[cfg(not(target_os = "unknown"))]
mod http;
@@ -282,8 +282,8 @@ impl AsyncApi {
mod tests {
use super::*;
use std::{convert::{TryFrom, TryInto}, time::SystemTime};
use client_db::offchain::LocalStorage;
use network::PeerId;
use sc_client_db::offchain::LocalStorage;
use sc_network::PeerId;
struct MockNetworkStateInfo();
@@ -331,7 +331,7 @@ mod tests {
// Arrange.
let now = api.timestamp();
let delta = primitives::offchain::Duration::from_millis(100);
let delta = sp_core::offchain::Duration::from_millis(100);
let deadline = now.add(delta);
// Act.