Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pallets/runtime/common/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ macro_rules! misc_pallet_impls {
type SlashDeferDuration = SlashDeferDuration;
type AdminOrigin = polymesh_primitives::EnsureRoot;
type SessionInterface = Self;
type EraPayout = pallet_staking::ConvertCurve<RewardCurve>;
type EraPayout = pallet_staking::PolymeshConvertCurve<Self, RewardCurve>;
type NextNewSession = Session;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
Expand All @@ -275,6 +275,7 @@ macro_rules! misc_pallet_impls {
type Call = RuntimeCall;
type PalletsOrigin = OriginCaller;
type RewardScheduler = Scheduler;
type Permissioned = Staking;
}

impl pallet_authority_discovery::Config for Runtime {
Expand Down
3 changes: 1 addition & 2 deletions pallets/runtime/develop/src/benchmarks/pallet_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ impl<T: Config> ValidatorInfo<T> {
Some(balance),
)
.unwrap()
.0
.account();
.0;
let controller = pallet_staking::Pallet::<T>::bonded(&stash).expect("not stash");

let keys = T::Keys::decode(&mut TrailingZeroInput::zeroes()).unwrap();
Expand Down
5 changes: 3 additions & 2 deletions pallets/runtime/tests/src/staking/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use sp_staking::{EraIndex, SessionIndex};
use pallet_balances::AccountData;
use pallet_balances::BlockRewardConfig;
use pallet_staking::types::SlashingSwitch;
use pallet_staking::{self as pallet_staking, *};
use pallet_staking::*;
use polymesh_primitives::asset::AssetId;
use polymesh_primitives::constants::currency::POLY;
use polymesh_primitives::identity_id::GenesisIdentityRecord;
Expand Down Expand Up @@ -599,7 +599,7 @@ impl pallet_staking::Config for Test {
type SlashDeferDuration = SlashDeferDuration;
type AdminOrigin = frame_system::EnsureRoot<AccountId>;
type SessionInterface = Self;
type EraPayout = ConvertCurve<RewardCurve>;
type EraPayout = PolymeshConvertCurve<Self, RewardCurve>;
type NextNewSession = Session;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
Expand All @@ -615,6 +615,7 @@ impl pallet_staking::Config for Test {
type Call = RuntimeCall;
type PalletsOrigin = OriginCaller;
type RewardScheduler = Scheduler;
type Permissioned = Staking;
}

impl<LocalCall> frame_system::offchain::SendTransactionTypes<LocalCall> for Test
Expand Down
1 change: 0 additions & 1 deletion pallets/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ std = [
"pallet-babe/std",
"sp-arithmetic/std",
"rand_chacha",
"frame-benchmarking",
]
runtime-benchmarks = [
"frame-benchmarking",
Expand Down
Loading