pallet_broker/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_broker`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-11-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `a65508a71d90`, 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_broker
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/broker/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// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage
62
63#![cfg_attr(rustfmt, rustfmt_skip)]
64#![allow(unused_parens)]
65#![allow(unused_imports)]
66#![allow(missing_docs)]
67#![allow(dead_code)]
68
69use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
70use core::marker::PhantomData;
71
72/// Weight functions needed for `pallet_broker`.
73pub trait WeightInfo {
74 fn configure() -> Weight;
75 fn reserve() -> Weight;
76 fn unreserve() -> Weight;
77 fn set_lease() -> Weight;
78 fn remove_lease() -> Weight;
79 fn start_sales(n: u32, ) -> Weight;
80 fn purchase() -> Weight;
81 fn renew() -> Weight;
82 fn transfer() -> Weight;
83 fn partition() -> Weight;
84 fn interlace() -> Weight;
85 fn assign() -> Weight;
86 fn pool() -> Weight;
87 fn claim_revenue(m: u32, ) -> Weight;
88 fn purchase_credit() -> Weight;
89 fn drop_region() -> Weight;
90 fn drop_contribution() -> Weight;
91 fn drop_history() -> Weight;
92 fn drop_renewal() -> Weight;
93 fn request_core_count(n: u32, ) -> Weight;
94 fn process_core_count(n: u32, ) -> Weight;
95 fn process_revenue() -> Weight;
96 fn rotate_sale(n: u32, ) -> Weight;
97 fn process_pool() -> Weight;
98 fn process_core_schedule() -> Weight;
99 fn request_revenue_info_at() -> Weight;
100 fn notify_core_count() -> Weight;
101 fn notify_revenue() -> Weight;
102 fn do_tick_base() -> Weight;
103 fn force_reserve() -> Weight;
104 fn swap_leases() -> Weight;
105 fn enable_auto_renew() -> Weight;
106 fn disable_auto_renew() -> Weight;
107 fn on_new_timeslice() -> Weight;
108 fn remove_assignment() -> Weight;
109 fn remove_potential_renewal() -> Weight;
110 fn force_transfer() -> Weight;
111}
112
113/// Weights for `pallet_broker` using the Substrate node and recommended hardware.
114pub struct SubstrateWeight<T>(PhantomData<T>);
115impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
116 /// Storage: `Broker::Configuration` (r:0 w:1)
117 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
118 fn configure() -> Weight {
119 // Proof Size summary in bytes:
120 // Measured: `0`
121 // Estimated: `0`
122 // Minimum execution time: 2_629_000 picoseconds.
123 Weight::from_parts(2_995_000, 0)
124 .saturating_add(T::DbWeight::get().writes(1_u64))
125 }
126 /// Storage: `Broker::Reservations` (r:1 w:1)
127 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
128 fn reserve() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `5016`
131 // Estimated: `7496`
132 // Minimum execution time: 21_532_000 picoseconds.
133 Weight::from_parts(23_127_000, 7496)
134 .saturating_add(T::DbWeight::get().reads(1_u64))
135 .saturating_add(T::DbWeight::get().writes(1_u64))
136 }
137 /// Storage: `Broker::Reservations` (r:1 w:1)
138 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
139 fn unreserve() -> Weight {
140 // Proof Size summary in bytes:
141 // Measured: `6218`
142 // Estimated: `7496`
143 // Minimum execution time: 20_589_000 picoseconds.
144 Weight::from_parts(22_194_000, 7496)
145 .saturating_add(T::DbWeight::get().reads(1_u64))
146 .saturating_add(T::DbWeight::get().writes(1_u64))
147 }
148 /// Storage: `Broker::Leases` (r:1 w:1)
149 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
150 fn set_lease() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `239`
153 // Estimated: `1526`
154 // Minimum execution time: 13_243_000 picoseconds.
155 Weight::from_parts(14_363_000, 1526)
156 .saturating_add(T::DbWeight::get().reads(1_u64))
157 .saturating_add(T::DbWeight::get().writes(1_u64))
158 }
159 /// Storage: `Broker::Leases` (r:1 w:1)
160 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
161 fn remove_lease() -> Weight {
162 // Proof Size summary in bytes:
163 // Measured: `247`
164 // Estimated: `1526`
165 // Minimum execution time: 12_582_000 picoseconds.
166 Weight::from_parts(13_685_000, 1526)
167 .saturating_add(T::DbWeight::get().reads(1_u64))
168 .saturating_add(T::DbWeight::get().writes(1_u64))
169 }
170 /// Storage: `Broker::Configuration` (r:1 w:0)
171 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
172 /// Storage: `Broker::Leases` (r:1 w:1)
173 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
174 /// Storage: `Broker::Reservations` (r:1 w:0)
175 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
176 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
177 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
178 /// Storage: `Broker::ForceReservations` (r:1 w:0)
179 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
180 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
181 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
182 /// Storage: `Broker::SaleInfo` (r:0 w:1)
183 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
184 /// Storage: `Broker::Status` (r:0 w:1)
185 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
186 /// Storage: `Broker::Workplan` (r:0 w:10)
187 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
188 /// The range of component `n` is `[0, 1000]`.
189 fn start_sales(n: u32, ) -> Weight {
190 // Proof Size summary in bytes:
191 // Measured: `6330`
192 // Estimated: `8499`
193 // Minimum execution time: 37_127_000 picoseconds.
194 Weight::from_parts(64_279_768, 8499)
195 // Standard Error: 119
196 .saturating_add(Weight::from_parts(3_017, 0).saturating_mul(n.into()))
197 .saturating_add(T::DbWeight::get().reads(8_u64))
198 .saturating_add(T::DbWeight::get().writes(16_u64))
199 }
200 /// Storage: `Broker::Status` (r:1 w:0)
201 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
202 /// Storage: `Broker::SaleInfo` (r:1 w:1)
203 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
204 /// Storage: `Broker::Regions` (r:0 w:1)
205 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
206 fn purchase() -> Weight {
207 // Proof Size summary in bytes:
208 // Measured: `474`
209 // Estimated: `1546`
210 // Minimum execution time: 43_202_000 picoseconds.
211 Weight::from_parts(46_192_000, 1546)
212 .saturating_add(T::DbWeight::get().reads(2_u64))
213 .saturating_add(T::DbWeight::get().writes(2_u64))
214 }
215 /// Storage: `Broker::Configuration` (r:1 w:0)
216 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
217 /// Storage: `Broker::Status` (r:1 w:0)
218 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
219 /// Storage: `Broker::SaleInfo` (r:1 w:1)
220 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
221 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
222 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
223 /// Storage: `Broker::Workplan` (r:0 w:1)
224 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
225 fn renew() -> Weight {
226 // Proof Size summary in bytes:
227 // Measured: `592`
228 // Estimated: `4698`
229 // Minimum execution time: 69_692_000 picoseconds.
230 Weight::from_parts(75_869_000, 4698)
231 .saturating_add(T::DbWeight::get().reads(4_u64))
232 .saturating_add(T::DbWeight::get().writes(4_u64))
233 }
234 /// Storage: `Broker::Regions` (r:1 w:1)
235 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
236 fn transfer() -> Weight {
237 // Proof Size summary in bytes:
238 // Measured: `496`
239 // Estimated: `3551`
240 // Minimum execution time: 19_283_000 picoseconds.
241 Weight::from_parts(21_095_000, 3551)
242 .saturating_add(T::DbWeight::get().reads(1_u64))
243 .saturating_add(T::DbWeight::get().writes(1_u64))
244 }
245 /// Storage: `Broker::Status` (r:1 w:0)
246 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
247 /// Storage: `Broker::Regions` (r:1 w:2)
248 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
249 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
250 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
251 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
252 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
253 fn partition() -> Weight {
254 // Proof Size summary in bytes:
255 // Measured: `684`
256 // Estimated: `5996`
257 // Minimum execution time: 40_155_000 picoseconds.
258 Weight::from_parts(42_885_000, 5996)
259 .saturating_add(T::DbWeight::get().reads(5_u64))
260 .saturating_add(T::DbWeight::get().writes(5_u64))
261 }
262 /// Storage: `Broker::Status` (r:1 w:0)
263 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
264 /// Storage: `Broker::Regions` (r:1 w:3)
265 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
266 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
267 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
268 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
269 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
270 fn interlace() -> Weight {
271 // Proof Size summary in bytes:
272 // Measured: `684`
273 // Estimated: `5996`
274 // Minimum execution time: 41_271_000 picoseconds.
275 Weight::from_parts(44_066_000, 5996)
276 .saturating_add(T::DbWeight::get().reads(5_u64))
277 .saturating_add(T::DbWeight::get().writes(6_u64))
278 }
279 /// Storage: `Broker::Configuration` (r:1 w:0)
280 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
281 /// Storage: `Broker::Status` (r:1 w:0)
282 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
283 /// Storage: `Broker::Regions` (r:1 w:1)
284 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
285 /// Storage: `Broker::Workplan` (r:1 w:1)
286 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
287 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
288 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
289 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
290 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
291 fn assign() -> Weight {
292 // Proof Size summary in bytes:
293 // Measured: `915`
294 // Estimated: `5996`
295 // Minimum execution time: 53_353_000 picoseconds.
296 Weight::from_parts(56_812_000, 5996)
297 .saturating_add(T::DbWeight::get().reads(7_u64))
298 .saturating_add(T::DbWeight::get().writes(5_u64))
299 }
300 /// Storage: `Broker::Status` (r:1 w:0)
301 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
302 /// Storage: `Broker::Regions` (r:1 w:1)
303 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
304 /// Storage: `Broker::Workplan` (r:1 w:1)
305 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
306 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
307 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
308 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
309 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
310 fn pool() -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `792`
313 // Estimated: `5996`
314 // Minimum execution time: 44_989_000 picoseconds.
315 Weight::from_parts(48_402_000, 5996)
316 .saturating_add(T::DbWeight::get().reads(6_u64))
317 .saturating_add(T::DbWeight::get().writes(5_u64))
318 }
319 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
320 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
321 /// Storage: `Broker::Status` (r:1 w:0)
322 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
323 /// Storage: `Broker::InstaPoolHistory` (r:3 w:3)
324 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
325 /// Storage: `System::Account` (r:2 w:2)
326 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
327 /// The range of component `m` is `[1, 3]`.
328 fn claim_revenue(m: u32, ) -> Weight {
329 // Proof Size summary in bytes:
330 // Measured: `820 + m * (49 ±0)`
331 // Estimated: `6196 + m * (2520 ±0)`
332 // Minimum execution time: 79_302_000 picoseconds.
333 Weight::from_parts(75_640_844, 6196)
334 // Standard Error: 65_912
335 .saturating_add(Weight::from_parts(8_147_228, 0).saturating_mul(m.into()))
336 .saturating_add(T::DbWeight::get().reads(4_u64))
337 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
338 .saturating_add(T::DbWeight::get().writes(4_u64))
339 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
340 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
341 }
342 /// Storage: `System::Account` (r:1 w:1)
343 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
344 fn purchase_credit() -> Weight {
345 // Proof Size summary in bytes:
346 // Measured: `103`
347 // Estimated: `3593`
348 // Minimum execution time: 48_593_000 picoseconds.
349 Weight::from_parts(51_298_000, 3593)
350 .saturating_add(T::DbWeight::get().reads(1_u64))
351 .saturating_add(T::DbWeight::get().writes(1_u64))
352 }
353 /// Storage: `Broker::Status` (r:1 w:0)
354 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
355 /// Storage: `Broker::Regions` (r:1 w:1)
356 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
357 fn drop_region() -> Weight {
358 // Proof Size summary in bytes:
359 // Measured: `604`
360 // Estimated: `3551`
361 // Minimum execution time: 36_856_000 picoseconds.
362 Weight::from_parts(46_523_000, 3551)
363 .saturating_add(T::DbWeight::get().reads(2_u64))
364 .saturating_add(T::DbWeight::get().writes(1_u64))
365 }
366 /// Storage: `Broker::Configuration` (r:1 w:0)
367 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
368 /// Storage: `Broker::Status` (r:1 w:0)
369 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
370 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
371 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
372 fn drop_contribution() -> Weight {
373 // Proof Size summary in bytes:
374 // Measured: `601`
375 // Estimated: `3533`
376 // Minimum execution time: 44_756_000 picoseconds.
377 Weight::from_parts(55_004_000, 3533)
378 .saturating_add(T::DbWeight::get().reads(3_u64))
379 .saturating_add(T::DbWeight::get().writes(1_u64))
380 }
381 /// Storage: `Broker::Configuration` (r:1 w:0)
382 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
383 /// Storage: `Broker::Status` (r:1 w:0)
384 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
385 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
386 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
387 /// Storage: `System::Account` (r:1 w:0)
388 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
389 fn drop_history() -> Weight {
390 // Proof Size summary in bytes:
391 // Measured: `1117`
392 // Estimated: `3593`
393 // Minimum execution time: 63_838_000 picoseconds.
394 Weight::from_parts(76_081_000, 3593)
395 .saturating_add(T::DbWeight::get().reads(4_u64))
396 .saturating_add(T::DbWeight::get().writes(1_u64))
397 }
398 /// Storage: `Broker::Status` (r:1 w:0)
399 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
400 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
401 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
402 fn drop_renewal() -> Weight {
403 // Proof Size summary in bytes:
404 // Measured: `661`
405 // Estimated: `4698`
406 // Minimum execution time: 41_334_000 picoseconds.
407 Weight::from_parts(49_348_000, 4698)
408 .saturating_add(T::DbWeight::get().reads(2_u64))
409 .saturating_add(T::DbWeight::get().writes(1_u64))
410 }
411 /// The range of component `n` is `[0, 1000]`.
412 fn request_core_count(_n: u32, ) -> Weight {
413 // Proof Size summary in bytes:
414 // Measured: `0`
415 // Estimated: `0`
416 // Minimum execution time: 5_008_000 picoseconds.
417 Weight::from_parts(5_489_765, 0)
418 }
419 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
420 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
421 /// The range of component `n` is `[0, 1000]`.
422 fn process_core_count(_n: u32, ) -> Weight {
423 // Proof Size summary in bytes:
424 // Measured: `404`
425 // Estimated: `1487`
426 // Minimum execution time: 8_169_000 picoseconds.
427 Weight::from_parts(9_081_415, 1487)
428 .saturating_add(T::DbWeight::get().reads(1_u64))
429 .saturating_add(T::DbWeight::get().writes(1_u64))
430 }
431 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
432 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
433 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
434 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
435 /// Storage: `System::Account` (r:1 w:1)
436 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
437 fn process_revenue() -> Weight {
438 // Proof Size summary in bytes:
439 // Measured: `667`
440 // Estimated: `3593`
441 // Minimum execution time: 43_580_000 picoseconds.
442 Weight::from_parts(45_789_000, 3593)
443 .saturating_add(T::DbWeight::get().reads(3_u64))
444 .saturating_add(T::DbWeight::get().writes(3_u64))
445 }
446 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
447 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
448 /// Storage: `Broker::Reservations` (r:1 w:0)
449 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
450 /// Storage: `Broker::ForceReservations` (r:1 w:0)
451 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
452 /// Storage: `Broker::Leases` (r:1 w:1)
453 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
454 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
455 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
456 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
457 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
458 /// Storage: `Broker::Configuration` (r:1 w:0)
459 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
460 /// Storage: `Broker::Status` (r:1 w:0)
461 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
462 /// Storage: `System::Account` (r:10 w:10)
463 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
464 /// Storage: `Broker::SaleInfo` (r:0 w:1)
465 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
466 /// Storage: `Broker::Workplan` (r:0 w:1000)
467 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
468 /// The range of component `n` is `[0, 1000]`.
469 fn rotate_sale(n: u32, ) -> Weight {
470 // Proof Size summary in bytes:
471 // Measured: `8090`
472 // Estimated: `38070`
473 // Minimum execution time: 30_618_000 picoseconds.
474 Weight::from_parts(391_546_033, 38070)
475 // Standard Error: 5_878
476 .saturating_add(Weight::from_parts(1_497_367, 0).saturating_mul(n.into()))
477 .saturating_add(T::DbWeight::get().reads(27_u64))
478 .saturating_add(T::DbWeight::get().writes(34_u64))
479 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
480 }
481 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
482 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
483 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
484 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
485 fn process_pool() -> Weight {
486 // Proof Size summary in bytes:
487 // Measured: `180`
488 // Estimated: `3493`
489 // Minimum execution time: 8_449_000 picoseconds.
490 Weight::from_parts(9_159_000, 3493)
491 .saturating_add(T::DbWeight::get().reads(1_u64))
492 .saturating_add(T::DbWeight::get().writes(1_u64))
493 }
494 /// Storage: `Broker::Workplan` (r:1 w:1)
495 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
496 /// Storage: `Broker::Workload` (r:1 w:1)
497 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
498 fn process_core_schedule() -> Weight {
499 // Proof Size summary in bytes:
500 // Measured: `1423`
501 // Estimated: `4681`
502 // Minimum execution time: 17_590_000 picoseconds.
503 Weight::from_parts(18_841_000, 4681)
504 .saturating_add(T::DbWeight::get().reads(2_u64))
505 .saturating_add(T::DbWeight::get().writes(2_u64))
506 }
507 fn request_revenue_info_at() -> Weight {
508 // Proof Size summary in bytes:
509 // Measured: `0`
510 // Estimated: `0`
511 // Minimum execution time: 144_000 picoseconds.
512 Weight::from_parts(200_000, 0)
513 }
514 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
515 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
516 fn notify_core_count() -> Weight {
517 // Proof Size summary in bytes:
518 // Measured: `0`
519 // Estimated: `0`
520 // Minimum execution time: 2_312_000 picoseconds.
521 Weight::from_parts(2_663_000, 0)
522 .saturating_add(T::DbWeight::get().writes(1_u64))
523 }
524 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
525 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
526 fn notify_revenue() -> Weight {
527 // Proof Size summary in bytes:
528 // Measured: `0`
529 // Estimated: `0`
530 // Minimum execution time: 2_534_000 picoseconds.
531 Weight::from_parts(2_872_000, 0)
532 .saturating_add(T::DbWeight::get().writes(1_u64))
533 }
534 /// Storage: `Broker::Status` (r:1 w:1)
535 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
536 /// Storage: `Broker::Configuration` (r:1 w:0)
537 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
538 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
539 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
540 /// Storage: `OnDemand::Enabled` (r:1 w:0)
541 /// Proof: `OnDemand::Enabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
542 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
543 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
544 fn do_tick_base() -> Weight {
545 // Proof Size summary in bytes:
546 // Measured: `445`
547 // Estimated: `1516`
548 // Minimum execution time: 16_056_000 picoseconds.
549 Weight::from_parts(17_212_000, 1516)
550 .saturating_add(T::DbWeight::get().reads(5_u64))
551 .saturating_add(T::DbWeight::get().writes(1_u64))
552 }
553 /// Storage: `Broker::SaleInfo` (r:1 w:0)
554 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
555 /// Storage: `Broker::Reservations` (r:1 w:1)
556 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
557 /// Storage: `Broker::ForceReservations` (r:1 w:1)
558 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
559 /// Storage: `Broker::Status` (r:1 w:0)
560 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
561 /// Storage: `Broker::Workplan` (r:0 w:1)
562 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
563 fn force_reserve() -> Weight {
564 // Proof Size summary in bytes:
565 // Measured: `5324`
566 // Estimated: `7496`
567 // Minimum execution time: 37_071_000 picoseconds.
568 Weight::from_parts(39_383_000, 7496)
569 .saturating_add(T::DbWeight::get().reads(4_u64))
570 .saturating_add(T::DbWeight::get().writes(3_u64))
571 }
572 /// Storage: `Broker::Leases` (r:1 w:1)
573 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
574 fn swap_leases() -> Weight {
575 // Proof Size summary in bytes:
576 // Measured: `239`
577 // Estimated: `1526`
578 // Minimum execution time: 9_675_000 picoseconds.
579 Weight::from_parts(10_576_000, 1526)
580 .saturating_add(T::DbWeight::get().reads(1_u64))
581 .saturating_add(T::DbWeight::get().writes(1_u64))
582 }
583 /// Storage: `Broker::SaleInfo` (r:1 w:1)
584 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
585 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
586 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
587 /// Storage: `Broker::Configuration` (r:1 w:0)
588 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
589 /// Storage: `Broker::Status` (r:1 w:0)
590 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
591 /// Storage: `System::Account` (r:1 w:1)
592 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
593 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
594 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
595 /// Storage: `Broker::Workplan` (r:0 w:1)
596 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
597 fn enable_auto_renew() -> Weight {
598 // Proof Size summary in bytes:
599 // Measured: `1125`
600 // Estimated: `4698`
601 // Minimum execution time: 92_488_000 picoseconds.
602 Weight::from_parts(100_981_000, 4698)
603 .saturating_add(T::DbWeight::get().reads(6_u64))
604 .saturating_add(T::DbWeight::get().writes(6_u64))
605 }
606 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
607 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
608 fn disable_auto_renew() -> Weight {
609 // Proof Size summary in bytes:
610 // Measured: `578`
611 // Estimated: `1586`
612 // Minimum execution time: 20_204_000 picoseconds.
613 Weight::from_parts(22_222_000, 1586)
614 .saturating_add(T::DbWeight::get().reads(1_u64))
615 .saturating_add(T::DbWeight::get().writes(1_u64))
616 }
617 fn on_new_timeslice() -> Weight {
618 // Proof Size summary in bytes:
619 // Measured: `0`
620 // Estimated: `0`
621 // Minimum execution time: 278_000 picoseconds.
622 Weight::from_parts(355_000, 0)
623 }
624 /// Storage: `Broker::Workplan` (r:1 w:1)
625 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
626 fn remove_assignment() -> Weight {
627 // Proof Size summary in bytes:
628 // Measured: `604`
629 // Estimated: `4681`
630 // Minimum execution time: 18_530_000 picoseconds.
631 Weight::from_parts(20_411_000, 4681)
632 .saturating_add(T::DbWeight::get().reads(1_u64))
633 .saturating_add(T::DbWeight::get().writes(1_u64))
634 }
635 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
636 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
637 fn remove_potential_renewal() -> Weight {
638 // Proof Size summary in bytes:
639 // Measured: `452`
640 // Estimated: `4698`
641 // Minimum execution time: 16_932_000 picoseconds.
642 Weight::from_parts(18_575_000, 4698)
643 .saturating_add(T::DbWeight::get().reads(1_u64))
644 .saturating_add(T::DbWeight::get().writes(1_u64))
645 }
646 /// Storage: `Broker::Regions` (r:1 w:1)
647 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
648 fn force_transfer() -> Weight {
649 // Proof Size summary in bytes:
650 // Measured: `496`
651 // Estimated: `3551`
652 // Minimum execution time: 19_234_000 picoseconds.
653 Weight::from_parts(20_887_000, 3551)
654 .saturating_add(T::DbWeight::get().reads(1_u64))
655 .saturating_add(T::DbWeight::get().writes(1_u64))
656 }
657}
658
659// For backwards compatibility and tests.
660impl WeightInfo for () {
661 /// Storage: `Broker::Configuration` (r:0 w:1)
662 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
663 fn configure() -> Weight {
664 // Proof Size summary in bytes:
665 // Measured: `0`
666 // Estimated: `0`
667 // Minimum execution time: 2_629_000 picoseconds.
668 Weight::from_parts(2_995_000, 0)
669 .saturating_add(RocksDbWeight::get().writes(1_u64))
670 }
671 /// Storage: `Broker::Reservations` (r:1 w:1)
672 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
673 fn reserve() -> Weight {
674 // Proof Size summary in bytes:
675 // Measured: `5016`
676 // Estimated: `7496`
677 // Minimum execution time: 21_532_000 picoseconds.
678 Weight::from_parts(23_127_000, 7496)
679 .saturating_add(RocksDbWeight::get().reads(1_u64))
680 .saturating_add(RocksDbWeight::get().writes(1_u64))
681 }
682 /// Storage: `Broker::Reservations` (r:1 w:1)
683 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
684 fn unreserve() -> Weight {
685 // Proof Size summary in bytes:
686 // Measured: `6218`
687 // Estimated: `7496`
688 // Minimum execution time: 20_589_000 picoseconds.
689 Weight::from_parts(22_194_000, 7496)
690 .saturating_add(RocksDbWeight::get().reads(1_u64))
691 .saturating_add(RocksDbWeight::get().writes(1_u64))
692 }
693 /// Storage: `Broker::Leases` (r:1 w:1)
694 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
695 fn set_lease() -> Weight {
696 // Proof Size summary in bytes:
697 // Measured: `239`
698 // Estimated: `1526`
699 // Minimum execution time: 13_243_000 picoseconds.
700 Weight::from_parts(14_363_000, 1526)
701 .saturating_add(RocksDbWeight::get().reads(1_u64))
702 .saturating_add(RocksDbWeight::get().writes(1_u64))
703 }
704 /// Storage: `Broker::Leases` (r:1 w:1)
705 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
706 fn remove_lease() -> Weight {
707 // Proof Size summary in bytes:
708 // Measured: `247`
709 // Estimated: `1526`
710 // Minimum execution time: 12_582_000 picoseconds.
711 Weight::from_parts(13_685_000, 1526)
712 .saturating_add(RocksDbWeight::get().reads(1_u64))
713 .saturating_add(RocksDbWeight::get().writes(1_u64))
714 }
715 /// Storage: `Broker::Configuration` (r:1 w:0)
716 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
717 /// Storage: `Broker::Leases` (r:1 w:1)
718 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
719 /// Storage: `Broker::Reservations` (r:1 w:0)
720 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
721 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
722 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
723 /// Storage: `Broker::ForceReservations` (r:1 w:0)
724 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
725 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
726 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
727 /// Storage: `Broker::SaleInfo` (r:0 w:1)
728 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
729 /// Storage: `Broker::Status` (r:0 w:1)
730 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
731 /// Storage: `Broker::Workplan` (r:0 w:10)
732 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
733 /// The range of component `n` is `[0, 1000]`.
734 fn start_sales(n: u32, ) -> Weight {
735 // Proof Size summary in bytes:
736 // Measured: `6330`
737 // Estimated: `8499`
738 // Minimum execution time: 37_127_000 picoseconds.
739 Weight::from_parts(64_279_768, 8499)
740 // Standard Error: 119
741 .saturating_add(Weight::from_parts(3_017, 0).saturating_mul(n.into()))
742 .saturating_add(RocksDbWeight::get().reads(8_u64))
743 .saturating_add(RocksDbWeight::get().writes(16_u64))
744 }
745 /// Storage: `Broker::Status` (r:1 w:0)
746 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
747 /// Storage: `Broker::SaleInfo` (r:1 w:1)
748 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
749 /// Storage: `Broker::Regions` (r:0 w:1)
750 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
751 fn purchase() -> Weight {
752 // Proof Size summary in bytes:
753 // Measured: `474`
754 // Estimated: `1546`
755 // Minimum execution time: 43_202_000 picoseconds.
756 Weight::from_parts(46_192_000, 1546)
757 .saturating_add(RocksDbWeight::get().reads(2_u64))
758 .saturating_add(RocksDbWeight::get().writes(2_u64))
759 }
760 /// Storage: `Broker::Configuration` (r:1 w:0)
761 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
762 /// Storage: `Broker::Status` (r:1 w:0)
763 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
764 /// Storage: `Broker::SaleInfo` (r:1 w:1)
765 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
766 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
767 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
768 /// Storage: `Broker::Workplan` (r:0 w:1)
769 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
770 fn renew() -> Weight {
771 // Proof Size summary in bytes:
772 // Measured: `592`
773 // Estimated: `4698`
774 // Minimum execution time: 69_692_000 picoseconds.
775 Weight::from_parts(75_869_000, 4698)
776 .saturating_add(RocksDbWeight::get().reads(4_u64))
777 .saturating_add(RocksDbWeight::get().writes(4_u64))
778 }
779 /// Storage: `Broker::Regions` (r:1 w:1)
780 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
781 fn transfer() -> Weight {
782 // Proof Size summary in bytes:
783 // Measured: `496`
784 // Estimated: `3551`
785 // Minimum execution time: 19_283_000 picoseconds.
786 Weight::from_parts(21_095_000, 3551)
787 .saturating_add(RocksDbWeight::get().reads(1_u64))
788 .saturating_add(RocksDbWeight::get().writes(1_u64))
789 }
790 /// Storage: `Broker::Status` (r:1 w:0)
791 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
792 /// Storage: `Broker::Regions` (r:1 w:2)
793 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
794 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
795 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
796 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
797 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
798 fn partition() -> Weight {
799 // Proof Size summary in bytes:
800 // Measured: `684`
801 // Estimated: `5996`
802 // Minimum execution time: 40_155_000 picoseconds.
803 Weight::from_parts(42_885_000, 5996)
804 .saturating_add(RocksDbWeight::get().reads(5_u64))
805 .saturating_add(RocksDbWeight::get().writes(5_u64))
806 }
807 /// Storage: `Broker::Status` (r:1 w:0)
808 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
809 /// Storage: `Broker::Regions` (r:1 w:3)
810 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
811 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
812 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
813 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
814 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
815 fn interlace() -> Weight {
816 // Proof Size summary in bytes:
817 // Measured: `684`
818 // Estimated: `5996`
819 // Minimum execution time: 41_271_000 picoseconds.
820 Weight::from_parts(44_066_000, 5996)
821 .saturating_add(RocksDbWeight::get().reads(5_u64))
822 .saturating_add(RocksDbWeight::get().writes(6_u64))
823 }
824 /// Storage: `Broker::Configuration` (r:1 w:0)
825 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
826 /// Storage: `Broker::Status` (r:1 w:0)
827 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
828 /// Storage: `Broker::Regions` (r:1 w:1)
829 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
830 /// Storage: `Broker::Workplan` (r:1 w:1)
831 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
832 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
833 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
834 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
835 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
836 fn assign() -> Weight {
837 // Proof Size summary in bytes:
838 // Measured: `915`
839 // Estimated: `5996`
840 // Minimum execution time: 53_353_000 picoseconds.
841 Weight::from_parts(56_812_000, 5996)
842 .saturating_add(RocksDbWeight::get().reads(7_u64))
843 .saturating_add(RocksDbWeight::get().writes(5_u64))
844 }
845 /// Storage: `Broker::Status` (r:1 w:0)
846 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
847 /// Storage: `Broker::Regions` (r:1 w:1)
848 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
849 /// Storage: `Broker::Workplan` (r:1 w:1)
850 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
851 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
852 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
853 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
854 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
855 fn pool() -> Weight {
856 // Proof Size summary in bytes:
857 // Measured: `792`
858 // Estimated: `5996`
859 // Minimum execution time: 44_989_000 picoseconds.
860 Weight::from_parts(48_402_000, 5996)
861 .saturating_add(RocksDbWeight::get().reads(6_u64))
862 .saturating_add(RocksDbWeight::get().writes(5_u64))
863 }
864 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
865 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
866 /// Storage: `Broker::Status` (r:1 w:0)
867 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
868 /// Storage: `Broker::InstaPoolHistory` (r:3 w:3)
869 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
870 /// Storage: `System::Account` (r:2 w:2)
871 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
872 /// The range of component `m` is `[1, 3]`.
873 fn claim_revenue(m: u32, ) -> Weight {
874 // Proof Size summary in bytes:
875 // Measured: `820 + m * (49 ±0)`
876 // Estimated: `6196 + m * (2520 ±0)`
877 // Minimum execution time: 79_302_000 picoseconds.
878 Weight::from_parts(75_640_844, 6196)
879 // Standard Error: 65_912
880 .saturating_add(Weight::from_parts(8_147_228, 0).saturating_mul(m.into()))
881 .saturating_add(RocksDbWeight::get().reads(4_u64))
882 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
883 .saturating_add(RocksDbWeight::get().writes(4_u64))
884 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
885 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
886 }
887 /// Storage: `System::Account` (r:1 w:1)
888 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
889 fn purchase_credit() -> Weight {
890 // Proof Size summary in bytes:
891 // Measured: `103`
892 // Estimated: `3593`
893 // Minimum execution time: 48_593_000 picoseconds.
894 Weight::from_parts(51_298_000, 3593)
895 .saturating_add(RocksDbWeight::get().reads(1_u64))
896 .saturating_add(RocksDbWeight::get().writes(1_u64))
897 }
898 /// Storage: `Broker::Status` (r:1 w:0)
899 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
900 /// Storage: `Broker::Regions` (r:1 w:1)
901 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
902 fn drop_region() -> Weight {
903 // Proof Size summary in bytes:
904 // Measured: `604`
905 // Estimated: `3551`
906 // Minimum execution time: 36_856_000 picoseconds.
907 Weight::from_parts(46_523_000, 3551)
908 .saturating_add(RocksDbWeight::get().reads(2_u64))
909 .saturating_add(RocksDbWeight::get().writes(1_u64))
910 }
911 /// Storage: `Broker::Configuration` (r:1 w:0)
912 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
913 /// Storage: `Broker::Status` (r:1 w:0)
914 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
915 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
916 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
917 fn drop_contribution() -> Weight {
918 // Proof Size summary in bytes:
919 // Measured: `601`
920 // Estimated: `3533`
921 // Minimum execution time: 44_756_000 picoseconds.
922 Weight::from_parts(55_004_000, 3533)
923 .saturating_add(RocksDbWeight::get().reads(3_u64))
924 .saturating_add(RocksDbWeight::get().writes(1_u64))
925 }
926 /// Storage: `Broker::Configuration` (r:1 w:0)
927 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
928 /// Storage: `Broker::Status` (r:1 w:0)
929 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
930 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
931 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
932 /// Storage: `System::Account` (r:1 w:0)
933 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
934 fn drop_history() -> Weight {
935 // Proof Size summary in bytes:
936 // Measured: `1117`
937 // Estimated: `3593`
938 // Minimum execution time: 63_838_000 picoseconds.
939 Weight::from_parts(76_081_000, 3593)
940 .saturating_add(RocksDbWeight::get().reads(4_u64))
941 .saturating_add(RocksDbWeight::get().writes(1_u64))
942 }
943 /// Storage: `Broker::Status` (r:1 w:0)
944 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
945 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
946 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
947 fn drop_renewal() -> Weight {
948 // Proof Size summary in bytes:
949 // Measured: `661`
950 // Estimated: `4698`
951 // Minimum execution time: 41_334_000 picoseconds.
952 Weight::from_parts(49_348_000, 4698)
953 .saturating_add(RocksDbWeight::get().reads(2_u64))
954 .saturating_add(RocksDbWeight::get().writes(1_u64))
955 }
956 /// The range of component `n` is `[0, 1000]`.
957 fn request_core_count(_n: u32, ) -> Weight {
958 // Proof Size summary in bytes:
959 // Measured: `0`
960 // Estimated: `0`
961 // Minimum execution time: 5_008_000 picoseconds.
962 Weight::from_parts(5_489_765, 0)
963 }
964 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
965 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
966 /// The range of component `n` is `[0, 1000]`.
967 fn process_core_count(_n: u32, ) -> Weight {
968 // Proof Size summary in bytes:
969 // Measured: `404`
970 // Estimated: `1487`
971 // Minimum execution time: 8_169_000 picoseconds.
972 Weight::from_parts(9_081_415, 1487)
973 .saturating_add(RocksDbWeight::get().reads(1_u64))
974 .saturating_add(RocksDbWeight::get().writes(1_u64))
975 }
976 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
977 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
978 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
979 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
980 /// Storage: `System::Account` (r:1 w:1)
981 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
982 fn process_revenue() -> Weight {
983 // Proof Size summary in bytes:
984 // Measured: `667`
985 // Estimated: `3593`
986 // Minimum execution time: 43_580_000 picoseconds.
987 Weight::from_parts(45_789_000, 3593)
988 .saturating_add(RocksDbWeight::get().reads(3_u64))
989 .saturating_add(RocksDbWeight::get().writes(3_u64))
990 }
991 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
992 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
993 /// Storage: `Broker::Reservations` (r:1 w:0)
994 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
995 /// Storage: `Broker::ForceReservations` (r:1 w:0)
996 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
997 /// Storage: `Broker::Leases` (r:1 w:1)
998 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
999 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1000 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1001 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
1002 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1003 /// Storage: `Broker::Configuration` (r:1 w:0)
1004 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1005 /// Storage: `Broker::Status` (r:1 w:0)
1006 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1007 /// Storage: `System::Account` (r:10 w:10)
1008 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1009 /// Storage: `Broker::SaleInfo` (r:0 w:1)
1010 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1011 /// Storage: `Broker::Workplan` (r:0 w:1000)
1012 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1013 /// The range of component `n` is `[0, 1000]`.
1014 fn rotate_sale(n: u32, ) -> Weight {
1015 // Proof Size summary in bytes:
1016 // Measured: `8090`
1017 // Estimated: `38070`
1018 // Minimum execution time: 30_618_000 picoseconds.
1019 Weight::from_parts(391_546_033, 38070)
1020 // Standard Error: 5_878
1021 .saturating_add(Weight::from_parts(1_497_367, 0).saturating_mul(n.into()))
1022 .saturating_add(RocksDbWeight::get().reads(27_u64))
1023 .saturating_add(RocksDbWeight::get().writes(34_u64))
1024 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
1025 }
1026 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
1027 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1028 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
1029 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1030 fn process_pool() -> Weight {
1031 // Proof Size summary in bytes:
1032 // Measured: `180`
1033 // Estimated: `3493`
1034 // Minimum execution time: 8_449_000 picoseconds.
1035 Weight::from_parts(9_159_000, 3493)
1036 .saturating_add(RocksDbWeight::get().reads(1_u64))
1037 .saturating_add(RocksDbWeight::get().writes(1_u64))
1038 }
1039 /// Storage: `Broker::Workplan` (r:1 w:1)
1040 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1041 /// Storage: `Broker::Workload` (r:1 w:1)
1042 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
1043 fn process_core_schedule() -> Weight {
1044 // Proof Size summary in bytes:
1045 // Measured: `1423`
1046 // Estimated: `4681`
1047 // Minimum execution time: 17_590_000 picoseconds.
1048 Weight::from_parts(18_841_000, 4681)
1049 .saturating_add(RocksDbWeight::get().reads(2_u64))
1050 .saturating_add(RocksDbWeight::get().writes(2_u64))
1051 }
1052 fn request_revenue_info_at() -> Weight {
1053 // Proof Size summary in bytes:
1054 // Measured: `0`
1055 // Estimated: `0`
1056 // Minimum execution time: 144_000 picoseconds.
1057 Weight::from_parts(200_000, 0)
1058 }
1059 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
1060 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
1061 fn notify_core_count() -> Weight {
1062 // Proof Size summary in bytes:
1063 // Measured: `0`
1064 // Estimated: `0`
1065 // Minimum execution time: 2_312_000 picoseconds.
1066 Weight::from_parts(2_663_000, 0)
1067 .saturating_add(RocksDbWeight::get().writes(1_u64))
1068 }
1069 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
1070 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1071 fn notify_revenue() -> Weight {
1072 // Proof Size summary in bytes:
1073 // Measured: `0`
1074 // Estimated: `0`
1075 // Minimum execution time: 2_534_000 picoseconds.
1076 Weight::from_parts(2_872_000, 0)
1077 .saturating_add(RocksDbWeight::get().writes(1_u64))
1078 }
1079 /// Storage: `Broker::Status` (r:1 w:1)
1080 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1081 /// Storage: `Broker::Configuration` (r:1 w:0)
1082 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1083 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
1084 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
1085 /// Storage: `OnDemand::Enabled` (r:1 w:0)
1086 /// Proof: `OnDemand::Enabled` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
1087 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
1088 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1089 fn do_tick_base() -> Weight {
1090 // Proof Size summary in bytes:
1091 // Measured: `445`
1092 // Estimated: `1516`
1093 // Minimum execution time: 16_056_000 picoseconds.
1094 Weight::from_parts(17_212_000, 1516)
1095 .saturating_add(RocksDbWeight::get().reads(5_u64))
1096 .saturating_add(RocksDbWeight::get().writes(1_u64))
1097 }
1098 /// Storage: `Broker::SaleInfo` (r:1 w:0)
1099 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1100 /// Storage: `Broker::Reservations` (r:1 w:1)
1101 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
1102 /// Storage: `Broker::ForceReservations` (r:1 w:1)
1103 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
1104 /// Storage: `Broker::Status` (r:1 w:0)
1105 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1106 /// Storage: `Broker::Workplan` (r:0 w:1)
1107 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1108 fn force_reserve() -> Weight {
1109 // Proof Size summary in bytes:
1110 // Measured: `5324`
1111 // Estimated: `7496`
1112 // Minimum execution time: 37_071_000 picoseconds.
1113 Weight::from_parts(39_383_000, 7496)
1114 .saturating_add(RocksDbWeight::get().reads(4_u64))
1115 .saturating_add(RocksDbWeight::get().writes(3_u64))
1116 }
1117 /// Storage: `Broker::Leases` (r:1 w:1)
1118 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
1119 fn swap_leases() -> Weight {
1120 // Proof Size summary in bytes:
1121 // Measured: `239`
1122 // Estimated: `1526`
1123 // Minimum execution time: 9_675_000 picoseconds.
1124 Weight::from_parts(10_576_000, 1526)
1125 .saturating_add(RocksDbWeight::get().reads(1_u64))
1126 .saturating_add(RocksDbWeight::get().writes(1_u64))
1127 }
1128 /// Storage: `Broker::SaleInfo` (r:1 w:1)
1129 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1130 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
1131 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1132 /// Storage: `Broker::Configuration` (r:1 w:0)
1133 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1134 /// Storage: `Broker::Status` (r:1 w:0)
1135 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1136 /// Storage: `System::Account` (r:1 w:1)
1137 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1138 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1139 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1140 /// Storage: `Broker::Workplan` (r:0 w:1)
1141 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1142 fn enable_auto_renew() -> Weight {
1143 // Proof Size summary in bytes:
1144 // Measured: `1125`
1145 // Estimated: `4698`
1146 // Minimum execution time: 92_488_000 picoseconds.
1147 Weight::from_parts(100_981_000, 4698)
1148 .saturating_add(RocksDbWeight::get().reads(6_u64))
1149 .saturating_add(RocksDbWeight::get().writes(6_u64))
1150 }
1151 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1152 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1153 fn disable_auto_renew() -> Weight {
1154 // Proof Size summary in bytes:
1155 // Measured: `578`
1156 // Estimated: `1586`
1157 // Minimum execution time: 20_204_000 picoseconds.
1158 Weight::from_parts(22_222_000, 1586)
1159 .saturating_add(RocksDbWeight::get().reads(1_u64))
1160 .saturating_add(RocksDbWeight::get().writes(1_u64))
1161 }
1162 fn on_new_timeslice() -> Weight {
1163 // Proof Size summary in bytes:
1164 // Measured: `0`
1165 // Estimated: `0`
1166 // Minimum execution time: 278_000 picoseconds.
1167 Weight::from_parts(355_000, 0)
1168 }
1169 /// Storage: `Broker::Workplan` (r:1 w:1)
1170 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1171 fn remove_assignment() -> Weight {
1172 // Proof Size summary in bytes:
1173 // Measured: `604`
1174 // Estimated: `4681`
1175 // Minimum execution time: 18_530_000 picoseconds.
1176 Weight::from_parts(20_411_000, 4681)
1177 .saturating_add(RocksDbWeight::get().reads(1_u64))
1178 .saturating_add(RocksDbWeight::get().writes(1_u64))
1179 }
1180 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
1181 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1182 fn remove_potential_renewal() -> Weight {
1183 // Proof Size summary in bytes:
1184 // Measured: `452`
1185 // Estimated: `4698`
1186 // Minimum execution time: 16_932_000 picoseconds.
1187 Weight::from_parts(18_575_000, 4698)
1188 .saturating_add(RocksDbWeight::get().reads(1_u64))
1189 .saturating_add(RocksDbWeight::get().writes(1_u64))
1190 }
1191 /// Storage: `Broker::Regions` (r:1 w:1)
1192 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
1193 fn force_transfer() -> Weight {
1194 // Proof Size summary in bytes:
1195 // Measured: `496`
1196 // Estimated: `3551`
1197 // Minimum execution time: 19_234_000 picoseconds.
1198 Weight::from_parts(20_887_000, 3551)
1199 .saturating_add(RocksDbWeight::get().reads(1_u64))
1200 .saturating_add(RocksDbWeight::get().writes(1_u64))
1201 }
1202}