companion for fast unstake batching (#6253)

* update

* add migrations

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Kian Paimani
2022-11-08 16:57:57 +00:00
committed by GitHub
parent e1ccb8499d
commit be4b5fad47
4 changed files with 188 additions and 180 deletions
+182 -180
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -580,6 +580,7 @@ impl pallet_staking::Config for Runtime {
impl pallet_fast_unstake::Config for Runtime { impl pallet_fast_unstake::Config for Runtime {
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type Currency = Balances; type Currency = Balances;
type BatchSize = frame_support::traits::ConstU32<64>;
type Deposit = frame_support::traits::ConstU128<{ CENTS * 100 }>; type Deposit = frame_support::traits::ConstU128<{ CENTS * 100 }>;
type ControlOrigin = EitherOfDiverse< type ControlOrigin = EitherOfDiverse<
EnsureRoot<AccountId>, EnsureRoot<AccountId>,
@@ -1440,6 +1441,7 @@ pub type Executive = frame_executive::Executive<
// "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091> // "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091>
parachains_configuration::migration::v3::MigrateToV3<Runtime>, parachains_configuration::migration::v3::MigrateToV3<Runtime>,
pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>, pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>,
pallet_fast_unstake::migrations::v1::MigrateToV1<Runtime>,
), ),
>; >;
/// The payload being signed in the transactions. /// The payload being signed in the transactions.
+2
View File
@@ -600,6 +600,7 @@ impl pallet_staking::Config for Runtime {
impl pallet_fast_unstake::Config for Runtime { impl pallet_fast_unstake::Config for Runtime {
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type Currency = Balances; type Currency = Balances;
type BatchSize = frame_support::traits::ConstU32<64>;
type Deposit = frame_support::traits::ConstU128<{ UNITS }>; type Deposit = frame_support::traits::ConstU128<{ UNITS }>;
type ControlOrigin = EitherOfDiverse< type ControlOrigin = EitherOfDiverse<
EnsureRoot<AccountId>, EnsureRoot<AccountId>,
@@ -1596,6 +1597,7 @@ pub type Executive = frame_executive::Executive<
// "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091> // "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091>
parachains_configuration::migration::v3::MigrateToV3<Runtime>, parachains_configuration::migration::v3::MigrateToV3<Runtime>,
pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>, pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>,
pallet_fast_unstake::migrations::v1::MigrateToV1<Runtime>,
), ),
>; >;
+2
View File
@@ -518,6 +518,7 @@ impl pallet_staking::Config for Runtime {
impl pallet_fast_unstake::Config for Runtime { impl pallet_fast_unstake::Config for Runtime {
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type Currency = Balances; type Currency = Balances;
type BatchSize = frame_support::traits::ConstU32<64>;
type Deposit = frame_support::traits::ConstU128<{ UNITS }>; type Deposit = frame_support::traits::ConstU128<{ UNITS }>;
type ControlOrigin = EnsureRoot<AccountId>; type ControlOrigin = EnsureRoot<AccountId>;
type WeightInfo = weights::pallet_fast_unstake::WeightInfo<Runtime>; type WeightInfo = weights::pallet_fast_unstake::WeightInfo<Runtime>;
@@ -1217,6 +1218,7 @@ pub type Executive = frame_executive::Executive<
// "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091> // "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091>
parachains_configuration::migration::v3::MigrateToV3<Runtime>, parachains_configuration::migration::v3::MigrateToV3<Runtime>,
pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>, pallet_election_provider_multi_phase::migrations::v1::MigrateToV1<Runtime>,
pallet_fast_unstake::migrations::v1::MigrateToV1<Runtime>,
), ),
>; >;
/// The payload being signed in transactions. /// The payload being signed in transactions.