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
+6 -6
View File
@@ -7,12 +7,12 @@ edition = "2018"
[dependencies]
serde = { version = "1.0.101", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
runtime-io ={ package = "sr-io", path = "../../../primitives/sr-io", default-features = false }
state-machine ={ package = "substrate-state-machine", path = "../../../primitives/state-machine", optional = true }
runtime-io ={ package = "sp-io", path = "../../../primitives/sr-io", default-features = false }
state-machine ={ package = "sp-state-machine", path = "../../../primitives/state-machine", optional = true }
support = { package = "frame-support", version = "2", path = "../", default-features = false }
inherents = { package = "substrate-inherents", path = "../../../primitives/inherents", default-features = false }
sr-primitives = { package = "sr-primitives", path = "../../../primitives/sr-primitives", default-features = false }
primitives = { package = "substrate-primitives", path = "../../../primitives/core", default-features = false }
inherents = { package = "sp-inherents", path = "../../../primitives/inherents", default-features = false }
sp-runtime = { package = "sp-runtime", path = "../../../primitives/sr-primitives", default-features = false }
primitives = { package = "sp-core", path = "../../../primitives/core", default-features = false }
trybuild = "1.0.17"
pretty_assertions = "0.6.1"
@@ -25,6 +25,6 @@ std = [
"support/std",
"inherents/std",
"primitives/std",
"sr-primitives/std",
"sp-runtime/std",
"state-machine",
]
@@ -16,7 +16,7 @@
#![recursion_limit="128"]
use sr_primitives::{generic, BuildStorage, traits::{BlakeTwo256, Block as _, Verify}};
use sp_runtime::{generic, BuildStorage, traits::{BlakeTwo256, Block as _, Verify}};
use support::{
Parameter, traits::Get, parameter_types,
metadata::{
@@ -86,7 +86,7 @@ mod module1 {
}
}
#[derive(PartialEq, Eq, Clone, sr_primitives::RuntimeDebug)]
#[derive(PartialEq, Eq, Clone, sp_runtime::RuntimeDebug)]
pub enum Origin<T: Trait<I>, I> where T::BlockNumber: From<u32> {
Members(u32),
_Phantom(std::marker::PhantomData<(T, I)>),
@@ -148,7 +148,7 @@ mod module2 {
}
}
#[derive(PartialEq, Eq, Clone, sr_primitives::RuntimeDebug)]
#[derive(PartialEq, Eq, Clone, sp_runtime::RuntimeDebug)]
pub enum Origin<T: Trait<I>, I=DefaultInstance> {
Members(u32),
_Phantom(std::marker::PhantomData<(T, I)>),
@@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
use support::sr_primitives::generic;
use support::sr_primitives::traits::{BlakeTwo256, Block as _, Verify};
use support::sp_runtime::generic;
use support::sp_runtime::traits::{BlakeTwo256, Block as _, Verify};
use support::codec::{Encode, Decode};
use primitives::{H256, sr25519};
use serde::{Serialize, Deserialize};
+1 -1
View File
@@ -38,7 +38,7 @@ support::decl_error! {
}
/// Origin for the system module.
#[derive(PartialEq, Eq, Clone, sr_primitives::RuntimeDebug)]
#[derive(PartialEq, Eq, Clone, sp_runtime::RuntimeDebug)]
pub enum RawOrigin<AccountId> {
Root,
Signed(AccountId),