Alliance pallet: split force_set_members call (#12179)

* Alliance pallet: split force_set_members call

* use counts for event

* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance

Co-authored-by: command-bot <>
This commit is contained in:
Muharem Ismailov
2022-09-05 17:08:50 +02:00
committed by GitHub
parent b6f67b08ed
commit f919894c84
8 changed files with 358 additions and 512 deletions
+157 -152
View File
@@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_alliance
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-09-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
@@ -53,7 +53,8 @@ pub trait WeightInfo {
fn close_early_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight;
fn close_disapproved(x: u32, y: u32, p: u32, ) -> Weight;
fn close_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight;
fn force_set_members(x: u32, y: u32, z: u32, p: u32, c: u32, m: u32, ) -> Weight;
fn init_members(x: u32, y: u32, z: u32, ) -> Weight;
fn disband(x: u32, y: u32, z: u32, ) -> Weight;
fn set_rule() -> Weight;
fn announce() -> Weight;
fn remove_announcement() -> Weight;
@@ -80,13 +81,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `y` is `[0, 90]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(_b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(37_864_000 as u64)
// Standard Error: 28_000
.saturating_add(Weight::from_ref_time(69_000 as u64).saturating_mul(x as u64))
Weight::from_ref_time(34_420_000 as u64)
// Standard Error: 25_000
.saturating_add(Weight::from_ref_time(145_000 as u64).saturating_mul(x as u64))
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(66_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(80_000 as u64).saturating_mul(y as u64))
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(192_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(197_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -95,9 +96,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `x` is `[3, 10]`.
/// The range of component `y` is `[2, 90]`.
fn vote(_x: u32, y: u32, ) -> Weight {
Weight::from_ref_time(46_813_000 as u64)
Weight::from_ref_time(48_443_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(125_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(y as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -107,9 +108,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: AllianceMotion Voting (r:0 w:1)
/// The range of component `p` is `[1, 100]`.
fn veto(p: u32, ) -> Weight {
Weight::from_ref_time(35_316_000 as u64)
Weight::from_ref_time(35_056_000 as u64)
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(172_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(171_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -122,13 +123,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(36_245_000 as u64)
// Standard Error: 18_000
.saturating_add(Weight::from_ref_time(336_000 as u64).saturating_mul(x as u64))
Weight::from_ref_time(36_929_000 as u64)
// Standard Error: 19_000
.saturating_add(Weight::from_ref_time(287_000 as u64).saturating_mul(x as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(109_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(105_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(178_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(180_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -141,16 +142,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(48_088_000 as u64)
fn close_early_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(48_085_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
// Standard Error: 16_000
.saturating_add(Weight::from_ref_time(194_000 as u64).saturating_mul(x as u64))
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(93_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(100_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(201_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(210_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -164,11 +163,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(_x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(43_374_000 as u64)
Weight::from_ref_time(43_377_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(101_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(99_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(182_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(190_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -182,65 +181,69 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(_b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(42_798_000 as u64)
fn close_approved(_b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(41_417_000 as u64)
// Standard Error: 14_000
.saturating_add(Weight::from_ref_time(67_000 as u64).saturating_mul(x as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(87_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(88_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(192_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(196_000 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: AllianceMotion Proposals (r:1 w:1)
// Storage: Alliance Members (r:3 w:3)
// Storage: Alliance DepositOf (r:200 w:199)
// Storage: System Account (r:199 w:199)
// Storage: AllianceMotion Voting (r:0 w:100)
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
// Storage: AllianceMotion ProposalOf (r:0 w:100)
// Storage: AllianceMotion Members (r:1 w:1)
/// The range of component `x` is `[1, 10]`.
/// The range of component `y` is `[0, 90]`.
/// The range of component `z` is `[0, 100]`.
/// The range of component `p` is `[0, 100]`.
/// The range of component `c` is `[0, 100]`.
/// The range of component `m` is `[0, 100]`.
fn force_set_members(x: u32, y: u32, z: u32, p: u32, c: u32, m: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 221_000
.saturating_add(Weight::from_ref_time(1_294_000 as u64).saturating_mul(x as u64))
// Standard Error: 23_000
.saturating_add(Weight::from_ref_time(231_000 as u64).saturating_mul(y as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(z as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(9_371_000 as u64).saturating_mul(p as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(11_673_000 as u64).saturating_mul(c as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(11_581_000 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(m as u64)))
fn init_members(_x: u32, y: u32, z: u32, ) -> Weight {
Weight::from_ref_time(37_202_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(149_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(120_000 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(p as u64)))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(c as u64)))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(m as u64)))
}
// Storage: Alliance Members (r:3 w:3)
// Storage: AllianceMotion Proposals (r:1 w:0)
// Storage: Alliance DepositOf (r:101 w:50)
// Storage: System Account (r:50 w:50)
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
/// The range of component `x` is `[1, 100]`.
/// The range of component `y` is `[0, 100]`.
/// The range of component `z` is `[0, 50]`.
fn disband(x: u32, y: u32, z: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 9_000
.saturating_add(Weight::from_ref_time(1_447_000 as u64).saturating_mul(x as u64))
// Standard Error: 9_000
.saturating_add(Weight::from_ref_time(1_512_000 as u64).saturating_mul(y as u64))
// Standard Error: 19_000
.saturating_add(Weight::from_ref_time(10_760_000 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(y as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(z as u64)))
.saturating_add(T::DbWeight::get().writes(5 as u64))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(z as u64)))
}
// Storage: Alliance Rule (r:0 w:1)
fn set_rule() -> Weight {
Weight::from_ref_time(18_721_000 as u64)
Weight::from_ref_time(18_101_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn announce() -> Weight {
Weight::from_ref_time(21_887_000 as u64)
Weight::from_ref_time(21_090_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn remove_announcement() -> Weight {
Weight::from_ref_time(23_052_000 as u64)
Weight::from_ref_time(22_118_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -249,14 +252,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Account (r:1 w:1)
// Storage: Alliance DepositOf (r:0 w:1)
fn join_alliance() -> Weight {
Weight::from_ref_time(54_504_000 as u64)
Weight::from_ref_time(53_446_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Alliance Members (r:4 w:1)
// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
fn nominate_ally() -> Weight {
Weight::from_ref_time(42_601_000 as u64)
Weight::from_ref_time(42_690_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -265,7 +268,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn elevate_ally() -> Weight {
Weight::from_ref_time(37_704_000 as u64)
Weight::from_ref_time(37_396_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -275,7 +278,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: AllianceMotion Prime (r:0 w:1)
// Storage: Alliance RetiringMembers (r:0 w:1)
fn give_retirement_notice() -> Weight {
Weight::from_ref_time(40_859_000 as u64)
Weight::from_ref_time(40_644_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -284,7 +287,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Alliance DepositOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn retire() -> Weight {
Weight::from_ref_time(43_447_000 as u64)
Weight::from_ref_time(43_440_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -295,7 +298,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn kick_member() -> Weight {
Weight::from_ref_time(61_718_000 as u64)
Weight::from_ref_time(61_060_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -304,11 +307,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[1, 100]`.
/// The range of component `l` is `[1, 255]`.
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
Weight::from_ref_time(359_000 as u64)
Weight::from_ref_time(0 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(1_376_000 as u64).saturating_mul(n as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(112_000 as u64).saturating_mul(l as u64))
.saturating_add(Weight::from_ref_time(1_362_000 as u64).saturating_mul(n as u64))
// Standard Error: 0
.saturating_add(Weight::from_ref_time(113_000 as u64).saturating_mul(l as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -318,10 +321,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `l` is `[1, 255]`.
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 145_000
.saturating_add(Weight::from_ref_time(20_932_000 as u64).saturating_mul(n as u64))
// Standard Error: 56_000
.saturating_add(Weight::from_ref_time(3_649_000 as u64).saturating_mul(l as u64))
// Standard Error: 147_000
.saturating_add(Weight::from_ref_time(21_060_000 as u64).saturating_mul(n as u64))
// Standard Error: 57_000
.saturating_add(Weight::from_ref_time(3_683_000 as u64).saturating_mul(l as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -339,13 +342,13 @@ impl WeightInfo for () {
/// The range of component `y` is `[0, 90]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(_b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(37_864_000 as u64)
// Standard Error: 28_000
.saturating_add(Weight::from_ref_time(69_000 as u64).saturating_mul(x as u64))
Weight::from_ref_time(34_420_000 as u64)
// Standard Error: 25_000
.saturating_add(Weight::from_ref_time(145_000 as u64).saturating_mul(x as u64))
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(66_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(80_000 as u64).saturating_mul(y as u64))
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(192_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(197_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -354,9 +357,9 @@ impl WeightInfo for () {
/// The range of component `x` is `[3, 10]`.
/// The range of component `y` is `[2, 90]`.
fn vote(_x: u32, y: u32, ) -> Weight {
Weight::from_ref_time(46_813_000 as u64)
Weight::from_ref_time(48_443_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(125_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(y as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -366,9 +369,9 @@ impl WeightInfo for () {
// Storage: AllianceMotion Voting (r:0 w:1)
/// The range of component `p` is `[1, 100]`.
fn veto(p: u32, ) -> Weight {
Weight::from_ref_time(35_316_000 as u64)
Weight::from_ref_time(35_056_000 as u64)
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(172_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(171_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -381,13 +384,13 @@ impl WeightInfo for () {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(36_245_000 as u64)
// Standard Error: 18_000
.saturating_add(Weight::from_ref_time(336_000 as u64).saturating_mul(x as u64))
Weight::from_ref_time(36_929_000 as u64)
// Standard Error: 19_000
.saturating_add(Weight::from_ref_time(287_000 as u64).saturating_mul(x as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(109_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(105_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(178_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(180_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -400,16 +403,14 @@ impl WeightInfo for () {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(48_088_000 as u64)
fn close_early_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(48_085_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
// Standard Error: 16_000
.saturating_add(Weight::from_ref_time(194_000 as u64).saturating_mul(x as u64))
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(93_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(100_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(201_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(210_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -423,11 +424,11 @@ impl WeightInfo for () {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(_x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(43_374_000 as u64)
Weight::from_ref_time(43_377_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(101_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(99_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(182_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(190_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -441,65 +442,69 @@ impl WeightInfo for () {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(_b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(42_798_000 as u64)
fn close_approved(_b: u32, x: u32, y: u32, p: u32, ) -> Weight {
Weight::from_ref_time(41_417_000 as u64)
// Standard Error: 14_000
.saturating_add(Weight::from_ref_time(67_000 as u64).saturating_mul(x as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(87_000 as u64).saturating_mul(y as u64))
.saturating_add(Weight::from_ref_time(88_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(192_000 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_ref_time(196_000 as u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: AllianceMotion Proposals (r:1 w:1)
// Storage: Alliance Members (r:3 w:3)
// Storage: Alliance DepositOf (r:200 w:199)
// Storage: System Account (r:199 w:199)
// Storage: AllianceMotion Voting (r:0 w:100)
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
// Storage: AllianceMotion ProposalOf (r:0 w:100)
// Storage: AllianceMotion Members (r:1 w:1)
/// The range of component `x` is `[1, 10]`.
/// The range of component `y` is `[0, 90]`.
/// The range of component `z` is `[0, 100]`.
/// The range of component `p` is `[0, 100]`.
/// The range of component `c` is `[0, 100]`.
/// The range of component `m` is `[0, 100]`.
fn force_set_members(x: u32, y: u32, z: u32, p: u32, c: u32, m: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 221_000
.saturating_add(Weight::from_ref_time(1_294_000 as u64).saturating_mul(x as u64))
// Standard Error: 23_000
.saturating_add(Weight::from_ref_time(231_000 as u64).saturating_mul(y as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(z as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(9_371_000 as u64).saturating_mul(p as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(11_673_000 as u64).saturating_mul(c as u64))
// Standard Error: 21_000
.saturating_add(Weight::from_ref_time(11_581_000 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(m as u64)))
fn init_members(_x: u32, y: u32, z: u32, ) -> Weight {
Weight::from_ref_time(37_202_000 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(149_000 as u64).saturating_mul(y as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(120_000 as u64).saturating_mul(z as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(p as u64)))
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(c as u64)))
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(m as u64)))
}
// Storage: Alliance Members (r:3 w:3)
// Storage: AllianceMotion Proposals (r:1 w:0)
// Storage: Alliance DepositOf (r:101 w:50)
// Storage: System Account (r:50 w:50)
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
/// The range of component `x` is `[1, 100]`.
/// The range of component `y` is `[0, 100]`.
/// The range of component `z` is `[0, 50]`.
fn disband(x: u32, y: u32, z: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 9_000
.saturating_add(Weight::from_ref_time(1_447_000 as u64).saturating_mul(x as u64))
// Standard Error: 9_000
.saturating_add(Weight::from_ref_time(1_512_000 as u64).saturating_mul(y as u64))
// Standard Error: 19_000
.saturating_add(Weight::from_ref_time(10_760_000 as u64).saturating_mul(z as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64)))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(y as u64)))
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(z as u64)))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(z as u64)))
}
// Storage: Alliance Rule (r:0 w:1)
fn set_rule() -> Weight {
Weight::from_ref_time(18_721_000 as u64)
Weight::from_ref_time(18_101_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn announce() -> Weight {
Weight::from_ref_time(21_887_000 as u64)
Weight::from_ref_time(21_090_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn remove_announcement() -> Weight {
Weight::from_ref_time(23_052_000 as u64)
Weight::from_ref_time(22_118_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -508,14 +513,14 @@ impl WeightInfo for () {
// Storage: System Account (r:1 w:1)
// Storage: Alliance DepositOf (r:0 w:1)
fn join_alliance() -> Weight {
Weight::from_ref_time(54_504_000 as u64)
Weight::from_ref_time(53_446_000 as u64)
.saturating_add(RocksDbWeight::get().reads(6 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Alliance Members (r:4 w:1)
// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
fn nominate_ally() -> Weight {
Weight::from_ref_time(42_601_000 as u64)
Weight::from_ref_time(42_690_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -524,7 +529,7 @@ impl WeightInfo for () {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn elevate_ally() -> Weight {
Weight::from_ref_time(37_704_000 as u64)
Weight::from_ref_time(37_396_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -534,7 +539,7 @@ impl WeightInfo for () {
// Storage: AllianceMotion Prime (r:0 w:1)
// Storage: Alliance RetiringMembers (r:0 w:1)
fn give_retirement_notice() -> Weight {
Weight::from_ref_time(40_859_000 as u64)
Weight::from_ref_time(40_644_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
@@ -543,7 +548,7 @@ impl WeightInfo for () {
// Storage: Alliance DepositOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn retire() -> Weight {
Weight::from_ref_time(43_447_000 as u64)
Weight::from_ref_time(43_440_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -554,7 +559,7 @@ impl WeightInfo for () {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn kick_member() -> Weight {
Weight::from_ref_time(61_718_000 as u64)
Weight::from_ref_time(61_060_000 as u64)
.saturating_add(RocksDbWeight::get().reads(6 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
}
@@ -563,11 +568,11 @@ impl WeightInfo for () {
/// The range of component `n` is `[1, 100]`.
/// The range of component `l` is `[1, 255]`.
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
Weight::from_ref_time(359_000 as u64)
Weight::from_ref_time(0 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(1_376_000 as u64).saturating_mul(n as u64))
// Standard Error: 1_000
.saturating_add(Weight::from_ref_time(112_000 as u64).saturating_mul(l as u64))
.saturating_add(Weight::from_ref_time(1_362_000 as u64).saturating_mul(n as u64))
// Standard Error: 0
.saturating_add(Weight::from_ref_time(113_000 as u64).saturating_mul(l as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
@@ -577,10 +582,10 @@ impl WeightInfo for () {
/// The range of component `l` is `[1, 255]`.
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 145_000
.saturating_add(Weight::from_ref_time(20_932_000 as u64).saturating_mul(n as u64))
// Standard Error: 56_000
.saturating_add(Weight::from_ref_time(3_649_000 as u64).saturating_mul(l as u64))
// Standard Error: 147_000
.saturating_add(Weight::from_ref_time(21_060_000 as u64).saturating_mul(n as u64))
// Standard Error: 57_000
.saturating_add(Weight::from_ref_time(3_683_000 as u64).saturating_mul(l as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}