[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
@@ -18,7 +18,7 @@ hash-db = { version = "0.15.2", default-features = false }
trie-db = { version = "0.16.0", default-features = false }
trie-root = { version = "0.15.2", default-features = false }
memory-db = { version = "0.15.2", default-features = false }
primitives = { package = "sp-core", path = "../core", default-features = false }
sp-core = { path = "../core", default-features = false }
[dev-dependencies]
trie-bench = "0.17.0"
@@ -35,5 +35,5 @@ std = [
"memory-db/std",
"trie-db/std",
"trie-root/std",
"primitives/std",
"sp-core/std",
]
+2 -2
View File
@@ -20,11 +20,11 @@ criterion_main!(benches);
fn benchmark(c: &mut Criterion) {
trie_bench::standard_benchmark::<
sp_trie::Layout<primitives::Blake2Hasher>,
sp_trie::Layout<sp_core::Blake2Hasher>,
sp_trie::TrieStream,
>(c, "substrate-blake2");
trie_bench::standard_benchmark::<
sp_trie::Layout<primitives::Blake2Hasher>,
sp_trie::Layout<sp_core::Blake2Hasher>,
sp_trie::TrieStream,
>(c, "substrate-keccak");
}
+1 -1
View File
@@ -425,7 +425,7 @@ mod trie_constants {
mod tests {
use super::*;
use codec::{Encode, Compact};
use primitives::Blake2Hasher;
use sp_core::Blake2Hasher;
use hash_db::{HashDB, Hasher};
use trie_db::{DBValue, TrieMut, Trie, NodeCodec as NodeCodecT};
use trie_standardmap::{Alphabet, ValueMode, StandardMap};
+1 -1
View File
@@ -22,7 +22,7 @@ use sp_std::iter::once;
/// A node header
#[derive(Copy, Clone, PartialEq, Eq)]
#[derive(primitives::RuntimeDebug)]
#[derive(sp_core::RuntimeDebug)]
pub(crate) enum NodeHeader {
Null,
Branch(bool, usize),