mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 02:21:04 +00:00
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:
committed by
GitHub
parent
40f6d05a4c
commit
927e13c13a
@@ -7,18 +7,18 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core", default-features = false }
|
||||
substrate-finality-grandpa-primitives = { path = "../../primitives/finality-grandpa", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
primitives = { package = "sp-core", path = "../../primitives/core", default-features = false }
|
||||
sp-finality-granpda = { path = "../../primitives/finality-grandpa", default-features = false }
|
||||
rstd = { package = "sp-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sp-runtime = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sp-staking = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
finality-tracker = { package = "pallet-finality-tracker", path = "../finality-tracker", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io" }
|
||||
runtime-io ={ package = "sp-io", path = "../../primitives/sr-io" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -26,11 +26,11 @@ std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"primitives/std",
|
||||
"substrate-finality-grandpa-primitives/std",
|
||||
"sp-finality-granpda/std",
|
||||
"rstd/std",
|
||||
"support/std",
|
||||
"sr-primitives/std",
|
||||
"sr-staking-primitives/std",
|
||||
"sp-runtime/std",
|
||||
"sp-staking/std",
|
||||
"system/std",
|
||||
"session/std",
|
||||
"finality-tracker/std",
|
||||
|
||||
@@ -28,15 +28,15 @@
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
// re-export since this is necessary for `impl_apis` in runtime.
|
||||
pub use substrate_finality_grandpa_primitives as fg_primitives;
|
||||
pub use sp_finality_granpda as fg_primitives;
|
||||
|
||||
use rstd::prelude::*;
|
||||
use codec::{self as codec, Encode, Decode, Error};
|
||||
use support::{decl_event, decl_storage, decl_module, dispatch::Result, storage};
|
||||
use sr_primitives::{
|
||||
use sp_runtime::{
|
||||
generic::{DigestItem, OpaqueDigestItemId}, traits::Zero, Perbill,
|
||||
};
|
||||
use sr_staking_primitives::{
|
||||
use sp_staking::{
|
||||
SessionIndex,
|
||||
offence::{Offence, Kind},
|
||||
};
|
||||
@@ -400,7 +400,7 @@ impl<T: Trait> Module<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Trait> sr_primitives::BoundToRuntimeAppPublic for Module<T> {
|
||||
impl<T: Trait> sp_runtime::BoundToRuntimeAppPublic for Module<T> {
|
||||
type Public = AuthorityId;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use sr_primitives::{Perbill, DigestItem, traits::IdentityLookup, testing::{Header, UintAuthorityId}};
|
||||
use sp_runtime::{Perbill, DigestItem, traits::IdentityLookup, testing::{Header, UintAuthorityId}};
|
||||
use runtime_io;
|
||||
use support::{impl_outer_origin, impl_outer_event, parameter_types, weights::Weight};
|
||||
use primitives::H256;
|
||||
use codec::{Encode, Decode};
|
||||
use crate::{AuthorityId, AuthorityList, GenesisConfig, Trait, Module, ConsensusLog};
|
||||
use substrate_finality_grandpa_primitives::GRANDPA_ENGINE_ID;
|
||||
use sp_finality_granpda::GRANDPA_ENGINE_ID;
|
||||
|
||||
impl_outer_origin!{
|
||||
pub enum Origin for Test {}
|
||||
@@ -53,7 +53,7 @@ impl system::Trait for Test {
|
||||
type BlockNumber = u64;
|
||||
type Call = ();
|
||||
type Hash = H256;
|
||||
type Hashing = sr_primitives::traits::BlakeTwo256;
|
||||
type Hashing = sp_runtime::traits::BlakeTwo256;
|
||||
type AccountId = u64;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Header = Header;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use sr_primitives::{testing::Digest, traits::{Header, OnFinalize}};
|
||||
use sp_runtime::{testing::Digest, traits::{Header, OnFinalize}};
|
||||
use crate::mock::*;
|
||||
use system::{EventRecord, Phase};
|
||||
use codec::{Decode, Encode};
|
||||
@@ -312,7 +312,7 @@ fn time_slot_have_sane_ord() {
|
||||
#[test]
|
||||
#[cfg(feature = "migrate-authorities")]
|
||||
fn authorities_migration() {
|
||||
use sr_primitives::traits::OnInitialize;
|
||||
use sp_runtime::traits::OnInitialize;
|
||||
|
||||
with_externalities(&mut new_test_ext(vec![]), || {
|
||||
let authorities = to_authorities(vec![(1, 1), (2, 1), (3, 1)]);
|
||||
|
||||
Reference in New Issue
Block a user