mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 15:41:02 +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
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "sr-primitives"
|
||||
name = "sp-runtime"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -7,16 +7,16 @@ 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 = "../core", default-features = false }
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../application-crypto", default-features = false }
|
||||
arithmetic = { package = "sr-arithmetic", path = "../sr-arithmetic", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
runtime_io = { package = "sr-io", path = "../sr-io", default-features = false }
|
||||
primitives = { package = "sp-core", path = "../core", default-features = false }
|
||||
app-crypto = { package = "sc-application-crypto", path = "../application-crypto", default-features = false }
|
||||
arithmetic = { package = "sp-arithmetic", path = "../sr-arithmetic", default-features = false }
|
||||
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
|
||||
runtime_io = { package = "sp-io", path = "../sr-io", default-features = false }
|
||||
log = { version = "0.4.8", optional = true }
|
||||
paste = "0.1.6"
|
||||
rand = { version = "0.7.2", optional = true }
|
||||
impl-trait-for-tuples = "0.1.3"
|
||||
inherents = { package = "substrate-inherents", path = "../inherents", default-features = false }
|
||||
inherents = { package = "sp-inherents", path = "../inherents", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json = "1.0.41"
|
||||
|
||||
@@ -583,15 +583,15 @@ macro_rules! impl_outer_config {
|
||||
///
|
||||
/// ```rust
|
||||
/// # fn main() {
|
||||
/// sr_primitives::assert_eq_error_rate!(10, 10, 0);
|
||||
/// sr_primitives::assert_eq_error_rate!(10, 11, 1);
|
||||
/// sr_primitives::assert_eq_error_rate!(12, 10, 2);
|
||||
/// sp_runtime::assert_eq_error_rate!(10, 10, 0);
|
||||
/// sp_runtime::assert_eq_error_rate!(10, 11, 1);
|
||||
/// sp_runtime::assert_eq_error_rate!(12, 10, 2);
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// ```rust,should_panic
|
||||
/// # fn main() {
|
||||
/// sr_primitives::assert_eq_error_rate!(12, 10, 1);
|
||||
/// sp_runtime::assert_eq_error_rate!(12, 10, 1);
|
||||
/// # }
|
||||
/// ```
|
||||
#[macro_export]
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
//! A high-level helpers for making HTTP requests from Offchain Workers.
|
||||
//!
|
||||
//! `sr-io` crate exposes a low level methods to make and control HTTP requests
|
||||
//! `sp-io` crate exposes a low level methods to make and control HTTP requests
|
||||
//! available only for Offchain Workers. Those might be hard to use
|
||||
//! and usually that level of control is not really necessary.
|
||||
//! This module aims to provide high-level wrappers for those APIs
|
||||
@@ -25,7 +25,7 @@
|
||||
//!
|
||||
//! Example:
|
||||
//! ```rust,no_run
|
||||
//! use sr_primitives::offchain::http::Request;
|
||||
//! use sp_runtime::offchain::http::Request;
|
||||
//!
|
||||
//! // initiate a GET request to localhost:1234
|
||||
//! let request: Request = Request::get("http://localhost:1234");
|
||||
|
||||
@@ -28,8 +28,8 @@ use crate::traits::{Hash, TrailingZeroInput};
|
||||
///
|
||||
/// Example:
|
||||
/// ```
|
||||
/// use sr_primitives::traits::{Hash, BlakeTwo256};
|
||||
/// use sr_primitives::RandomNumberGenerator;
|
||||
/// use sp_runtime::traits::{Hash, BlakeTwo256};
|
||||
/// use sp_runtime::RandomNumberGenerator;
|
||||
/// let random_seed = BlakeTwo256::hash(b"Sixty-nine");
|
||||
/// let mut rng = <RandomNumberGenerator<BlakeTwo256>>::new(random_seed);
|
||||
/// assert_eq!(rng.pick_u32(100), 59);
|
||||
|
||||
@@ -1112,7 +1112,7 @@ macro_rules! count {
|
||||
/// `KeyTypeIdProviders` is set to the types given as fields.
|
||||
///
|
||||
/// ```rust
|
||||
/// use sr_primitives::{
|
||||
/// use sp_runtime::{
|
||||
/// impl_opaque_keys, KeyTypeId, BoundToRuntimeAppPublic, app_crypto::{sr25519, ed25519}
|
||||
/// };
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user