mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 03:47:57 +00:00
[Companion] StakingInterface adjustments (#6199)
* [Companion] StakingInterface adjustments
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+183
-186
File diff suppressed because it is too large
Load Diff
@@ -612,13 +612,14 @@ impl pallet_staking::Config for Runtime {
|
||||
|
||||
impl pallet_fast_unstake::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type DepositCurrency = Balances;
|
||||
type Currency = Balances;
|
||||
type Deposit = frame_support::traits::ConstU128<{ CENTS * 100 }>;
|
||||
type ControlOrigin = EitherOfDiverse<
|
||||
EnsureRoot<AccountId>,
|
||||
pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 1, 2>,
|
||||
>;
|
||||
type WeightInfo = weights::pallet_fast_unstake::WeightInfo<Runtime>;
|
||||
type Staking = Staking;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -1284,11 +1285,10 @@ impl pallet_nomination_pools::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type WeightInfo = weights::pallet_nomination_pools::WeightInfo<Self>;
|
||||
type Currency = Balances;
|
||||
type CurrencyBalance = Balance;
|
||||
type RewardCounter = FixedU128;
|
||||
type BalanceToU256 = BalanceToU256;
|
||||
type U256ToBalance = U256ToBalance;
|
||||
type StakingInterface = Staking;
|
||||
type Staking = Staking;
|
||||
type PostUnbondingPoolsWindow = ConstU32<4>;
|
||||
type MaxMetadataLen = ConstU32<256>;
|
||||
// we use the same number of allowed unlocking chunks as with staking.
|
||||
|
||||
@@ -569,13 +569,14 @@ impl pallet_staking::Config for Runtime {
|
||||
|
||||
impl pallet_fast_unstake::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type DepositCurrency = Balances;
|
||||
type Currency = Balances;
|
||||
type Deposit = frame_support::traits::ConstU128<{ UNITS }>;
|
||||
type ControlOrigin = EitherOfDiverse<
|
||||
EnsureRoot<AccountId>,
|
||||
pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 1, 2>,
|
||||
>;
|
||||
type WeightInfo = weights::pallet_fast_unstake::WeightInfo<Runtime>;
|
||||
type Staking = Staking;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -1378,11 +1379,10 @@ parameter_types! {
|
||||
impl pallet_nomination_pools::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Currency = Balances;
|
||||
type CurrencyBalance = Balance;
|
||||
type RewardCounter = FixedU128;
|
||||
type BalanceToU256 = runtime_common::BalanceToU256;
|
||||
type U256ToBalance = runtime_common::U256ToBalance;
|
||||
type StakingInterface = Staking;
|
||||
type Staking = Staking;
|
||||
type PostUnbondingPoolsWindow = frame_support::traits::ConstU32<4>;
|
||||
type MaxMetadataLen = frame_support::traits::ConstU32<256>;
|
||||
// we use the same number of allowed unlocking chunks as with staking.
|
||||
|
||||
@@ -517,10 +517,11 @@ impl pallet_staking::Config for Runtime {
|
||||
|
||||
impl pallet_fast_unstake::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type DepositCurrency = Balances;
|
||||
type Currency = Balances;
|
||||
type Deposit = frame_support::traits::ConstU128<{ UNITS }>;
|
||||
type ControlOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = weights::pallet_fast_unstake::WeightInfo<Runtime>;
|
||||
type Staking = Staking;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
@@ -1060,11 +1061,10 @@ impl pallet_nomination_pools::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type WeightInfo = weights::pallet_nomination_pools::WeightInfo<Self>;
|
||||
type Currency = Balances;
|
||||
type CurrencyBalance = Balance;
|
||||
type RewardCounter = FixedU128;
|
||||
type BalanceToU256 = BalanceToU256;
|
||||
type U256ToBalance = U256ToBalance;
|
||||
type StakingInterface = Staking;
|
||||
type Staking = Staking;
|
||||
type PostUnbondingPoolsWindow = ConstU32<4>;
|
||||
type MaxMetadataLen = ConstU32<256>;
|
||||
// we use the same number of allowed unlocking chunks as with staking.
|
||||
|
||||
Reference in New Issue
Block a user