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,15 +6,15 @@ edition = "2018"
[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
rstd = { package = "sp-std", path = "../../primitives/sr-std", default-features = false }
sp-runtime = { path = "../../primitives/sr-primitives", default-features = false }
support = { package = "frame-support", path = "../support", default-features = false }
system = { package = "frame-system", path = "../system", default-features = false }
transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rpc-runtime-api", path = "./rpc/runtime-api", default-features = false }
[dev-dependencies]
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
runtime-io = { package = "sp-io", path = "../../primitives/sr-io" }
primitives = { package = "sp-core", path = "../../primitives/core" }
balances = { package = "pallet-balances", path = "../balances" }
[features]
@@ -22,7 +22,7 @@ default = ["std"]
std = [
"codec/std",
"rstd/std",
"sr-primitives/std",
"sp-runtime/std",
"support/std",
"system/std",
"transaction-payment-rpc-runtime-api/std"
@@ -9,9 +9,9 @@ codec = { package = "parity-scale-codec", version = "1.0.0" }
jsonrpc-core = "14.0.3"
jsonrpc-core-client = "14.0.3"
jsonrpc-derive = "14.0.3"
primitives = { package = "substrate-primitives", path = "../../../primitives/core" }
rpc-primitives = { package = "substrate-rpc-primitives", path = "../../../primitives/rpc" }
primitives = { package = "sp-core", path = "../../../primitives/core" }
rpc-primitives = { package = "sp-rpc", path = "../../../primitives/rpc" }
serde = { version = "1.0.101", features = ["derive"] }
sr-primitives = { path = "../../../primitives/sr-primitives" }
sp-runtime = { path = "../../../primitives/sr-primitives" }
sp-blockchain = { path = "../../../primitives/blockchain" }
pallet-transaction-payment-rpc-runtime-api = { path = "./runtime-api" }
@@ -6,10 +6,10 @@ edition = "2018"
[dependencies]
serde = { version = "1.0.101", optional = true, features = ["derive"] }
sr-api = { path = "../../../../primitives/sr-api", default-features = false }
sp-api = { path = "../../../../primitives/sr-api", default-features = false }
codec = { package = "parity-scale-codec", version = "1.0.6", default-features = false, features = ["derive"] }
rstd = { package = "sr-std", path = "../../../../primitives/sr-std", default-features = false }
sr-primitives = { path = "../../../../primitives/sr-primitives", default-features = false }
rstd = { package = "sp-std", path = "../../../../primitives/sr-std", default-features = false }
sp-runtime = { path = "../../../../primitives/sr-primitives", default-features = false }
support = { package = "frame-support", path = "../../../support", default-features = false }
[dev-dependencies]
@@ -19,8 +19,8 @@ serde_json = "1.0.41"
default = ["std"]
std = [
"serde",
"sr-api/std",
"sp-api/std",
"codec/std",
"rstd/std",
"sr-primitives/std",
"sp-runtime/std",
]
@@ -38,7 +38,7 @@ pub struct RuntimeDispatchInfo<Balance> {
pub partial_fee: Balance,
}
sr_api::decl_runtime_apis! {
sp_api::decl_runtime_apis! {
pub trait TransactionPaymentApi<Balance, Extrinsic> where
Balance: Codec,
Extrinsic: Codec,
@@ -21,7 +21,7 @@ use codec::{Codec, Decode};
use sp_blockchain::HeaderBackend;
use jsonrpc_core::{Error as RpcError, ErrorCode, Result};
use jsonrpc_derive::rpc;
use sr_primitives::{
use sp_runtime::{
generic::BlockId,
traits::{Block as BlockT, ProvideRuntimeApi},
};
@@ -38,7 +38,7 @@ use support::{
traits::{Currency, Get, OnUnbalanced, ExistenceRequirement, WithdrawReason},
weights::{Weight, DispatchInfo, GetDispatchInfo},
};
use sr_primitives::{
use sp_runtime::{
Fixed64,
transaction_validity::{
TransactionPriority, ValidTransaction, InvalidTransaction, TransactionValidityError,
@@ -242,7 +242,7 @@ mod tests {
weights::{DispatchClass, DispatchInfo, GetDispatchInfo, Weight},
};
use primitives::H256;
use sr_primitives::{
use sp_runtime::{
Perbill,
testing::{Header, TestXt},
traits::{BlakeTwo256, IdentityLookup, Extrinsic},