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
+10 -10
View File
@@ -1,6 +1,6 @@
[package]
description = "Substrate offchain workers"
name = "substrate-offchain"
name = "sc-offchain"
version = "2.0.0"
license = "GPL-3.0"
authors = ["Parity Technologies <admin@parity.io>"]
@@ -8,8 +8,8 @@ edition = "2018"
[dependencies]
bytes = "0.4.12"
client-api = { package = "substrate-client-api", path = "../api" }
sr-api = { path = "../../primitives/sr-api" }
client-api = { package = "sc-client-api", path = "../api" }
sp-api = { path = "../../primitives/sr-api" }
fnv = "1.0.6"
futures01 = { package = "futures", version = "0.1" }
futures = "0.3.1"
@@ -17,25 +17,25 @@ futures-timer = "2.0"
log = "0.4.8"
threadpool = "1.7"
num_cpus = "1.10"
offchain-primitives = { package = "substrate-offchain-primitives", path = "../../primitives/offchain" }
offchain-primitives = { package = "sp-offchain", path = "../../primitives/offchain" }
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
parking_lot = "0.9.0"
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
primitives = { package = "sp-core", path = "../../primitives/core" }
rand = "0.7.2"
sr-primitives = { path = "../../primitives/sr-primitives" }
network = { package = "substrate-network", path = "../network" }
keystore = { package = "substrate-keystore", path = "../keystore" }
sp-runtime = { path = "../../primitives/sr-primitives" }
network = { package = "sc-network", path = "../network" }
keystore = { package = "sc-keystore", path = "../keystore" }
[target.'cfg(not(target_os = "unknown"))'.dependencies]
hyper = "0.12.35"
hyper-rustls = "0.17.1"
[dev-dependencies]
client-db = { package = "substrate-client-db", path = "../db/", default-features = true }
client-db = { package = "sc-client-db", path = "../db/", default-features = true }
env_logger = "0.7.0"
test-client = { package = "substrate-test-runtime-client", path = "../../test/utils/runtime/client" }
tokio = "0.1.22"
txpool = { package = "sc-transaction-pool", path = "../../client/transaction-pool" }
txpool = { package = "sc-tracing-pool", path = "../../client/transaction-pool" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
[features]
+3 -3
View File
@@ -37,12 +37,12 @@ use std::{fmt, marker::PhantomData, sync::Arc};
use parking_lot::Mutex;
use threadpool::ThreadPool;
use sr_api::ApiExt;
use sp_api::ApiExt;
use futures::future::Future;
use log::{debug, warn};
use network::NetworkStateInfo;
use primitives::{offchain::{self, OffchainStorage}, ExecutionContext};
use sr_primitives::{generic::BlockId, traits::{self, ProvideRuntimeApi}};
use sp_runtime::{generic::BlockId, traits::{self, ProvideRuntimeApi}};
mod api;
@@ -169,7 +169,7 @@ mod tests {
fn submit_at(
&self,
at: &BlockId<Block>,
extrinsic: <Block as sr_primitives::traits::Block>::Extrinsic,
extrinsic: <Block as sp_runtime::traits::Block>::Extrinsic,
) -> Result<(), ()> {
futures::executor::block_on(self.0.submit_one(&at, extrinsic))
.map(|_| ())