mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 23:07:57 +00:00
Rename: primitives/sr-std -> primitives/sp-std (#4327)
* primitives/sr-std -> primitives/std * fix * fix conflict * rstd -> sp-std * git mv * fix review * fix merge
This commit is contained in:
@@ -255,7 +255,7 @@ mod slashing;
|
||||
|
||||
pub mod inflation;
|
||||
|
||||
use rstd::{prelude::*, result};
|
||||
use sp_std::{prelude::*, result};
|
||||
use codec::{HasCompact, Encode, Decode};
|
||||
use support::{
|
||||
decl_module, decl_event, decl_storage, ensure,
|
||||
@@ -445,7 +445,7 @@ impl<AccountId, Balance> StakingLedger<AccountId, Balance> where
|
||||
// don't leave a dust balance in the staking system.
|
||||
if *target <= minimum_balance {
|
||||
slash_from_target += *target;
|
||||
*value += rstd::mem::replace(target, Zero::zero());
|
||||
*value += sp_std::mem::replace(target, Zero::zero());
|
||||
}
|
||||
|
||||
*total_remaining = total_remaining.saturating_sub(slash_from_target);
|
||||
@@ -1304,7 +1304,7 @@ impl<T: Trait> Module<T> {
|
||||
let points = CurrentEraPointsEarned::take();
|
||||
let now = T::Time::now();
|
||||
let previous_era_start = <CurrentEraStart<T>>::mutate(|v| {
|
||||
rstd::mem::replace(v, now)
|
||||
sp_std::mem::replace(v, now)
|
||||
});
|
||||
let era_duration = now - previous_era_start;
|
||||
if !era_duration.is_zero() {
|
||||
@@ -1641,7 +1641,7 @@ impl<T: Trait + authorship::Trait> authorship::EventHandler<T::AccountId, T::Blo
|
||||
|
||||
/// A `Convert` implementation that finds the stash of the given controller account,
|
||||
/// if any.
|
||||
pub struct StashOf<T>(rstd::marker::PhantomData<T>);
|
||||
pub struct StashOf<T>(sp_std::marker::PhantomData<T>);
|
||||
|
||||
impl<T: Trait> Convert<T::AccountId, Option<T::AccountId>> for StashOf<T> {
|
||||
fn convert(controller: T::AccountId) -> Option<T::AccountId> {
|
||||
@@ -1651,7 +1651,7 @@ impl<T: Trait> Convert<T::AccountId, Option<T::AccountId>> for StashOf<T> {
|
||||
|
||||
/// A typed conversion from stash account ID to the current exposure of nominators
|
||||
/// on that account.
|
||||
pub struct ExposureOf<T>(rstd::marker::PhantomData<T>);
|
||||
pub struct ExposureOf<T>(sp_std::marker::PhantomData<T>);
|
||||
|
||||
impl<T: Trait> Convert<T::AccountId, Option<Exposure<T::AccountId, BalanceOf<T>>>>
|
||||
for ExposureOf<T>
|
||||
@@ -1751,7 +1751,7 @@ impl <T: Trait> OnOffenceHandler<T::AccountId, session::historical::Identificati
|
||||
|
||||
/// Filter historical offences out and only allow those from the bonding period.
|
||||
pub struct FilterHistoricalOffences<T, R> {
|
||||
_inner: rstd::marker::PhantomData<(T, R)>,
|
||||
_inner: sp_std::marker::PhantomData<(T, R)>,
|
||||
}
|
||||
|
||||
impl<T, Reporter, Offender, R, O> ReportOffence<Reporter, Offender, O>
|
||||
|
||||
Reference in New Issue
Block a user