referrerpolicy=no-referrer-when-downgrade

pallet_democracy/
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_democracy`
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_democracy
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/democracy/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_democracy`.
74pub trait WeightInfo {
75	fn propose() -> Weight;
76	fn second() -> Weight;
77	fn vote_new() -> Weight;
78	fn vote_existing() -> Weight;
79	fn emergency_cancel() -> Weight;
80	fn blacklist() -> Weight;
81	fn external_propose() -> Weight;
82	fn external_propose_majority() -> Weight;
83	fn external_propose_default() -> Weight;
84	fn fast_track() -> Weight;
85	fn veto_external() -> Weight;
86	fn cancel_proposal() -> Weight;
87	fn cancel_referendum() -> Weight;
88	fn on_initialize_base(r: u32, ) -> Weight;
89	fn on_initialize_base_with_launch_period(r: u32, ) -> Weight;
90	fn delegate(r: u32, ) -> Weight;
91	fn undelegate(r: u32, ) -> Weight;
92	fn clear_public_proposals() -> Weight;
93	fn unlock_remove(r: u32, ) -> Weight;
94	fn unlock_set(r: u32, ) -> Weight;
95	fn remove_vote(r: u32, ) -> Weight;
96	fn remove_other_vote(r: u32, ) -> Weight;
97	fn set_external_metadata() -> Weight;
98	fn clear_external_metadata() -> Weight;
99	fn set_proposal_metadata() -> Weight;
100	fn clear_proposal_metadata() -> Weight;
101	fn set_referendum_metadata() -> Weight;
102	fn clear_referendum_metadata() -> Weight;
103}
104
105/// Weights for `pallet_democracy` using the Substrate node and recommended hardware.
106pub struct SubstrateWeight<T>(PhantomData<T>);
107impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
108	/// Storage: `Democracy::PublicPropCount` (r:1 w:1)
109	/// Proof: `Democracy::PublicPropCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
110	/// Storage: `Democracy::PublicProps` (r:1 w:1)
111	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
112	/// Storage: `Democracy::Blacklist` (r:1 w:0)
113	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
114	/// Storage: `Democracy::DepositOf` (r:0 w:1)
115	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
116	fn propose() -> Weight {
117		// Proof Size summary in bytes:
118		//  Measured:  `4627`
119		//  Estimated: `18187`
120		// Minimum execution time: 42_808_000 picoseconds.
121		Weight::from_parts(44_067_000, 18187)
122			.saturating_add(T::DbWeight::get().reads(3_u64))
123			.saturating_add(T::DbWeight::get().writes(3_u64))
124	}
125	/// Storage: `Democracy::DepositOf` (r:1 w:1)
126	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
127	fn second() -> Weight {
128		// Proof Size summary in bytes:
129		//  Measured:  `3406`
130		//  Estimated: `6695`
131		// Minimum execution time: 37_447_000 picoseconds.
132		Weight::from_parts(39_056_000, 6695)
133			.saturating_add(T::DbWeight::get().reads(1_u64))
134			.saturating_add(T::DbWeight::get().writes(1_u64))
135	}
136	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
137	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
138	/// Storage: `Democracy::VotingOf` (r:1 w:1)
139	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
140	/// Storage: `Balances::Locks` (r:1 w:1)
141	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
142	/// Storage: `Balances::Freezes` (r:1 w:0)
143	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
144	fn vote_new() -> Weight {
145		// Proof Size summary in bytes:
146		//  Measured:  `3206`
147		//  Estimated: `7260`
148		// Minimum execution time: 55_472_000 picoseconds.
149		Weight::from_parts(57_655_000, 7260)
150			.saturating_add(T::DbWeight::get().reads(4_u64))
151			.saturating_add(T::DbWeight::get().writes(3_u64))
152	}
153	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
154	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
155	/// Storage: `Democracy::VotingOf` (r:1 w:1)
156	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
157	/// Storage: `Balances::Locks` (r:1 w:1)
158	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
159	/// Storage: `Balances::Freezes` (r:1 w:0)
160	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
161	fn vote_existing() -> Weight {
162		// Proof Size summary in bytes:
163		//  Measured:  `3228`
164		//  Estimated: `7260`
165		// Minimum execution time: 59_631_000 picoseconds.
166		Weight::from_parts(62_191_000, 7260)
167			.saturating_add(T::DbWeight::get().reads(4_u64))
168			.saturating_add(T::DbWeight::get().writes(3_u64))
169	}
170	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
171	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
172	/// Storage: `Democracy::Cancellations` (r:1 w:1)
173	/// Proof: `Democracy::Cancellations` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
174	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
175	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
176	fn emergency_cancel() -> Weight {
177		// Proof Size summary in bytes:
178		//  Measured:  `191`
179		//  Estimated: `3666`
180		// Minimum execution time: 21_449_000 picoseconds.
181		Weight::from_parts(22_156_000, 3666)
182			.saturating_add(T::DbWeight::get().reads(3_u64))
183			.saturating_add(T::DbWeight::get().writes(3_u64))
184	}
185	/// Storage: `Democracy::PublicProps` (r:1 w:1)
186	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
187	/// Storage: `Democracy::DepositOf` (r:1 w:1)
188	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
189	/// Storage: `System::Account` (r:1 w:1)
190	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
191	/// Storage: `Democracy::MetadataOf` (r:3 w:1)
192	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
193	/// Storage: `Democracy::NextExternal` (r:1 w:1)
194	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
195	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
196	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
197	/// Storage: `Democracy::Blacklist` (r:0 w:1)
198	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
199	fn blacklist() -> Weight {
200		// Proof Size summary in bytes:
201		//  Measured:  `5725`
202		//  Estimated: `18187`
203		// Minimum execution time: 108_039_000 picoseconds.
204		Weight::from_parts(109_864_000, 18187)
205			.saturating_add(T::DbWeight::get().reads(8_u64))
206			.saturating_add(T::DbWeight::get().writes(7_u64))
207	}
208	/// Storage: `Democracy::NextExternal` (r:1 w:1)
209	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
210	/// Storage: `Democracy::Blacklist` (r:1 w:0)
211	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
212	fn external_propose() -> Weight {
213		// Proof Size summary in bytes:
214		//  Measured:  `3214`
215		//  Estimated: `6703`
216		// Minimum execution time: 8_313_000 picoseconds.
217		Weight::from_parts(8_933_000, 6703)
218			.saturating_add(T::DbWeight::get().reads(2_u64))
219			.saturating_add(T::DbWeight::get().writes(1_u64))
220	}
221	/// Storage: `Democracy::NextExternal` (r:0 w:1)
222	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
223	fn external_propose_majority() -> Weight {
224		// Proof Size summary in bytes:
225		//  Measured:  `0`
226		//  Estimated: `0`
227		// Minimum execution time: 2_120_000 picoseconds.
228		Weight::from_parts(2_198_000, 0)
229			.saturating_add(T::DbWeight::get().writes(1_u64))
230	}
231	/// Storage: `Democracy::NextExternal` (r:0 w:1)
232	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
233	fn external_propose_default() -> Weight {
234		// Proof Size summary in bytes:
235		//  Measured:  `0`
236		//  Estimated: `0`
237		// Minimum execution time: 2_168_000 picoseconds.
238		Weight::from_parts(2_222_000, 0)
239			.saturating_add(T::DbWeight::get().writes(1_u64))
240	}
241	/// Storage: `Democracy::NextExternal` (r:1 w:1)
242	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
243	/// Storage: `Democracy::ReferendumCount` (r:1 w:1)
244	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
245	/// Storage: `Democracy::MetadataOf` (r:1 w:2)
246	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
247	/// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
248	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
249	fn fast_track() -> Weight {
250		// Proof Size summary in bytes:
251		//  Measured:  `88`
252		//  Estimated: `3518`
253		// Minimum execution time: 19_475_000 picoseconds.
254		Weight::from_parts(20_041_000, 3518)
255			.saturating_add(T::DbWeight::get().reads(3_u64))
256			.saturating_add(T::DbWeight::get().writes(5_u64))
257	}
258	/// Storage: `Democracy::NextExternal` (r:1 w:1)
259	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
260	/// Storage: `Democracy::Blacklist` (r:1 w:1)
261	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
262	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
263	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
264	fn veto_external() -> Weight {
265		// Proof Size summary in bytes:
266		//  Measured:  `3318`
267		//  Estimated: `6703`
268		// Minimum execution time: 22_799_000 picoseconds.
269		Weight::from_parts(23_367_000, 6703)
270			.saturating_add(T::DbWeight::get().reads(3_u64))
271			.saturating_add(T::DbWeight::get().writes(3_u64))
272	}
273	/// Storage: `Democracy::PublicProps` (r:1 w:1)
274	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
275	/// Storage: `Democracy::DepositOf` (r:1 w:1)
276	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
277	/// Storage: `System::Account` (r:1 w:1)
278	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
279	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
280	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
281	fn cancel_proposal() -> Weight {
282		// Proof Size summary in bytes:
283		//  Measured:  `5610`
284		//  Estimated: `18187`
285		// Minimum execution time: 87_080_000 picoseconds.
286		Weight::from_parts(89_022_000, 18187)
287			.saturating_add(T::DbWeight::get().reads(4_u64))
288			.saturating_add(T::DbWeight::get().writes(4_u64))
289	}
290	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
291	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
292	/// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
293	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
294	fn cancel_referendum() -> Weight {
295		// Proof Size summary in bytes:
296		//  Measured:  `122`
297		//  Estimated: `3518`
298		// Minimum execution time: 14_623_000 picoseconds.
299		Weight::from_parts(14_923_000, 3518)
300			.saturating_add(T::DbWeight::get().reads(1_u64))
301			.saturating_add(T::DbWeight::get().writes(2_u64))
302	}
303	/// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
304	/// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
305	/// Storage: `Democracy::ReferendumCount` (r:1 w:0)
306	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
307	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
308	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
309	/// The range of component `r` is `[0, 99]`.
310	fn on_initialize_base(r: u32, ) -> Weight {
311		// Proof Size summary in bytes:
312		//  Measured:  `69 + r * (86 ±0)`
313		//  Estimated: `1489 + r * (2676 ±0)`
314		// Minimum execution time: 1_798_000 picoseconds.
315		Weight::from_parts(2_806_006, 1489)
316			// Standard Error: 10_902
317			.saturating_add(Weight::from_parts(4_135_057, 0).saturating_mul(r.into()))
318			.saturating_add(T::DbWeight::get().reads(2_u64))
319			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
320			.saturating_add(T::DbWeight::get().writes(1_u64))
321			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
322	}
323	/// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
324	/// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
325	/// Storage: `Democracy::ReferendumCount` (r:1 w:0)
326	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
327	/// Storage: `Democracy::LastTabledWasExternal` (r:1 w:0)
328	/// Proof: `Democracy::LastTabledWasExternal` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
329	/// Storage: `Democracy::NextExternal` (r:1 w:0)
330	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
331	/// Storage: `Democracy::PublicProps` (r:1 w:0)
332	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
333	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
334	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
335	/// The range of component `r` is `[0, 99]`.
336	fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
337		// Proof Size summary in bytes:
338		//  Measured:  `69 + r * (86 ±0)`
339		//  Estimated: `18187 + r * (2676 ±0)`
340		// Minimum execution time: 4_035_000 picoseconds.
341		Weight::from_parts(5_266_119, 18187)
342			// Standard Error: 12_570
343			.saturating_add(Weight::from_parts(4_161_668, 0).saturating_mul(r.into()))
344			.saturating_add(T::DbWeight::get().reads(5_u64))
345			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
346			.saturating_add(T::DbWeight::get().writes(1_u64))
347			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
348	}
349	/// Storage: `Democracy::VotingOf` (r:3 w:3)
350	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
351	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
352	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
353	/// Storage: `Balances::Locks` (r:1 w:1)
354	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
355	/// Storage: `Balances::Freezes` (r:1 w:0)
356	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
357	/// The range of component `r` is `[0, 99]`.
358	fn delegate(r: u32, ) -> Weight {
359		// Proof Size summary in bytes:
360		//  Measured:  `571 + r * (108 ±0)`
361		//  Estimated: `19800 + r * (2676 ±0)`
362		// Minimum execution time: 36_212_000 picoseconds.
363		Weight::from_parts(41_878_001, 19800)
364			// Standard Error: 16_775
365			.saturating_add(Weight::from_parts(5_183_966, 0).saturating_mul(r.into()))
366			.saturating_add(T::DbWeight::get().reads(5_u64))
367			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
368			.saturating_add(T::DbWeight::get().writes(4_u64))
369			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
370			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
371	}
372	/// Storage: `Democracy::VotingOf` (r:2 w:2)
373	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
374	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
375	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
376	/// The range of component `r` is `[0, 99]`.
377	fn undelegate(r: u32, ) -> Weight {
378		// Proof Size summary in bytes:
379		//  Measured:  `315 + r * (108 ±0)`
380		//  Estimated: `13530 + r * (2676 ±0)`
381		// Minimum execution time: 15_055_000 picoseconds.
382		Weight::from_parts(12_527_542, 13530)
383			// Standard Error: 16_119
384			.saturating_add(Weight::from_parts(5_117_389, 0).saturating_mul(r.into()))
385			.saturating_add(T::DbWeight::get().reads(2_u64))
386			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
387			.saturating_add(T::DbWeight::get().writes(2_u64))
388			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
389			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
390	}
391	/// Storage: `Democracy::PublicProps` (r:0 w:1)
392	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
393	fn clear_public_proposals() -> Weight {
394		// Proof Size summary in bytes:
395		//  Measured:  `0`
396		//  Estimated: `0`
397		// Minimum execution time: 2_307_000 picoseconds.
398		Weight::from_parts(2_390_000, 0)
399			.saturating_add(T::DbWeight::get().writes(1_u64))
400	}
401	/// Storage: `Democracy::VotingOf` (r:1 w:1)
402	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
403	/// Storage: `Balances::Locks` (r:1 w:1)
404	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
405	/// Storage: `Balances::Freezes` (r:1 w:0)
406	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
407	/// Storage: `System::Account` (r:1 w:1)
408	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
409	/// The range of component `r` is `[0, 99]`.
410	fn unlock_remove(r: u32, ) -> Weight {
411		// Proof Size summary in bytes:
412		//  Measured:  `338`
413		//  Estimated: `7260`
414		// Minimum execution time: 17_918_000 picoseconds.
415		Weight::from_parts(31_930_827, 7260)
416			// Standard Error: 3_430
417			.saturating_add(Weight::from_parts(110_460, 0).saturating_mul(r.into()))
418			.saturating_add(T::DbWeight::get().reads(4_u64))
419			.saturating_add(T::DbWeight::get().writes(3_u64))
420	}
421	/// Storage: `Democracy::VotingOf` (r:1 w:1)
422	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
423	/// Storage: `Balances::Locks` (r:1 w:1)
424	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
425	/// Storage: `Balances::Freezes` (r:1 w:0)
426	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
427	/// Storage: `System::Account` (r:1 w:1)
428	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
429	/// The range of component `r` is `[0, 99]`.
430	fn unlock_set(r: u32, ) -> Weight {
431		// Proof Size summary in bytes:
432		//  Measured:  `339 + r * (22 ±0)`
433		//  Estimated: `7260`
434		// Minimum execution time: 29_501_000 picoseconds.
435		Weight::from_parts(33_031_175, 7260)
436			// Standard Error: 2_088
437			.saturating_add(Weight::from_parts(139_688, 0).saturating_mul(r.into()))
438			.saturating_add(T::DbWeight::get().reads(4_u64))
439			.saturating_add(T::DbWeight::get().writes(3_u64))
440	}
441	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
442	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
443	/// Storage: `Democracy::VotingOf` (r:1 w:1)
444	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
445	/// The range of component `r` is `[1, 100]`.
446	fn remove_vote(r: u32, ) -> Weight {
447		// Proof Size summary in bytes:
448		//  Measured:  `550 + r * (26 ±0)`
449		//  Estimated: `7260`
450		// Minimum execution time: 13_142_000 picoseconds.
451		Weight::from_parts(17_383_584, 7260)
452			// Standard Error: 2_145
453			.saturating_add(Weight::from_parts(125_662, 0).saturating_mul(r.into()))
454			.saturating_add(T::DbWeight::get().reads(2_u64))
455			.saturating_add(T::DbWeight::get().writes(2_u64))
456	}
457	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
458	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
459	/// Storage: `Democracy::VotingOf` (r:1 w:1)
460	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
461	/// The range of component `r` is `[1, 100]`.
462	fn remove_other_vote(r: u32, ) -> Weight {
463		// Proof Size summary in bytes:
464		//  Measured:  `550 + r * (26 ±0)`
465		//  Estimated: `7260`
466		// Minimum execution time: 13_520_000 picoseconds.
467		Weight::from_parts(16_990_690, 7260)
468			// Standard Error: 2_009
469			.saturating_add(Weight::from_parts(130_384, 0).saturating_mul(r.into()))
470			.saturating_add(T::DbWeight::get().reads(2_u64))
471			.saturating_add(T::DbWeight::get().writes(2_u64))
472	}
473	/// Storage: `Democracy::NextExternal` (r:1 w:0)
474	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
475	/// Storage: `Preimage::StatusFor` (r:1 w:0)
476	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
477	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
478	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
479	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
480	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
481	fn set_external_metadata() -> Weight {
482		// Proof Size summary in bytes:
483		//  Measured:  `44`
484		//  Estimated: `3556`
485		// Minimum execution time: 13_322_000 picoseconds.
486		Weight::from_parts(13_936_000, 3556)
487			.saturating_add(T::DbWeight::get().reads(3_u64))
488			.saturating_add(T::DbWeight::get().writes(1_u64))
489	}
490	/// Storage: `Democracy::NextExternal` (r:1 w:0)
491	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
492	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
493	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
494	fn clear_external_metadata() -> Weight {
495		// Proof Size summary in bytes:
496		//  Measured:  `88`
497		//  Estimated: `3518`
498		// Minimum execution time: 11_306_000 picoseconds.
499		Weight::from_parts(11_624_000, 3518)
500			.saturating_add(T::DbWeight::get().reads(2_u64))
501			.saturating_add(T::DbWeight::get().writes(1_u64))
502	}
503	/// Storage: `Democracy::PublicProps` (r:1 w:0)
504	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
505	/// Storage: `Preimage::StatusFor` (r:1 w:0)
506	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
507	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
508	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
509	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
510	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
511	fn set_proposal_metadata() -> Weight {
512		// Proof Size summary in bytes:
513		//  Measured:  `4600`
514		//  Estimated: `18187`
515		// Minimum execution time: 37_988_000 picoseconds.
516		Weight::from_parts(39_073_000, 18187)
517			.saturating_add(T::DbWeight::get().reads(3_u64))
518			.saturating_add(T::DbWeight::get().writes(1_u64))
519	}
520	/// Storage: `Democracy::PublicProps` (r:1 w:0)
521	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
522	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
523	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
524	fn clear_proposal_metadata() -> Weight {
525		// Proof Size summary in bytes:
526		//  Measured:  `4645`
527		//  Estimated: `18187`
528		// Minimum execution time: 34_792_000 picoseconds.
529		Weight::from_parts(35_280_000, 18187)
530			.saturating_add(T::DbWeight::get().reads(2_u64))
531			.saturating_add(T::DbWeight::get().writes(1_u64))
532	}
533	/// Storage: `Preimage::StatusFor` (r:1 w:0)
534	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
535	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
536	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
537	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
538	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
539	fn set_referendum_metadata() -> Weight {
540		// Proof Size summary in bytes:
541		//  Measured:  `30`
542		//  Estimated: `3556`
543		// Minimum execution time: 11_563_000 picoseconds.
544		Weight::from_parts(12_001_000, 3556)
545			.saturating_add(T::DbWeight::get().reads(2_u64))
546			.saturating_add(T::DbWeight::get().writes(1_u64))
547	}
548	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:0)
549	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
550	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
551	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
552	fn clear_referendum_metadata() -> Weight {
553		// Proof Size summary in bytes:
554		//  Measured:  `101`
555		//  Estimated: `3666`
556		// Minimum execution time: 14_072_000 picoseconds.
557		Weight::from_parts(14_478_000, 3666)
558			.saturating_add(T::DbWeight::get().reads(2_u64))
559			.saturating_add(T::DbWeight::get().writes(1_u64))
560	}
561}
562
563// For backwards compatibility and tests.
564impl WeightInfo for () {
565	/// Storage: `Democracy::PublicPropCount` (r:1 w:1)
566	/// Proof: `Democracy::PublicPropCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
567	/// Storage: `Democracy::PublicProps` (r:1 w:1)
568	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
569	/// Storage: `Democracy::Blacklist` (r:1 w:0)
570	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
571	/// Storage: `Democracy::DepositOf` (r:0 w:1)
572	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
573	fn propose() -> Weight {
574		// Proof Size summary in bytes:
575		//  Measured:  `4627`
576		//  Estimated: `18187`
577		// Minimum execution time: 42_808_000 picoseconds.
578		Weight::from_parts(44_067_000, 18187)
579			.saturating_add(RocksDbWeight::get().reads(3_u64))
580			.saturating_add(RocksDbWeight::get().writes(3_u64))
581	}
582	/// Storage: `Democracy::DepositOf` (r:1 w:1)
583	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
584	fn second() -> Weight {
585		// Proof Size summary in bytes:
586		//  Measured:  `3406`
587		//  Estimated: `6695`
588		// Minimum execution time: 37_447_000 picoseconds.
589		Weight::from_parts(39_056_000, 6695)
590			.saturating_add(RocksDbWeight::get().reads(1_u64))
591			.saturating_add(RocksDbWeight::get().writes(1_u64))
592	}
593	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
594	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
595	/// Storage: `Democracy::VotingOf` (r:1 w:1)
596	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
597	/// Storage: `Balances::Locks` (r:1 w:1)
598	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
599	/// Storage: `Balances::Freezes` (r:1 w:0)
600	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
601	fn vote_new() -> Weight {
602		// Proof Size summary in bytes:
603		//  Measured:  `3206`
604		//  Estimated: `7260`
605		// Minimum execution time: 55_472_000 picoseconds.
606		Weight::from_parts(57_655_000, 7260)
607			.saturating_add(RocksDbWeight::get().reads(4_u64))
608			.saturating_add(RocksDbWeight::get().writes(3_u64))
609	}
610	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
611	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
612	/// Storage: `Democracy::VotingOf` (r:1 w:1)
613	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
614	/// Storage: `Balances::Locks` (r:1 w:1)
615	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
616	/// Storage: `Balances::Freezes` (r:1 w:0)
617	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
618	fn vote_existing() -> Weight {
619		// Proof Size summary in bytes:
620		//  Measured:  `3228`
621		//  Estimated: `7260`
622		// Minimum execution time: 59_631_000 picoseconds.
623		Weight::from_parts(62_191_000, 7260)
624			.saturating_add(RocksDbWeight::get().reads(4_u64))
625			.saturating_add(RocksDbWeight::get().writes(3_u64))
626	}
627	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
628	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
629	/// Storage: `Democracy::Cancellations` (r:1 w:1)
630	/// Proof: `Democracy::Cancellations` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
631	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
632	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
633	fn emergency_cancel() -> Weight {
634		// Proof Size summary in bytes:
635		//  Measured:  `191`
636		//  Estimated: `3666`
637		// Minimum execution time: 21_449_000 picoseconds.
638		Weight::from_parts(22_156_000, 3666)
639			.saturating_add(RocksDbWeight::get().reads(3_u64))
640			.saturating_add(RocksDbWeight::get().writes(3_u64))
641	}
642	/// Storage: `Democracy::PublicProps` (r:1 w:1)
643	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
644	/// Storage: `Democracy::DepositOf` (r:1 w:1)
645	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
646	/// Storage: `System::Account` (r:1 w:1)
647	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
648	/// Storage: `Democracy::MetadataOf` (r:3 w:1)
649	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
650	/// Storage: `Democracy::NextExternal` (r:1 w:1)
651	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
652	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
653	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
654	/// Storage: `Democracy::Blacklist` (r:0 w:1)
655	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
656	fn blacklist() -> Weight {
657		// Proof Size summary in bytes:
658		//  Measured:  `5725`
659		//  Estimated: `18187`
660		// Minimum execution time: 108_039_000 picoseconds.
661		Weight::from_parts(109_864_000, 18187)
662			.saturating_add(RocksDbWeight::get().reads(8_u64))
663			.saturating_add(RocksDbWeight::get().writes(7_u64))
664	}
665	/// Storage: `Democracy::NextExternal` (r:1 w:1)
666	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
667	/// Storage: `Democracy::Blacklist` (r:1 w:0)
668	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
669	fn external_propose() -> Weight {
670		// Proof Size summary in bytes:
671		//  Measured:  `3214`
672		//  Estimated: `6703`
673		// Minimum execution time: 8_313_000 picoseconds.
674		Weight::from_parts(8_933_000, 6703)
675			.saturating_add(RocksDbWeight::get().reads(2_u64))
676			.saturating_add(RocksDbWeight::get().writes(1_u64))
677	}
678	/// Storage: `Democracy::NextExternal` (r:0 w:1)
679	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
680	fn external_propose_majority() -> Weight {
681		// Proof Size summary in bytes:
682		//  Measured:  `0`
683		//  Estimated: `0`
684		// Minimum execution time: 2_120_000 picoseconds.
685		Weight::from_parts(2_198_000, 0)
686			.saturating_add(RocksDbWeight::get().writes(1_u64))
687	}
688	/// Storage: `Democracy::NextExternal` (r:0 w:1)
689	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
690	fn external_propose_default() -> Weight {
691		// Proof Size summary in bytes:
692		//  Measured:  `0`
693		//  Estimated: `0`
694		// Minimum execution time: 2_168_000 picoseconds.
695		Weight::from_parts(2_222_000, 0)
696			.saturating_add(RocksDbWeight::get().writes(1_u64))
697	}
698	/// Storage: `Democracy::NextExternal` (r:1 w:1)
699	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
700	/// Storage: `Democracy::ReferendumCount` (r:1 w:1)
701	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
702	/// Storage: `Democracy::MetadataOf` (r:1 w:2)
703	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
704	/// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
705	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
706	fn fast_track() -> Weight {
707		// Proof Size summary in bytes:
708		//  Measured:  `88`
709		//  Estimated: `3518`
710		// Minimum execution time: 19_475_000 picoseconds.
711		Weight::from_parts(20_041_000, 3518)
712			.saturating_add(RocksDbWeight::get().reads(3_u64))
713			.saturating_add(RocksDbWeight::get().writes(5_u64))
714	}
715	/// Storage: `Democracy::NextExternal` (r:1 w:1)
716	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
717	/// Storage: `Democracy::Blacklist` (r:1 w:1)
718	/// Proof: `Democracy::Blacklist` (`max_values`: None, `max_size`: Some(3238), added: 5713, mode: `MaxEncodedLen`)
719	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
720	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
721	fn veto_external() -> Weight {
722		// Proof Size summary in bytes:
723		//  Measured:  `3318`
724		//  Estimated: `6703`
725		// Minimum execution time: 22_799_000 picoseconds.
726		Weight::from_parts(23_367_000, 6703)
727			.saturating_add(RocksDbWeight::get().reads(3_u64))
728			.saturating_add(RocksDbWeight::get().writes(3_u64))
729	}
730	/// Storage: `Democracy::PublicProps` (r:1 w:1)
731	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
732	/// Storage: `Democracy::DepositOf` (r:1 w:1)
733	/// Proof: `Democracy::DepositOf` (`max_values`: None, `max_size`: Some(3230), added: 5705, mode: `MaxEncodedLen`)
734	/// Storage: `System::Account` (r:1 w:1)
735	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
736	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
737	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
738	fn cancel_proposal() -> Weight {
739		// Proof Size summary in bytes:
740		//  Measured:  `5610`
741		//  Estimated: `18187`
742		// Minimum execution time: 87_080_000 picoseconds.
743		Weight::from_parts(89_022_000, 18187)
744			.saturating_add(RocksDbWeight::get().reads(4_u64))
745			.saturating_add(RocksDbWeight::get().writes(4_u64))
746	}
747	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
748	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
749	/// Storage: `Democracy::ReferendumInfoOf` (r:0 w:1)
750	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
751	fn cancel_referendum() -> Weight {
752		// Proof Size summary in bytes:
753		//  Measured:  `122`
754		//  Estimated: `3518`
755		// Minimum execution time: 14_623_000 picoseconds.
756		Weight::from_parts(14_923_000, 3518)
757			.saturating_add(RocksDbWeight::get().reads(1_u64))
758			.saturating_add(RocksDbWeight::get().writes(2_u64))
759	}
760	/// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
761	/// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
762	/// Storage: `Democracy::ReferendumCount` (r:1 w:0)
763	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
764	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
765	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
766	/// The range of component `r` is `[0, 99]`.
767	fn on_initialize_base(r: u32, ) -> Weight {
768		// Proof Size summary in bytes:
769		//  Measured:  `69 + r * (86 ±0)`
770		//  Estimated: `1489 + r * (2676 ±0)`
771		// Minimum execution time: 1_798_000 picoseconds.
772		Weight::from_parts(2_806_006, 1489)
773			// Standard Error: 10_902
774			.saturating_add(Weight::from_parts(4_135_057, 0).saturating_mul(r.into()))
775			.saturating_add(RocksDbWeight::get().reads(2_u64))
776			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
777			.saturating_add(RocksDbWeight::get().writes(1_u64))
778			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
779	}
780	/// Storage: `Democracy::LowestUnbaked` (r:1 w:1)
781	/// Proof: `Democracy::LowestUnbaked` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
782	/// Storage: `Democracy::ReferendumCount` (r:1 w:0)
783	/// Proof: `Democracy::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
784	/// Storage: `Democracy::LastTabledWasExternal` (r:1 w:0)
785	/// Proof: `Democracy::LastTabledWasExternal` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
786	/// Storage: `Democracy::NextExternal` (r:1 w:0)
787	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
788	/// Storage: `Democracy::PublicProps` (r:1 w:0)
789	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
790	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:0)
791	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
792	/// The range of component `r` is `[0, 99]`.
793	fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
794		// Proof Size summary in bytes:
795		//  Measured:  `69 + r * (86 ±0)`
796		//  Estimated: `18187 + r * (2676 ±0)`
797		// Minimum execution time: 4_035_000 picoseconds.
798		Weight::from_parts(5_266_119, 18187)
799			// Standard Error: 12_570
800			.saturating_add(Weight::from_parts(4_161_668, 0).saturating_mul(r.into()))
801			.saturating_add(RocksDbWeight::get().reads(5_u64))
802			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
803			.saturating_add(RocksDbWeight::get().writes(1_u64))
804			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
805	}
806	/// Storage: `Democracy::VotingOf` (r:3 w:3)
807	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
808	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
809	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
810	/// Storage: `Balances::Locks` (r:1 w:1)
811	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
812	/// Storage: `Balances::Freezes` (r:1 w:0)
813	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
814	/// The range of component `r` is `[0, 99]`.
815	fn delegate(r: u32, ) -> Weight {
816		// Proof Size summary in bytes:
817		//  Measured:  `571 + r * (108 ±0)`
818		//  Estimated: `19800 + r * (2676 ±0)`
819		// Minimum execution time: 36_212_000 picoseconds.
820		Weight::from_parts(41_878_001, 19800)
821			// Standard Error: 16_775
822			.saturating_add(Weight::from_parts(5_183_966, 0).saturating_mul(r.into()))
823			.saturating_add(RocksDbWeight::get().reads(5_u64))
824			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
825			.saturating_add(RocksDbWeight::get().writes(4_u64))
826			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into())))
827			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
828	}
829	/// Storage: `Democracy::VotingOf` (r:2 w:2)
830	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
831	/// Storage: `Democracy::ReferendumInfoOf` (r:99 w:99)
832	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
833	/// The range of component `r` is `[0, 99]`.
834	fn undelegate(r: u32, ) -> Weight {
835		// Proof Size summary in bytes:
836		//  Measured:  `315 + r * (108 ±0)`
837		//  Estimated: `13530 + r * (2676 ±0)`
838		// Minimum execution time: 15_055_000 picoseconds.
839		Weight::from_parts(12_527_542, 13530)
840			// Standard Error: 16_119
841			.saturating_add(Weight::from_parts(5_117_389, 0).saturating_mul(r.into()))
842			.saturating_add(RocksDbWeight::get().reads(2_u64))
843			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
844			.saturating_add(RocksDbWeight::get().writes(2_u64))
845			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(r.into())))
846			.saturating_add(Weight::from_parts(0, 2676).saturating_mul(r.into()))
847	}
848	/// Storage: `Democracy::PublicProps` (r:0 w:1)
849	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
850	fn clear_public_proposals() -> Weight {
851		// Proof Size summary in bytes:
852		//  Measured:  `0`
853		//  Estimated: `0`
854		// Minimum execution time: 2_307_000 picoseconds.
855		Weight::from_parts(2_390_000, 0)
856			.saturating_add(RocksDbWeight::get().writes(1_u64))
857	}
858	/// Storage: `Democracy::VotingOf` (r:1 w:1)
859	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
860	/// Storage: `Balances::Locks` (r:1 w:1)
861	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
862	/// Storage: `Balances::Freezes` (r:1 w:0)
863	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, 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	/// The range of component `r` is `[0, 99]`.
867	fn unlock_remove(r: u32, ) -> Weight {
868		// Proof Size summary in bytes:
869		//  Measured:  `338`
870		//  Estimated: `7260`
871		// Minimum execution time: 17_918_000 picoseconds.
872		Weight::from_parts(31_930_827, 7260)
873			// Standard Error: 3_430
874			.saturating_add(Weight::from_parts(110_460, 0).saturating_mul(r.into()))
875			.saturating_add(RocksDbWeight::get().reads(4_u64))
876			.saturating_add(RocksDbWeight::get().writes(3_u64))
877	}
878	/// Storage: `Democracy::VotingOf` (r:1 w:1)
879	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
880	/// Storage: `Balances::Locks` (r:1 w:1)
881	/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
882	/// Storage: `Balances::Freezes` (r:1 w:0)
883	/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
884	/// Storage: `System::Account` (r:1 w:1)
885	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
886	/// The range of component `r` is `[0, 99]`.
887	fn unlock_set(r: u32, ) -> Weight {
888		// Proof Size summary in bytes:
889		//  Measured:  `339 + r * (22 ±0)`
890		//  Estimated: `7260`
891		// Minimum execution time: 29_501_000 picoseconds.
892		Weight::from_parts(33_031_175, 7260)
893			// Standard Error: 2_088
894			.saturating_add(Weight::from_parts(139_688, 0).saturating_mul(r.into()))
895			.saturating_add(RocksDbWeight::get().reads(4_u64))
896			.saturating_add(RocksDbWeight::get().writes(3_u64))
897	}
898	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
899	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
900	/// Storage: `Democracy::VotingOf` (r:1 w:1)
901	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
902	/// The range of component `r` is `[1, 100]`.
903	fn remove_vote(r: u32, ) -> Weight {
904		// Proof Size summary in bytes:
905		//  Measured:  `550 + r * (26 ±0)`
906		//  Estimated: `7260`
907		// Minimum execution time: 13_142_000 picoseconds.
908		Weight::from_parts(17_383_584, 7260)
909			// Standard Error: 2_145
910			.saturating_add(Weight::from_parts(125_662, 0).saturating_mul(r.into()))
911			.saturating_add(RocksDbWeight::get().reads(2_u64))
912			.saturating_add(RocksDbWeight::get().writes(2_u64))
913	}
914	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:1)
915	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
916	/// Storage: `Democracy::VotingOf` (r:1 w:1)
917	/// Proof: `Democracy::VotingOf` (`max_values`: None, `max_size`: Some(3795), added: 6270, mode: `MaxEncodedLen`)
918	/// The range of component `r` is `[1, 100]`.
919	fn remove_other_vote(r: u32, ) -> Weight {
920		// Proof Size summary in bytes:
921		//  Measured:  `550 + r * (26 ±0)`
922		//  Estimated: `7260`
923		// Minimum execution time: 13_520_000 picoseconds.
924		Weight::from_parts(16_990_690, 7260)
925			// Standard Error: 2_009
926			.saturating_add(Weight::from_parts(130_384, 0).saturating_mul(r.into()))
927			.saturating_add(RocksDbWeight::get().reads(2_u64))
928			.saturating_add(RocksDbWeight::get().writes(2_u64))
929	}
930	/// Storage: `Democracy::NextExternal` (r:1 w:0)
931	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
932	/// Storage: `Preimage::StatusFor` (r:1 w:0)
933	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
934	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
935	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
936	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
937	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
938	fn set_external_metadata() -> Weight {
939		// Proof Size summary in bytes:
940		//  Measured:  `44`
941		//  Estimated: `3556`
942		// Minimum execution time: 13_322_000 picoseconds.
943		Weight::from_parts(13_936_000, 3556)
944			.saturating_add(RocksDbWeight::get().reads(3_u64))
945			.saturating_add(RocksDbWeight::get().writes(1_u64))
946	}
947	/// Storage: `Democracy::NextExternal` (r:1 w:0)
948	/// Proof: `Democracy::NextExternal` (`max_values`: Some(1), `max_size`: Some(132), added: 627, mode: `MaxEncodedLen`)
949	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
950	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
951	fn clear_external_metadata() -> Weight {
952		// Proof Size summary in bytes:
953		//  Measured:  `88`
954		//  Estimated: `3518`
955		// Minimum execution time: 11_306_000 picoseconds.
956		Weight::from_parts(11_624_000, 3518)
957			.saturating_add(RocksDbWeight::get().reads(2_u64))
958			.saturating_add(RocksDbWeight::get().writes(1_u64))
959	}
960	/// Storage: `Democracy::PublicProps` (r:1 w:0)
961	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
962	/// Storage: `Preimage::StatusFor` (r:1 w:0)
963	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
964	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
965	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
966	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
967	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
968	fn set_proposal_metadata() -> Weight {
969		// Proof Size summary in bytes:
970		//  Measured:  `4600`
971		//  Estimated: `18187`
972		// Minimum execution time: 37_988_000 picoseconds.
973		Weight::from_parts(39_073_000, 18187)
974			.saturating_add(RocksDbWeight::get().reads(3_u64))
975			.saturating_add(RocksDbWeight::get().writes(1_u64))
976	}
977	/// Storage: `Democracy::PublicProps` (r:1 w:0)
978	/// Proof: `Democracy::PublicProps` (`max_values`: Some(1), `max_size`: Some(16702), added: 17197, mode: `MaxEncodedLen`)
979	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
980	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
981	fn clear_proposal_metadata() -> Weight {
982		// Proof Size summary in bytes:
983		//  Measured:  `4645`
984		//  Estimated: `18187`
985		// Minimum execution time: 34_792_000 picoseconds.
986		Weight::from_parts(35_280_000, 18187)
987			.saturating_add(RocksDbWeight::get().reads(2_u64))
988			.saturating_add(RocksDbWeight::get().writes(1_u64))
989	}
990	/// Storage: `Preimage::StatusFor` (r:1 w:0)
991	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
992	/// Storage: `Preimage::RequestStatusFor` (r:1 w:0)
993	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
994	/// Storage: `Democracy::MetadataOf` (r:0 w:1)
995	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
996	fn set_referendum_metadata() -> Weight {
997		// Proof Size summary in bytes:
998		//  Measured:  `30`
999		//  Estimated: `3556`
1000		// Minimum execution time: 11_563_000 picoseconds.
1001		Weight::from_parts(12_001_000, 3556)
1002			.saturating_add(RocksDbWeight::get().reads(2_u64))
1003			.saturating_add(RocksDbWeight::get().writes(1_u64))
1004	}
1005	/// Storage: `Democracy::ReferendumInfoOf` (r:1 w:0)
1006	/// Proof: `Democracy::ReferendumInfoOf` (`max_values`: None, `max_size`: Some(201), added: 2676, mode: `MaxEncodedLen`)
1007	/// Storage: `Democracy::MetadataOf` (r:1 w:1)
1008	/// Proof: `Democracy::MetadataOf` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
1009	fn clear_referendum_metadata() -> Weight {
1010		// Proof Size summary in bytes:
1011		//  Measured:  `101`
1012		//  Estimated: `3666`
1013		// Minimum execution time: 14_072_000 picoseconds.
1014		Weight::from_parts(14_478_000, 3666)
1015			.saturating_add(RocksDbWeight::get().reads(2_u64))
1016			.saturating_add(RocksDbWeight::get().writes(1_u64))
1017	}
1018}