pallet_schemas/
weights.rs

1
2//! Autogenerated weights for `pallet_schemas`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
5//! DATE: 2025-08-20, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
8//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
9
10// Executed Command:
11// ./scripts/../target/release/frequency
12// benchmark
13// pallet
14// --pallet=pallet_schemas
15// --extrinsic
16// *
17// --heap-pages=4096
18// --steps=20
19// --repeat=10
20// --output=./scripts/../pallets/schemas/src/weights.rs
21// --template=./scripts/../.maintain/frame-weight-template.hbs
22// --additional-trie-layers=3
23// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
24// --genesis-builder=runtime
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29#![allow(missing_docs)]
30
31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
32use core::marker::PhantomData;
33
34/// Weight functions needed for `pallet_schemas`.
35pub trait WeightInfo {
36	fn create_schema_v3_with_name(m: u32, ) -> Weight;
37	fn create_schema_v3_without_name(m: u32, ) -> Weight;
38	fn set_max_schema_model_bytes() -> Weight;
39	fn create_schema_via_governance_v2_with_name(m: u32, ) -> Weight;
40	fn create_schema_via_governance_v2_without_name(m: u32, ) -> Weight;
41	fn propose_to_create_schema_v2_with_name(m: u32, ) -> Weight;
42	fn propose_to_create_schema_v2_without_name(m: u32, ) -> Weight;
43	fn propose_to_create_schema_name() -> Weight;
44	fn create_schema_name_via_governance() -> Weight;
45}
46
47/// Weights for `pallet_schemas` using the Substrate node and recommended hardware.
48pub struct SubstrateWeight<T>(PhantomData<T>);
49impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
50	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
51	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
52	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
53	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
54	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
55	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
56	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
57	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
58	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
59	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
60	/// The range of component `m` is `[16, 65499]`.
61	fn create_schema_v3_with_name(m: u32, ) -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `211`
64		//  Estimated: `4562`
65		// Minimum execution time: 26_040_000 picoseconds.
66		Weight::from_parts(22_243_723, 4562)
67			// Standard Error: 54
68			.saturating_add(Weight::from_parts(34_810, 0).saturating_mul(m.into()))
69			.saturating_add(T::DbWeight::get().reads(3_u64))
70			.saturating_add(T::DbWeight::get().writes(4_u64))
71	}
72	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
73	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
74	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
75	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
76	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
77	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
78	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
79	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
80	/// The range of component `m` is `[16, 65499]`.
81	fn create_schema_v3_without_name(m: u32, ) -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `156`
84		//  Estimated: `1984`
85		// Minimum execution time: 16_469_000 picoseconds.
86		Weight::from_parts(10_164_947, 1984)
87			// Standard Error: 56
88			.saturating_add(Weight::from_parts(34_717, 0).saturating_mul(m.into()))
89			.saturating_add(T::DbWeight::get().reads(2_u64))
90			.saturating_add(T::DbWeight::get().writes(3_u64))
91	}
92	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:0 w:1)
93	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
94	fn set_max_schema_model_bytes() -> Weight {
95		// Proof Size summary in bytes:
96		//  Measured:  `0`
97		//  Estimated: `0`
98		// Minimum execution time: 5_645_000 picoseconds.
99		Weight::from_parts(5_977_000, 0)
100			.saturating_add(T::DbWeight::get().writes(1_u64))
101	}
102	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
103	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
104	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
105	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
106	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
107	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
108	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
109	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
110	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
111	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
112	/// The range of component `m` is `[16, 65499]`.
113	fn create_schema_via_governance_v2_with_name(m: u32, ) -> Weight {
114		// Proof Size summary in bytes:
115		//  Measured:  `211`
116		//  Estimated: `4562`
117		// Minimum execution time: 26_422_000 picoseconds.
118		Weight::from_parts(19_355_458, 4562)
119			// Standard Error: 62
120			.saturating_add(Weight::from_parts(34_685, 0).saturating_mul(m.into()))
121			.saturating_add(T::DbWeight::get().reads(3_u64))
122			.saturating_add(T::DbWeight::get().writes(4_u64))
123	}
124	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
125	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
126	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
127	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
128	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
129	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
130	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
131	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
132	/// The range of component `m` is `[16, 65499]`.
133	fn create_schema_via_governance_v2_without_name(m: u32, ) -> Weight {
134		// Proof Size summary in bytes:
135		//  Measured:  `156`
136		//  Estimated: `1984`
137		// Minimum execution time: 16_073_000 picoseconds.
138		Weight::from_parts(4_734_242, 1984)
139			// Standard Error: 57
140			.saturating_add(Weight::from_parts(34_673, 0).saturating_mul(m.into()))
141			.saturating_add(T::DbWeight::get().reads(2_u64))
142			.saturating_add(T::DbWeight::get().writes(3_u64))
143	}
144	/// Storage: `Council::Members` (r:1 w:0)
145	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
146	/// Storage: `Council::ProposalOf` (r:1 w:1)
147	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
148	/// Storage: `Council::Proposals` (r:1 w:1)
149	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
150	/// Storage: `Council::ProposalCount` (r:1 w:1)
151	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
152	/// Storage: `Council::Voting` (r:0 w:1)
153	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
154	/// The range of component `m` is `[16, 65499]`.
155	fn propose_to_create_schema_v2_with_name(m: u32, ) -> Weight {
156		// Proof Size summary in bytes:
157		//  Measured:  `166`
158		//  Estimated: `4126`
159		// Minimum execution time: 22_924_000 picoseconds.
160		Weight::from_parts(7_349_459, 4126)
161			// Standard Error: 49
162			.saturating_add(Weight::from_parts(3_815, 0).saturating_mul(m.into()))
163			.saturating_add(T::DbWeight::get().reads(4_u64))
164			.saturating_add(T::DbWeight::get().writes(4_u64))
165	}
166	/// Storage: `Council::Members` (r:1 w:0)
167	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168	/// Storage: `Council::ProposalOf` (r:1 w:1)
169	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
170	/// Storage: `Council::Proposals` (r:1 w:1)
171	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172	/// Storage: `Council::ProposalCount` (r:1 w:1)
173	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174	/// Storage: `Council::Voting` (r:0 w:1)
175	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
176	/// The range of component `m` is `[16, 65499]`.
177	fn propose_to_create_schema_v2_without_name(m: u32, ) -> Weight {
178		// Proof Size summary in bytes:
179		//  Measured:  `166`
180		//  Estimated: `4126`
181		// Minimum execution time: 22_154_000 picoseconds.
182		Weight::from_parts(7_065_638, 4126)
183			// Standard Error: 48
184			.saturating_add(Weight::from_parts(3_804, 0).saturating_mul(m.into()))
185			.saturating_add(T::DbWeight::get().reads(4_u64))
186			.saturating_add(T::DbWeight::get().writes(4_u64))
187	}
188	/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
189	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
190	/// Storage: `Council::Members` (r:1 w:0)
191	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
192	/// Storage: `Council::ProposalOf` (r:1 w:1)
193	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
194	/// Storage: `Council::Proposals` (r:1 w:1)
195	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
196	/// Storage: `Council::ProposalCount` (r:1 w:1)
197	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
198	/// Storage: `Council::Voting` (r:0 w:1)
199	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
200	fn propose_to_create_schema_name() -> Weight {
201		// Proof Size summary in bytes:
202		//  Measured:  `575`
203		//  Estimated: `4535`
204		// Minimum execution time: 32_727_000 picoseconds.
205		Weight::from_parts(33_474_000, 4535)
206			.saturating_add(T::DbWeight::get().reads(5_u64))
207			.saturating_add(T::DbWeight::get().writes(4_u64))
208	}
209	/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
210	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
211	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
212	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
213	fn create_schema_name_via_governance() -> Weight {
214		// Proof Size summary in bytes:
215		//  Measured:  `464`
216		//  Estimated: `4562`
217		// Minimum execution time: 21_429_000 picoseconds.
218		Weight::from_parts(21_735_000, 4562)
219			.saturating_add(T::DbWeight::get().reads(2_u64))
220			.saturating_add(T::DbWeight::get().writes(1_u64))
221	}
222}
223
224// For backwards compatibility and tests.
225impl WeightInfo for () {
226	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
227	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
228	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
229	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
230	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
231	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
232	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
233	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
234	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
235	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
236	/// The range of component `m` is `[16, 65499]`.
237	fn create_schema_v3_with_name(m: u32, ) -> Weight {
238		// Proof Size summary in bytes:
239		//  Measured:  `211`
240		//  Estimated: `4562`
241		// Minimum execution time: 26_040_000 picoseconds.
242		Weight::from_parts(22_243_723, 4562)
243			// Standard Error: 54
244			.saturating_add(Weight::from_parts(34_810, 0).saturating_mul(m.into()))
245			.saturating_add(RocksDbWeight::get().reads(3_u64))
246			.saturating_add(RocksDbWeight::get().writes(4_u64))
247	}
248	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
249	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
250	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
251	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
252	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
253	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
254	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
255	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
256	/// The range of component `m` is `[16, 65499]`.
257	fn create_schema_v3_without_name(m: u32, ) -> Weight {
258		// Proof Size summary in bytes:
259		//  Measured:  `156`
260		//  Estimated: `1984`
261		// Minimum execution time: 16_469_000 picoseconds.
262		Weight::from_parts(10_164_947, 1984)
263			// Standard Error: 56
264			.saturating_add(Weight::from_parts(34_717, 0).saturating_mul(m.into()))
265			.saturating_add(RocksDbWeight::get().reads(2_u64))
266			.saturating_add(RocksDbWeight::get().writes(3_u64))
267	}
268	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:0 w:1)
269	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
270	fn set_max_schema_model_bytes() -> Weight {
271		// Proof Size summary in bytes:
272		//  Measured:  `0`
273		//  Estimated: `0`
274		// Minimum execution time: 5_645_000 picoseconds.
275		Weight::from_parts(5_977_000, 0)
276			.saturating_add(RocksDbWeight::get().writes(1_u64))
277	}
278	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
279	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
280	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
281	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
282	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
283	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
284	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
285	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
286	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
287	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
288	/// The range of component `m` is `[16, 65499]`.
289	fn create_schema_via_governance_v2_with_name(m: u32, ) -> Weight {
290		// Proof Size summary in bytes:
291		//  Measured:  `211`
292		//  Estimated: `4562`
293		// Minimum execution time: 26_422_000 picoseconds.
294		Weight::from_parts(19_355_458, 4562)
295			// Standard Error: 62
296			.saturating_add(Weight::from_parts(34_685, 0).saturating_mul(m.into()))
297			.saturating_add(RocksDbWeight::get().reads(3_u64))
298			.saturating_add(RocksDbWeight::get().writes(4_u64))
299	}
300	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
301	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
302	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
303	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
304	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
305	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
306	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
307	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
308	/// The range of component `m` is `[16, 65499]`.
309	fn create_schema_via_governance_v2_without_name(m: u32, ) -> Weight {
310		// Proof Size summary in bytes:
311		//  Measured:  `156`
312		//  Estimated: `1984`
313		// Minimum execution time: 16_073_000 picoseconds.
314		Weight::from_parts(4_734_242, 1984)
315			// Standard Error: 57
316			.saturating_add(Weight::from_parts(34_673, 0).saturating_mul(m.into()))
317			.saturating_add(RocksDbWeight::get().reads(2_u64))
318			.saturating_add(RocksDbWeight::get().writes(3_u64))
319	}
320	/// Storage: `Council::Members` (r:1 w:0)
321	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
322	/// Storage: `Council::ProposalOf` (r:1 w:1)
323	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
324	/// Storage: `Council::Proposals` (r:1 w:1)
325	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
326	/// Storage: `Council::ProposalCount` (r:1 w:1)
327	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
328	/// Storage: `Council::Voting` (r:0 w:1)
329	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
330	/// The range of component `m` is `[16, 65499]`.
331	fn propose_to_create_schema_v2_with_name(m: u32, ) -> Weight {
332		// Proof Size summary in bytes:
333		//  Measured:  `166`
334		//  Estimated: `4126`
335		// Minimum execution time: 22_924_000 picoseconds.
336		Weight::from_parts(7_349_459, 4126)
337			// Standard Error: 49
338			.saturating_add(Weight::from_parts(3_815, 0).saturating_mul(m.into()))
339			.saturating_add(RocksDbWeight::get().reads(4_u64))
340			.saturating_add(RocksDbWeight::get().writes(4_u64))
341	}
342	/// Storage: `Council::Members` (r:1 w:0)
343	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
344	/// Storage: `Council::ProposalOf` (r:1 w:1)
345	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
346	/// Storage: `Council::Proposals` (r:1 w:1)
347	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
348	/// Storage: `Council::ProposalCount` (r:1 w:1)
349	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
350	/// Storage: `Council::Voting` (r:0 w:1)
351	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
352	/// The range of component `m` is `[16, 65499]`.
353	fn propose_to_create_schema_v2_without_name(m: u32, ) -> Weight {
354		// Proof Size summary in bytes:
355		//  Measured:  `166`
356		//  Estimated: `4126`
357		// Minimum execution time: 22_154_000 picoseconds.
358		Weight::from_parts(7_065_638, 4126)
359			// Standard Error: 48
360			.saturating_add(Weight::from_parts(3_804, 0).saturating_mul(m.into()))
361			.saturating_add(RocksDbWeight::get().reads(4_u64))
362			.saturating_add(RocksDbWeight::get().writes(4_u64))
363	}
364	/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
365	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
366	/// Storage: `Council::Members` (r:1 w:0)
367	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
368	/// Storage: `Council::ProposalOf` (r:1 w:1)
369	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
370	/// Storage: `Council::Proposals` (r:1 w:1)
371	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
372	/// Storage: `Council::ProposalCount` (r:1 w:1)
373	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
374	/// Storage: `Council::Voting` (r:0 w:1)
375	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
376	fn propose_to_create_schema_name() -> Weight {
377		// Proof Size summary in bytes:
378		//  Measured:  `575`
379		//  Estimated: `4535`
380		// Minimum execution time: 32_727_000 picoseconds.
381		Weight::from_parts(33_474_000, 4535)
382			.saturating_add(RocksDbWeight::get().reads(5_u64))
383			.saturating_add(RocksDbWeight::get().writes(4_u64))
384	}
385	/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
386	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(15), added: 2490, mode: `MaxEncodedLen`)
387	/// Storage: `Schemas::SchemaNameToIds` (r:1 w:1)
388	/// Proof: `Schemas::SchemaNameToIds` (`max_values`: None, `max_size`: Some(602), added: 3077, mode: `MaxEncodedLen`)
389	fn create_schema_name_via_governance() -> Weight {
390		// Proof Size summary in bytes:
391		//  Measured:  `464`
392		//  Estimated: `4562`
393		// Minimum execution time: 21_429_000 picoseconds.
394		Weight::from_parts(21_735_000, 4562)
395			.saturating_add(RocksDbWeight::get().reads(2_u64))
396			.saturating_add(RocksDbWeight::get().writes(1_u64))
397	}
398}
399
400
401#[cfg(test)]
402mod tests {
403  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
404  use common_runtime::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
405  use common_runtime::weights::extrinsic_weights::ExtrinsicBaseWeight;
406
407  #[allow(dead_code)]
408  struct BlockWeights;
409  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
410  	fn get() -> frame_system::limits::BlockWeights {
411  		frame_system::limits::BlockWeights::builder()
412  			.base_block(Weight::zero())
413  			.for_class(DispatchClass::all(), |weights| {
414  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
415  			})
416  			.for_class(DispatchClass::non_mandatory(), |weights| {
417  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
418  			})
419  			.build_or_panic()
420  	}
421  }
422
423	#[test]
424	fn test_create_schema_v3_with_name() {
425		assert!(
426			BlockWeights::get()
427				.per_class
428				.get(frame_support::dispatch::DispatchClass::Normal)
429				.max_extrinsic
430				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
431				.proof_size()
432				> 4562
433		);
434	}
435	#[test]
436	fn test_create_schema_v3_without_name() {
437		assert!(
438			BlockWeights::get()
439				.per_class
440				.get(frame_support::dispatch::DispatchClass::Normal)
441				.max_extrinsic
442				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
443				.proof_size()
444				> 1984
445		);
446	}
447	#[test]
448	fn test_create_schema_via_governance_v2_with_name() {
449		assert!(
450			BlockWeights::get()
451				.per_class
452				.get(frame_support::dispatch::DispatchClass::Normal)
453				.max_extrinsic
454				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
455				.proof_size()
456				> 4562
457		);
458	}
459	#[test]
460	fn test_create_schema_via_governance_v2_without_name() {
461		assert!(
462			BlockWeights::get()
463				.per_class
464				.get(frame_support::dispatch::DispatchClass::Normal)
465				.max_extrinsic
466				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
467				.proof_size()
468				> 1984
469		);
470	}
471	#[test]
472	fn test_propose_to_create_schema_v2_with_name() {
473		assert!(
474			BlockWeights::get()
475				.per_class
476				.get(frame_support::dispatch::DispatchClass::Normal)
477				.max_extrinsic
478				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
479				.proof_size()
480				> 4126
481		);
482	}
483	#[test]
484	fn test_propose_to_create_schema_v2_without_name() {
485		assert!(
486			BlockWeights::get()
487				.per_class
488				.get(frame_support::dispatch::DispatchClass::Normal)
489				.max_extrinsic
490				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
491				.proof_size()
492				> 4126
493		);
494	}
495	#[test]
496	fn test_propose_to_create_schema_name() {
497		assert!(
498			BlockWeights::get()
499				.per_class
500				.get(frame_support::dispatch::DispatchClass::Normal)
501				.max_extrinsic
502				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
503				.proof_size()
504				> 4535
505		);
506	}
507	#[test]
508	fn test_create_schema_name_via_governance() {
509		assert!(
510			BlockWeights::get()
511				.per_class
512				.get(frame_support::dispatch::DispatchClass::Normal)
513				.max_extrinsic
514				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
515				.proof_size()
516				> 4562
517		);
518	}
519}