mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 02:08:02 +00:00
Rename: primitives/sr-io -> primitives/sp-io (#4328)
* primitives/sr-io -> primitives/io * fix * rename * runtime-io -> sp-io * git mv * fix ci * remove package name * fix * fix * try minimizing diff * try minimizing diff again * try minimizing diff again
This commit is contained in:
committed by
Bastian Köcher
parent
1f84d6d41d
commit
4f2cdb20c1
@@ -18,7 +18,7 @@ timestamp = { package = "pallet-timestamp", path = "../timestamp", default-featu
|
||||
sp-timestamp = { path = "../../primitives/timestamp", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
babe-primitives = { package = "sp-consensus-babe", path = "../../primitives/consensus/babe", default-features = false }
|
||||
runtime-io ={ package = "sp-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sp-io ={ path = "../../primitives/io", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
lazy_static = "1.4.0"
|
||||
@@ -42,5 +42,5 @@ std = [
|
||||
"inherents/std",
|
||||
"babe-primitives/std",
|
||||
"session/std",
|
||||
"runtime-io/std",
|
||||
"sp-io/std",
|
||||
]
|
||||
|
||||
@@ -523,7 +523,7 @@ fn compute_randomness(
|
||||
s.extend_from_slice(&vrf_output[..]);
|
||||
}
|
||||
|
||||
runtime_io::hashing::blake2_256(&s)
|
||||
sp_io::hashing::blake2_256(&s)
|
||||
}
|
||||
|
||||
impl<T: Trait> ProvideInherent for Module<T> {
|
||||
|
||||
@@ -24,7 +24,7 @@ use sp_runtime::{
|
||||
};
|
||||
use sp_version::RuntimeVersion;
|
||||
use support::{impl_outer_origin, parameter_types, weights::Weight};
|
||||
use runtime_io;
|
||||
use sp_io;
|
||||
use primitives::{H256, Blake2Hasher};
|
||||
|
||||
impl_outer_origin!{
|
||||
@@ -97,7 +97,7 @@ impl Trait for Test {
|
||||
type EpochChangeTrigger = crate::ExternalTrigger;
|
||||
}
|
||||
|
||||
pub fn new_test_ext(authorities: Vec<DummyValidatorId>) -> runtime_io::TestExternalities {
|
||||
pub fn new_test_ext(authorities: Vec<DummyValidatorId>) -> sp_io::TestExternalities {
|
||||
let mut t = system::GenesisConfig::default().build_storage::<Test>().unwrap();
|
||||
GenesisConfig {
|
||||
authorities: authorities.into_iter().map(|a| (UintAuthorityId(a).to_public_key(), 1)).collect(),
|
||||
|
||||
Reference in New Issue
Block a user