mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 23:07:57 +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
@@ -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