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-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `ed20d9c7e304`, 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_594_000 picoseconds.
123 Weight::from_parts(2_934_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: 19_522_000 picoseconds.
133 Weight::from_parts(21_171_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: 18_662_000 picoseconds.
144 Weight::from_parts(20_231_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: 11_032_000 picoseconds.
155 Weight::from_parts(11_950_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: 10_397_000 picoseconds.
166 Weight::from_parts(11_357_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: 32_817_000 picoseconds.
194 Weight::from_parts(60_863_793, 8499)
195 // Standard Error: 122
196 .saturating_add(Weight::from_parts(3_007, 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: 44_985_000 picoseconds.
211 Weight::from_parts(47_717_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: 68_771_000 picoseconds.
230 Weight::from_parts(74_481_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: 21_560_000 picoseconds.
241 Weight::from_parts(23_166_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: 41_587_000 picoseconds.
258 Weight::from_parts(44_457_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: 43_313_000 picoseconds.
275 Weight::from_parts(46_101_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_179_000 picoseconds.
296 Weight::from_parts(56_385_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::InstaPoolIo` (r:2 w:2)
307 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
308 /// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
309 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
310 fn pool() -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `776`
313 // Estimated: `5996`
314 // Minimum execution time: 42_030_000 picoseconds.
315 Weight::from_parts(44_627_000, 5996)
316 .saturating_add(T::DbWeight::get().reads(5_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::InstaPoolHistory` (r:3 w:1)
322 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
323 /// Storage: `System::Account` (r:2 w:2)
324 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
325 /// The range of component `m` is `[1, 3]`.
326 fn claim_revenue(m: u32, ) -> Weight {
327 // Proof Size summary in bytes:
328 // Measured: `827`
329 // Estimated: `6196 + m * (2520 ±0)`
330 // Minimum execution time: 76_795_000 picoseconds.
331 Weight::from_parts(79_621_014, 6196)
332 // Standard Error: 63_946
333 .saturating_add(Weight::from_parts(1_384_241, 0).saturating_mul(m.into()))
334 .saturating_add(T::DbWeight::get().reads(3_u64))
335 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
336 .saturating_add(T::DbWeight::get().writes(5_u64))
337 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
338 }
339 /// Storage: `System::Account` (r:1 w:1)
340 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
341 fn purchase_credit() -> Weight {
342 // Proof Size summary in bytes:
343 // Measured: `103`
344 // Estimated: `3593`
345 // Minimum execution time: 49_247_000 picoseconds.
346 Weight::from_parts(51_820_000, 3593)
347 .saturating_add(T::DbWeight::get().reads(1_u64))
348 .saturating_add(T::DbWeight::get().writes(1_u64))
349 }
350 /// Storage: `Broker::Status` (r:1 w:0)
351 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
352 /// Storage: `Broker::Regions` (r:1 w:1)
353 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
354 fn drop_region() -> Weight {
355 // Proof Size summary in bytes:
356 // Measured: `604`
357 // Estimated: `3551`
358 // Minimum execution time: 37_524_000 picoseconds.
359 Weight::from_parts(45_318_000, 3551)
360 .saturating_add(T::DbWeight::get().reads(2_u64))
361 .saturating_add(T::DbWeight::get().writes(1_u64))
362 }
363 /// Storage: `Broker::Configuration` (r:1 w:0)
364 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
365 /// Storage: `Broker::Status` (r:1 w:0)
366 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
367 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
368 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
369 fn drop_contribution() -> Weight {
370 // Proof Size summary in bytes:
371 // Measured: `601`
372 // Estimated: `3533`
373 // Minimum execution time: 44_650_000 picoseconds.
374 Weight::from_parts(57_395_000, 3533)
375 .saturating_add(T::DbWeight::get().reads(3_u64))
376 .saturating_add(T::DbWeight::get().writes(1_u64))
377 }
378 /// Storage: `Broker::Configuration` (r:1 w:0)
379 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
380 /// Storage: `Broker::Status` (r:1 w:0)
381 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
382 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
383 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
384 /// Storage: `System::Account` (r:1 w:0)
385 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
386 fn drop_history() -> Weight {
387 // Proof Size summary in bytes:
388 // Measured: `1117`
389 // Estimated: `3593`
390 // Minimum execution time: 61_636_000 picoseconds.
391 Weight::from_parts(72_001_000, 3593)
392 .saturating_add(T::DbWeight::get().reads(4_u64))
393 .saturating_add(T::DbWeight::get().writes(1_u64))
394 }
395 /// Storage: `Broker::Status` (r:1 w:0)
396 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
397 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
398 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
399 fn drop_renewal() -> Weight {
400 // Proof Size summary in bytes:
401 // Measured: `661`
402 // Estimated: `4698`
403 // Minimum execution time: 38_642_000 picoseconds.
404 Weight::from_parts(44_164_000, 4698)
405 .saturating_add(T::DbWeight::get().reads(2_u64))
406 .saturating_add(T::DbWeight::get().writes(1_u64))
407 }
408 /// The range of component `n` is `[0, 1000]`.
409 fn request_core_count(_n: u32, ) -> Weight {
410 // Proof Size summary in bytes:
411 // Measured: `0`
412 // Estimated: `0`
413 // Minimum execution time: 4_732_000 picoseconds.
414 Weight::from_parts(5_212_990, 0)
415 }
416 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
417 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
418 /// The range of component `n` is `[0, 1000]`.
419 fn process_core_count(n: u32, ) -> Weight {
420 // Proof Size summary in bytes:
421 // Measured: `404`
422 // Estimated: `1487`
423 // Minimum execution time: 7_954_000 picoseconds.
424 Weight::from_parts(8_805_381, 1487)
425 // Standard Error: 3
426 .saturating_add(Weight::from_parts(7, 0).saturating_mul(n.into()))
427 .saturating_add(T::DbWeight::get().reads(1_u64))
428 .saturating_add(T::DbWeight::get().writes(1_u64))
429 }
430 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
431 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
432 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
433 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
434 /// Storage: `System::Account` (r:1 w:1)
435 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
436 fn process_revenue() -> Weight {
437 // Proof Size summary in bytes:
438 // Measured: `667`
439 // Estimated: `3593`
440 // Minimum execution time: 44_436_000 picoseconds.
441 Weight::from_parts(46_786_000, 3593)
442 .saturating_add(T::DbWeight::get().reads(3_u64))
443 .saturating_add(T::DbWeight::get().writes(3_u64))
444 }
445 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
446 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
447 /// Storage: `Broker::Reservations` (r:1 w:0)
448 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
449 /// Storage: `Broker::ForceReservations` (r:1 w:0)
450 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
451 /// Storage: `Broker::Leases` (r:1 w:1)
452 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
453 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
454 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
455 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
456 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
457 /// Storage: `Broker::Configuration` (r:1 w:0)
458 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
459 /// Storage: `Broker::Status` (r:1 w:0)
460 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
461 /// Storage: `System::Account` (r:10 w:10)
462 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
463 /// Storage: `Broker::SaleInfo` (r:0 w:1)
464 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
465 /// Storage: `Broker::Workplan` (r:0 w:1000)
466 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
467 /// The range of component `n` is `[0, 1000]`.
468 fn rotate_sale(n: u32, ) -> Weight {
469 // Proof Size summary in bytes:
470 // Measured: `8090`
471 // Estimated: `38070`
472 // Minimum execution time: 28_248_000 picoseconds.
473 Weight::from_parts(389_519_219, 38070)
474 // Standard Error: 6_419
475 .saturating_add(Weight::from_parts(1_485_202, 0).saturating_mul(n.into()))
476 .saturating_add(T::DbWeight::get().reads(27_u64))
477 .saturating_add(T::DbWeight::get().writes(34_u64))
478 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
479 }
480 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
481 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
482 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
483 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
484 fn process_pool() -> Weight {
485 // Proof Size summary in bytes:
486 // Measured: `180`
487 // Estimated: `3493`
488 // Minimum execution time: 8_356_000 picoseconds.
489 Weight::from_parts(9_086_000, 3493)
490 .saturating_add(T::DbWeight::get().reads(1_u64))
491 .saturating_add(T::DbWeight::get().writes(1_u64))
492 }
493 /// Storage: `Broker::Workplan` (r:1 w:1)
494 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
495 /// Storage: `Broker::Workload` (r:1 w:1)
496 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
497 fn process_core_schedule() -> Weight {
498 // Proof Size summary in bytes:
499 // Measured: `1423`
500 // Estimated: `4681`
501 // Minimum execution time: 15_734_000 picoseconds.
502 Weight::from_parts(16_906_000, 4681)
503 .saturating_add(T::DbWeight::get().reads(2_u64))
504 .saturating_add(T::DbWeight::get().writes(2_u64))
505 }
506 fn request_revenue_info_at() -> Weight {
507 // Proof Size summary in bytes:
508 // Measured: `0`
509 // Estimated: `0`
510 // Minimum execution time: 150_000 picoseconds.
511 Weight::from_parts(209_000, 0)
512 }
513 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
514 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
515 fn notify_core_count() -> Weight {
516 // Proof Size summary in bytes:
517 // Measured: `0`
518 // Estimated: `0`
519 // Minimum execution time: 2_307_000 picoseconds.
520 Weight::from_parts(2_644_000, 0)
521 .saturating_add(T::DbWeight::get().writes(1_u64))
522 }
523 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
524 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
525 fn notify_revenue() -> Weight {
526 // Proof Size summary in bytes:
527 // Measured: `0`
528 // Estimated: `0`
529 // Minimum execution time: 2_475_000 picoseconds.
530 Weight::from_parts(2_805_000, 0)
531 .saturating_add(T::DbWeight::get().writes(1_u64))
532 }
533 /// Storage: `Broker::Status` (r:1 w:1)
534 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
535 /// Storage: `Broker::Configuration` (r:1 w:0)
536 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
537 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
538 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
539 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
540 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
541 fn do_tick_base() -> Weight {
542 // Proof Size summary in bytes:
543 // Measured: `441`
544 // Estimated: `1516`
545 // Minimum execution time: 14_520_000 picoseconds.
546 Weight::from_parts(15_503_000, 1516)
547 .saturating_add(T::DbWeight::get().reads(4_u64))
548 .saturating_add(T::DbWeight::get().writes(1_u64))
549 }
550 /// Storage: `Broker::SaleInfo` (r:1 w:0)
551 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
552 /// Storage: `Broker::Reservations` (r:1 w:1)
553 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
554 /// Storage: `Broker::ForceReservations` (r:1 w:1)
555 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
556 /// Storage: `Broker::Status` (r:1 w:0)
557 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
558 /// Storage: `Broker::Workplan` (r:0 w:1)
559 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
560 fn force_reserve() -> Weight {
561 // Proof Size summary in bytes:
562 // Measured: `5324`
563 // Estimated: `7496`
564 // Minimum execution time: 36_767_000 picoseconds.
565 Weight::from_parts(39_295_000, 7496)
566 .saturating_add(T::DbWeight::get().reads(4_u64))
567 .saturating_add(T::DbWeight::get().writes(3_u64))
568 }
569 /// Storage: `Broker::Leases` (r:1 w:1)
570 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
571 fn swap_leases() -> Weight {
572 // Proof Size summary in bytes:
573 // Measured: `239`
574 // Estimated: `1526`
575 // Minimum execution time: 7_492_000 picoseconds.
576 Weight::from_parts(8_310_000, 1526)
577 .saturating_add(T::DbWeight::get().reads(1_u64))
578 .saturating_add(T::DbWeight::get().writes(1_u64))
579 }
580 /// Storage: `Broker::SaleInfo` (r:1 w:1)
581 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
582 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
583 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
584 /// Storage: `Broker::Configuration` (r:1 w:0)
585 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
586 /// Storage: `Broker::Status` (r:1 w:0)
587 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
588 /// Storage: `System::Account` (r:1 w:1)
589 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
590 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
591 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
592 /// Storage: `Broker::Workplan` (r:0 w:1)
593 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
594 fn enable_auto_renew() -> Weight {
595 // Proof Size summary in bytes:
596 // Measured: `1125`
597 // Estimated: `4698`
598 // Minimum execution time: 83_863_000 picoseconds.
599 Weight::from_parts(89_482_000, 4698)
600 .saturating_add(T::DbWeight::get().reads(6_u64))
601 .saturating_add(T::DbWeight::get().writes(6_u64))
602 }
603 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
604 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
605 fn disable_auto_renew() -> Weight {
606 // Proof Size summary in bytes:
607 // Measured: `578`
608 // Estimated: `1586`
609 // Minimum execution time: 19_801_000 picoseconds.
610 Weight::from_parts(21_518_000, 1586)
611 .saturating_add(T::DbWeight::get().reads(1_u64))
612 .saturating_add(T::DbWeight::get().writes(1_u64))
613 }
614 fn on_new_timeslice() -> Weight {
615 // Proof Size summary in bytes:
616 // Measured: `0`
617 // Estimated: `0`
618 // Minimum execution time: 257_000 picoseconds.
619 Weight::from_parts(347_000, 0)
620 }
621 /// Storage: `Broker::Workplan` (r:1 w:1)
622 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
623 fn remove_assignment() -> Weight {
624 // Proof Size summary in bytes:
625 // Measured: `604`
626 // Estimated: `4681`
627 // Minimum execution time: 20_871_000 picoseconds.
628 Weight::from_parts(22_555_000, 4681)
629 .saturating_add(T::DbWeight::get().reads(1_u64))
630 .saturating_add(T::DbWeight::get().writes(1_u64))
631 }
632 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
633 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
634 fn remove_potential_renewal() -> Weight {
635 // Proof Size summary in bytes:
636 // Measured: `452`
637 // Estimated: `4698`
638 // Minimum execution time: 18_905_000 picoseconds.
639 Weight::from_parts(20_470_000, 4698)
640 .saturating_add(T::DbWeight::get().reads(1_u64))
641 .saturating_add(T::DbWeight::get().writes(1_u64))
642 }
643 /// Storage: `Broker::Regions` (r:1 w:1)
644 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
645 fn force_transfer() -> Weight {
646 // Proof Size summary in bytes:
647 // Measured: `496`
648 // Estimated: `3551`
649 // Minimum execution time: 21_124_000 picoseconds.
650 Weight::from_parts(22_967_000, 3551)
651 .saturating_add(T::DbWeight::get().reads(1_u64))
652 .saturating_add(T::DbWeight::get().writes(1_u64))
653 }
654}
655
656// For backwards compatibility and tests.
657impl WeightInfo for () {
658 /// Storage: `Broker::Configuration` (r:0 w:1)
659 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
660 fn configure() -> Weight {
661 // Proof Size summary in bytes:
662 // Measured: `0`
663 // Estimated: `0`
664 // Minimum execution time: 2_594_000 picoseconds.
665 Weight::from_parts(2_934_000, 0)
666 .saturating_add(RocksDbWeight::get().writes(1_u64))
667 }
668 /// Storage: `Broker::Reservations` (r:1 w:1)
669 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
670 fn reserve() -> Weight {
671 // Proof Size summary in bytes:
672 // Measured: `5016`
673 // Estimated: `7496`
674 // Minimum execution time: 19_522_000 picoseconds.
675 Weight::from_parts(21_171_000, 7496)
676 .saturating_add(RocksDbWeight::get().reads(1_u64))
677 .saturating_add(RocksDbWeight::get().writes(1_u64))
678 }
679 /// Storage: `Broker::Reservations` (r:1 w:1)
680 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
681 fn unreserve() -> Weight {
682 // Proof Size summary in bytes:
683 // Measured: `6218`
684 // Estimated: `7496`
685 // Minimum execution time: 18_662_000 picoseconds.
686 Weight::from_parts(20_231_000, 7496)
687 .saturating_add(RocksDbWeight::get().reads(1_u64))
688 .saturating_add(RocksDbWeight::get().writes(1_u64))
689 }
690 /// Storage: `Broker::Leases` (r:1 w:1)
691 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
692 fn set_lease() -> Weight {
693 // Proof Size summary in bytes:
694 // Measured: `239`
695 // Estimated: `1526`
696 // Minimum execution time: 11_032_000 picoseconds.
697 Weight::from_parts(11_950_000, 1526)
698 .saturating_add(RocksDbWeight::get().reads(1_u64))
699 .saturating_add(RocksDbWeight::get().writes(1_u64))
700 }
701 /// Storage: `Broker::Leases` (r:1 w:1)
702 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
703 fn remove_lease() -> Weight {
704 // Proof Size summary in bytes:
705 // Measured: `247`
706 // Estimated: `1526`
707 // Minimum execution time: 10_397_000 picoseconds.
708 Weight::from_parts(11_357_000, 1526)
709 .saturating_add(RocksDbWeight::get().reads(1_u64))
710 .saturating_add(RocksDbWeight::get().writes(1_u64))
711 }
712 /// Storage: `Broker::Configuration` (r:1 w:0)
713 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
714 /// Storage: `Broker::Leases` (r:1 w:1)
715 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
716 /// Storage: `Broker::Reservations` (r:1 w:0)
717 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
718 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
719 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
720 /// Storage: `Broker::ForceReservations` (r:1 w:0)
721 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
722 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
723 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
724 /// Storage: `Broker::SaleInfo` (r:0 w:1)
725 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
726 /// Storage: `Broker::Status` (r:0 w:1)
727 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
728 /// Storage: `Broker::Workplan` (r:0 w:10)
729 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
730 /// The range of component `n` is `[0, 1000]`.
731 fn start_sales(n: u32, ) -> Weight {
732 // Proof Size summary in bytes:
733 // Measured: `6330`
734 // Estimated: `8499`
735 // Minimum execution time: 32_817_000 picoseconds.
736 Weight::from_parts(60_863_793, 8499)
737 // Standard Error: 122
738 .saturating_add(Weight::from_parts(3_007, 0).saturating_mul(n.into()))
739 .saturating_add(RocksDbWeight::get().reads(8_u64))
740 .saturating_add(RocksDbWeight::get().writes(16_u64))
741 }
742 /// Storage: `Broker::Status` (r:1 w:0)
743 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
744 /// Storage: `Broker::SaleInfo` (r:1 w:1)
745 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
746 /// Storage: `Broker::Regions` (r:0 w:1)
747 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
748 fn purchase() -> Weight {
749 // Proof Size summary in bytes:
750 // Measured: `474`
751 // Estimated: `1546`
752 // Minimum execution time: 44_985_000 picoseconds.
753 Weight::from_parts(47_717_000, 1546)
754 .saturating_add(RocksDbWeight::get().reads(2_u64))
755 .saturating_add(RocksDbWeight::get().writes(2_u64))
756 }
757 /// Storage: `Broker::Configuration` (r:1 w:0)
758 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
759 /// Storage: `Broker::Status` (r:1 w:0)
760 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
761 /// Storage: `Broker::SaleInfo` (r:1 w:1)
762 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
763 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
764 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
765 /// Storage: `Broker::Workplan` (r:0 w:1)
766 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
767 fn renew() -> Weight {
768 // Proof Size summary in bytes:
769 // Measured: `592`
770 // Estimated: `4698`
771 // Minimum execution time: 68_771_000 picoseconds.
772 Weight::from_parts(74_481_000, 4698)
773 .saturating_add(RocksDbWeight::get().reads(4_u64))
774 .saturating_add(RocksDbWeight::get().writes(4_u64))
775 }
776 /// Storage: `Broker::Regions` (r:1 w:1)
777 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
778 fn transfer() -> Weight {
779 // Proof Size summary in bytes:
780 // Measured: `496`
781 // Estimated: `3551`
782 // Minimum execution time: 21_560_000 picoseconds.
783 Weight::from_parts(23_166_000, 3551)
784 .saturating_add(RocksDbWeight::get().reads(1_u64))
785 .saturating_add(RocksDbWeight::get().writes(1_u64))
786 }
787 /// Storage: `Broker::Status` (r:1 w:0)
788 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
789 /// Storage: `Broker::Regions` (r:1 w:2)
790 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
791 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
792 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
793 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
794 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
795 fn partition() -> Weight {
796 // Proof Size summary in bytes:
797 // Measured: `684`
798 // Estimated: `5996`
799 // Minimum execution time: 41_587_000 picoseconds.
800 Weight::from_parts(44_457_000, 5996)
801 .saturating_add(RocksDbWeight::get().reads(5_u64))
802 .saturating_add(RocksDbWeight::get().writes(5_u64))
803 }
804 /// Storage: `Broker::Status` (r:1 w:0)
805 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
806 /// Storage: `Broker::Regions` (r:1 w:3)
807 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
808 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
809 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
810 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
811 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
812 fn interlace() -> Weight {
813 // Proof Size summary in bytes:
814 // Measured: `684`
815 // Estimated: `5996`
816 // Minimum execution time: 43_313_000 picoseconds.
817 Weight::from_parts(46_101_000, 5996)
818 .saturating_add(RocksDbWeight::get().reads(5_u64))
819 .saturating_add(RocksDbWeight::get().writes(6_u64))
820 }
821 /// Storage: `Broker::Configuration` (r:1 w:0)
822 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
823 /// Storage: `Broker::Status` (r:1 w:0)
824 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
825 /// Storage: `Broker::Regions` (r:1 w:1)
826 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
827 /// Storage: `Broker::Workplan` (r:1 w:1)
828 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
829 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
830 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
831 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
832 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
833 fn assign() -> Weight {
834 // Proof Size summary in bytes:
835 // Measured: `915`
836 // Estimated: `5996`
837 // Minimum execution time: 53_179_000 picoseconds.
838 Weight::from_parts(56_385_000, 5996)
839 .saturating_add(RocksDbWeight::get().reads(7_u64))
840 .saturating_add(RocksDbWeight::get().writes(5_u64))
841 }
842 /// Storage: `Broker::Status` (r:1 w:0)
843 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
844 /// Storage: `Broker::Regions` (r:1 w:1)
845 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
846 /// Storage: `Broker::Workplan` (r:1 w:1)
847 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
848 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
849 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
850 /// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
851 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
852 fn pool() -> Weight {
853 // Proof Size summary in bytes:
854 // Measured: `776`
855 // Estimated: `5996`
856 // Minimum execution time: 42_030_000 picoseconds.
857 Weight::from_parts(44_627_000, 5996)
858 .saturating_add(RocksDbWeight::get().reads(5_u64))
859 .saturating_add(RocksDbWeight::get().writes(5_u64))
860 }
861 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
862 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
863 /// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
864 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
865 /// Storage: `System::Account` (r:2 w:2)
866 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
867 /// The range of component `m` is `[1, 3]`.
868 fn claim_revenue(m: u32, ) -> Weight {
869 // Proof Size summary in bytes:
870 // Measured: `827`
871 // Estimated: `6196 + m * (2520 ±0)`
872 // Minimum execution time: 76_795_000 picoseconds.
873 Weight::from_parts(79_621_014, 6196)
874 // Standard Error: 63_946
875 .saturating_add(Weight::from_parts(1_384_241, 0).saturating_mul(m.into()))
876 .saturating_add(RocksDbWeight::get().reads(3_u64))
877 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
878 .saturating_add(RocksDbWeight::get().writes(5_u64))
879 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
880 }
881 /// Storage: `System::Account` (r:1 w:1)
882 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
883 fn purchase_credit() -> Weight {
884 // Proof Size summary in bytes:
885 // Measured: `103`
886 // Estimated: `3593`
887 // Minimum execution time: 49_247_000 picoseconds.
888 Weight::from_parts(51_820_000, 3593)
889 .saturating_add(RocksDbWeight::get().reads(1_u64))
890 .saturating_add(RocksDbWeight::get().writes(1_u64))
891 }
892 /// Storage: `Broker::Status` (r:1 w:0)
893 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
894 /// Storage: `Broker::Regions` (r:1 w:1)
895 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
896 fn drop_region() -> Weight {
897 // Proof Size summary in bytes:
898 // Measured: `604`
899 // Estimated: `3551`
900 // Minimum execution time: 37_524_000 picoseconds.
901 Weight::from_parts(45_318_000, 3551)
902 .saturating_add(RocksDbWeight::get().reads(2_u64))
903 .saturating_add(RocksDbWeight::get().writes(1_u64))
904 }
905 /// Storage: `Broker::Configuration` (r:1 w:0)
906 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
907 /// Storage: `Broker::Status` (r:1 w:0)
908 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
909 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
910 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
911 fn drop_contribution() -> Weight {
912 // Proof Size summary in bytes:
913 // Measured: `601`
914 // Estimated: `3533`
915 // Minimum execution time: 44_650_000 picoseconds.
916 Weight::from_parts(57_395_000, 3533)
917 .saturating_add(RocksDbWeight::get().reads(3_u64))
918 .saturating_add(RocksDbWeight::get().writes(1_u64))
919 }
920 /// Storage: `Broker::Configuration` (r:1 w:0)
921 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
922 /// Storage: `Broker::Status` (r:1 w:0)
923 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
924 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
925 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
926 /// Storage: `System::Account` (r:1 w:0)
927 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
928 fn drop_history() -> Weight {
929 // Proof Size summary in bytes:
930 // Measured: `1117`
931 // Estimated: `3593`
932 // Minimum execution time: 61_636_000 picoseconds.
933 Weight::from_parts(72_001_000, 3593)
934 .saturating_add(RocksDbWeight::get().reads(4_u64))
935 .saturating_add(RocksDbWeight::get().writes(1_u64))
936 }
937 /// Storage: `Broker::Status` (r:1 w:0)
938 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
939 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
940 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
941 fn drop_renewal() -> Weight {
942 // Proof Size summary in bytes:
943 // Measured: `661`
944 // Estimated: `4698`
945 // Minimum execution time: 38_642_000 picoseconds.
946 Weight::from_parts(44_164_000, 4698)
947 .saturating_add(RocksDbWeight::get().reads(2_u64))
948 .saturating_add(RocksDbWeight::get().writes(1_u64))
949 }
950 /// The range of component `n` is `[0, 1000]`.
951 fn request_core_count(_n: u32, ) -> Weight {
952 // Proof Size summary in bytes:
953 // Measured: `0`
954 // Estimated: `0`
955 // Minimum execution time: 4_732_000 picoseconds.
956 Weight::from_parts(5_212_990, 0)
957 }
958 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
959 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
960 /// The range of component `n` is `[0, 1000]`.
961 fn process_core_count(n: u32, ) -> Weight {
962 // Proof Size summary in bytes:
963 // Measured: `404`
964 // Estimated: `1487`
965 // Minimum execution time: 7_954_000 picoseconds.
966 Weight::from_parts(8_805_381, 1487)
967 // Standard Error: 3
968 .saturating_add(Weight::from_parts(7, 0).saturating_mul(n.into()))
969 .saturating_add(RocksDbWeight::get().reads(1_u64))
970 .saturating_add(RocksDbWeight::get().writes(1_u64))
971 }
972 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
973 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
974 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
975 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
976 /// Storage: `System::Account` (r:1 w:1)
977 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
978 fn process_revenue() -> Weight {
979 // Proof Size summary in bytes:
980 // Measured: `667`
981 // Estimated: `3593`
982 // Minimum execution time: 44_436_000 picoseconds.
983 Weight::from_parts(46_786_000, 3593)
984 .saturating_add(RocksDbWeight::get().reads(3_u64))
985 .saturating_add(RocksDbWeight::get().writes(3_u64))
986 }
987 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
988 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
989 /// Storage: `Broker::Reservations` (r:1 w:0)
990 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
991 /// Storage: `Broker::ForceReservations` (r:1 w:0)
992 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
993 /// Storage: `Broker::Leases` (r:1 w:1)
994 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
995 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
996 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
997 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
998 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
999 /// Storage: `Broker::Configuration` (r:1 w:0)
1000 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1001 /// Storage: `Broker::Status` (r:1 w:0)
1002 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1003 /// Storage: `System::Account` (r:10 w:10)
1004 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1005 /// Storage: `Broker::SaleInfo` (r:0 w:1)
1006 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1007 /// Storage: `Broker::Workplan` (r:0 w:1000)
1008 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1009 /// The range of component `n` is `[0, 1000]`.
1010 fn rotate_sale(n: u32, ) -> Weight {
1011 // Proof Size summary in bytes:
1012 // Measured: `8090`
1013 // Estimated: `38070`
1014 // Minimum execution time: 28_248_000 picoseconds.
1015 Weight::from_parts(389_519_219, 38070)
1016 // Standard Error: 6_419
1017 .saturating_add(Weight::from_parts(1_485_202, 0).saturating_mul(n.into()))
1018 .saturating_add(RocksDbWeight::get().reads(27_u64))
1019 .saturating_add(RocksDbWeight::get().writes(34_u64))
1020 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
1021 }
1022 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
1023 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
1024 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
1025 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
1026 fn process_pool() -> Weight {
1027 // Proof Size summary in bytes:
1028 // Measured: `180`
1029 // Estimated: `3493`
1030 // Minimum execution time: 8_356_000 picoseconds.
1031 Weight::from_parts(9_086_000, 3493)
1032 .saturating_add(RocksDbWeight::get().reads(1_u64))
1033 .saturating_add(RocksDbWeight::get().writes(1_u64))
1034 }
1035 /// Storage: `Broker::Workplan` (r:1 w:1)
1036 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1037 /// Storage: `Broker::Workload` (r:1 w:1)
1038 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
1039 fn process_core_schedule() -> Weight {
1040 // Proof Size summary in bytes:
1041 // Measured: `1423`
1042 // Estimated: `4681`
1043 // Minimum execution time: 15_734_000 picoseconds.
1044 Weight::from_parts(16_906_000, 4681)
1045 .saturating_add(RocksDbWeight::get().reads(2_u64))
1046 .saturating_add(RocksDbWeight::get().writes(2_u64))
1047 }
1048 fn request_revenue_info_at() -> Weight {
1049 // Proof Size summary in bytes:
1050 // Measured: `0`
1051 // Estimated: `0`
1052 // Minimum execution time: 150_000 picoseconds.
1053 Weight::from_parts(209_000, 0)
1054 }
1055 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
1056 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
1057 fn notify_core_count() -> Weight {
1058 // Proof Size summary in bytes:
1059 // Measured: `0`
1060 // Estimated: `0`
1061 // Minimum execution time: 2_307_000 picoseconds.
1062 Weight::from_parts(2_644_000, 0)
1063 .saturating_add(RocksDbWeight::get().writes(1_u64))
1064 }
1065 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
1066 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1067 fn notify_revenue() -> Weight {
1068 // Proof Size summary in bytes:
1069 // Measured: `0`
1070 // Estimated: `0`
1071 // Minimum execution time: 2_475_000 picoseconds.
1072 Weight::from_parts(2_805_000, 0)
1073 .saturating_add(RocksDbWeight::get().writes(1_u64))
1074 }
1075 /// Storage: `Broker::Status` (r:1 w:1)
1076 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1077 /// Storage: `Broker::Configuration` (r:1 w:0)
1078 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1079 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
1080 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
1081 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
1082 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1083 fn do_tick_base() -> Weight {
1084 // Proof Size summary in bytes:
1085 // Measured: `441`
1086 // Estimated: `1516`
1087 // Minimum execution time: 14_520_000 picoseconds.
1088 Weight::from_parts(15_503_000, 1516)
1089 .saturating_add(RocksDbWeight::get().reads(4_u64))
1090 .saturating_add(RocksDbWeight::get().writes(1_u64))
1091 }
1092 /// Storage: `Broker::SaleInfo` (r:1 w:0)
1093 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1094 /// Storage: `Broker::Reservations` (r:1 w:1)
1095 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
1096 /// Storage: `Broker::ForceReservations` (r:1 w:1)
1097 /// Proof: `Broker::ForceReservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
1098 /// Storage: `Broker::Status` (r:1 w:0)
1099 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1100 /// Storage: `Broker::Workplan` (r:0 w:1)
1101 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1102 fn force_reserve() -> Weight {
1103 // Proof Size summary in bytes:
1104 // Measured: `5324`
1105 // Estimated: `7496`
1106 // Minimum execution time: 36_767_000 picoseconds.
1107 Weight::from_parts(39_295_000, 7496)
1108 .saturating_add(RocksDbWeight::get().reads(4_u64))
1109 .saturating_add(RocksDbWeight::get().writes(3_u64))
1110 }
1111 /// Storage: `Broker::Leases` (r:1 w:1)
1112 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
1113 fn swap_leases() -> Weight {
1114 // Proof Size summary in bytes:
1115 // Measured: `239`
1116 // Estimated: `1526`
1117 // Minimum execution time: 7_492_000 picoseconds.
1118 Weight::from_parts(8_310_000, 1526)
1119 .saturating_add(RocksDbWeight::get().reads(1_u64))
1120 .saturating_add(RocksDbWeight::get().writes(1_u64))
1121 }
1122 /// Storage: `Broker::SaleInfo` (r:1 w:1)
1123 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(61), added: 556, mode: `MaxEncodedLen`)
1124 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
1125 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1126 /// Storage: `Broker::Configuration` (r:1 w:0)
1127 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1128 /// Storage: `Broker::Status` (r:1 w:0)
1129 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1130 /// Storage: `System::Account` (r:1 w:1)
1131 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1132 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1133 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1134 /// Storage: `Broker::Workplan` (r:0 w:1)
1135 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1136 fn enable_auto_renew() -> Weight {
1137 // Proof Size summary in bytes:
1138 // Measured: `1125`
1139 // Estimated: `4698`
1140 // Minimum execution time: 83_863_000 picoseconds.
1141 Weight::from_parts(89_482_000, 4698)
1142 .saturating_add(RocksDbWeight::get().reads(6_u64))
1143 .saturating_add(RocksDbWeight::get().writes(6_u64))
1144 }
1145 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1146 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1147 fn disable_auto_renew() -> Weight {
1148 // Proof Size summary in bytes:
1149 // Measured: `578`
1150 // Estimated: `1586`
1151 // Minimum execution time: 19_801_000 picoseconds.
1152 Weight::from_parts(21_518_000, 1586)
1153 .saturating_add(RocksDbWeight::get().reads(1_u64))
1154 .saturating_add(RocksDbWeight::get().writes(1_u64))
1155 }
1156 fn on_new_timeslice() -> Weight {
1157 // Proof Size summary in bytes:
1158 // Measured: `0`
1159 // Estimated: `0`
1160 // Minimum execution time: 257_000 picoseconds.
1161 Weight::from_parts(347_000, 0)
1162 }
1163 /// Storage: `Broker::Workplan` (r:1 w:1)
1164 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1165 fn remove_assignment() -> Weight {
1166 // Proof Size summary in bytes:
1167 // Measured: `604`
1168 // Estimated: `4681`
1169 // Minimum execution time: 20_871_000 picoseconds.
1170 Weight::from_parts(22_555_000, 4681)
1171 .saturating_add(RocksDbWeight::get().reads(1_u64))
1172 .saturating_add(RocksDbWeight::get().writes(1_u64))
1173 }
1174 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
1175 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1176 fn remove_potential_renewal() -> Weight {
1177 // Proof Size summary in bytes:
1178 // Measured: `452`
1179 // Estimated: `4698`
1180 // Minimum execution time: 18_905_000 picoseconds.
1181 Weight::from_parts(20_470_000, 4698)
1182 .saturating_add(RocksDbWeight::get().reads(1_u64))
1183 .saturating_add(RocksDbWeight::get().writes(1_u64))
1184 }
1185 /// Storage: `Broker::Regions` (r:1 w:1)
1186 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
1187 fn force_transfer() -> Weight {
1188 // Proof Size summary in bytes:
1189 // Measured: `496`
1190 // Estimated: `3551`
1191 // Minimum execution time: 21_124_000 picoseconds.
1192 Weight::from_parts(22_967_000, 3551)
1193 .saturating_add(RocksDbWeight::get().reads(1_u64))
1194 .saturating_add(RocksDbWeight::get().writes(1_u64))
1195 }
1196}