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
+2 -2
View File
@@ -20,8 +20,8 @@ use std::sync::Arc;
use std::collections::HashMap;
use primitives::ChangesTrieConfiguration;
use primitives::offchain::OffchainStorage;
use sr_primitives::{generic::BlockId, Justification, StorageOverlay, ChildrenStorageOverlay};
use sr_primitives::traits::{Block as BlockT, NumberFor};
use sp_runtime::{generic::BlockId, Justification, StorageOverlay, ChildrenStorageOverlay};
use sp_runtime::traits::{Block as BlockT, NumberFor};
use state_machine::backend::Backend as StateBackend;
use state_machine::{ChangesTrieStorage as StateChangesTrieStorage, ChangesTrieTransaction};
use crate::{
+2 -2
View File
@@ -18,7 +18,7 @@
use std::{cmp::Ord, panic::UnwindSafe, result, cell::RefCell};
use codec::{Encode, Decode};
use sr_primitives::{
use sp_runtime::{
generic::BlockId, traits::Block as BlockT, traits::NumberFor,
};
use state_machine::{
@@ -30,7 +30,7 @@ use externalities::Extensions;
use hash_db::Hasher;
use primitives::{Blake2Hasher, NativeOrEncoded};
use sr_api::{ProofRecorder, InitializeBlock};
use sp_api::{ProofRecorder, InitializeBlock};
use sp_blockchain;
/// Method call executor.
+1 -1
View File
@@ -19,7 +19,7 @@
use std::collections::HashMap;
use futures::channel::mpsc;
use primitives::storage::StorageKey;
use sr_primitives::{
use sp_runtime::{
traits::{Block as BlockT, NumberFor},
generic::BlockId
};
@@ -27,7 +27,7 @@ use primitives::{
offchain::{self, OffchainExt, TransactionPoolExt},
traits::{BareCryptoStorePtr, KeystoreExt},
};
use sr_primitives::{
use sp_runtime::{
generic::BlockId,
traits,
};
+1 -1
View File
@@ -39,7 +39,7 @@ pub use state_machine::{StorageProof, ExecutionStrategy};
pub mod utils {
use sp_blockchain::{HeaderBackend, HeaderMetadata, Error};
use primitives::H256;
use sr_primitives::traits::{Block as BlockT};
use sp_runtime::traits::{Block as BlockT};
use std::borrow::Borrow;
/// Returns a function for checking block ancestry, the returned function will
+1 -1
View File
@@ -20,7 +20,7 @@ use std::sync::Arc;
use std::collections::{BTreeMap, HashMap};
use std::future::Future;
use sr_primitives::{
use sp_runtime::{
traits::{
Block as BlockT, Header as HeaderT, NumberFor,
},
+2 -2
View File
@@ -24,7 +24,7 @@ use std::{
use fnv::{FnvHashSet, FnvHashMap};
use futures::channel::mpsc;
use primitives::storage::{StorageKey, StorageData};
use sr_primitives::traits::Block as BlockT;
use sp_runtime::traits::Block as BlockT;
/// Storage change set
#[derive(Debug)]
@@ -307,7 +307,7 @@ impl<Block: BlockT> StorageNotifications<Block> {
#[cfg(test)]
mod tests {
use sr_primitives::testing::{H256 as Hash, Block as RawBlock, ExtrinsicWrapper};
use sp_runtime::testing::{H256 as Hash, Block as RawBlock, ExtrinsicWrapper};
use super::*;
use std::iter::{empty, Empty};