Skip to content
Snippets Groups Projects
Commit 850f550b authored by Éloïs's avatar Éloïs
Browse files

weights: ParametersStorage is whitelisted

parent f207f238
No related branches found
No related tags found
1 merge request!83feat(runtime): create UDs manually with new call universalDividend.claim_uds
......@@ -45,12 +45,9 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_universal_dividend`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0)
fn on_initialize() -> Weight {
(104_055_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
104_055_000 as Weight
}
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership CounterForMembership (r:1 w:0)
// Storage: UniversalDividend NextReeval (r:1 w:0)
// Storage: UniversalDividend CurrentUd (r:1 w:0)
......@@ -58,10 +55,9 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
// Storage: UniversalDividend CurrentUdIndex (r:1 w:1)
fn on_initialize_ud_created() -> Weight {
(1_000_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership CounterForMembership (r:1 w:0)
// Storage: UniversalDividend NextReeval (r:1 w:1)
// Storage: UniversalDividend CurrentUd (r:1 w:1)
......@@ -70,7 +66,7 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
// Storage: UniversalDividend CurrentUdIndex (r:1 w:1)
fn on_initialize_ud_reevalued() -> Weight {
(1_500_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
// Storage: UniversalDividend CurrentUd (r:1 w:0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment