1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Tanssi is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Tanssi.  If not, see <http://www.gnu.org/licenses/>
16

            
17

            
18
//! Autogenerated weights for pallet_registrar
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21
//! DATE: 2024-08-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_registrar
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/dancebox_weights/pallet_registrar.rs
46

            
47
#![cfg_attr(rustfmt, rustfmt_skip)]
48
#![allow(unused_parens)]
49
#![allow(unused_imports)]
50

            
51
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
52
use sp_std::marker::PhantomData;
53

            
54
/// Weights for pallet_registrar using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_registrar::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `System::Account` (r:1 w:1)
58
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
59
	/// Storage: `Balances::Holds` (r:1 w:1)
60
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
61
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
62
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
63
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
64
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
65
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
66
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
67
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
68
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
69
	/// The range of component `x` is `[100, 3000000]`.
70
	/// The range of component `z` is `[1, 10]`.
71
120
	fn register(x: u32, _z: u32, ) -> Weight {
72
120
		// Proof Size summary in bytes:
73
120
		//  Measured:  `266`
74
120
		//  Estimated: `3731`
75
120
		// Minimum execution time: 74_330_000 picoseconds.
76
120
		Weight::from_parts(426_148_565, 3731)
77
120
			// Standard Error: 9
78
120
			.saturating_add(Weight::from_parts(1_550, 0).saturating_mul(x.into()))
79
120
			.saturating_add(T::DbWeight::get().reads(4_u64))
80
120
			.saturating_add(T::DbWeight::get().writes(6_u64))
81
120
	}
82
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
83
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
84
	/// Storage: `System::Account` (r:1 w:1)
85
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
86
	/// Storage: `Balances::Holds` (r:1 w:1)
87
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
88
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
89
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
90
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
91
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
92
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
93
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
94
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
95
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
96
	/// The range of component `x` is `[100, 3000000]`.
97
	/// The range of component `z` is `[1, 10]`.
98
12
	fn register_with_relay_proof(x: u32, _z: u32, ) -> Weight {
99
12
		// Proof Size summary in bytes:
100
12
		//  Measured:  `364`
101
12
		//  Estimated: `3829`
102
12
		// Minimum execution time: 149_055_000 picoseconds.
103
12
		Weight::from_parts(592_930_347, 3829)
104
12
			// Standard Error: 10
105
12
			.saturating_add(Weight::from_parts(1_515, 0).saturating_mul(x.into()))
106
12
			.saturating_add(T::DbWeight::get().reads(5_u64))
107
12
			.saturating_add(T::DbWeight::get().writes(6_u64))
108
12
	}
109
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
110
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
111
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
112
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
113
	/// Storage: `System::Account` (r:2 w:1)
114
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
115
	/// Storage: `Balances::Holds` (r:1 w:1)
116
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
117
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:0)
118
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
119
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
120
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
121
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
122
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
123
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
124
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
125
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
126
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
127
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
128
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
129
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
130
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
131
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
132
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
133
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
134
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
135
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
136
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: None, mode: `Measured`)
137
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
138
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
139
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
140
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
141
84
	fn deregister_immediate() -> Weight {
142
84
		// Proof Size summary in bytes:
143
84
		//  Measured:  `3135`
144
84
		//  Estimated: `6600`
145
84
		// Minimum execution time: 162_888_000 picoseconds.
146
84
		Weight::from_parts(175_847_000, 6600)
147
84
			.saturating_add(T::DbWeight::get().reads(6_u64))
148
84
			.saturating_add(T::DbWeight::get().writes(15_u64))
149
84
	}
150
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
151
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
152
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
153
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
154
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
155
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
157
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
158
	/// Storage: `Registrar::Paused` (r:1 w:0)
159
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
160
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
161
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
163
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
84
	fn deregister_scheduled() -> Weight {
165
84
		// Proof Size summary in bytes:
166
84
		//  Measured:  `823`
167
84
		//  Estimated: `4288`
168
84
		// Minimum execution time: 65_405_000 picoseconds.
169
84
		Weight::from_parts(72_197_000, 4288)
170
84
			.saturating_add(T::DbWeight::get().reads(7_u64))
171
84
			.saturating_add(T::DbWeight::get().writes(2_u64))
172
84
	}
173
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
174
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
175
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
176
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
177
	/// Storage: `Balances::Holds` (r:1 w:1)
178
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
179
	/// Storage: `System::Account` (r:3 w:2)
180
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
181
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
182
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
183
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:0)
184
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: None, mode: `Measured`)
185
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
186
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
187
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
188
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
189
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
190
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
191
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
192
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
193
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
194
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
195
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
196
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
197
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
198
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
199
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
200
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
201
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
202
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: None, mode: `Measured`)
203
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
204
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
205
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
206
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: None, mode: `Measured`)
207
12
	fn deregister_with_relay_proof_immediate() -> Weight {
208
12
		// Proof Size summary in bytes:
209
12
		//  Measured:  `3335`
210
12
		//  Estimated: `8799`
211
12
		// Minimum execution time: 201_919_000 picoseconds.
212
12
		Weight::from_parts(216_444_000, 8799)
213
12
			.saturating_add(T::DbWeight::get().reads(8_u64))
214
12
			.saturating_add(T::DbWeight::get().writes(16_u64))
215
12
	}
216
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
217
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
218
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
219
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
220
	/// Storage: `Balances::Holds` (r:1 w:1)
221
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
222
	/// Storage: `System::Account` (r:2 w:2)
223
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
224
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
225
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
226
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
227
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
228
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
229
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
230
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
231
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
232
	/// Storage: `Registrar::Paused` (r:1 w:0)
233
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
234
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
235
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
236
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
237
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
238
12
	fn deregister_with_relay_proof_scheduled() -> Weight {
239
12
		// Proof Size summary in bytes:
240
12
		//  Measured:  `2915`
241
12
		//  Estimated: `6380`
242
12
		// Minimum execution time: 175_210_000 picoseconds.
243
12
		Weight::from_parts(184_806_000, 6380)
244
12
			.saturating_add(T::DbWeight::get().reads(12_u64))
245
12
			.saturating_add(T::DbWeight::get().writes(6_u64))
246
12
	}
247
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
248
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
249
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
250
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
251
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
252
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
253
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
254
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
255
	/// Storage: `DataPreservers::Assignments` (r:1 w:0)
256
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: None, mode: `Measured`)
257
	/// Storage: `DataPreservers::Profiles` (r:1 w:0)
258
	/// Proof: `DataPreservers::Profiles` (`max_values`: None, `max_size`: None, mode: `Measured`)
259
	/// Storage: `ServicesPayment::GivenFreeCredits` (r:1 w:1)
260
	/// Proof: `ServicesPayment::GivenFreeCredits` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
261
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:1 w:1)
262
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
263
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:1 w:1)
264
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
265
72
	fn mark_valid_for_collating() -> Weight {
266
72
		// Proof Size summary in bytes:
267
72
		//  Measured:  `4885`
268
72
		//  Estimated: `8350`
269
72
		// Minimum execution time: 145_632_000 picoseconds.
270
72
		Weight::from_parts(158_802_000, 8350)
271
72
			.saturating_add(T::DbWeight::get().reads(9_u64))
272
72
			.saturating_add(T::DbWeight::get().writes(5_u64))
273
72
	}
274
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
275
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
276
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
277
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
278
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
279
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
280
12
	fn pause_container_chain() -> Weight {
281
12
		// Proof Size summary in bytes:
282
12
		//  Measured:  `1243`
283
12
		//  Estimated: `2728`
284
12
		// Minimum execution time: 59_666_000 picoseconds.
285
12
		Weight::from_parts(63_991_000, 2728)
286
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
287
12
			.saturating_add(T::DbWeight::get().writes(2_u64))
288
12
	}
289
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
290
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
291
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
292
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
293
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
294
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
295
12
	fn unpause_container_chain() -> Weight {
296
12
		// Proof Size summary in bytes:
297
12
		//  Measured:  `1243`
298
12
		//  Estimated: `2728`
299
12
		// Minimum execution time: 58_495_000 picoseconds.
300
12
		Weight::from_parts(62_964_000, 2728)
301
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
302
12
			.saturating_add(T::DbWeight::get().writes(2_u64))
303
12
	}
304
	/// Storage: `System::Account` (r:1 w:1)
305
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
306
	/// Storage: `Balances::Holds` (r:1 w:1)
307
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
308
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
309
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
310
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
311
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: None, mode: `Measured`)
312
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
313
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
314
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
315
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
316
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
317
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
318
	/// The range of component `x` is `[100, 3000000]`.
319
	/// The range of component `z` is `[1, 10]`.
320
24
	fn register_parathread(x: u32, _z: u32, ) -> Weight {
321
24
		// Proof Size summary in bytes:
322
24
		//  Measured:  `266`
323
24
		//  Estimated: `3731`
324
24
		// Minimum execution time: 76_069_000 picoseconds.
325
24
		Weight::from_parts(213_957_321, 3731)
326
24
			// Standard Error: 10
327
24
			.saturating_add(Weight::from_parts(1_558, 0).saturating_mul(x.into()))
328
24
			.saturating_add(T::DbWeight::get().reads(4_u64))
329
24
			.saturating_add(T::DbWeight::get().writes(7_u64))
330
24
	}
331
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
332
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: None, mode: `Measured`)
333
	/// Storage: `Registrar::PendingParathreadParams` (r:1 w:1)
334
	/// Proof: `Registrar::PendingParathreadParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
335
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
336
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
337
12
	fn set_parathread_params() -> Weight {
338
12
		// Proof Size summary in bytes:
339
12
		//  Measured:  `1773`
340
12
		//  Estimated: `5238`
341
12
		// Minimum execution time: 58_684_000 picoseconds.
342
12
		Weight::from_parts(65_372_000, 5238)
343
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
344
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
345
12
	}
346
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:0)
347
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
348
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
349
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: None, mode: `Measured`)
350
12
	fn set_para_manager() -> Weight {
351
12
		// Proof Size summary in bytes:
352
12
		//  Measured:  `237`
353
12
		//  Estimated: `3702`
354
12
		// Minimum execution time: 14_871_000 picoseconds.
355
12
		Weight::from_parts(15_334_000, 3702)
356
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
357
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
358
12
	}
359
}