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 47.0.0
21
//! DATE: 2025-07-09, 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 core::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`: Some(20), added: 2495, mode: `MaxEncodedLen`)
65
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
66
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
67
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
68
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
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: 82_736_000 picoseconds.
76
120
		Weight::from_parts(25_478_060, 3731)
77
120
			// Standard Error: 3
78
120
			.saturating_add(Weight::from_parts(1_221, 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`: Some(20), added: 2495, mode: `MaxEncodedLen`)
92
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
93
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
94
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
95
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
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: 147_905_000 picoseconds.
103
12
		Weight::from_parts(159_346_034, 3829)
104
12
			// Standard Error: 2
105
12
			.saturating_add(Weight::from_parts(1_374, 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`: Some(20), added: 2495, mode: `MaxEncodedLen`)
111
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
112
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
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`: Some(32), added: 2507, mode: `MaxEncodedLen`)
119
	/// Storage: `Registrar::BufferedParasToDeregister` (r:1 w:1)
120
	/// Proof: `Registrar::BufferedParasToDeregister` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
121
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
122
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
123
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
124
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
125
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
126
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
127
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
128
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
129
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
130
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
131
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
132
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
133
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
134
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
135
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
136
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
137
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
138
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
139
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
140
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
141
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
142
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
143
132
	fn deregister_immediate() -> Weight {
144
132
		// Proof Size summary in bytes:
145
132
		//  Measured:  `2971`
146
132
		//  Estimated: `6196`
147
132
		// Minimum execution time: 185_918_000 picoseconds.
148
132
		Weight::from_parts(191_807_000, 6196)
149
132
			.saturating_add(T::DbWeight::get().reads(7_u64))
150
132
			.saturating_add(T::DbWeight::get().writes(16_u64))
151
132
	}
152
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
153
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
154
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
155
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
156
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
157
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
158
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
159
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
160
	/// Storage: `Registrar::Paused` (r:1 w:0)
161
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
162
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
163
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
164
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
165
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
167
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
168
132
	fn deregister_scheduled() -> Weight {
169
132
		// Proof Size summary in bytes:
170
132
		//  Measured:  `850`
171
132
		//  Estimated: `3493`
172
132
		// Minimum execution time: 76_221_000 picoseconds.
173
132
		Weight::from_parts(79_958_000, 3493)
174
132
			.saturating_add(T::DbWeight::get().reads(8_u64))
175
132
			.saturating_add(T::DbWeight::get().writes(2_u64))
176
132
	}
177
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
178
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
179
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
180
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
181
	/// Storage: `Balances::Holds` (r:1 w:1)
182
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
183
	/// Storage: `System::Account` (r:3 w:2)
184
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
185
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
186
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
187
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:0)
188
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
189
	/// Storage: `Registrar::BufferedParasToDeregister` (r:1 w:1)
190
	/// Proof: `Registrar::BufferedParasToDeregister` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
191
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
192
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
193
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
194
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
195
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
196
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
197
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
198
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
199
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
200
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
201
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
202
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
203
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
204
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
205
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
206
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
207
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
208
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
209
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
210
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
211
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
212
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
213
12
	fn deregister_with_relay_proof_immediate() -> Weight {
214
12
		// Proof Size summary in bytes:
215
12
		//  Measured:  `3335`
216
12
		//  Estimated: `8799`
217
12
		// Minimum execution time: 229_456_000 picoseconds.
218
12
		Weight::from_parts(233_729_000, 8799)
219
12
			.saturating_add(T::DbWeight::get().reads(9_u64))
220
12
			.saturating_add(T::DbWeight::get().writes(17_u64))
221
12
	}
222
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
223
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
224
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
225
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
226
	/// Storage: `Balances::Holds` (r:1 w:1)
227
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
228
	/// Storage: `System::Account` (r:2 w:2)
229
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
230
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
231
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
232
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
233
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
234
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
235
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
236
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
237
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
238
	/// Storage: `Registrar::Paused` (r:1 w:0)
239
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
240
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
241
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
242
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
243
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
244
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
245
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
246
12
	fn deregister_with_relay_proof_scheduled() -> Weight {
247
12
		// Proof Size summary in bytes:
248
12
		//  Measured:  `2942`
249
12
		//  Estimated: `6196`
250
12
		// Minimum execution time: 191_094_000 picoseconds.
251
12
		Weight::from_parts(197_360_000, 6196)
252
12
			.saturating_add(T::DbWeight::get().reads(13_u64))
253
12
			.saturating_add(T::DbWeight::get().writes(6_u64))
254
12
	}
255
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
256
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
257
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
258
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
259
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
260
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
261
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
262
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
263
	/// Storage: `DataPreservers::Assignments` (r:1 w:0)
264
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
265
	/// Storage: `DataPreservers::Profiles` (r:1 w:0)
266
	/// Proof: `DataPreservers::Profiles` (`max_values`: None, `max_size`: Some(744), added: 3219, mode: `MaxEncodedLen`)
267
	/// Storage: `ServicesPayment::GivenFreeCredits` (r:1 w:1)
268
	/// Proof: `ServicesPayment::GivenFreeCredits` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
269
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:1 w:1)
270
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
271
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:1 w:1)
272
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
273
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
274
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
275
96
	fn mark_valid_for_collating() -> Weight {
276
96
		// Proof Size summary in bytes:
277
96
		//  Measured:  `5165`
278
96
		//  Estimated: `6650`
279
96
		// Minimum execution time: 174_108_000 picoseconds.
280
96
		Weight::from_parts(181_412_000, 6650)
281
96
			.saturating_add(T::DbWeight::get().reads(10_u64))
282
96
			.saturating_add(T::DbWeight::get().writes(5_u64))
283
96
	}
284
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
285
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
286
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
287
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
288
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
289
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
290
36
	fn pause_container_chain() -> Weight {
291
36
		// Proof Size summary in bytes:
292
36
		//  Measured:  `1242`
293
36
		//  Estimated: `2727`
294
36
		// Minimum execution time: 64_053_000 picoseconds.
295
36
		Weight::from_parts(65_877_000, 2727)
296
36
			.saturating_add(T::DbWeight::get().reads(3_u64))
297
36
			.saturating_add(T::DbWeight::get().writes(2_u64))
298
36
	}
299
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
300
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
301
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
302
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
303
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
304
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
305
12
	fn unpause_container_chain() -> Weight {
306
12
		// Proof Size summary in bytes:
307
12
		//  Measured:  `1242`
308
12
		//  Estimated: `2727`
309
12
		// Minimum execution time: 62_724_000 picoseconds.
310
12
		Weight::from_parts(65_989_000, 2727)
311
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
312
12
			.saturating_add(T::DbWeight::get().writes(2_u64))
313
12
	}
314
	/// Storage: `System::Account` (r:1 w:1)
315
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
316
	/// Storage: `Balances::Holds` (r:1 w:1)
317
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
318
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
319
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
320
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
321
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
322
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
323
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
324
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
325
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
326
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
327
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
328
	/// The range of component `x` is `[100, 3000000]`.
329
	/// The range of component `z` is `[1, 10]`.
330
48
	fn register_parathread(x: u32, _z: u32, ) -> Weight {
331
48
		// Proof Size summary in bytes:
332
48
		//  Measured:  `266`
333
48
		//  Estimated: `3731`
334
48
		// Minimum execution time: 85_599_000 picoseconds.
335
48
		Weight::from_parts(38_914_268, 3731)
336
48
			// Standard Error: 3
337
48
			.saturating_add(Weight::from_parts(1_205, 0).saturating_mul(x.into()))
338
48
			.saturating_add(T::DbWeight::get().reads(4_u64))
339
48
			.saturating_add(T::DbWeight::get().writes(7_u64))
340
48
	}
341
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
342
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
343
	/// Storage: `Registrar::PendingParathreadParams` (r:1 w:1)
344
	/// Proof: `Registrar::PendingParathreadParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
345
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
346
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
347
12
	fn set_parathread_params() -> Weight {
348
12
		// Proof Size summary in bytes:
349
12
		//  Measured:  `1674`
350
12
		//  Estimated: `3493`
351
12
		// Minimum execution time: 65_174_000 picoseconds.
352
12
		Weight::from_parts(68_755_000, 3493)
353
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
354
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
355
12
	}
356
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:0)
357
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
358
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
359
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
360
24
	fn set_para_manager() -> Weight {
361
24
		// Proof Size summary in bytes:
362
24
		//  Measured:  `237`
363
24
		//  Estimated: `3533`
364
24
		// Minimum execution time: 17_249_000 picoseconds.
365
24
		Weight::from_parts(17_627_000, 3533)
366
24
			.saturating_add(T::DbWeight::get().reads(1_u64))
367
24
			.saturating_add(T::DbWeight::get().writes(1_u64))
368
24
	}
369
}