[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
@@ -16,10 +16,10 @@
/// Contains the inherents for the AURA module
use inherents::{InherentIdentifier, InherentData, Error};
use sp_inherents::{InherentIdentifier, InherentData, Error};
#[cfg(feature = "std")]
use inherents::{InherentDataProviders, ProvideInherentData};
use sp_inherents::{InherentDataProviders, ProvideInherentData};
/// The Aura inherent identifier.
pub const INHERENT_IDENTIFIER: InherentIdentifier = *b"auraslot";
@@ -93,6 +93,6 @@ impl ProvideInherentData for InherentDataProvider {
fn error_to_string(&self, error: &[u8]) -> Option<String> {
use codec::Decode;
inherents::Error::decode(&mut &error[..]).map(|e| e.into_string()).ok()
sp_inherents::Error::decode(&mut &error[..]).map(|e| e.into_string()).ok()
}
}
@@ -26,7 +26,7 @@ pub mod inherents;
pub mod sr25519 {
mod app_sr25519 {
use app_crypto::{app_crypto, key_types::AURA, sr25519};
use sp_application_crypto::{app_crypto, key_types::AURA, sr25519};
app_crypto!(sr25519, AURA);
}
@@ -43,7 +43,7 @@ pub mod sr25519 {
pub mod ed25519 {
mod app_ed25519 {
use app_crypto::{app_crypto, key_types::AURA, ed25519};
use sp_application_crypto::{app_crypto, key_types::AURA, ed25519};
app_crypto!(ed25519, AURA);
}