mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
remove unused staking trait bound (#11942)
This commit is contained in:
@@ -168,14 +168,6 @@ impl pallet_nomination_pools::Config for Runtime {
|
|||||||
|
|
||||||
impl crate::Config for Runtime {}
|
impl crate::Config for Runtime {}
|
||||||
|
|
||||||
impl<LocalCall> frame_system::offchain::SendTransactionTypes<LocalCall> for Runtime
|
|
||||||
where
|
|
||||||
Call: From<LocalCall>,
|
|
||||||
{
|
|
||||||
type OverarchingCall = Call;
|
|
||||||
type Extrinsic = UncheckedExtrinsic;
|
|
||||||
}
|
|
||||||
|
|
||||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||||
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>;
|
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>;
|
||||||
frame_support::construct_runtime!(
|
frame_support::construct_runtime!(
|
||||||
|
|||||||
@@ -180,14 +180,6 @@ impl pallet_nomination_pools::Config for Runtime {
|
|||||||
type PalletId = PoolsPalletId;
|
type PalletId = PoolsPalletId;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<LocalCall> frame_system::offchain::SendTransactionTypes<LocalCall> for Runtime
|
|
||||||
where
|
|
||||||
Call: From<LocalCall>,
|
|
||||||
{
|
|
||||||
type OverarchingCall = Call;
|
|
||||||
type Extrinsic = UncheckedExtrinsic;
|
|
||||||
}
|
|
||||||
|
|
||||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||||
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>;
|
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Runtime>;
|
||||||
|
|
||||||
|
|||||||
@@ -144,16 +144,6 @@ parameter_types! {
|
|||||||
pub const RewardCurve: &'static sp_runtime::curve::PiecewiseLinear<'static> = &I_NPOS;
|
pub const RewardCurve: &'static sp_runtime::curve::PiecewiseLinear<'static> = &I_NPOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Extrinsic = sp_runtime::testing::TestXt<Call, ()>;
|
|
||||||
|
|
||||||
impl<C> frame_system::offchain::SendTransactionTypes<C> for Test
|
|
||||||
where
|
|
||||||
Call: From<C>,
|
|
||||||
{
|
|
||||||
type OverarchingCall = Call;
|
|
||||||
type Extrinsic = Extrinsic;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub struct OnChainSeqPhragmen;
|
pub struct OnChainSeqPhragmen;
|
||||||
impl onchain::Config for OnChainSeqPhragmen {
|
impl onchain::Config for OnChainSeqPhragmen {
|
||||||
type System = Test;
|
type System = Test;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ use sp_core::H256;
|
|||||||
use sp_io;
|
use sp_io;
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
curve::PiecewiseLinear,
|
curve::PiecewiseLinear,
|
||||||
testing::{Header, TestXt, UintAuthorityId},
|
testing::{Header, UintAuthorityId},
|
||||||
traits::{IdentityLookup, Zero},
|
traits::{IdentityLookup, Zero},
|
||||||
};
|
};
|
||||||
use sp_staking::offence::{DisableStrategy, OffenceDetails, OnOffenceHandler};
|
use sp_staking::offence::{DisableStrategy, OffenceDetails, OnOffenceHandler};
|
||||||
@@ -304,15 +304,6 @@ impl crate::pallet::pallet::Config for Test {
|
|||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<LocalCall> frame_system::offchain::SendTransactionTypes<LocalCall> for Test
|
|
||||||
where
|
|
||||||
Call: From<LocalCall>,
|
|
||||||
{
|
|
||||||
type OverarchingCall = Call;
|
|
||||||
type Extrinsic = Extrinsic;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub type Extrinsic = TestXt<Call, ()>;
|
|
||||||
pub(crate) type StakingCall = crate::Call<Test>;
|
pub(crate) type StakingCall = crate::Call<Test>;
|
||||||
pub(crate) type TestRuntimeCall = <Test as frame_system::Config>::Call;
|
pub(crate) type TestRuntimeCall = <Test as frame_system::Config>::Call;
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ use frame_support::{
|
|||||||
},
|
},
|
||||||
weights::Weight,
|
weights::Weight,
|
||||||
};
|
};
|
||||||
use frame_system::{ensure_root, ensure_signed, offchain::SendTransactionTypes, pallet_prelude::*};
|
use frame_system::{ensure_root, ensure_signed, pallet_prelude::*};
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
traits::{CheckedSub, SaturatedConversion, StaticLookup, Zero},
|
traits::{CheckedSub, SaturatedConversion, StaticLookup, Zero},
|
||||||
Perbill, Percent,
|
Perbill, Percent,
|
||||||
@@ -73,7 +73,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::config]
|
#[pallet::config]
|
||||||
pub trait Config: frame_system::Config + SendTransactionTypes<Call<Self>> {
|
pub trait Config: frame_system::Config {
|
||||||
/// The staking balance.
|
/// The staking balance.
|
||||||
type Currency: LockableCurrency<
|
type Currency: LockableCurrency<
|
||||||
Self::AccountId,
|
Self::AccountId,
|
||||||
|
|||||||
Reference in New Issue
Block a user