The crate rename (#4223)

* Adding script for rename, could be applicable for nodes on top of it, too

* add stderr and gitlab ci features

* apply script

* fix now minor details in expected stderr

* Update the Cargo.lock

* fix name: sc-transaction -> sc-tracing

* fix rename in script, too
This commit is contained in:
Benjamin Kampmann
2019-12-02 11:23:53 +01:00
committed by GitHub
parent 40f6d05a4c
commit 927e13c13a
468 changed files with 3383 additions and 3271 deletions
+5 -5
View File
@@ -8,23 +8,23 @@ edition = "2018"
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
# Needed for various traits. In our case, `OnFinalize`.
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
sp-runtime = { path = "../../primitives/sr-primitives", default-features = false }
# Needed for type-safe access to storage DB.
support = { package = "frame-support", path = "../support", default-features = false }
# `system` module provides us with all sorts of useful stuff and macros depend on it being around.
system = { package = "frame-system", path = "../system", default-features = false }
[dev-dependencies]
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
rstd = { package = "sr-std", path = "../../primitives/sr-std" }
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
primitives = { package = "sp-core", path = "../../primitives/core" }
rstd = { package = "sp-std", path = "../../primitives/sr-std" }
runtime-io = { package = "sp-io", path = "../../primitives/sr-io" }
[features]
default = ["std"]
std = [
"serde",
"codec/std",
"sr-primitives/std",
"sp-runtime/std",
"support/std",
"system/std",
]
+3 -3
View File
@@ -131,9 +131,9 @@
#![cfg_attr(not(feature = "std"), no_std)]
use support::{Parameter, decl_module, decl_event, decl_storage, ensure};
use sr_primitives::traits::{Member, SimpleArithmetic, Zero, StaticLookup};
use sp_runtime::traits::{Member, SimpleArithmetic, Zero, StaticLookup};
use system::ensure_signed;
use sr_primitives::traits::One;
use sp_runtime::traits::One;
/// The module configuration trait.
pub trait Trait: system::Trait {
@@ -244,7 +244,7 @@ mod tests {
use primitives::H256;
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
use sr_primitives::{Perbill, traits::{BlakeTwo256, IdentityLookup}, testing::Header};
use sp_runtime::{Perbill, traits::{BlakeTwo256, IdentityLookup}, testing::Header};
impl_outer_origin! {
pub enum Origin for Test {}