referrerpolicy=no-referrer-when-downgrade

pallet_registrar_relay/
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_registrar_relay`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-11-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `unknown`, CPU: `<UNKNOWN>`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// ./target/release/frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/release/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_registrar_relay
51// --header=substrate/HEADER-APACHE2
52// --output=substrate/frame/registrar/relay/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// --genesis-builder-policy=none
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_registrar_relay`.
73pub trait WeightInfo {
74	fn receive_register(h: u32, ) -> Weight;
75	fn apply_authorized_code(c: u32, ) -> Weight;
76	fn authorize_apply_authorized_code(c: u32, ) -> Weight;
77	fn receive_cancel_registration() -> Weight;
78	fn on_new_head() -> Weight;
79	fn on_new_head_already_noted() -> Weight;
80	fn receive_deregister() -> Weight;
81	fn receive_set_current_head(h: u32, ) -> Weight;
82	fn receive_authorize_code_upgrade() -> Weight;
83	fn authorize_apply_authorized_code_upgrade(c: u32, ) -> Weight;
84	fn apply_authorized_code_upgrade(c: u32, ) -> Weight;
85}
86
87/// Weights for `pallet_registrar_relay` using the Substrate node and recommended hardware.
88pub struct SubstrateWeight<T>(PhantomData<T>);
89impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
90	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
91	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
92	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
93	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
94	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
95	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
96	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
97	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
98	/// The range of component `h` is `[0, 1048576]`.
99	fn receive_register(h: u32, ) -> Weight {
100		// Proof Size summary in bytes:
101		//  Measured:  `0`
102		//  Estimated: `1052141`
103		// Minimum execution time: 9_000_000 picoseconds.
104		Weight::from_parts(19_137_656, 1052141)
105			// Standard Error: 0
106			.saturating_add(Weight::from_parts(319, 0).saturating_mul(h.into()))
107			.saturating_add(T::DbWeight::get().reads(3_u64))
108			.saturating_add(T::DbWeight::get().writes(3_u64))
109	}
110	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
111	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
112	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
113	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
114	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
115	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
116	/// The range of component `c` is `[0, 3145728]`.
117	fn apply_authorized_code(c: u32, ) -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `1048713`
120		//  Estimated: `1052141`
121		// Minimum execution time: 265_000_000 picoseconds.
122		Weight::from_parts(265_028_362, 1052141)
123			// Standard Error: 0
124			.saturating_add(Weight::from_parts(834, 0).saturating_mul(c.into()))
125			.saturating_add(T::DbWeight::get().reads(2_u64))
126			.saturating_add(T::DbWeight::get().writes(3_u64))
127	}
128	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:0)
129	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
130	/// The range of component `c` is `[0, 3145728]`.
131	fn authorize_apply_authorized_code(c: u32, ) -> Weight {
132		// Proof Size summary in bytes:
133		//  Measured:  `1048713`
134		//  Estimated: `1052141`
135		// Minimum execution time: 258_000_000 picoseconds.
136		Weight::from_parts(266_329_689, 1052141)
137			// Standard Error: 0
138			.saturating_add(Weight::from_parts(642, 0).saturating_mul(c.into()))
139			.saturating_add(T::DbWeight::get().reads(1_u64))
140	}
141	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
142	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
143	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
144	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
145	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
146	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
147	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
148	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
149	fn receive_cancel_registration() -> Weight {
150		// Proof Size summary in bytes:
151		//  Measured:  `84`
152		//  Estimated: `1052141`
153		// Minimum execution time: 8_000_000 picoseconds.
154		Weight::from_parts(10_000_000, 1052141)
155			.saturating_add(T::DbWeight::get().reads(3_u64))
156			.saturating_add(T::DbWeight::get().writes(3_u64))
157	}
158	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:1 w:1)
159	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
160	fn on_new_head() -> Weight {
161		// Proof Size summary in bytes:
162		//  Measured:  `24`
163		//  Estimated: `3485`
164		// Minimum execution time: 3_000_000 picoseconds.
165		Weight::from_parts(4_000_000, 3485)
166			.saturating_add(T::DbWeight::get().reads(1_u64))
167			.saturating_add(T::DbWeight::get().writes(1_u64))
168	}
169	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:1 w:0)
170	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
171	fn on_new_head_already_noted() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `0`
174		//  Estimated: `3485`
175		// Minimum execution time: 1_000_000 picoseconds.
176		Weight::from_parts(1_000_000, 3485)
177			.saturating_add(T::DbWeight::get().reads(1_u64))
178	}
179	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
180	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
181	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
182	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
183	fn receive_deregister() -> Weight {
184		// Proof Size summary in bytes:
185		//  Measured:  `0`
186		//  Estimated: `0`
187		// Minimum execution time: 3_000_000 picoseconds.
188		Weight::from_parts(5_000_000, 0)
189			.saturating_add(T::DbWeight::get().writes(2_u64))
190	}
191	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
192	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
193	/// The range of component `h` is `[0, 1048576]`.
194	fn receive_set_current_head(h: u32, ) -> Weight {
195		// Proof Size summary in bytes:
196		//  Measured:  `0`
197		//  Estimated: `3465`
198		// Minimum execution time: 3_000_000 picoseconds.
199		Weight::from_parts(8_942_583, 3465)
200			// Standard Error: 0
201			.saturating_add(Weight::from_parts(166, 0).saturating_mul(h.into()))
202			.saturating_add(T::DbWeight::get().reads(1_u64))
203	}
204	/// Storage: UNKNOWN KEY `0x1c5b7931414d5d82c2165c2278c2c400` (r:1 w:0)
205	/// Proof: UNKNOWN KEY `0x1c5b7931414d5d82c2165c2278c2c400` (r:1 w:0)
206	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:0 w:1)
207	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
208	fn receive_authorize_code_upgrade() -> Weight {
209		// Proof Size summary in bytes:
210		//  Measured:  `133`
211		//  Estimated: `3598`
212		// Minimum execution time: 7_000_000 picoseconds.
213		Weight::from_parts(8_000_000, 3598)
214			.saturating_add(T::DbWeight::get().reads(1_u64))
215			.saturating_add(T::DbWeight::get().writes(1_u64))
216	}
217	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:1 w:0)
218	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
219	/// The range of component `c` is `[9, 3145728]`.
220	fn authorize_apply_authorized_code_upgrade(c: u32, ) -> Weight {
221		// Proof Size summary in bytes:
222		//  Measured:  `408`
223		//  Estimated: `3533`
224		// Minimum execution time: 6_000_000 picoseconds.
225		Weight::from_parts(5_860_608, 3533)
226			// Standard Error: 0
227			.saturating_add(Weight::from_parts(643, 0).saturating_mul(c.into()))
228			.saturating_add(T::DbWeight::get().reads(1_u64))
229	}
230	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:1 w:1)
231	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
232	/// The range of component `c` is `[9, 3145728]`.
233	fn apply_authorized_code_upgrade(c: u32, ) -> Weight {
234		// Proof Size summary in bytes:
235		//  Measured:  `408`
236		//  Estimated: `3533`
237		// Minimum execution time: 9_000_000 picoseconds.
238		Weight::from_parts(10_000_000, 3533)
239			// Standard Error: 4
240			.saturating_add(Weight::from_parts(1_085, 0).saturating_mul(c.into()))
241			.saturating_add(T::DbWeight::get().reads(1_u64))
242			.saturating_add(T::DbWeight::get().writes(1_u64))
243	}
244}
245
246// For backwards compatibility and tests.
247impl WeightInfo for () {
248	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
249	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
250	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
251	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
252	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
253	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
254	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
255	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
256	/// The range of component `h` is `[0, 1048576]`.
257	fn receive_register(h: u32, ) -> Weight {
258		// Proof Size summary in bytes:
259		//  Measured:  `0`
260		//  Estimated: `1052141`
261		// Minimum execution time: 9_000_000 picoseconds.
262		Weight::from_parts(19_137_656, 1052141)
263			// Standard Error: 0
264			.saturating_add(Weight::from_parts(319, 0).saturating_mul(h.into()))
265			.saturating_add(RocksDbWeight::get().reads(3_u64))
266			.saturating_add(RocksDbWeight::get().writes(3_u64))
267	}
268	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
269	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
270	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
271	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
272	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
273	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
274	/// The range of component `c` is `[0, 3145728]`.
275	fn apply_authorized_code(c: u32, ) -> Weight {
276		// Proof Size summary in bytes:
277		//  Measured:  `1048713`
278		//  Estimated: `1052141`
279		// Minimum execution time: 265_000_000 picoseconds.
280		Weight::from_parts(265_028_362, 1052141)
281			// Standard Error: 0
282			.saturating_add(Weight::from_parts(834, 0).saturating_mul(c.into()))
283			.saturating_add(RocksDbWeight::get().reads(2_u64))
284			.saturating_add(RocksDbWeight::get().writes(3_u64))
285	}
286	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:0)
287	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
288	/// The range of component `c` is `[0, 3145728]`.
289	fn authorize_apply_authorized_code(c: u32, ) -> Weight {
290		// Proof Size summary in bytes:
291		//  Measured:  `1048713`
292		//  Estimated: `1052141`
293		// Minimum execution time: 258_000_000 picoseconds.
294		Weight::from_parts(266_329_689, 1052141)
295			// Standard Error: 0
296			.saturating_add(Weight::from_parts(642, 0).saturating_mul(c.into()))
297			.saturating_add(RocksDbWeight::get().reads(1_u64))
298	}
299	/// Storage: `RegistrarRelay::PendingRegistrations` (r:1 w:1)
300	/// Proof: `RegistrarRelay::PendingRegistrations` (`max_values`: None, `max_size`: Some(1048676), added: 1051151, mode: `MaxEncodedLen`)
301	/// Storage: `RegistrarRelay::CounterForPendingRegistrations` (r:1 w:1)
302	/// Proof: `RegistrarRelay::CounterForPendingRegistrations` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
303	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
304	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
305	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
306	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
307	fn receive_cancel_registration() -> Weight {
308		// Proof Size summary in bytes:
309		//  Measured:  `84`
310		//  Estimated: `1052141`
311		// Minimum execution time: 8_000_000 picoseconds.
312		Weight::from_parts(10_000_000, 1052141)
313			.saturating_add(RocksDbWeight::get().reads(3_u64))
314			.saturating_add(RocksDbWeight::get().writes(3_u64))
315	}
316	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:1 w:1)
317	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
318	fn on_new_head() -> Weight {
319		// Proof Size summary in bytes:
320		//  Measured:  `24`
321		//  Estimated: `3485`
322		// Minimum execution time: 3_000_000 picoseconds.
323		Weight::from_parts(4_000_000, 3485)
324			.saturating_add(RocksDbWeight::get().reads(1_u64))
325			.saturating_add(RocksDbWeight::get().writes(1_u64))
326	}
327	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:1 w:0)
328	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
329	fn on_new_head_already_noted() -> Weight {
330		// Proof Size summary in bytes:
331		//  Measured:  `0`
332		//  Estimated: `3485`
333		// Minimum execution time: 1_000_000 picoseconds.
334		Weight::from_parts(1_000_000, 3485)
335			.saturating_add(RocksDbWeight::get().reads(1_u64))
336	}
337	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
338	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:0 w:1)
339	/// Storage: `RegistrarRelay::AwaitingFirstHead` (r:0 w:1)
340	/// Proof: `RegistrarRelay::AwaitingFirstHead` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
341	fn receive_deregister() -> Weight {
342		// Proof Size summary in bytes:
343		//  Measured:  `0`
344		//  Estimated: `0`
345		// Minimum execution time: 3_000_000 picoseconds.
346		Weight::from_parts(5_000_000, 0)
347			.saturating_add(RocksDbWeight::get().writes(2_u64))
348	}
349	/// Storage: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
350	/// Proof: UNKNOWN KEY `0x416363657074696e6752656769737472617292100000` (r:1 w:0)
351	/// The range of component `h` is `[0, 1048576]`.
352	fn receive_set_current_head(h: u32, ) -> Weight {
353		// Proof Size summary in bytes:
354		//  Measured:  `0`
355		//  Estimated: `3465`
356		// Minimum execution time: 3_000_000 picoseconds.
357		Weight::from_parts(8_942_583, 3465)
358			// Standard Error: 0
359			.saturating_add(Weight::from_parts(166, 0).saturating_mul(h.into()))
360			.saturating_add(RocksDbWeight::get().reads(1_u64))
361	}
362	/// Storage: UNKNOWN KEY `0x1c5b7931414d5d82c2165c2278c2c400` (r:1 w:0)
363	/// Proof: UNKNOWN KEY `0x1c5b7931414d5d82c2165c2278c2c400` (r:1 w:0)
364	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:0 w:1)
365	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
366	fn receive_authorize_code_upgrade() -> Weight {
367		// Proof Size summary in bytes:
368		//  Measured:  `133`
369		//  Estimated: `3598`
370		// Minimum execution time: 7_000_000 picoseconds.
371		Weight::from_parts(8_000_000, 3598)
372			.saturating_add(RocksDbWeight::get().reads(1_u64))
373			.saturating_add(RocksDbWeight::get().writes(1_u64))
374	}
375	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:1 w:0)
376	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
377	/// The range of component `c` is `[9, 3145728]`.
378	fn authorize_apply_authorized_code_upgrade(c: u32, ) -> Weight {
379		// Proof Size summary in bytes:
380		//  Measured:  `408`
381		//  Estimated: `3533`
382		// Minimum execution time: 6_000_000 picoseconds.
383		Weight::from_parts(5_860_608, 3533)
384			// Standard Error: 0
385			.saturating_add(Weight::from_parts(643, 0).saturating_mul(c.into()))
386			.saturating_add(RocksDbWeight::get().reads(1_u64))
387	}
388	/// Storage: `RegistrarRelay::PendingCodeUpgrades` (r:1 w:1)
389	/// Proof: `RegistrarRelay::PendingCodeUpgrades` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
390	/// The range of component `c` is `[9, 3145728]`.
391	fn apply_authorized_code_upgrade(c: u32, ) -> Weight {
392		// Proof Size summary in bytes:
393		//  Measured:  `408`
394		//  Estimated: `3533`
395		// Minimum execution time: 9_000_000 picoseconds.
396		Weight::from_parts(10_000_000, 3533)
397			// Standard Error: 4
398			.saturating_add(Weight::from_parts(1_085, 0).saturating_mul(c.into()))
399			.saturating_add(RocksDbWeight::get().reads(1_u64))
400			.saturating_add(RocksDbWeight::get().writes(1_u64))
401	}
402}