pallet_alliance/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_alliance`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_alliance
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/alliance/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_alliance`.
74pub trait WeightInfo {
75 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight;
76 fn vote(m: u32, ) -> Weight;
77 fn close_early_disapproved(m: u32, p: u32, ) -> Weight;
78 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight;
79 fn close_disapproved(m: u32, p: u32, ) -> Weight;
80 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight;
81 fn init_members(m: u32, z: u32, ) -> Weight;
82 fn disband(x: u32, y: u32, z: u32, ) -> Weight;
83 fn set_rule() -> Weight;
84 fn announce() -> Weight;
85 fn remove_announcement() -> Weight;
86 fn join_alliance() -> Weight;
87 fn nominate_ally() -> Weight;
88 fn elevate_ally() -> Weight;
89 fn give_retirement_notice() -> Weight;
90 fn retire() -> Weight;
91 fn kick_member() -> Weight;
92 fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight;
93 fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight;
94 fn abdicate_fellow_status() -> Weight;
95}
96
97/// Weights for `pallet_alliance` using the Substrate node and recommended hardware.
98pub struct SubstrateWeight<T>(PhantomData<T>);
99impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
100 /// Storage: `Alliance::Members` (r:1 w:0)
101 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
102 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
103 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
104 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
105 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106 /// Storage: `AllianceMotion::ProposalCount` (r:1 w:1)
107 /// Proof: `AllianceMotion::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108 /// Storage: `AllianceMotion::Voting` (r:0 w:1)
109 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
110 /// The range of component `b` is `[1, 1024]`.
111 /// The range of component `m` is `[2, 100]`.
112 /// The range of component `p` is `[1, 100]`.
113 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
114 // Proof Size summary in bytes:
115 // Measured: `393 + m * (32 ±0) + p * (36 ±0)`
116 // Estimated: `6676 + m * (31 ±0) + p * (34 ±0)`
117 // Minimum execution time: 28_698_000 picoseconds.
118 Weight::from_parts(30_351_668, 6676)
119 // Standard Error: 159
120 .saturating_add(Weight::from_parts(426, 0).saturating_mul(b.into()))
121 // Standard Error: 1_663
122 .saturating_add(Weight::from_parts(58_244, 0).saturating_mul(m.into()))
123 // Standard Error: 1_642
124 .saturating_add(Weight::from_parts(167_166, 0).saturating_mul(p.into()))
125 .saturating_add(T::DbWeight::get().reads(4_u64))
126 .saturating_add(T::DbWeight::get().writes(4_u64))
127 .saturating_add(Weight::from_parts(0, 31).saturating_mul(m.into()))
128 .saturating_add(Weight::from_parts(0, 34).saturating_mul(p.into()))
129 }
130 /// Storage: `Alliance::Members` (r:1 w:0)
131 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
132 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
133 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
134 /// The range of component `m` is `[5, 100]`.
135 fn vote(m: u32, ) -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `826 + m * (64 ±0)`
138 // Estimated: `6676 + m * (64 ±0)`
139 // Minimum execution time: 28_697_000 picoseconds.
140 Weight::from_parts(31_067_187, 6676)
141 // Standard Error: 1_039
142 .saturating_add(Weight::from_parts(59_623, 0).saturating_mul(m.into()))
143 .saturating_add(T::DbWeight::get().reads(2_u64))
144 .saturating_add(T::DbWeight::get().writes(1_u64))
145 .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
146 }
147 /// Storage: `Alliance::Members` (r:1 w:0)
148 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
149 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
150 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
151 /// Storage: `AllianceMotion::Members` (r:1 w:0)
152 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
154 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
155 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
156 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
157 /// The range of component `m` is `[4, 100]`.
158 /// The range of component `p` is `[1, 100]`.
159 fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
160 // Proof Size summary in bytes:
161 // Measured: `353 + m * (96 ±0) + p * (36 ±0)`
162 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
163 // Minimum execution time: 38_262_000 picoseconds.
164 Weight::from_parts(36_996_728, 6676)
165 // Standard Error: 1_395
166 .saturating_add(Weight::from_parts(57_361, 0).saturating_mul(m.into()))
167 // Standard Error: 1_360
168 .saturating_add(Weight::from_parts(153_310, 0).saturating_mul(p.into()))
169 .saturating_add(T::DbWeight::get().reads(4_u64))
170 .saturating_add(T::DbWeight::get().writes(3_u64))
171 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
172 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
173 }
174 /// Storage: `Alliance::Members` (r:1 w:0)
175 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
176 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
177 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
178 /// Storage: `AllianceMotion::Members` (r:1 w:0)
179 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
181 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
182 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
183 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
184 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
185 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
186 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
187 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
188 /// The range of component `b` is `[1, 1024]`.
189 /// The range of component `m` is `[4, 100]`.
190 /// The range of component `p` is `[1, 100]`.
191 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
192 // Proof Size summary in bytes:
193 // Measured: `787 + m * (96 ±0) + p * (39 ±0)`
194 // Estimated: `6676 + m * (97 ±0) + p * (40 ±0)`
195 // Minimum execution time: 53_346_000 picoseconds.
196 Weight::from_parts(54_867_557, 6676)
197 // Standard Error: 193
198 .saturating_add(Weight::from_parts(1_120, 0).saturating_mul(b.into()))
199 // Standard Error: 2_044
200 .saturating_add(Weight::from_parts(45_379, 0).saturating_mul(m.into()))
201 // Standard Error: 1_992
202 .saturating_add(Weight::from_parts(175_444, 0).saturating_mul(p.into()))
203 .saturating_add(T::DbWeight::get().reads(7_u64))
204 .saturating_add(T::DbWeight::get().writes(3_u64))
205 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
206 .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
207 }
208 /// Storage: `Alliance::Members` (r:1 w:0)
209 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
210 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
211 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
212 /// Storage: `AllianceMotion::Members` (r:1 w:0)
213 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
214 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
215 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
216 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
217 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
218 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
219 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
220 /// The range of component `m` is `[2, 100]`.
221 /// The range of component `p` is `[1, 100]`.
222 fn close_disapproved(m: u32, p: u32, ) -> Weight {
223 // Proof Size summary in bytes:
224 // Measured: `354 + m * (96 ±0) + p * (36 ±0)`
225 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
226 // Minimum execution time: 39_385_000 picoseconds.
227 Weight::from_parts(38_853_198, 6676)
228 // Standard Error: 1_720
229 .saturating_add(Weight::from_parts(52_287, 0).saturating_mul(m.into()))
230 // Standard Error: 1_699
231 .saturating_add(Weight::from_parts(152_517, 0).saturating_mul(p.into()))
232 .saturating_add(T::DbWeight::get().reads(5_u64))
233 .saturating_add(T::DbWeight::get().writes(3_u64))
234 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
235 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
236 }
237 /// Storage: `Alliance::Members` (r:1 w:0)
238 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
239 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
240 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
241 /// Storage: `AllianceMotion::Members` (r:1 w:0)
242 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
243 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
244 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
245 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
246 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
247 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
248 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
249 /// The range of component `b` is `[1, 1024]`.
250 /// The range of component `m` is `[5, 100]`.
251 /// The range of component `p` is `[1, 100]`.
252 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
253 // Proof Size summary in bytes:
254 // Measured: `407 + m * (96 ±0) + p * (35 ±0)`
255 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
256 // Minimum execution time: 38_956_000 picoseconds.
257 Weight::from_parts(38_958_561, 6676)
258 // Standard Error: 127
259 .saturating_add(Weight::from_parts(469, 0).saturating_mul(b.into()))
260 // Standard Error: 1_360
261 .saturating_add(Weight::from_parts(42_627, 0).saturating_mul(m.into()))
262 // Standard Error: 1_311
263 .saturating_add(Weight::from_parts(158_641, 0).saturating_mul(p.into()))
264 .saturating_add(T::DbWeight::get().reads(5_u64))
265 .saturating_add(T::DbWeight::get().writes(3_u64))
266 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
267 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
268 }
269 /// Storage: `Alliance::Members` (r:2 w:2)
270 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
271 /// Storage: `AllianceMotion::Members` (r:1 w:1)
272 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
273 /// The range of component `m` is `[1, 100]`.
274 /// The range of component `z` is `[0, 100]`.
275 fn init_members(m: u32, z: u32, ) -> Weight {
276 // Proof Size summary in bytes:
277 // Measured: `0`
278 // Estimated: `12362`
279 // Minimum execution time: 24_313_000 picoseconds.
280 Weight::from_parts(13_936_604, 12362)
281 // Standard Error: 1_153
282 .saturating_add(Weight::from_parts(124_789, 0).saturating_mul(m.into()))
283 // Standard Error: 1_140
284 .saturating_add(Weight::from_parts(113_862, 0).saturating_mul(z.into()))
285 .saturating_add(T::DbWeight::get().reads(3_u64))
286 .saturating_add(T::DbWeight::get().writes(3_u64))
287 }
288 /// Storage: `Alliance::Members` (r:2 w:2)
289 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
290 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
291 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
292 /// Storage: `Alliance::DepositOf` (r:200 w:50)
293 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
294 /// Storage: `System::Account` (r:50 w:50)
295 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
296 /// Storage: `AllianceMotion::Members` (r:0 w:1)
297 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
298 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
299 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
300 /// The range of component `x` is `[1, 100]`.
301 /// The range of component `y` is `[0, 100]`.
302 /// The range of component `z` is `[0, 50]`.
303 fn disband(x: u32, y: u32, z: u32, ) -> Weight {
304 // Proof Size summary in bytes:
305 // Measured: `0 + x * (83 ±0) + y * (52 ±0) + z * (248 ±0)`
306 // Estimated: `12362 + x * (2539 ±0) + y * (2539 ±0) + z * (2603 ±1)`
307 // Minimum execution time: 369_362_000 picoseconds.
308 Weight::from_parts(373_165_000, 12362)
309 // Standard Error: 30_558
310 .saturating_add(Weight::from_parts(813_586, 0).saturating_mul(x.into()))
311 // Standard Error: 30_411
312 .saturating_add(Weight::from_parts(779_925, 0).saturating_mul(y.into()))
313 // Standard Error: 60_767
314 .saturating_add(Weight::from_parts(14_852_466, 0).saturating_mul(z.into()))
315 .saturating_add(T::DbWeight::get().reads(3_u64))
316 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
317 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
318 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(z.into())))
319 .saturating_add(T::DbWeight::get().writes(4_u64))
320 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(z.into())))
321 .saturating_add(Weight::from_parts(0, 2539).saturating_mul(x.into()))
322 .saturating_add(Weight::from_parts(0, 2539).saturating_mul(y.into()))
323 .saturating_add(Weight::from_parts(0, 2603).saturating_mul(z.into()))
324 }
325 /// Storage: `Alliance::Rule` (r:0 w:1)
326 /// Proof: `Alliance::Rule` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
327 fn set_rule() -> Weight {
328 // Proof Size summary in bytes:
329 // Measured: `0`
330 // Estimated: `0`
331 // Minimum execution time: 5_320_000 picoseconds.
332 Weight::from_parts(5_541_000, 0)
333 .saturating_add(T::DbWeight::get().writes(1_u64))
334 }
335 /// Storage: `Alliance::Announcements` (r:1 w:1)
336 /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`)
337 fn announce() -> Weight {
338 // Proof Size summary in bytes:
339 // Measured: `54`
340 // Estimated: `10187`
341 // Minimum execution time: 7_541_000 picoseconds.
342 Weight::from_parts(7_884_000, 10187)
343 .saturating_add(T::DbWeight::get().reads(1_u64))
344 .saturating_add(T::DbWeight::get().writes(1_u64))
345 }
346 /// Storage: `Alliance::Announcements` (r:1 w:1)
347 /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`)
348 fn remove_announcement() -> Weight {
349 // Proof Size summary in bytes:
350 // Measured: `127`
351 // Estimated: `10187`
352 // Minimum execution time: 8_760_000 picoseconds.
353 Weight::from_parts(9_201_000, 10187)
354 .saturating_add(T::DbWeight::get().reads(1_u64))
355 .saturating_add(T::DbWeight::get().writes(1_u64))
356 }
357 /// Storage: `Alliance::Members` (r:3 w:1)
358 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
359 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0)
360 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
361 /// Storage: `System::Account` (r:1 w:1)
362 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
363 /// Storage: `Alliance::DepositOf` (r:0 w:1)
364 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
365 fn join_alliance() -> Weight {
366 // Proof Size summary in bytes:
367 // Measured: `221`
368 // Estimated: `18048`
369 // Minimum execution time: 39_045_000 picoseconds.
370 Weight::from_parts(40_425_000, 18048)
371 .saturating_add(T::DbWeight::get().reads(5_u64))
372 .saturating_add(T::DbWeight::get().writes(3_u64))
373 }
374 /// Storage: `Alliance::Members` (r:3 w:1)
375 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
376 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0)
377 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
378 fn nominate_ally() -> Weight {
379 // Proof Size summary in bytes:
380 // Measured: `170`
381 // Estimated: `18048`
382 // Minimum execution time: 23_593_000 picoseconds.
383 Weight::from_parts(24_151_000, 18048)
384 .saturating_add(T::DbWeight::get().reads(4_u64))
385 .saturating_add(T::DbWeight::get().writes(1_u64))
386 }
387 /// Storage: `Alliance::Members` (r:2 w:2)
388 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
389 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
390 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
391 /// Storage: `AllianceMotion::Members` (r:0 w:1)
392 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
393 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
394 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
395 fn elevate_ally() -> Weight {
396 // Proof Size summary in bytes:
397 // Measured: `206`
398 // Estimated: `12362`
399 // Minimum execution time: 21_720_000 picoseconds.
400 Weight::from_parts(22_214_000, 12362)
401 .saturating_add(T::DbWeight::get().reads(3_u64))
402 .saturating_add(T::DbWeight::get().writes(4_u64))
403 }
404 /// Storage: `Alliance::Members` (r:4 w:2)
405 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
406 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
407 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
408 /// Storage: `AllianceMotion::Members` (r:0 w:1)
409 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
410 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
411 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
412 /// Storage: `Alliance::RetiringMembers` (r:0 w:1)
413 /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
414 fn give_retirement_notice() -> Weight {
415 // Proof Size summary in bytes:
416 // Measured: `206`
417 // Estimated: `23734`
418 // Minimum execution time: 26_820_000 picoseconds.
419 Weight::from_parts(27_614_000, 23734)
420 .saturating_add(T::DbWeight::get().reads(5_u64))
421 .saturating_add(T::DbWeight::get().writes(5_u64))
422 }
423 /// Storage: `Alliance::RetiringMembers` (r:1 w:1)
424 /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
425 /// Storage: `Alliance::Members` (r:1 w:1)
426 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
427 /// Storage: `Alliance::DepositOf` (r:1 w:1)
428 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
429 /// Storage: `System::Account` (r:1 w:1)
430 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
431 fn retire() -> Weight {
432 // Proof Size summary in bytes:
433 // Measured: `458`
434 // Estimated: `6676`
435 // Minimum execution time: 36_070_000 picoseconds.
436 Weight::from_parts(36_974_000, 6676)
437 .saturating_add(T::DbWeight::get().reads(4_u64))
438 .saturating_add(T::DbWeight::get().writes(4_u64))
439 }
440 /// Storage: `Alliance::Members` (r:3 w:1)
441 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
442 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
443 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
444 /// Storage: `Alliance::DepositOf` (r:1 w:1)
445 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
446 /// Storage: `System::Account` (r:1 w:1)
447 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
448 /// Storage: `AllianceMotion::Members` (r:0 w:1)
449 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
450 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
451 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
452 fn kick_member() -> Weight {
453 // Proof Size summary in bytes:
454 // Measured: `434`
455 // Estimated: `18048`
456 // Minimum execution time: 58_302_000 picoseconds.
457 Weight::from_parts(59_775_000, 18048)
458 .saturating_add(T::DbWeight::get().reads(6_u64))
459 .saturating_add(T::DbWeight::get().writes(5_u64))
460 }
461 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1)
462 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
463 /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1)
464 /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`)
465 /// The range of component `n` is `[0, 100]`.
466 /// The range of component `l` is `[0, 255]`.
467 fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
468 // Proof Size summary in bytes:
469 // Measured: `54`
470 // Estimated: `27187`
471 // Minimum execution time: 4_803_000 picoseconds.
472 Weight::from_parts(4_858_000, 27187)
473 // Standard Error: 3_655
474 .saturating_add(Weight::from_parts(1_136_024, 0).saturating_mul(n.into()))
475 // Standard Error: 1_431
476 .saturating_add(Weight::from_parts(65_747, 0).saturating_mul(l.into()))
477 .saturating_add(T::DbWeight::get().reads(2_u64))
478 .saturating_add(T::DbWeight::get().writes(2_u64))
479 }
480 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1)
481 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
482 /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1)
483 /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`)
484 /// The range of component `n` is `[0, 100]`.
485 /// The range of component `l` is `[0, 255]`.
486 fn remove_unscrupulous_items(n: u32, _l: u32, ) -> Weight {
487 // Proof Size summary in bytes:
488 // Measured: `0 + l * (100 ±0) + n * (289 ±0)`
489 // Estimated: `27187`
490 // Minimum execution time: 4_818_000 picoseconds.
491 Weight::from_parts(4_893_000, 27187)
492 // Standard Error: 184_675
493 .saturating_add(Weight::from_parts(19_530_779, 0).saturating_mul(n.into()))
494 .saturating_add(T::DbWeight::get().reads(2_u64))
495 .saturating_add(T::DbWeight::get().writes(2_u64))
496 }
497 /// Storage: `Alliance::Members` (r:3 w:2)
498 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
499 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
500 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
501 /// Storage: `AllianceMotion::Members` (r:0 w:1)
502 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
503 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
504 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
505 fn abdicate_fellow_status() -> Weight {
506 // Proof Size summary in bytes:
507 // Measured: `206`
508 // Estimated: `18048`
509 // Minimum execution time: 25_908_000 picoseconds.
510 Weight::from_parts(26_640_000, 18048)
511 .saturating_add(T::DbWeight::get().reads(4_u64))
512 .saturating_add(T::DbWeight::get().writes(4_u64))
513 }
514}
515
516// For backwards compatibility and tests.
517impl WeightInfo for () {
518 /// Storage: `Alliance::Members` (r:1 w:0)
519 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
520 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
521 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
522 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
523 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
524 /// Storage: `AllianceMotion::ProposalCount` (r:1 w:1)
525 /// Proof: `AllianceMotion::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
526 /// Storage: `AllianceMotion::Voting` (r:0 w:1)
527 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
528 /// The range of component `b` is `[1, 1024]`.
529 /// The range of component `m` is `[2, 100]`.
530 /// The range of component `p` is `[1, 100]`.
531 fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
532 // Proof Size summary in bytes:
533 // Measured: `393 + m * (32 ±0) + p * (36 ±0)`
534 // Estimated: `6676 + m * (31 ±0) + p * (34 ±0)`
535 // Minimum execution time: 28_698_000 picoseconds.
536 Weight::from_parts(30_351_668, 6676)
537 // Standard Error: 159
538 .saturating_add(Weight::from_parts(426, 0).saturating_mul(b.into()))
539 // Standard Error: 1_663
540 .saturating_add(Weight::from_parts(58_244, 0).saturating_mul(m.into()))
541 // Standard Error: 1_642
542 .saturating_add(Weight::from_parts(167_166, 0).saturating_mul(p.into()))
543 .saturating_add(RocksDbWeight::get().reads(4_u64))
544 .saturating_add(RocksDbWeight::get().writes(4_u64))
545 .saturating_add(Weight::from_parts(0, 31).saturating_mul(m.into()))
546 .saturating_add(Weight::from_parts(0, 34).saturating_mul(p.into()))
547 }
548 /// Storage: `Alliance::Members` (r:1 w:0)
549 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
550 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
551 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
552 /// The range of component `m` is `[5, 100]`.
553 fn vote(m: u32, ) -> Weight {
554 // Proof Size summary in bytes:
555 // Measured: `826 + m * (64 ±0)`
556 // Estimated: `6676 + m * (64 ±0)`
557 // Minimum execution time: 28_697_000 picoseconds.
558 Weight::from_parts(31_067_187, 6676)
559 // Standard Error: 1_039
560 .saturating_add(Weight::from_parts(59_623, 0).saturating_mul(m.into()))
561 .saturating_add(RocksDbWeight::get().reads(2_u64))
562 .saturating_add(RocksDbWeight::get().writes(1_u64))
563 .saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
564 }
565 /// Storage: `Alliance::Members` (r:1 w:0)
566 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
567 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
568 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
569 /// Storage: `AllianceMotion::Members` (r:1 w:0)
570 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
571 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
572 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
573 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
574 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
575 /// The range of component `m` is `[4, 100]`.
576 /// The range of component `p` is `[1, 100]`.
577 fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
578 // Proof Size summary in bytes:
579 // Measured: `353 + m * (96 ±0) + p * (36 ±0)`
580 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
581 // Minimum execution time: 38_262_000 picoseconds.
582 Weight::from_parts(36_996_728, 6676)
583 // Standard Error: 1_395
584 .saturating_add(Weight::from_parts(57_361, 0).saturating_mul(m.into()))
585 // Standard Error: 1_360
586 .saturating_add(Weight::from_parts(153_310, 0).saturating_mul(p.into()))
587 .saturating_add(RocksDbWeight::get().reads(4_u64))
588 .saturating_add(RocksDbWeight::get().writes(3_u64))
589 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
590 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
591 }
592 /// Storage: `Alliance::Members` (r:1 w:0)
593 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
594 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
595 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
596 /// Storage: `AllianceMotion::Members` (r:1 w:0)
597 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
598 /// Storage: `AllianceMotion::ProposalOf` (r:1 w:1)
599 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
600 /// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
601 /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
602 /// Storage: `TxPause::PausedCalls` (r:1 w:0)
603 /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
604 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
605 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
606 /// The range of component `b` is `[1, 1024]`.
607 /// The range of component `m` is `[4, 100]`.
608 /// The range of component `p` is `[1, 100]`.
609 fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
610 // Proof Size summary in bytes:
611 // Measured: `787 + m * (96 ±0) + p * (39 ±0)`
612 // Estimated: `6676 + m * (97 ±0) + p * (40 ±0)`
613 // Minimum execution time: 53_346_000 picoseconds.
614 Weight::from_parts(54_867_557, 6676)
615 // Standard Error: 193
616 .saturating_add(Weight::from_parts(1_120, 0).saturating_mul(b.into()))
617 // Standard Error: 2_044
618 .saturating_add(Weight::from_parts(45_379, 0).saturating_mul(m.into()))
619 // Standard Error: 1_992
620 .saturating_add(Weight::from_parts(175_444, 0).saturating_mul(p.into()))
621 .saturating_add(RocksDbWeight::get().reads(7_u64))
622 .saturating_add(RocksDbWeight::get().writes(3_u64))
623 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
624 .saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
625 }
626 /// Storage: `Alliance::Members` (r:1 w:0)
627 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
628 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
629 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
630 /// Storage: `AllianceMotion::Members` (r:1 w:0)
631 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
632 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
633 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
634 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
635 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
636 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
637 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
638 /// The range of component `m` is `[2, 100]`.
639 /// The range of component `p` is `[1, 100]`.
640 fn close_disapproved(m: u32, p: u32, ) -> Weight {
641 // Proof Size summary in bytes:
642 // Measured: `354 + m * (96 ±0) + p * (36 ±0)`
643 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
644 // Minimum execution time: 39_385_000 picoseconds.
645 Weight::from_parts(38_853_198, 6676)
646 // Standard Error: 1_720
647 .saturating_add(Weight::from_parts(52_287, 0).saturating_mul(m.into()))
648 // Standard Error: 1_699
649 .saturating_add(Weight::from_parts(152_517, 0).saturating_mul(p.into()))
650 .saturating_add(RocksDbWeight::get().reads(5_u64))
651 .saturating_add(RocksDbWeight::get().writes(3_u64))
652 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
653 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
654 }
655 /// Storage: `Alliance::Members` (r:1 w:0)
656 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
657 /// Storage: `AllianceMotion::Voting` (r:1 w:1)
658 /// Proof: `AllianceMotion::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
659 /// Storage: `AllianceMotion::Members` (r:1 w:0)
660 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
661 /// Storage: `AllianceMotion::Prime` (r:1 w:0)
662 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
663 /// Storage: `AllianceMotion::Proposals` (r:1 w:1)
664 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
665 /// Storage: `AllianceMotion::ProposalOf` (r:0 w:1)
666 /// Proof: `AllianceMotion::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
667 /// The range of component `b` is `[1, 1024]`.
668 /// The range of component `m` is `[5, 100]`.
669 /// The range of component `p` is `[1, 100]`.
670 fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
671 // Proof Size summary in bytes:
672 // Measured: `407 + m * (96 ±0) + p * (35 ±0)`
673 // Estimated: `6676 + m * (97 ±0) + p * (36 ±0)`
674 // Minimum execution time: 38_956_000 picoseconds.
675 Weight::from_parts(38_958_561, 6676)
676 // Standard Error: 127
677 .saturating_add(Weight::from_parts(469, 0).saturating_mul(b.into()))
678 // Standard Error: 1_360
679 .saturating_add(Weight::from_parts(42_627, 0).saturating_mul(m.into()))
680 // Standard Error: 1_311
681 .saturating_add(Weight::from_parts(158_641, 0).saturating_mul(p.into()))
682 .saturating_add(RocksDbWeight::get().reads(5_u64))
683 .saturating_add(RocksDbWeight::get().writes(3_u64))
684 .saturating_add(Weight::from_parts(0, 97).saturating_mul(m.into()))
685 .saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
686 }
687 /// Storage: `Alliance::Members` (r:2 w:2)
688 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
689 /// Storage: `AllianceMotion::Members` (r:1 w:1)
690 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
691 /// The range of component `m` is `[1, 100]`.
692 /// The range of component `z` is `[0, 100]`.
693 fn init_members(m: u32, z: u32, ) -> Weight {
694 // Proof Size summary in bytes:
695 // Measured: `0`
696 // Estimated: `12362`
697 // Minimum execution time: 24_313_000 picoseconds.
698 Weight::from_parts(13_936_604, 12362)
699 // Standard Error: 1_153
700 .saturating_add(Weight::from_parts(124_789, 0).saturating_mul(m.into()))
701 // Standard Error: 1_140
702 .saturating_add(Weight::from_parts(113_862, 0).saturating_mul(z.into()))
703 .saturating_add(RocksDbWeight::get().reads(3_u64))
704 .saturating_add(RocksDbWeight::get().writes(3_u64))
705 }
706 /// Storage: `Alliance::Members` (r:2 w:2)
707 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
708 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
709 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
710 /// Storage: `Alliance::DepositOf` (r:200 w:50)
711 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
712 /// Storage: `System::Account` (r:50 w:50)
713 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
714 /// Storage: `AllianceMotion::Members` (r:0 w:1)
715 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
716 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
717 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
718 /// The range of component `x` is `[1, 100]`.
719 /// The range of component `y` is `[0, 100]`.
720 /// The range of component `z` is `[0, 50]`.
721 fn disband(x: u32, y: u32, z: u32, ) -> Weight {
722 // Proof Size summary in bytes:
723 // Measured: `0 + x * (83 ±0) + y * (52 ±0) + z * (248 ±0)`
724 // Estimated: `12362 + x * (2539 ±0) + y * (2539 ±0) + z * (2603 ±1)`
725 // Minimum execution time: 369_362_000 picoseconds.
726 Weight::from_parts(373_165_000, 12362)
727 // Standard Error: 30_558
728 .saturating_add(Weight::from_parts(813_586, 0).saturating_mul(x.into()))
729 // Standard Error: 30_411
730 .saturating_add(Weight::from_parts(779_925, 0).saturating_mul(y.into()))
731 // Standard Error: 60_767
732 .saturating_add(Weight::from_parts(14_852_466, 0).saturating_mul(z.into()))
733 .saturating_add(RocksDbWeight::get().reads(3_u64))
734 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
735 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(y.into())))
736 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(z.into())))
737 .saturating_add(RocksDbWeight::get().writes(4_u64))
738 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(z.into())))
739 .saturating_add(Weight::from_parts(0, 2539).saturating_mul(x.into()))
740 .saturating_add(Weight::from_parts(0, 2539).saturating_mul(y.into()))
741 .saturating_add(Weight::from_parts(0, 2603).saturating_mul(z.into()))
742 }
743 /// Storage: `Alliance::Rule` (r:0 w:1)
744 /// Proof: `Alliance::Rule` (`max_values`: Some(1), `max_size`: Some(87), added: 582, mode: `MaxEncodedLen`)
745 fn set_rule() -> Weight {
746 // Proof Size summary in bytes:
747 // Measured: `0`
748 // Estimated: `0`
749 // Minimum execution time: 5_320_000 picoseconds.
750 Weight::from_parts(5_541_000, 0)
751 .saturating_add(RocksDbWeight::get().writes(1_u64))
752 }
753 /// Storage: `Alliance::Announcements` (r:1 w:1)
754 /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`)
755 fn announce() -> Weight {
756 // Proof Size summary in bytes:
757 // Measured: `54`
758 // Estimated: `10187`
759 // Minimum execution time: 7_541_000 picoseconds.
760 Weight::from_parts(7_884_000, 10187)
761 .saturating_add(RocksDbWeight::get().reads(1_u64))
762 .saturating_add(RocksDbWeight::get().writes(1_u64))
763 }
764 /// Storage: `Alliance::Announcements` (r:1 w:1)
765 /// Proof: `Alliance::Announcements` (`max_values`: Some(1), `max_size`: Some(8702), added: 9197, mode: `MaxEncodedLen`)
766 fn remove_announcement() -> Weight {
767 // Proof Size summary in bytes:
768 // Measured: `127`
769 // Estimated: `10187`
770 // Minimum execution time: 8_760_000 picoseconds.
771 Weight::from_parts(9_201_000, 10187)
772 .saturating_add(RocksDbWeight::get().reads(1_u64))
773 .saturating_add(RocksDbWeight::get().writes(1_u64))
774 }
775 /// Storage: `Alliance::Members` (r:3 w:1)
776 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
777 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0)
778 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
779 /// Storage: `System::Account` (r:1 w:1)
780 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
781 /// Storage: `Alliance::DepositOf` (r:0 w:1)
782 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
783 fn join_alliance() -> Weight {
784 // Proof Size summary in bytes:
785 // Measured: `221`
786 // Estimated: `18048`
787 // Minimum execution time: 39_045_000 picoseconds.
788 Weight::from_parts(40_425_000, 18048)
789 .saturating_add(RocksDbWeight::get().reads(5_u64))
790 .saturating_add(RocksDbWeight::get().writes(3_u64))
791 }
792 /// Storage: `Alliance::Members` (r:3 w:1)
793 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
794 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:0)
795 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
796 fn nominate_ally() -> Weight {
797 // Proof Size summary in bytes:
798 // Measured: `170`
799 // Estimated: `18048`
800 // Minimum execution time: 23_593_000 picoseconds.
801 Weight::from_parts(24_151_000, 18048)
802 .saturating_add(RocksDbWeight::get().reads(4_u64))
803 .saturating_add(RocksDbWeight::get().writes(1_u64))
804 }
805 /// Storage: `Alliance::Members` (r:2 w:2)
806 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
807 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
808 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
809 /// Storage: `AllianceMotion::Members` (r:0 w:1)
810 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
811 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
812 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
813 fn elevate_ally() -> Weight {
814 // Proof Size summary in bytes:
815 // Measured: `206`
816 // Estimated: `12362`
817 // Minimum execution time: 21_720_000 picoseconds.
818 Weight::from_parts(22_214_000, 12362)
819 .saturating_add(RocksDbWeight::get().reads(3_u64))
820 .saturating_add(RocksDbWeight::get().writes(4_u64))
821 }
822 /// Storage: `Alliance::Members` (r:4 w:2)
823 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
824 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
825 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
826 /// Storage: `AllianceMotion::Members` (r:0 w:1)
827 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
828 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
829 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
830 /// Storage: `Alliance::RetiringMembers` (r:0 w:1)
831 /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
832 fn give_retirement_notice() -> Weight {
833 // Proof Size summary in bytes:
834 // Measured: `206`
835 // Estimated: `23734`
836 // Minimum execution time: 26_820_000 picoseconds.
837 Weight::from_parts(27_614_000, 23734)
838 .saturating_add(RocksDbWeight::get().reads(5_u64))
839 .saturating_add(RocksDbWeight::get().writes(5_u64))
840 }
841 /// Storage: `Alliance::RetiringMembers` (r:1 w:1)
842 /// Proof: `Alliance::RetiringMembers` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
843 /// Storage: `Alliance::Members` (r:1 w:1)
844 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
845 /// Storage: `Alliance::DepositOf` (r:1 w:1)
846 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
847 /// Storage: `System::Account` (r:1 w:1)
848 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
849 fn retire() -> Weight {
850 // Proof Size summary in bytes:
851 // Measured: `458`
852 // Estimated: `6676`
853 // Minimum execution time: 36_070_000 picoseconds.
854 Weight::from_parts(36_974_000, 6676)
855 .saturating_add(RocksDbWeight::get().reads(4_u64))
856 .saturating_add(RocksDbWeight::get().writes(4_u64))
857 }
858 /// Storage: `Alliance::Members` (r:3 w:1)
859 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
860 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
861 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
862 /// Storage: `Alliance::DepositOf` (r:1 w:1)
863 /// Proof: `Alliance::DepositOf` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
864 /// Storage: `System::Account` (r:1 w:1)
865 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
866 /// Storage: `AllianceMotion::Members` (r:0 w:1)
867 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
868 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
869 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
870 fn kick_member() -> Weight {
871 // Proof Size summary in bytes:
872 // Measured: `434`
873 // Estimated: `18048`
874 // Minimum execution time: 58_302_000 picoseconds.
875 Weight::from_parts(59_775_000, 18048)
876 .saturating_add(RocksDbWeight::get().reads(6_u64))
877 .saturating_add(RocksDbWeight::get().writes(5_u64))
878 }
879 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1)
880 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
881 /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1)
882 /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`)
883 /// The range of component `n` is `[0, 100]`.
884 /// The range of component `l` is `[0, 255]`.
885 fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
886 // Proof Size summary in bytes:
887 // Measured: `54`
888 // Estimated: `27187`
889 // Minimum execution time: 4_803_000 picoseconds.
890 Weight::from_parts(4_858_000, 27187)
891 // Standard Error: 3_655
892 .saturating_add(Weight::from_parts(1_136_024, 0).saturating_mul(n.into()))
893 // Standard Error: 1_431
894 .saturating_add(Weight::from_parts(65_747, 0).saturating_mul(l.into()))
895 .saturating_add(RocksDbWeight::get().reads(2_u64))
896 .saturating_add(RocksDbWeight::get().writes(2_u64))
897 }
898 /// Storage: `Alliance::UnscrupulousAccounts` (r:1 w:1)
899 /// Proof: `Alliance::UnscrupulousAccounts` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
900 /// Storage: `Alliance::UnscrupulousWebsites` (r:1 w:1)
901 /// Proof: `Alliance::UnscrupulousWebsites` (`max_values`: Some(1), `max_size`: Some(25702), added: 26197, mode: `MaxEncodedLen`)
902 /// The range of component `n` is `[0, 100]`.
903 /// The range of component `l` is `[0, 255]`.
904 fn remove_unscrupulous_items(n: u32, _l: u32, ) -> Weight {
905 // Proof Size summary in bytes:
906 // Measured: `0 + l * (100 ±0) + n * (289 ±0)`
907 // Estimated: `27187`
908 // Minimum execution time: 4_818_000 picoseconds.
909 Weight::from_parts(4_893_000, 27187)
910 // Standard Error: 184_675
911 .saturating_add(Weight::from_parts(19_530_779, 0).saturating_mul(n.into()))
912 .saturating_add(RocksDbWeight::get().reads(2_u64))
913 .saturating_add(RocksDbWeight::get().writes(2_u64))
914 }
915 /// Storage: `Alliance::Members` (r:3 w:2)
916 /// Proof: `Alliance::Members` (`max_values`: None, `max_size`: Some(3211), added: 5686, mode: `MaxEncodedLen`)
917 /// Storage: `AllianceMotion::Proposals` (r:1 w:0)
918 /// Proof: `AllianceMotion::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
919 /// Storage: `AllianceMotion::Members` (r:0 w:1)
920 /// Proof: `AllianceMotion::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
921 /// Storage: `AllianceMotion::Prime` (r:0 w:1)
922 /// Proof: `AllianceMotion::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
923 fn abdicate_fellow_status() -> Weight {
924 // Proof Size summary in bytes:
925 // Measured: `206`
926 // Estimated: `18048`
927 // Minimum execution time: 25_908_000 picoseconds.
928 Weight::from_parts(26_640_000, 18048)
929 .saturating_add(RocksDbWeight::get().reads(4_u64))
930 .saturating_add(RocksDbWeight::get().writes(4_u64))
931 }
932}