[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
+3 -3
View File
@@ -18,8 +18,8 @@
use std::{collections::HashMap, ops::Deref};
use lazy_static::lazy_static;
use primitives::{ed25519::{Pair, Public, Signature}, Pair as PairT, Public as PublicT, H256};
pub use primitives::ed25519;
use sp_core::{ed25519::{Pair, Public, Signature}, Pair as PairT, Public as PublicT, H256};
pub use sp_core::ed25519;
use sp_runtime::AccountId32;
/// Set of test accounts.
@@ -180,7 +180,7 @@ impl Deref for Keyring {
#[cfg(test)]
mod tests {
use super::*;
use primitives::{ed25519::Pair, Pair as PairT};
use sp_core::{ed25519::Pair, Pair as PairT};
#[test]
fn should_work() {
+3 -3
View File
@@ -19,8 +19,8 @@
use std::collections::HashMap;
use std::ops::Deref;
use lazy_static::lazy_static;
use primitives::{sr25519::{Pair, Public, Signature}, Pair as PairT, Public as PublicT, H256};
pub use primitives::sr25519;
use sp_core::{sr25519::{Pair, Public, Signature}, Pair as PairT, Public as PublicT, H256};
pub use sp_core::sr25519;
use sp_runtime::AccountId32;
/// Set of test accounts.
@@ -181,7 +181,7 @@ impl Deref for Keyring {
#[cfg(test)]
mod tests {
use super::*;
use primitives::{sr25519::Pair, Pair as PairT};
use sp_core::{sr25519::Pair, Pair as PairT};
#[test]
fn should_work() {