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