Skip to content

Commit b7576ca

Browse files
authored
Companion for paritytech/substrate#12788 (#6360)
* Companion for paritytech/substrate#12788 * migrations * rustfmt * update lockfile for {"substrate"} * update lockfile for {"substrate"} Co-authored-by: parity-processbot <>
1 parent 39b42bf commit b7576ca

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

relay/kusama/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,11 @@ impl Get<&'static str> for StakingMigrationV11OldPallet {
14841484
pub type Migrations = (
14851485
pallet_balances::migration::MigrateToTrackInactive<Runtime, CheckAccount>,
14861486
crowdloan::migration::MigrateToTrackInactive<Runtime>,
1487+
pallet_referenda::migration::v1::MigrateV0ToV1<Runtime>,
1488+
pallet_referenda::migration::v1::MigrateV0ToV1<
1489+
Runtime,
1490+
governance::FellowshipReferendaInstance,
1491+
>,
14871492
);
14881493

14891494
/// Unchecked extrinsic type as expected by this runtime.

relay/kusama/src/weights/pallet_referenda_fellowship_referenda.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ impl<T: frame_system::Config> pallet_referenda::WeightInfo for WeightInfo<T> {
100100
.saturating_add(T::DbWeight::get().reads(1 as u64))
101101
.saturating_add(T::DbWeight::get().writes(1 as u64))
102102
}
103+
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
104+
fn refund_submission_deposit() -> Weight {
105+
// Minimum execution time: 25_000 nanoseconds.
106+
Weight::from_ref_time(25_000_000)
107+
.saturating_add(T::DbWeight::get().reads(1))
108+
.saturating_add(T::DbWeight::get().writes(1))
109+
}
103110
// Storage: FellowshipReferenda ReferendumInfoFor (r:1 w:1)
104111
// Storage: Scheduler Agenda (r:2 w:2)
105112
fn cancel() -> Weight {

relay/kusama/src/weights/pallet_referenda_referenda.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ impl<T: frame_system::Config> pallet_referenda::WeightInfo for WeightInfo<T> {
9898
.saturating_add(T::DbWeight::get().writes(1 as u64))
9999
}
100100
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
101+
fn refund_submission_deposit() -> Weight {
102+
// Minimum execution time: 25_000 nanoseconds.
103+
Weight::from_ref_time(25_000_000)
104+
.saturating_add(T::DbWeight::get().reads(1))
105+
.saturating_add(T::DbWeight::get().writes(1))
106+
}
107+
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
101108
// Storage: Scheduler Agenda (r:2 w:2)
102109
fn cancel() -> Weight {
103110
Weight::from_ref_time(38_601_000 as u64)

0 commit comments

Comments
 (0)