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: 2026-03-23, 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_v4(m: u32, ) -> Weight;
37	fn set_max_schema_model_bytes() -> Weight;
38	fn create_schema_via_governance_v3(m: u32, ) -> Weight;
39	fn propose_to_create_schema_v3() -> Weight;
40	fn create_intent(m: u32, ) -> Weight;
41	fn create_intent_via_governance(m: u32, ) -> Weight;
42	fn propose_to_create_intent() -> Weight;
43	fn create_intent_group(m: u32, ) -> Weight;
44	fn create_intent_group_via_governance(m: u32, ) -> Weight;
45	fn propose_to_create_intent_group() -> Weight;
46	fn update_intent_group(m: u32, ) -> Weight;
47	fn update_intent_group_via_governance(m: u32, ) -> Weight;
48	fn propose_to_update_intent_group() -> Weight;
49}
50
51/// Weights for `pallet_schemas` using the Substrate node and recommended hardware.
52pub struct SubstrateWeight<T>(PhantomData<T>);
53impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
54	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
55	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56	/// Storage: `Schemas::IntentInfos` (r:1 w:0)
57	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
58	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
59	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
60	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
61	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
62	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
63	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
64	/// The range of component `m` is `[16, 65499]`.
65	fn create_schema_v4(m: u32, ) -> Weight {
66		// Proof Size summary in bytes:
67		//  Measured:  `497`
68		//  Estimated: `3973`
69		// Minimum execution time: 25_820_000 picoseconds.
70		Weight::from_parts(17_960_342, 3973)
71			// Standard Error: 57
72			.saturating_add(Weight::from_parts(36_575, 0).saturating_mul(m.into()))
73			.saturating_add(T::DbWeight::get().reads(3_u64))
74			.saturating_add(T::DbWeight::get().writes(3_u64))
75	}
76	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:0 w:1)
77	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
78	fn set_max_schema_model_bytes() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `0`
81		//  Estimated: `0`
82		// Minimum execution time: 5_491_000 picoseconds.
83		Weight::from_parts(5_818_000, 0)
84			.saturating_add(T::DbWeight::get().writes(1_u64))
85	}
86	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
87	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
88	/// Storage: `Schemas::IntentInfos` (r:1 w:0)
89	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
90	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
91	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
92	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
93	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
94	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
95	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
96	/// The range of component `m` is `[16, 65499]`.
97	fn create_schema_via_governance_v3(m: u32, ) -> Weight {
98		// Proof Size summary in bytes:
99		//  Measured:  `497`
100		//  Estimated: `3973`
101		// Minimum execution time: 25_357_000 picoseconds.
102		Weight::from_parts(13_047_550, 3973)
103			// Standard Error: 72
104			.saturating_add(Weight::from_parts(35_700, 0).saturating_mul(m.into()))
105			.saturating_add(T::DbWeight::get().reads(3_u64))
106			.saturating_add(T::DbWeight::get().writes(3_u64))
107	}
108	/// Storage: `Council::Members` (r:1 w:0)
109	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110	/// Storage: `Council::ProposalOf` (r:1 w:1)
111	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
112	/// Storage: `Council::Proposals` (r:1 w:1)
113	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
114	/// Storage: `Council::ProposalCount` (r:1 w:1)
115	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
116	/// Storage: `Council::Voting` (r:0 w:1)
117	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
118	fn propose_to_create_schema_v3() -> Weight {
119		// Proof Size summary in bytes:
120		//  Measured:  `166`
121		//  Estimated: `4126`
122		// Minimum execution time: 190_450_000 picoseconds.
123		Weight::from_parts(194_668_000, 4126)
124			.saturating_add(T::DbWeight::get().reads(4_u64))
125			.saturating_add(T::DbWeight::get().writes(4_u64))
126	}
127	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
128	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
129	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:1)
130	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
131	/// Storage: `Schemas::IntentInfos` (r:0 w:1)
132	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
133	/// The range of component `m` is `[0, 2]`.
134	fn create_intent(_m: u32, ) -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `300`
137		//  Estimated: `4055`
138		// Minimum execution time: 23_426_000 picoseconds.
139		Weight::from_parts(24_963_608, 4055)
140			.saturating_add(T::DbWeight::get().reads(2_u64))
141			.saturating_add(T::DbWeight::get().writes(3_u64))
142	}
143	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
144	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
145	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:1)
146	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
147	/// Storage: `Schemas::IntentInfos` (r:0 w:1)
148	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
149	/// The range of component `m` is `[0, 2]`.
150	fn create_intent_via_governance(m: u32, ) -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `300`
153		//  Estimated: `4055`
154		// Minimum execution time: 23_630_000 picoseconds.
155		Weight::from_parts(24_898_930, 4055)
156			// Standard Error: 57_719
157			.saturating_add(Weight::from_parts(144_743, 0).saturating_mul(m.into()))
158			.saturating_add(T::DbWeight::get().reads(2_u64))
159			.saturating_add(T::DbWeight::get().writes(3_u64))
160	}
161	/// Storage: `Council::Members` (r:1 w:0)
162	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
163	/// Storage: `Council::ProposalOf` (r:1 w:1)
164	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
165	/// Storage: `Council::Proposals` (r:1 w:1)
166	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167	/// Storage: `Council::ProposalCount` (r:1 w:1)
168	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169	/// Storage: `Council::Voting` (r:0 w:1)
170	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
171	fn propose_to_create_intent() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `166`
174		//  Estimated: `4126`
175		// Minimum execution time: 21_300_000 picoseconds.
176		Weight::from_parts(21_898_000, 4126)
177			.saturating_add(T::DbWeight::get().reads(4_u64))
178			.saturating_add(T::DbWeight::get().writes(4_u64))
179	}
180	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
181	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
182	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
183	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
184	/// Storage: `Schemas::CurrentIntentGroupIdentifierMaximum` (r:1 w:1)
185	/// Proof: `Schemas::CurrentIntentGroupIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
186	/// Storage: `Schemas::IntentGroups` (r:0 w:1)
187	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
188	/// The range of component `m` is `[0, 10]`.
189	fn create_intent_group(m: u32, ) -> Weight {
190		// Proof Size summary in bytes:
191		//  Measured:  `317 + m * (22 ±0)`
192		//  Estimated: `4055`
193		// Minimum execution time: 24_245_000 picoseconds.
194		Weight::from_parts(26_132_742, 4055)
195			// Standard Error: 21_385
196			.saturating_add(Weight::from_parts(506_608, 0).saturating_mul(m.into()))
197			.saturating_add(T::DbWeight::get().reads(3_u64))
198			.saturating_add(T::DbWeight::get().writes(3_u64))
199	}
200	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
201	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
202	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
203	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
204	/// Storage: `Schemas::CurrentIntentGroupIdentifierMaximum` (r:1 w:1)
205	/// Proof: `Schemas::CurrentIntentGroupIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
206	/// Storage: `Schemas::IntentGroups` (r:0 w:1)
207	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
208	/// The range of component `m` is `[0, 2]`.
209	fn create_intent_group_via_governance(m: u32, ) -> Weight {
210		// Proof Size summary in bytes:
211		//  Measured:  `300 + m * (47 ±0)`
212		//  Estimated: `4055`
213		// Minimum execution time: 24_263_000 picoseconds.
214		Weight::from_parts(25_362_834, 4055)
215			// Standard Error: 63_020
216			.saturating_add(Weight::from_parts(1_429_894, 0).saturating_mul(m.into()))
217			.saturating_add(T::DbWeight::get().reads(3_u64))
218			.saturating_add(T::DbWeight::get().writes(3_u64))
219	}
220	/// Storage: `Council::Members` (r:1 w:0)
221	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
222	/// Storage: `Council::ProposalOf` (r:1 w:1)
223	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
224	/// Storage: `Council::Proposals` (r:1 w:1)
225	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
226	/// Storage: `Council::ProposalCount` (r:1 w:1)
227	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228	/// Storage: `Council::Voting` (r:0 w:1)
229	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
230	fn propose_to_create_intent_group() -> Weight {
231		// Proof Size summary in bytes:
232		//  Measured:  `166`
233		//  Estimated: `4126`
234		// Minimum execution time: 21_720_000 picoseconds.
235		Weight::from_parts(22_747_000, 4126)
236			.saturating_add(T::DbWeight::get().reads(4_u64))
237			.saturating_add(T::DbWeight::get().writes(4_u64))
238	}
239	/// Storage: `Schemas::IntentGroups` (r:1 w:1)
240	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
241	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
242	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
243	/// The range of component `m` is `[0, 10]`.
244	fn update_intent_group(m: u32, ) -> Weight {
245		// Proof Size summary in bytes:
246		//  Measured:  `182`
247		//  Estimated: `3991`
248		// Minimum execution time: 13_601_000 picoseconds.
249		Weight::from_parts(14_585_557, 3991)
250			// Standard Error: 8_883
251			.saturating_add(Weight::from_parts(35_751, 0).saturating_mul(m.into()))
252			.saturating_add(T::DbWeight::get().reads(2_u64))
253			.saturating_add(T::DbWeight::get().writes(1_u64))
254	}
255	/// Storage: `Schemas::IntentGroups` (r:1 w:1)
256	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
257	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
258	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
259	/// The range of component `m` is `[0, 2]`.
260	fn update_intent_group_via_governance(m: u32, ) -> Weight {
261		// Proof Size summary in bytes:
262		//  Measured:  `182`
263		//  Estimated: `3991`
264		// Minimum execution time: 13_574_000 picoseconds.
265		Weight::from_parts(14_483_616, 3991)
266			// Standard Error: 39_578
267			.saturating_add(Weight::from_parts(216_260, 0).saturating_mul(m.into()))
268			.saturating_add(T::DbWeight::get().reads(2_u64))
269			.saturating_add(T::DbWeight::get().writes(1_u64))
270	}
271	/// Storage: `Council::Members` (r:1 w:0)
272	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
273	/// Storage: `Council::ProposalOf` (r:1 w:1)
274	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
275	/// Storage: `Council::Proposals` (r:1 w:1)
276	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
277	/// Storage: `Council::ProposalCount` (r:1 w:1)
278	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
279	/// Storage: `Council::Voting` (r:0 w:1)
280	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
281	fn propose_to_update_intent_group() -> Weight {
282		// Proof Size summary in bytes:
283		//  Measured:  `166`
284		//  Estimated: `4126`
285		// Minimum execution time: 21_881_000 picoseconds.
286		Weight::from_parts(22_647_000, 4126)
287			.saturating_add(T::DbWeight::get().reads(4_u64))
288			.saturating_add(T::DbWeight::get().writes(4_u64))
289	}
290}
291
292// For backwards compatibility and tests.
293impl WeightInfo for () {
294	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
295	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
296	/// Storage: `Schemas::IntentInfos` (r:1 w:0)
297	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
298	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
299	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
300	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
301	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
302	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
303	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
304	/// The range of component `m` is `[16, 65499]`.
305	fn create_schema_v4(m: u32, ) -> Weight {
306		// Proof Size summary in bytes:
307		//  Measured:  `497`
308		//  Estimated: `3973`
309		// Minimum execution time: 25_820_000 picoseconds.
310		Weight::from_parts(17_960_342, 3973)
311			// Standard Error: 57
312			.saturating_add(Weight::from_parts(36_575, 0).saturating_mul(m.into()))
313			.saturating_add(RocksDbWeight::get().reads(3_u64))
314			.saturating_add(RocksDbWeight::get().writes(3_u64))
315	}
316	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:0 w:1)
317	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
318	fn set_max_schema_model_bytes() -> Weight {
319		// Proof Size summary in bytes:
320		//  Measured:  `0`
321		//  Estimated: `0`
322		// Minimum execution time: 5_491_000 picoseconds.
323		Weight::from_parts(5_818_000, 0)
324			.saturating_add(RocksDbWeight::get().writes(1_u64))
325	}
326	/// Storage: `Schemas::GovernanceSchemaModelMaxBytes` (r:1 w:0)
327	/// Proof: `Schemas::GovernanceSchemaModelMaxBytes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
328	/// Storage: `Schemas::IntentInfos` (r:1 w:0)
329	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
330	/// Storage: `Schemas::CurrentSchemaIdentifierMaximum` (r:1 w:1)
331	/// Proof: `Schemas::CurrentSchemaIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
332	/// Storage: `Schemas::SchemaInfos` (r:0 w:1)
333	/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(17), added: 2492, mode: `MaxEncodedLen`)
334	/// Storage: `Schemas::SchemaPayloads` (r:0 w:1)
335	/// Proof: `Schemas::SchemaPayloads` (`max_values`: None, `max_size`: Some(65514), added: 67989, mode: `MaxEncodedLen`)
336	/// The range of component `m` is `[16, 65499]`.
337	fn create_schema_via_governance_v3(m: u32, ) -> Weight {
338		// Proof Size summary in bytes:
339		//  Measured:  `497`
340		//  Estimated: `3973`
341		// Minimum execution time: 25_357_000 picoseconds.
342		Weight::from_parts(13_047_550, 3973)
343			// Standard Error: 72
344			.saturating_add(Weight::from_parts(35_700, 0).saturating_mul(m.into()))
345			.saturating_add(RocksDbWeight::get().reads(3_u64))
346			.saturating_add(RocksDbWeight::get().writes(3_u64))
347	}
348	/// Storage: `Council::Members` (r:1 w:0)
349	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
350	/// Storage: `Council::ProposalOf` (r:1 w:1)
351	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
352	/// Storage: `Council::Proposals` (r:1 w:1)
353	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
354	/// Storage: `Council::ProposalCount` (r:1 w:1)
355	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
356	/// Storage: `Council::Voting` (r:0 w:1)
357	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
358	fn propose_to_create_schema_v3() -> Weight {
359		// Proof Size summary in bytes:
360		//  Measured:  `166`
361		//  Estimated: `4126`
362		// Minimum execution time: 190_450_000 picoseconds.
363		Weight::from_parts(194_668_000, 4126)
364			.saturating_add(RocksDbWeight::get().reads(4_u64))
365			.saturating_add(RocksDbWeight::get().writes(4_u64))
366	}
367	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
368	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
369	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:1)
370	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
371	/// Storage: `Schemas::IntentInfos` (r:0 w:1)
372	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
373	/// The range of component `m` is `[0, 2]`.
374	fn create_intent(_m: u32, ) -> Weight {
375		// Proof Size summary in bytes:
376		//  Measured:  `300`
377		//  Estimated: `4055`
378		// Minimum execution time: 23_426_000 picoseconds.
379		Weight::from_parts(24_963_608, 4055)
380			.saturating_add(RocksDbWeight::get().reads(2_u64))
381			.saturating_add(RocksDbWeight::get().writes(3_u64))
382	}
383	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
384	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
385	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:1)
386	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
387	/// Storage: `Schemas::IntentInfos` (r:0 w:1)
388	/// Proof: `Schemas::IntentInfos` (`max_values`: None, `max_size`: Some(13), added: 2488, mode: `MaxEncodedLen`)
389	/// The range of component `m` is `[0, 2]`.
390	fn create_intent_via_governance(m: u32, ) -> Weight {
391		// Proof Size summary in bytes:
392		//  Measured:  `300`
393		//  Estimated: `4055`
394		// Minimum execution time: 23_630_000 picoseconds.
395		Weight::from_parts(24_898_930, 4055)
396			// Standard Error: 57_719
397			.saturating_add(Weight::from_parts(144_743, 0).saturating_mul(m.into()))
398			.saturating_add(RocksDbWeight::get().reads(2_u64))
399			.saturating_add(RocksDbWeight::get().writes(3_u64))
400	}
401	/// Storage: `Council::Members` (r:1 w:0)
402	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
403	/// Storage: `Council::ProposalOf` (r:1 w:1)
404	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
405	/// Storage: `Council::Proposals` (r:1 w:1)
406	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
407	/// Storage: `Council::ProposalCount` (r:1 w:1)
408	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
409	/// Storage: `Council::Voting` (r:0 w:1)
410	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
411	fn propose_to_create_intent() -> Weight {
412		// Proof Size summary in bytes:
413		//  Measured:  `166`
414		//  Estimated: `4126`
415		// Minimum execution time: 21_300_000 picoseconds.
416		Weight::from_parts(21_898_000, 4126)
417			.saturating_add(RocksDbWeight::get().reads(4_u64))
418			.saturating_add(RocksDbWeight::get().writes(4_u64))
419	}
420	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
421	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
422	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
423	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
424	/// Storage: `Schemas::CurrentIntentGroupIdentifierMaximum` (r:1 w:1)
425	/// Proof: `Schemas::CurrentIntentGroupIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
426	/// Storage: `Schemas::IntentGroups` (r:0 w:1)
427	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
428	/// The range of component `m` is `[0, 10]`.
429	fn create_intent_group(m: u32, ) -> Weight {
430		// Proof Size summary in bytes:
431		//  Measured:  `317 + m * (22 ±0)`
432		//  Estimated: `4055`
433		// Minimum execution time: 24_245_000 picoseconds.
434		Weight::from_parts(26_132_742, 4055)
435			// Standard Error: 21_385
436			.saturating_add(Weight::from_parts(506_608, 0).saturating_mul(m.into()))
437			.saturating_add(RocksDbWeight::get().reads(3_u64))
438			.saturating_add(RocksDbWeight::get().writes(3_u64))
439	}
440	/// Storage: `Schemas::NameToMappedEntityIds` (r:1 w:1)
441	/// Proof: `Schemas::NameToMappedEntityIds` (`max_values`: None, `max_size`: Some(95), added: 2570, mode: `MaxEncodedLen`)
442	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
443	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
444	/// Storage: `Schemas::CurrentIntentGroupIdentifierMaximum` (r:1 w:1)
445	/// Proof: `Schemas::CurrentIntentGroupIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
446	/// Storage: `Schemas::IntentGroups` (r:0 w:1)
447	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
448	/// The range of component `m` is `[0, 2]`.
449	fn create_intent_group_via_governance(m: u32, ) -> Weight {
450		// Proof Size summary in bytes:
451		//  Measured:  `300 + m * (47 ±0)`
452		//  Estimated: `4055`
453		// Minimum execution time: 24_263_000 picoseconds.
454		Weight::from_parts(25_362_834, 4055)
455			// Standard Error: 63_020
456			.saturating_add(Weight::from_parts(1_429_894, 0).saturating_mul(m.into()))
457			.saturating_add(RocksDbWeight::get().reads(3_u64))
458			.saturating_add(RocksDbWeight::get().writes(3_u64))
459	}
460	/// Storage: `Council::Members` (r:1 w:0)
461	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
462	/// Storage: `Council::ProposalOf` (r:1 w:1)
463	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
464	/// Storage: `Council::Proposals` (r:1 w:1)
465	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
466	/// Storage: `Council::ProposalCount` (r:1 w:1)
467	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
468	/// Storage: `Council::Voting` (r:0 w:1)
469	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
470	fn propose_to_create_intent_group() -> Weight {
471		// Proof Size summary in bytes:
472		//  Measured:  `166`
473		//  Estimated: `4126`
474		// Minimum execution time: 21_720_000 picoseconds.
475		Weight::from_parts(22_747_000, 4126)
476			.saturating_add(RocksDbWeight::get().reads(4_u64))
477			.saturating_add(RocksDbWeight::get().writes(4_u64))
478	}
479	/// Storage: `Schemas::IntentGroups` (r:1 w:1)
480	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
481	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
482	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
483	/// The range of component `m` is `[0, 10]`.
484	fn update_intent_group(m: u32, ) -> Weight {
485		// Proof Size summary in bytes:
486		//  Measured:  `182`
487		//  Estimated: `3991`
488		// Minimum execution time: 13_601_000 picoseconds.
489		Weight::from_parts(14_585_557, 3991)
490			// Standard Error: 8_883
491			.saturating_add(Weight::from_parts(35_751, 0).saturating_mul(m.into()))
492			.saturating_add(RocksDbWeight::get().reads(2_u64))
493			.saturating_add(RocksDbWeight::get().writes(1_u64))
494	}
495	/// Storage: `Schemas::IntentGroups` (r:1 w:1)
496	/// Proof: `Schemas::IntentGroups` (`max_values`: None, `max_size`: Some(31), added: 2506, mode: `MaxEncodedLen`)
497	/// Storage: `Schemas::CurrentIntentIdentifierMaximum` (r:1 w:0)
498	/// Proof: `Schemas::CurrentIntentIdentifierMaximum` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
499	/// The range of component `m` is `[0, 2]`.
500	fn update_intent_group_via_governance(m: u32, ) -> Weight {
501		// Proof Size summary in bytes:
502		//  Measured:  `182`
503		//  Estimated: `3991`
504		// Minimum execution time: 13_574_000 picoseconds.
505		Weight::from_parts(14_483_616, 3991)
506			// Standard Error: 39_578
507			.saturating_add(Weight::from_parts(216_260, 0).saturating_mul(m.into()))
508			.saturating_add(RocksDbWeight::get().reads(2_u64))
509			.saturating_add(RocksDbWeight::get().writes(1_u64))
510	}
511	/// Storage: `Council::Members` (r:1 w:0)
512	/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
513	/// Storage: `Council::ProposalOf` (r:1 w:1)
514	/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
515	/// Storage: `Council::Proposals` (r:1 w:1)
516	/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
517	/// Storage: `Council::ProposalCount` (r:1 w:1)
518	/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
519	/// Storage: `Council::Voting` (r:0 w:1)
520	/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
521	fn propose_to_update_intent_group() -> Weight {
522		// Proof Size summary in bytes:
523		//  Measured:  `166`
524		//  Estimated: `4126`
525		// Minimum execution time: 21_881_000 picoseconds.
526		Weight::from_parts(22_647_000, 4126)
527			.saturating_add(RocksDbWeight::get().reads(4_u64))
528			.saturating_add(RocksDbWeight::get().writes(4_u64))
529	}
530}
531
532
533#[cfg(test)]
534mod tests {
535  use frame_support::{traits::Get, weights::Weight, dispatch::DispatchClass};
536  use common_runtime::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};
537  use common_runtime::weights::extrinsic_weights::ExtrinsicBaseWeight;
538
539  #[allow(dead_code)]
540  struct BlockWeights;
541  impl Get<frame_system::limits::BlockWeights> for BlockWeights {
542  	fn get() -> frame_system::limits::BlockWeights {
543  		frame_system::limits::BlockWeights::builder()
544  			.base_block(Weight::zero())
545  			.for_class(DispatchClass::all(), |weights| {
546  				weights.base_extrinsic = ExtrinsicBaseWeight::get();
547  			})
548  			.for_class(DispatchClass::non_mandatory(), |weights| {
549  				weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
550  			})
551  			.build_or_panic()
552  	}
553  }
554
555	#[test]
556	fn test_create_schema_v4() {
557		assert!(
558			BlockWeights::get()
559				.per_class
560				.get(frame_support::dispatch::DispatchClass::Normal)
561				.max_extrinsic
562				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
563				.proof_size()
564				> 3973
565		);
566	}
567	#[test]
568	fn test_create_schema_via_governance_v3() {
569		assert!(
570			BlockWeights::get()
571				.per_class
572				.get(frame_support::dispatch::DispatchClass::Normal)
573				.max_extrinsic
574				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
575				.proof_size()
576				> 3973
577		);
578	}
579	#[test]
580	fn test_propose_to_create_schema_v3() {
581		assert!(
582			BlockWeights::get()
583				.per_class
584				.get(frame_support::dispatch::DispatchClass::Normal)
585				.max_extrinsic
586				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
587				.proof_size()
588				> 4126
589		);
590	}
591	#[test]
592	fn test_create_intent() {
593		assert!(
594			BlockWeights::get()
595				.per_class
596				.get(frame_support::dispatch::DispatchClass::Normal)
597				.max_extrinsic
598				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
599				.proof_size()
600				> 4055
601		);
602	}
603	#[test]
604	fn test_create_intent_via_governance() {
605		assert!(
606			BlockWeights::get()
607				.per_class
608				.get(frame_support::dispatch::DispatchClass::Normal)
609				.max_extrinsic
610				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
611				.proof_size()
612				> 4055
613		);
614	}
615	#[test]
616	fn test_propose_to_create_intent() {
617		assert!(
618			BlockWeights::get()
619				.per_class
620				.get(frame_support::dispatch::DispatchClass::Normal)
621				.max_extrinsic
622				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
623				.proof_size()
624				> 4126
625		);
626	}
627	#[test]
628	fn test_create_intent_group() {
629		assert!(
630			BlockWeights::get()
631				.per_class
632				.get(frame_support::dispatch::DispatchClass::Normal)
633				.max_extrinsic
634				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
635				.proof_size()
636				> 4055
637		);
638	}
639	#[test]
640	fn test_create_intent_group_via_governance() {
641		assert!(
642			BlockWeights::get()
643				.per_class
644				.get(frame_support::dispatch::DispatchClass::Normal)
645				.max_extrinsic
646				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
647				.proof_size()
648				> 4055
649		);
650	}
651	#[test]
652	fn test_propose_to_create_intent_group() {
653		assert!(
654			BlockWeights::get()
655				.per_class
656				.get(frame_support::dispatch::DispatchClass::Normal)
657				.max_extrinsic
658				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
659				.proof_size()
660				> 4126
661		);
662	}
663	#[test]
664	fn test_update_intent_group() {
665		assert!(
666			BlockWeights::get()
667				.per_class
668				.get(frame_support::dispatch::DispatchClass::Normal)
669				.max_extrinsic
670				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
671				.proof_size()
672				> 3991
673		);
674	}
675	#[test]
676	fn test_update_intent_group_via_governance() {
677		assert!(
678			BlockWeights::get()
679				.per_class
680				.get(frame_support::dispatch::DispatchClass::Normal)
681				.max_extrinsic
682				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
683				.proof_size()
684				> 3991
685		);
686	}
687	#[test]
688	fn test_propose_to_update_intent_group() {
689		assert!(
690			BlockWeights::get()
691				.per_class
692				.get(frame_support::dispatch::DispatchClass::Normal)
693				.max_extrinsic
694				.unwrap_or_else(<Weight as sp_runtime::traits::Bounded>::max_value)
695				.proof_size()
696				> 4126
697		);
698	}
699}