referrerpolicy=no-referrer-when-downgrade

pallet_sassafras/
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//! Autogenerated weights for `pallet_sassafras`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-11-16, STEPS: `20`, REPEAT: `3`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `behemoth`, CPU: `AMD Ryzen Threadripper 3970X 32-Core Processor`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
25
26// Executed Command:
27// ./target/release/node-template
28// benchmark
29// pallet
30// --chain
31// dev
32// --pallet
33// pallet_sassafras
34// --extrinsic
35// *
36// --steps
37// 20
38// --repeat
39// 3
40// --output
41// weights.rs
42// --template
43// substrate/.maintain/frame-weight-template.hbs
44
45#![cfg_attr(rustfmt, rustfmt_skip)]
46#![allow(unused_parens)]
47#![allow(unused_imports)]
48#![allow(missing_docs)]
49
50use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51use core::marker::PhantomData;
52
53/// Weight functions needed for `pallet_sassafras`.
54pub trait WeightInfo {
55	fn on_initialize() -> Weight;
56	fn enact_epoch_change(x: u32, y: u32, ) -> Weight;
57	fn submit_tickets(x: u32, ) -> Weight;
58	fn plan_config_change() -> Weight;
59	fn update_ring_verifier(x: u32, ) -> Weight;
60	fn load_ring_context() -> Weight;
61	fn sort_segments(x: u32, ) -> Weight;
62}
63
64/// Weights for `pallet_sassafras` using the Substrate node and recommended hardware.
65pub struct SubstrateWeight<T>(PhantomData<T>);
66impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
67	/// Storage: `System::Digest` (r:1 w:1)
68	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
69	/// Storage: `Sassafras::NextRandomness` (r:1 w:0)
70	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
71	/// Storage: `Sassafras::NextAuthorities` (r:1 w:0)
72	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
73	/// Storage: `Sassafras::CurrentRandomness` (r:1 w:0)
74	/// Proof: `Sassafras::CurrentRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
75	/// Storage: `Sassafras::EpochIndex` (r:1 w:0)
76	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
77	/// Storage: `Sassafras::RandomnessAccumulator` (r:1 w:1)
78	/// Proof: `Sassafras::RandomnessAccumulator` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
79	/// Storage: `Sassafras::CurrentSlot` (r:0 w:1)
80	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
81	/// Storage: `Sassafras::ClaimTemporaryData` (r:0 w:1)
82	/// Proof: `Sassafras::ClaimTemporaryData` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
83	/// Storage: `Sassafras::GenesisSlot` (r:0 w:1)
84	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
85	fn on_initialize() -> Weight {
86		// Proof Size summary in bytes:
87		//  Measured:  `302`
88		//  Estimated: `4787`
89		// Minimum execution time: 438_039_000 picoseconds.
90		Weight::from_parts(439_302_000, 4787)
91			.saturating_add(T::DbWeight::get().reads(6_u64))
92			.saturating_add(T::DbWeight::get().writes(5_u64))
93	}
94	/// Storage: `Sassafras::CurrentSlot` (r:1 w:0)
95	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
96	/// Storage: `Sassafras::EpochIndex` (r:1 w:1)
97	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
98	/// Storage: `Sassafras::GenesisSlot` (r:1 w:0)
99	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
100	/// Storage: `Sassafras::NextAuthorities` (r:1 w:1)
101	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
102	/// Storage: `Sassafras::RingContext` (r:1 w:0)
103	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
104	/// Storage: `Sassafras::TicketsMeta` (r:1 w:1)
105	/// Proof: `Sassafras::TicketsMeta` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
106	/// Storage: `Sassafras::NextRandomness` (r:1 w:1)
107	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
108	/// Storage: `Sassafras::RandomnessAccumulator` (r:1 w:0)
109	/// Proof: `Sassafras::RandomnessAccumulator` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
110	/// Storage: `Sassafras::NextEpochConfig` (r:1 w:1)
111	/// Proof: `Sassafras::NextEpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
112	/// Storage: `Sassafras::PendingEpochConfigChange` (r:1 w:1)
113	/// Proof: `Sassafras::PendingEpochConfigChange` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
114	/// Storage: `System::Digest` (r:1 w:1)
115	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
116	/// Storage: `Sassafras::SortedCandidates` (r:1 w:0)
117	/// Proof: `Sassafras::SortedCandidates` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
118	/// Storage: `Sassafras::UnsortedSegments` (r:79 w:79)
119	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
120	/// Storage: `Sassafras::TicketsIds` (r:5000 w:200)
121	/// Proof: `Sassafras::TicketsIds` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
122	/// Storage: `Sassafras::Authorities` (r:0 w:1)
123	/// Proof: `Sassafras::Authorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
124	/// Storage: `Sassafras::TicketsData` (r:0 w:9896)
125	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
126	/// Storage: `Sassafras::RingVerifierData` (r:0 w:1)
127	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
128	/// Storage: `Sassafras::EpochConfig` (r:0 w:1)
129	/// Proof: `Sassafras::EpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
130	/// Storage: `Sassafras::CurrentRandomness` (r:0 w:1)
131	/// Proof: `Sassafras::CurrentRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
132	/// The range of component `x` is `[1, 100]`.
133	/// The range of component `y` is `[1000, 5000]`.
134	fn enact_epoch_change(x: u32, y: u32, ) -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `594909 + x * (33 ±0) + y * (53 ±0)`
137		//  Estimated: `593350 + x * (24 ±1) + y * (2496 ±0)`
138		// Minimum execution time: 121_279_846_000 picoseconds.
139		Weight::from_parts(94_454_851_972, 593350)
140			// Standard Error: 24_177_301
141			.saturating_add(Weight::from_parts(8_086_191, 0).saturating_mul(x.into()))
142			// Standard Error: 601_053
143			.saturating_add(Weight::from_parts(15_578_413, 0).saturating_mul(y.into()))
144			.saturating_add(T::DbWeight::get().reads(13_u64))
145			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(y.into())))
146			.saturating_add(T::DbWeight::get().writes(112_u64))
147			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(y.into())))
148			.saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
149			.saturating_add(Weight::from_parts(0, 2496).saturating_mul(y.into()))
150	}
151	/// Storage: `Sassafras::CurrentSlot` (r:1 w:0)
152	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
153	/// Storage: `Sassafras::EpochIndex` (r:1 w:0)
154	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
155	/// Storage: `Sassafras::GenesisSlot` (r:1 w:0)
156	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
157	/// Storage: `Sassafras::RingVerifierData` (r:1 w:0)
158	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
159	/// Storage: `Sassafras::NextAuthorities` (r:1 w:0)
160	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
161	/// Storage: `Sassafras::NextEpochConfig` (r:1 w:0)
162	/// Proof: `Sassafras::NextEpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
163	/// Storage: `Sassafras::NextRandomness` (r:1 w:0)
164	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
165	/// Storage: `Sassafras::TicketsData` (r:25 w:25)
166	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
167	/// Storage: `Sassafras::TicketsMeta` (r:1 w:1)
168	/// Proof: `Sassafras::TicketsMeta` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
169	/// Storage: `Sassafras::UnsortedSegments` (r:1 w:1)
170	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
171	/// The range of component `x` is `[1, 25]`.
172	fn submit_tickets(x: u32, ) -> Weight {
173		// Proof Size summary in bytes:
174		//  Measured:  `3869`
175		//  Estimated: `5519 + x * (2559 ±0)`
176		// Minimum execution time: 36_904_934_000 picoseconds.
177		Weight::from_parts(25_822_957_295, 5519)
178			// Standard Error: 11_047_832
179			.saturating_add(Weight::from_parts(11_338_353_299, 0).saturating_mul(x.into()))
180			.saturating_add(T::DbWeight::get().reads(9_u64))
181			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
182			.saturating_add(T::DbWeight::get().writes(2_u64))
183			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
184			.saturating_add(Weight::from_parts(0, 2559).saturating_mul(x.into()))
185	}
186	/// Storage: `Sassafras::PendingEpochConfigChange` (r:0 w:1)
187	/// Proof: `Sassafras::PendingEpochConfigChange` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
188	fn plan_config_change() -> Weight {
189		// Proof Size summary in bytes:
190		//  Measured:  `0`
191		//  Estimated: `0`
192		// Minimum execution time: 4_038_000 picoseconds.
193		Weight::from_parts(4_499_000, 0)
194			.saturating_add(T::DbWeight::get().writes(1_u64))
195	}
196	/// Storage: `Sassafras::RingContext` (r:1 w:0)
197	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
198	/// Storage: `Sassafras::RingVerifierData` (r:0 w:1)
199	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
200	/// The range of component `x` is `[1, 100]`.
201	fn update_ring_verifier(x: u32, ) -> Weight {
202		// Proof Size summary in bytes:
203		//  Measured:  `590485`
204		//  Estimated: `591809`
205		// Minimum execution time: 105_121_424_000 picoseconds.
206		Weight::from_parts(105_527_334_385, 591809)
207			// Standard Error: 2_933_910
208			.saturating_add(Weight::from_parts(96_136_261, 0).saturating_mul(x.into()))
209			.saturating_add(T::DbWeight::get().reads(1_u64))
210			.saturating_add(T::DbWeight::get().writes(1_u64))
211	}
212	/// Storage: `Sassafras::RingContext` (r:1 w:0)
213	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
214	fn load_ring_context() -> Weight {
215		// Proof Size summary in bytes:
216		//  Measured:  `590485`
217		//  Estimated: `591809`
218		// Minimum execution time: 44_005_681_000 picoseconds.
219		Weight::from_parts(44_312_079_000, 591809)
220			.saturating_add(T::DbWeight::get().reads(1_u64))
221	}
222	/// Storage: `Sassafras::SortedCandidates` (r:1 w:0)
223	/// Proof: `Sassafras::SortedCandidates` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
224	/// Storage: `Sassafras::UnsortedSegments` (r:100 w:100)
225	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
226	/// Storage: `Sassafras::TicketsIds` (r:0 w:200)
227	/// Proof: `Sassafras::TicketsIds` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
228	/// Storage: `Sassafras::TicketsData` (r:0 w:12600)
229	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
230	/// The range of component `x` is `[1, 100]`.
231	fn sort_segments(x: u32, ) -> Weight {
232		// Proof Size summary in bytes:
233		//  Measured:  `222 + x * (2060 ±0)`
234		//  Estimated: `4687 + x * (4529 ±0)`
235		// Minimum execution time: 183_501_000 picoseconds.
236		Weight::from_parts(183_501_000, 4687)
237			// Standard Error: 1_426_363
238			.saturating_add(Weight::from_parts(169_156_241, 0).saturating_mul(x.into()))
239			.saturating_add(T::DbWeight::get().reads(1_u64))
240			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
241			.saturating_add(T::DbWeight::get().writes((129_u64).saturating_mul(x.into())))
242			.saturating_add(Weight::from_parts(0, 4529).saturating_mul(x.into()))
243	}
244}
245
246// For backwards compatibility and tests.
247impl WeightInfo for () {
248	/// Storage: `System::Digest` (r:1 w:1)
249	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
250	/// Storage: `Sassafras::NextRandomness` (r:1 w:0)
251	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
252	/// Storage: `Sassafras::NextAuthorities` (r:1 w:0)
253	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
254	/// Storage: `Sassafras::CurrentRandomness` (r:1 w:0)
255	/// Proof: `Sassafras::CurrentRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
256	/// Storage: `Sassafras::EpochIndex` (r:1 w:0)
257	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
258	/// Storage: `Sassafras::RandomnessAccumulator` (r:1 w:1)
259	/// Proof: `Sassafras::RandomnessAccumulator` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
260	/// Storage: `Sassafras::CurrentSlot` (r:0 w:1)
261	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
262	/// Storage: `Sassafras::ClaimTemporaryData` (r:0 w:1)
263	/// Proof: `Sassafras::ClaimTemporaryData` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
264	/// Storage: `Sassafras::GenesisSlot` (r:0 w:1)
265	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
266	fn on_initialize() -> Weight {
267		// Proof Size summary in bytes:
268		//  Measured:  `302`
269		//  Estimated: `4787`
270		// Minimum execution time: 438_039_000 picoseconds.
271		Weight::from_parts(439_302_000, 4787)
272			.saturating_add(RocksDbWeight::get().reads(6_u64))
273			.saturating_add(RocksDbWeight::get().writes(5_u64))
274	}
275	/// Storage: `Sassafras::CurrentSlot` (r:1 w:0)
276	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
277	/// Storage: `Sassafras::EpochIndex` (r:1 w:1)
278	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
279	/// Storage: `Sassafras::GenesisSlot` (r:1 w:0)
280	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
281	/// Storage: `Sassafras::NextAuthorities` (r:1 w:1)
282	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
283	/// Storage: `Sassafras::RingContext` (r:1 w:0)
284	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
285	/// Storage: `Sassafras::TicketsMeta` (r:1 w:1)
286	/// Proof: `Sassafras::TicketsMeta` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
287	/// Storage: `Sassafras::NextRandomness` (r:1 w:1)
288	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
289	/// Storage: `Sassafras::RandomnessAccumulator` (r:1 w:0)
290	/// Proof: `Sassafras::RandomnessAccumulator` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
291	/// Storage: `Sassafras::NextEpochConfig` (r:1 w:1)
292	/// Proof: `Sassafras::NextEpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
293	/// Storage: `Sassafras::PendingEpochConfigChange` (r:1 w:1)
294	/// Proof: `Sassafras::PendingEpochConfigChange` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
295	/// Storage: `System::Digest` (r:1 w:1)
296	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
297	/// Storage: `Sassafras::SortedCandidates` (r:1 w:0)
298	/// Proof: `Sassafras::SortedCandidates` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
299	/// Storage: `Sassafras::UnsortedSegments` (r:79 w:79)
300	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
301	/// Storage: `Sassafras::TicketsIds` (r:5000 w:200)
302	/// Proof: `Sassafras::TicketsIds` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
303	/// Storage: `Sassafras::Authorities` (r:0 w:1)
304	/// Proof: `Sassafras::Authorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
305	/// Storage: `Sassafras::TicketsData` (r:0 w:9896)
306	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
307	/// Storage: `Sassafras::RingVerifierData` (r:0 w:1)
308	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
309	/// Storage: `Sassafras::EpochConfig` (r:0 w:1)
310	/// Proof: `Sassafras::EpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
311	/// Storage: `Sassafras::CurrentRandomness` (r:0 w:1)
312	/// Proof: `Sassafras::CurrentRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
313	/// The range of component `x` is `[1, 100]`.
314	/// The range of component `y` is `[1000, 5000]`.
315	fn enact_epoch_change(x: u32, y: u32, ) -> Weight {
316		// Proof Size summary in bytes:
317		//  Measured:  `594909 + x * (33 ±0) + y * (53 ±0)`
318		//  Estimated: `593350 + x * (24 ±1) + y * (2496 ±0)`
319		// Minimum execution time: 121_279_846_000 picoseconds.
320		Weight::from_parts(94_454_851_972, 593350)
321			// Standard Error: 24_177_301
322			.saturating_add(Weight::from_parts(8_086_191, 0).saturating_mul(x.into()))
323			// Standard Error: 601_053
324			.saturating_add(Weight::from_parts(15_578_413, 0).saturating_mul(y.into()))
325			.saturating_add(RocksDbWeight::get().reads(13_u64))
326			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(y.into())))
327			.saturating_add(RocksDbWeight::get().writes(112_u64))
328			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(y.into())))
329			.saturating_add(Weight::from_parts(0, 24).saturating_mul(x.into()))
330			.saturating_add(Weight::from_parts(0, 2496).saturating_mul(y.into()))
331	}
332	/// Storage: `Sassafras::CurrentSlot` (r:1 w:0)
333	/// Proof: `Sassafras::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
334	/// Storage: `Sassafras::EpochIndex` (r:1 w:0)
335	/// Proof: `Sassafras::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
336	/// Storage: `Sassafras::GenesisSlot` (r:1 w:0)
337	/// Proof: `Sassafras::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
338	/// Storage: `Sassafras::RingVerifierData` (r:1 w:0)
339	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
340	/// Storage: `Sassafras::NextAuthorities` (r:1 w:0)
341	/// Proof: `Sassafras::NextAuthorities` (`max_values`: Some(1), `max_size`: Some(3302), added: 3797, mode: `MaxEncodedLen`)
342	/// Storage: `Sassafras::NextEpochConfig` (r:1 w:0)
343	/// Proof: `Sassafras::NextEpochConfig` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
344	/// Storage: `Sassafras::NextRandomness` (r:1 w:0)
345	/// Proof: `Sassafras::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
346	/// Storage: `Sassafras::TicketsData` (r:25 w:25)
347	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
348	/// Storage: `Sassafras::TicketsMeta` (r:1 w:1)
349	/// Proof: `Sassafras::TicketsMeta` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
350	/// Storage: `Sassafras::UnsortedSegments` (r:1 w:1)
351	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
352	/// The range of component `x` is `[1, 25]`.
353	fn submit_tickets(x: u32, ) -> Weight {
354		// Proof Size summary in bytes:
355		//  Measured:  `3869`
356		//  Estimated: `5519 + x * (2559 ±0)`
357		// Minimum execution time: 36_904_934_000 picoseconds.
358		Weight::from_parts(25_822_957_295, 5519)
359			// Standard Error: 11_047_832
360			.saturating_add(Weight::from_parts(11_338_353_299, 0).saturating_mul(x.into()))
361			.saturating_add(RocksDbWeight::get().reads(9_u64))
362			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
363			.saturating_add(RocksDbWeight::get().writes(2_u64))
364			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
365			.saturating_add(Weight::from_parts(0, 2559).saturating_mul(x.into()))
366	}
367	/// Storage: `Sassafras::PendingEpochConfigChange` (r:0 w:1)
368	/// Proof: `Sassafras::PendingEpochConfigChange` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
369	fn plan_config_change() -> Weight {
370		// Proof Size summary in bytes:
371		//  Measured:  `0`
372		//  Estimated: `0`
373		// Minimum execution time: 4_038_000 picoseconds.
374		Weight::from_parts(4_499_000, 0)
375			.saturating_add(RocksDbWeight::get().writes(1_u64))
376	}
377	/// Storage: `Sassafras::RingContext` (r:1 w:0)
378	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
379	/// Storage: `Sassafras::RingVerifierData` (r:0 w:1)
380	/// Proof: `Sassafras::RingVerifierData` (`max_values`: Some(1), `max_size`: Some(388), added: 883, mode: `MaxEncodedLen`)
381	/// The range of component `x` is `[1, 100]`.
382	fn update_ring_verifier(x: u32, ) -> Weight {
383		// Proof Size summary in bytes:
384		//  Measured:  `590485`
385		//  Estimated: `591809`
386		// Minimum execution time: 105_121_424_000 picoseconds.
387		Weight::from_parts(105_527_334_385, 591809)
388			// Standard Error: 2_933_910
389			.saturating_add(Weight::from_parts(96_136_261, 0).saturating_mul(x.into()))
390			.saturating_add(RocksDbWeight::get().reads(1_u64))
391			.saturating_add(RocksDbWeight::get().writes(1_u64))
392	}
393	/// Storage: `Sassafras::RingContext` (r:1 w:0)
394	/// Proof: `Sassafras::RingContext` (`max_values`: Some(1), `max_size`: Some(590324), added: 590819, mode: `MaxEncodedLen`)
395	fn load_ring_context() -> Weight {
396		// Proof Size summary in bytes:
397		//  Measured:  `590485`
398		//  Estimated: `591809`
399		// Minimum execution time: 44_005_681_000 picoseconds.
400		Weight::from_parts(44_312_079_000, 591809)
401			.saturating_add(RocksDbWeight::get().reads(1_u64))
402	}
403	/// Storage: `Sassafras::SortedCandidates` (r:1 w:0)
404	/// Proof: `Sassafras::SortedCandidates` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
405	/// Storage: `Sassafras::UnsortedSegments` (r:100 w:100)
406	/// Proof: `Sassafras::UnsortedSegments` (`max_values`: None, `max_size`: Some(2054), added: 4529, mode: `MaxEncodedLen`)
407	/// Storage: `Sassafras::TicketsIds` (r:0 w:200)
408	/// Proof: `Sassafras::TicketsIds` (`max_values`: None, `max_size`: Some(21), added: 2496, mode: `MaxEncodedLen`)
409	/// Storage: `Sassafras::TicketsData` (r:0 w:12600)
410	/// Proof: `Sassafras::TicketsData` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
411	/// The range of component `x` is `[1, 100]`.
412	fn sort_segments(x: u32, ) -> Weight {
413		// Proof Size summary in bytes:
414		//  Measured:  `222 + x * (2060 ±0)`
415		//  Estimated: `4687 + x * (4529 ±0)`
416		// Minimum execution time: 183_501_000 picoseconds.
417		Weight::from_parts(183_501_000, 4687)
418			// Standard Error: 1_426_363
419			.saturating_add(Weight::from_parts(169_156_241, 0).saturating_mul(x.into()))
420			.saturating_add(RocksDbWeight::get().reads(1_u64))
421			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
422			.saturating_add(RocksDbWeight::get().writes((129_u64).saturating_mul(x.into())))
423			.saturating_add(Weight::from_parts(0, 4529).saturating_mul(x.into()))
424	}
425}