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-09-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
// --wasm-execution=compiled
31
// --pallet
32
// pallet_registrar
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/dancebox_weights/pallet_registrar.rs
45

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

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

            
53
/// Weights for pallet_registrar using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_registrar::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `System::Account` (r:1 w:1)
57
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
58
	/// Storage: `Balances::Holds` (r:1 w:1)
59
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
60
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
61
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
62
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
63
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
64
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
65
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
66
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
67
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
68
	/// The range of component `x` is `[100, 3000000]`.
69
	/// The range of component `z` is `[1, 10]`.
70
120
	fn register(x: u32, z: u32, ) -> Weight {
71
120
		// Proof Size summary in bytes:
72
120
		//  Measured:  `266`
73
120
		//  Estimated: `3731`
74
120
		// Minimum execution time: 83_052_000 picoseconds.
75
120
		Weight::from_parts(10_349_659, 3731)
76
120
			// Standard Error: 2
77
120
			.saturating_add(Weight::from_parts(1_227, 0).saturating_mul(x.into()))
78
120
			// Standard Error: 695_522
79
120
			.saturating_add(Weight::from_parts(4_743_344, 0).saturating_mul(z.into()))
80
120
			.saturating_add(T::DbWeight::get().reads(4_u64))
81
120
			.saturating_add(T::DbWeight::get().writes(6_u64))
82
120
	}
83
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
84
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
85
	/// Storage: `System::Account` (r:1 w:1)
86
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
87
	/// Storage: `Balances::Holds` (r:1 w:1)
88
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
89
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
90
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
91
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
92
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
93
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
94
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
95
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
96
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
97
	/// The range of component `x` is `[100, 3000000]`.
98
	/// The range of component `z` is `[1, 10]`.
99
12
	fn register_with_relay_proof(x: u32, z: u32, ) -> Weight {
100
12
		// Proof Size summary in bytes:
101
12
		//  Measured:  `364`
102
12
		//  Estimated: `3829`
103
12
		// Minimum execution time: 147_210_000 picoseconds.
104
12
		Weight::from_parts(143_271_204, 3829)
105
12
			// Standard Error: 2
106
12
			.saturating_add(Weight::from_parts(1_364, 0).saturating_mul(x.into()))
107
12
			// Standard Error: 679_663
108
12
			.saturating_add(Weight::from_parts(873_685, 0).saturating_mul(z.into()))
109
12
			.saturating_add(T::DbWeight::get().reads(5_u64))
110
12
			.saturating_add(T::DbWeight::get().writes(6_u64))
111
12
	}
112
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
113
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
114
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
115
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
116
	/// Storage: `System::Account` (r:2 w:1)
117
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
118
	/// Storage: `Balances::Holds` (r:1 w:1)
119
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
120
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:0)
121
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
122
	/// Storage: `Registrar::BufferedParasToDeregister` (r:1 w:1)
123
	/// Proof: `Registrar::BufferedParasToDeregister` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
124
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
125
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
126
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
127
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
128
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
129
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
130
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
131
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
132
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
133
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
134
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
135
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
136
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
137
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
138
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
139
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
140
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
141
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
142
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
143
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
144
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
145
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
146
132
	fn deregister_immediate() -> Weight {
147
132
		// Proof Size summary in bytes:
148
132
		//  Measured:  `2971`
149
132
		//  Estimated: `6196`
150
132
		// Minimum execution time: 182_376_000 picoseconds.
151
132
		Weight::from_parts(188_020_000, 6196)
152
132
			.saturating_add(T::DbWeight::get().reads(7_u64))
153
132
			.saturating_add(T::DbWeight::get().writes(16_u64))
154
132
	}
155
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
156
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
157
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
158
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
159
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
160
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
161
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
162
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
163
	/// Storage: `Registrar::Paused` (r:1 w:0)
164
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
165
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
166
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
168
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
170
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
171
132
	fn deregister_scheduled() -> Weight {
172
132
		// Proof Size summary in bytes:
173
132
		//  Measured:  `850`
174
132
		//  Estimated: `3493`
175
132
		// Minimum execution time: 74_843_000 picoseconds.
176
132
		Weight::from_parts(78_525_000, 3493)
177
132
			.saturating_add(T::DbWeight::get().reads(8_u64))
178
132
			.saturating_add(T::DbWeight::get().writes(2_u64))
179
132
	}
180
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
181
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
182
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
183
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
184
	/// Storage: `Balances::Holds` (r:1 w:1)
185
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
186
	/// Storage: `System::Account` (r:3 w:2)
187
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
188
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
189
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
190
	/// Storage: `XcmCoreBuyer::InFlightOrders` (r:1 w:0)
191
	/// Proof: `XcmCoreBuyer::InFlightOrders` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
192
	/// Storage: `Registrar::BufferedParasToDeregister` (r:1 w:1)
193
	/// Proof: `Registrar::BufferedParasToDeregister` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
194
	/// Storage: `ServicesPayment::MaxTip` (r:0 w:1)
195
	/// Proof: `ServicesPayment::MaxTip` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
196
	/// Storage: `ServicesPayment::RefundAddress` (r:0 w:1)
197
	/// Proof: `ServicesPayment::RefundAddress` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
198
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:0 w:1)
199
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
200
	/// Storage: `ServicesPayment::MaxCorePrice` (r:0 w:1)
201
	/// Proof: `ServicesPayment::MaxCorePrice` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
202
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:0 w:1)
203
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
204
	/// Storage: `Registrar::ParaGenesisData` (r:0 w:1)
205
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
206
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
207
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
208
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
209
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
210
	/// Storage: `DataPreservers::Assignments` (r:0 w:1)
211
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
212
	/// Storage: `AuthorNoting::LatestAuthor` (r:0 w:1)
213
	/// Proof: `AuthorNoting::LatestAuthor` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
214
	/// Storage: `XcmCoreBuyer::PendingBlocks` (r:0 w:1)
215
	/// Proof: `XcmCoreBuyer::PendingBlocks` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
216
12
	fn deregister_with_relay_proof_immediate() -> Weight {
217
12
		// Proof Size summary in bytes:
218
12
		//  Measured:  `3335`
219
12
		//  Estimated: `8799`
220
12
		// Minimum execution time: 224_206_000 picoseconds.
221
12
		Weight::from_parts(228_272_000, 8799)
222
12
			.saturating_add(T::DbWeight::get().reads(9_u64))
223
12
			.saturating_add(T::DbWeight::get().writes(17_u64))
224
12
	}
225
	/// Storage: `RelayStorageRoots::RelayStorageRoot` (r:1 w:0)
226
	/// Proof: `RelayStorageRoots::RelayStorageRoot` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
227
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:1)
228
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
229
	/// Storage: `Balances::Holds` (r:1 w:1)
230
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
231
	/// Storage: `System::Account` (r:2 w:2)
232
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
233
	/// Storage: `Registrar::PendingVerification` (r:1 w:0)
234
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
235
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
236
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
237
	/// Storage: `Registrar::PendingPaused` (r:1 w:0)
238
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
239
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
240
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
241
	/// Storage: `Registrar::Paused` (r:1 w:0)
242
	/// Proof: `Registrar::Paused` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
243
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
244
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
245
	/// Storage: `Registrar::PendingToRemove` (r:1 w:1)
246
	/// Proof: `Registrar::PendingToRemove` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
247
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
248
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
249
12
	fn deregister_with_relay_proof_scheduled() -> Weight {
250
12
		// Proof Size summary in bytes:
251
12
		//  Measured:  `2942`
252
12
		//  Estimated: `6196`
253
12
		// Minimum execution time: 187_442_000 picoseconds.
254
12
		Weight::from_parts(192_317_000, 6196)
255
12
			.saturating_add(T::DbWeight::get().reads(13_u64))
256
12
			.saturating_add(T::DbWeight::get().writes(6_u64))
257
12
	}
258
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
259
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
260
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
261
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
262
	/// Storage: `Registrar::RegisteredParaIds` (r:1 w:0)
263
	/// Proof: `Registrar::RegisteredParaIds` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
264
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
265
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
266
	/// Storage: `DataPreservers::Assignments` (r:1 w:0)
267
	/// Proof: `DataPreservers::Assignments` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
268
	/// Storage: `DataPreservers::Profiles` (r:1 w:0)
269
	/// Proof: `DataPreservers::Profiles` (`max_values`: None, `max_size`: Some(744), added: 3219, mode: `MaxEncodedLen`)
270
	/// Storage: `ServicesPayment::GivenFreeCredits` (r:1 w:1)
271
	/// Proof: `ServicesPayment::GivenFreeCredits` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
272
	/// Storage: `ServicesPayment::BlockProductionCredits` (r:1 w:1)
273
	/// Proof: `ServicesPayment::BlockProductionCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
274
	/// Storage: `ServicesPayment::CollatorAssignmentCredits` (r:1 w:1)
275
	/// Proof: `ServicesPayment::CollatorAssignmentCredits` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
276
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
277
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
278
96
	fn mark_valid_for_collating() -> Weight {
279
96
		// Proof Size summary in bytes:
280
96
		//  Measured:  `5165`
281
96
		//  Estimated: `6650`
282
96
		// Minimum execution time: 172_542_000 picoseconds.
283
96
		Weight::from_parts(178_212_000, 6650)
284
96
			.saturating_add(T::DbWeight::get().reads(10_u64))
285
96
			.saturating_add(T::DbWeight::get().writes(5_u64))
286
96
	}
287
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
288
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
289
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
290
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
291
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
292
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
293
36
	fn pause_container_chain() -> Weight {
294
36
		// Proof Size summary in bytes:
295
36
		//  Measured:  `1242`
296
36
		//  Estimated: `2727`
297
36
		// Minimum execution time: 62_187_000 picoseconds.
298
36
		Weight::from_parts(64_809_000, 2727)
299
36
			.saturating_add(T::DbWeight::get().reads(3_u64))
300
36
			.saturating_add(T::DbWeight::get().writes(2_u64))
301
36
	}
302
	/// Storage: `Registrar::PendingParaIds` (r:1 w:1)
303
	/// Proof: `Registrar::PendingParaIds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
304
	/// Storage: `Registrar::PendingPaused` (r:1 w:1)
305
	/// Proof: `Registrar::PendingPaused` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
306
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
307
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
308
12
	fn unpause_container_chain() -> Weight {
309
12
		// Proof Size summary in bytes:
310
12
		//  Measured:  `1242`
311
12
		//  Estimated: `2727`
312
12
		// Minimum execution time: 62_123_000 picoseconds.
313
12
		Weight::from_parts(64_356_000, 2727)
314
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
315
12
			.saturating_add(T::DbWeight::get().writes(2_u64))
316
12
	}
317
	/// Storage: `System::Account` (r:1 w:1)
318
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
319
	/// Storage: `Balances::Holds` (r:1 w:1)
320
	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`)
321
	/// Storage: `Registrar::ParaGenesisData` (r:1 w:1)
322
	/// Proof: `Registrar::ParaGenesisData` (`max_values`: None, `max_size`: None, mode: `Measured`)
323
	/// Storage: `Registrar::PendingVerification` (r:1 w:1)
324
	/// Proof: `Registrar::PendingVerification` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
325
	/// Storage: `Registrar::ParathreadParams` (r:0 w:1)
326
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
327
	/// Storage: `Registrar::RegistrarDeposit` (r:0 w:1)
328
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
329
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
330
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
331
	/// The range of component `x` is `[100, 3000000]`.
332
	/// The range of component `z` is `[1, 10]`.
333
48
	fn register_parathread(x: u32, z: u32, ) -> Weight {
334
48
		// Proof Size summary in bytes:
335
48
		//  Measured:  `266`
336
48
		//  Estimated: `3731`
337
48
		// Minimum execution time: 85_120_000 picoseconds.
338
48
		Weight::from_parts(44_704_415, 3731)
339
48
			// Standard Error: 2
340
48
			.saturating_add(Weight::from_parts(1_221, 0).saturating_mul(x.into()))
341
48
			// Standard Error: 720_625
342
48
			.saturating_add(Weight::from_parts(1_996_516, 0).saturating_mul(z.into()))
343
48
			.saturating_add(T::DbWeight::get().reads(4_u64))
344
48
			.saturating_add(T::DbWeight::get().writes(7_u64))
345
48
	}
346
	/// Storage: `Registrar::ParathreadParams` (r:1 w:0)
347
	/// Proof: `Registrar::ParathreadParams` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
348
	/// Storage: `Registrar::PendingParathreadParams` (r:1 w:1)
349
	/// Proof: `Registrar::PendingParathreadParams` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
350
	/// Storage: `Session::CurrentIndex` (r:1 w:0)
351
	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
352
12
	fn set_parathread_params() -> Weight {
353
12
		// Proof Size summary in bytes:
354
12
		//  Measured:  `1674`
355
12
		//  Estimated: `3493`
356
12
		// Minimum execution time: 64_441_000 picoseconds.
357
12
		Weight::from_parts(66_157_000, 3493)
358
12
			.saturating_add(T::DbWeight::get().reads(3_u64))
359
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
360
12
	}
361
	/// Storage: `Registrar::RegistrarDeposit` (r:1 w:0)
362
	/// Proof: `Registrar::RegistrarDeposit` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
363
	/// Storage: `Registrar::ParaManager` (r:0 w:1)
364
	/// Proof: `Registrar::ParaManager` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
365
24
	fn set_para_manager() -> Weight {
366
24
		// Proof Size summary in bytes:
367
24
		//  Measured:  `237`
368
24
		//  Estimated: `3533`
369
24
		// Minimum execution time: 17_355_000 picoseconds.
370
24
		Weight::from_parts(17_931_000, 3533)
371
24
			.saturating_add(T::DbWeight::get().reads(1_u64))
372
24
			.saturating_add(T::DbWeight::get().writes(1_u64))
373
24
	}
374
}