Companion for Remove Approval feature in Treasury Pallet (#11243) (#5352)

* added weight for remove_approval call in treasury pallet

* added weight for remove_approval call in kusama runtime

* Update Cargo.lock

* update lockfile for {"substrate"}

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
This commit is contained in:
Chigozie Joshua
2022-04-27 11:37:17 +01:00
committed by GitHub
parent 9621dbebc9
commit ee3b164f65
3 changed files with 179 additions and 174 deletions
+167 -174
View File
File diff suppressed because it is too large Load Diff
@@ -68,6 +68,12 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Treasury Approvals (r:1 w:1)
fn remove_approval() -> Weight {
(7_600_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Treasury Approvals (r:1 w:1)
// Storage: Bounties BountyApprovals (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: Treasury Proposals (r:2 w:2)
@@ -68,6 +68,12 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Treasury Approvals (r:1 w:1)
fn remove_approval() -> Weight {
(7_600_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Treasury Approvals (r:1 w:1)
// Storage: Bounties BountyApprovals (r:1 w:1)
// Storage: Treasury Proposals (r:2 w:2)
// Storage: System Account (r:4 w:4)