pallet_scarcity/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_scarcity`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2026-07-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `189ea5a442f2`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_scarcity
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/scarcity/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage
62
63#![cfg_attr(rustfmt, rustfmt_skip)]
64#![allow(unused_parens)]
65#![allow(unused_imports)]
66#![allow(missing_docs)]
67#![allow(dead_code)]
68
69use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
70use core::marker::PhantomData;
71
72/// Weight functions needed for `pallet_scarcity`.
73pub trait WeightInfo {
74 fn create_collection() -> Weight;
75 fn define_item(m: u32, ) -> Weight;
76 fn mint(m: u32, ) -> Weight;
77 fn transfer() -> Weight;
78 fn burn(m: u32, ) -> Weight;
79 fn nominate_collection_owner() -> Weight;
80 fn set_collection_metadata() -> Weight;
81 fn set_item_metadata() -> Weight;
82 fn set_instance_metadata() -> Weight;
83 fn force_burn(m: u32, ) -> Weight;
84 fn force_transfer() -> Weight;
85 fn delete_item() -> Weight;
86 fn delete_collection() -> Weight;
87 fn claim_collection_ownership() -> Weight;
88 fn as_scarcity_pipeline() -> Weight;
89}
90
91/// Weights for `pallet_scarcity` using the Substrate node and recommended hardware.
92pub struct SubstrateWeight<T>(PhantomData<T>);
93impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
94 /// Storage: `Scarcity::NextCollectionId` (r:1 w:1)
95 /// Proof: `Scarcity::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
96 /// Storage: `Parameters::Parameters` (r:2 w:0)
97 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
98 /// Storage: `Balances::Holds` (r:1 w:1)
99 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
100 /// Storage: `Scarcity::Collections` (r:0 w:1)
101 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
102 fn create_collection() -> Weight {
103 // Proof Size summary in bytes:
104 // Measured: `168`
105 // Estimated: `28584`
106 // Minimum execution time: 56_142_000 picoseconds.
107 Weight::from_parts(59_192_000, 28584)
108 .saturating_add(T::DbWeight::get().reads(4_u64))
109 .saturating_add(T::DbWeight::get().writes(3_u64))
110 }
111 /// Storage: `Scarcity::Collections` (r:1 w:1)
112 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
113 /// Storage: `Parameters::Parameters` (r:2 w:0)
114 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
115 /// Storage: `Balances::Holds` (r:1 w:1)
116 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
117 /// Storage: `Scarcity::ItemMetadata` (r:100 w:100)
118 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
119 /// Storage: `Scarcity::ItemDefs` (r:0 w:1)
120 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
121 /// The range of component `m` is `[0, 100]`.
122 fn define_item(m: u32, ) -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `364`
125 // Estimated: `28584 + m * (2822 ±0)`
126 // Minimum execution time: 67_743_000 picoseconds.
127 Weight::from_parts(71_512_721, 28584)
128 // Standard Error: 55_005
129 .saturating_add(Weight::from_parts(54_216_922, 0).saturating_mul(m.into()))
130 .saturating_add(T::DbWeight::get().reads(4_u64))
131 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
132 .saturating_add(T::DbWeight::get().writes(3_u64))
133 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
134 .saturating_add(Weight::from_parts(0, 2822).saturating_mul(m.into()))
135 }
136 /// Storage: `Scarcity::Collections` (r:1 w:1)
137 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
138 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
139 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
140 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
141 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
142 /// Storage: `Scarcity::NextInstanceId` (r:1 w:1)
143 /// Proof: `Scarcity::NextInstanceId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
144 /// Storage: `Timestamp::Now` (r:1 w:0)
145 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
146 /// Storage: `Parameters::Parameters` (r:2 w:0)
147 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
148 /// Storage: `Balances::Holds` (r:1 w:1)
149 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
150 /// Storage: `System::Account` (r:1 w:1)
151 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
152 /// Storage: `Scarcity::InstanceMetadata` (r:100 w:100)
153 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
154 /// Storage: `Scarcity::InstanceMetadataCount` (r:0 w:1)
155 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
156 /// Storage: `Scarcity::Instances` (r:0 w:1)
157 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
158 /// Storage: `Scarcity::InstanceDeposits` (r:0 w:1)
159 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
160 /// The range of component `m` is `[0, 100]`.
161 fn mint(m: u32, ) -> Weight {
162 // Proof Size summary in bytes:
163 // Measured: `580`
164 // Estimated: `28584 + m * (2814 ±0)`
165 // Minimum execution time: 93_456_000 picoseconds.
166 Weight::from_parts(84_510_329, 28584)
167 // Standard Error: 58_439
168 .saturating_add(Weight::from_parts(52_756_553, 0).saturating_mul(m.into()))
169 .saturating_add(T::DbWeight::get().reads(9_u64))
170 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
171 .saturating_add(T::DbWeight::get().writes(9_u64))
172 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
173 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
174 }
175 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
176 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
177 /// Storage: `Timestamp::Now` (r:1 w:0)
178 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
179 /// Storage: `System::Account` (r:1 w:1)
180 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
181 /// Storage: `Scarcity::Instances` (r:0 w:1)
182 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
183 fn transfer() -> Weight {
184 // Proof Size summary in bytes:
185 // Measured: `427`
186 // Estimated: `3593`
187 // Minimum execution time: 25_460_000 picoseconds.
188 Weight::from_parts(27_427_000, 3593)
189 .saturating_add(T::DbWeight::get().reads(3_u64))
190 .saturating_add(T::DbWeight::get().writes(3_u64))
191 }
192 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
193 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
194 /// Storage: `Scarcity::InstanceDeposits` (r:1 w:1)
195 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
196 /// Storage: `Scarcity::InstanceMetadata` (r:101 w:100)
197 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
198 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
199 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
200 /// Storage: `Scarcity::Collections` (r:1 w:1)
201 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
202 /// Storage: `Balances::Holds` (r:1 w:1)
203 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
204 /// Storage: `Scarcity::Instances` (r:0 w:1)
205 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
206 /// The range of component `m` is `[0, 100]`.
207 fn burn(m: u32, ) -> Weight {
208 // Proof Size summary in bytes:
209 // Measured: `609 + m * (331 ±0)`
210 // Estimated: `4036 + m * (2814 ±0)`
211 // Minimum execution time: 72_609_000 picoseconds.
212 Weight::from_parts(77_743_480, 4036)
213 // Standard Error: 3_818
214 .saturating_add(Weight::from_parts(5_666_915, 0).saturating_mul(m.into()))
215 .saturating_add(T::DbWeight::get().reads(6_u64))
216 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
217 .saturating_add(T::DbWeight::get().writes(6_u64))
218 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
219 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
220 }
221 /// Storage: `Scarcity::Collections` (r:1 w:1)
222 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
223 fn nominate_collection_owner() -> Weight {
224 // Proof Size summary in bytes:
225 // Measured: `267`
226 // Estimated: `3602`
227 // Minimum execution time: 14_776_000 picoseconds.
228 Weight::from_parts(16_102_000, 3602)
229 .saturating_add(T::DbWeight::get().reads(1_u64))
230 .saturating_add(T::DbWeight::get().writes(1_u64))
231 }
232 /// Storage: `Scarcity::Collections` (r:1 w:1)
233 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
234 /// Storage: `Scarcity::CollectionMetadata` (r:1 w:1)
235 /// Proof: `Scarcity::CollectionMetadata` (`max_values`: None, `max_size`: Some(335), added: 2810, mode: `MaxEncodedLen`)
236 /// Storage: `Parameters::Parameters` (r:2 w:0)
237 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
238 /// Storage: `Balances::Holds` (r:1 w:1)
239 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
240 fn set_collection_metadata() -> Weight {
241 // Proof Size summary in bytes:
242 // Measured: `364`
243 // Estimated: `28584`
244 // Minimum execution time: 69_347_000 picoseconds.
245 Weight::from_parts(72_942_000, 28584)
246 .saturating_add(T::DbWeight::get().reads(5_u64))
247 .saturating_add(T::DbWeight::get().writes(3_u64))
248 }
249 /// Storage: `Scarcity::Collections` (r:1 w:1)
250 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
251 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
252 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
253 /// Storage: `Scarcity::ItemMetadata` (r:1 w:1)
254 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
255 /// Storage: `Parameters::Parameters` (r:2 w:0)
256 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
257 /// Storage: `Balances::Holds` (r:1 w:1)
258 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
259 fn set_item_metadata() -> Weight {
260 // Proof Size summary in bytes:
261 // Measured: `438`
262 // Estimated: `28584`
263 // Minimum execution time: 79_530_000 picoseconds.
264 Weight::from_parts(83_864_000, 28584)
265 .saturating_add(T::DbWeight::get().reads(6_u64))
266 .saturating_add(T::DbWeight::get().writes(4_u64))
267 }
268 /// Storage: `Scarcity::Instances` (r:1 w:0)
269 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
270 /// Storage: `Scarcity::NftsByOwner` (r:1 w:0)
271 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
272 /// Storage: `Scarcity::Collections` (r:1 w:1)
273 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
274 /// Storage: `Scarcity::InstanceMetadata` (r:1 w:1)
275 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
276 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
277 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
278 /// Storage: `Parameters::Parameters` (r:2 w:0)
279 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
280 /// Storage: `Balances::Holds` (r:1 w:1)
281 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
282 fn set_instance_metadata() -> Weight {
283 // Proof Size summary in bytes:
284 // Measured: `683`
285 // Estimated: `28584`
286 // Minimum execution time: 83_951_000 picoseconds.
287 Weight::from_parts(88_543_000, 28584)
288 .saturating_add(T::DbWeight::get().reads(8_u64))
289 .saturating_add(T::DbWeight::get().writes(4_u64))
290 }
291 /// Storage: `Scarcity::Instances` (r:1 w:1)
292 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
293 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
294 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
295 /// Storage: `Scarcity::Collections` (r:1 w:1)
296 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
297 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
298 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
299 /// Storage: `Scarcity::InstanceDeposits` (r:1 w:1)
300 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
301 /// Storage: `Scarcity::InstanceMetadata` (r:101 w:100)
302 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
303 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
304 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
305 /// Storage: `Balances::Holds` (r:1 w:1)
306 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
307 /// Storage: `System::Account` (r:1 w:1)
308 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
309 /// Storage: `Scarcity::Locked` (r:0 w:1)
310 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
311 /// The range of component `m` is `[0, 100]`.
312 fn force_burn(m: u32, ) -> Weight {
313 // Proof Size summary in bytes:
314 // Measured: `882 + m * (331 ±0)`
315 // Estimated: `4036 + m * (2814 ±0)`
316 // Minimum execution time: 92_799_000 picoseconds.
317 Weight::from_parts(100_034_871, 4036)
318 // Standard Error: 4_574
319 .saturating_add(Weight::from_parts(5_713_596, 0).saturating_mul(m.into()))
320 .saturating_add(T::DbWeight::get().reads(9_u64))
321 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
322 .saturating_add(T::DbWeight::get().writes(9_u64))
323 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
324 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
325 }
326 /// Storage: `Scarcity::Instances` (r:1 w:1)
327 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
328 /// Storage: `Scarcity::NftsByOwner` (r:2 w:2)
329 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
330 /// Storage: `Scarcity::Collections` (r:1 w:0)
331 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
332 /// Storage: `Timestamp::Now` (r:1 w:0)
333 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
334 /// Storage: `System::Account` (r:2 w:2)
335 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
336 /// Storage: `Scarcity::Locked` (r:0 w:1)
337 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
338 fn force_transfer() -> Weight {
339 // Proof Size summary in bytes:
340 // Measured: `945`
341 // Estimated: `6196`
342 // Minimum execution time: 50_001_000 picoseconds.
343 Weight::from_parts(53_140_000, 6196)
344 .saturating_add(T::DbWeight::get().reads(7_u64))
345 .saturating_add(T::DbWeight::get().writes(6_u64))
346 }
347 /// Storage: `Scarcity::Collections` (r:1 w:1)
348 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
349 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
350 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
351 /// Storage: `Scarcity::ItemMetadata` (r:1 w:0)
352 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
353 /// Storage: `Balances::Holds` (r:1 w:1)
354 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
355 fn delete_item() -> Weight {
356 // Proof Size summary in bytes:
357 // Measured: `434`
358 // Estimated: `4036`
359 // Minimum execution time: 61_953_000 picoseconds.
360 Weight::from_parts(64_911_000, 4036)
361 .saturating_add(T::DbWeight::get().reads(4_u64))
362 .saturating_add(T::DbWeight::get().writes(3_u64))
363 }
364 /// Storage: `Scarcity::Collections` (r:1 w:1)
365 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
366 /// Storage: `Scarcity::ItemDefs` (r:1 w:0)
367 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
368 /// Storage: `Scarcity::CollectionMetadata` (r:1 w:0)
369 /// Proof: `Scarcity::CollectionMetadata` (`max_values`: None, `max_size`: Some(335), added: 2810, mode: `MaxEncodedLen`)
370 /// Storage: `Balances::Holds` (r:1 w:1)
371 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
372 fn delete_collection() -> Weight {
373 // Proof Size summary in bytes:
374 // Measured: `364`
375 // Estimated: `4036`
376 // Minimum execution time: 56_939_000 picoseconds.
377 Weight::from_parts(60_227_000, 4036)
378 .saturating_add(T::DbWeight::get().reads(4_u64))
379 .saturating_add(T::DbWeight::get().writes(2_u64))
380 }
381 /// Storage: `Scarcity::Collections` (r:1 w:1)
382 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
383 /// Storage: `System::Account` (r:1 w:1)
384 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
385 /// Storage: `Balances::Holds` (r:2 w:2)
386 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
387 fn claim_collection_ownership() -> Weight {
388 // Proof Size summary in bytes:
389 // Measured: `532`
390 // Estimated: `7082`
391 // Minimum execution time: 90_725_000 picoseconds.
392 Weight::from_parts(94_553_000, 7082)
393 .saturating_add(T::DbWeight::get().reads(4_u64))
394 .saturating_add(T::DbWeight::get().writes(4_u64))
395 }
396 /// Storage: `Timestamp::Now` (r:1 w:0)
397 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
398 /// Storage: `Scarcity::Locked` (r:1 w:1)
399 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
400 /// Storage: `Scarcity::NftsByOwner` (r:2 w:1)
401 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
402 fn as_scarcity_pipeline() -> Weight {
403 // Proof Size summary in bytes:
404 // Measured: `644`
405 // Estimated: `6116`
406 // Minimum execution time: 25_864_000 picoseconds.
407 Weight::from_parts(27_397_000, 6116)
408 .saturating_add(T::DbWeight::get().reads(4_u64))
409 .saturating_add(T::DbWeight::get().writes(2_u64))
410 }
411}
412
413// For backwards compatibility and tests.
414impl WeightInfo for () {
415 /// Storage: `Scarcity::NextCollectionId` (r:1 w:1)
416 /// Proof: `Scarcity::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
417 /// Storage: `Parameters::Parameters` (r:2 w:0)
418 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
419 /// Storage: `Balances::Holds` (r:1 w:1)
420 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
421 /// Storage: `Scarcity::Collections` (r:0 w:1)
422 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
423 fn create_collection() -> Weight {
424 // Proof Size summary in bytes:
425 // Measured: `168`
426 // Estimated: `28584`
427 // Minimum execution time: 56_142_000 picoseconds.
428 Weight::from_parts(59_192_000, 28584)
429 .saturating_add(RocksDbWeight::get().reads(4_u64))
430 .saturating_add(RocksDbWeight::get().writes(3_u64))
431 }
432 /// Storage: `Scarcity::Collections` (r:1 w:1)
433 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
434 /// Storage: `Parameters::Parameters` (r:2 w:0)
435 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
436 /// Storage: `Balances::Holds` (r:1 w:1)
437 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
438 /// Storage: `Scarcity::ItemMetadata` (r:100 w:100)
439 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
440 /// Storage: `Scarcity::ItemDefs` (r:0 w:1)
441 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
442 /// The range of component `m` is `[0, 100]`.
443 fn define_item(m: u32, ) -> Weight {
444 // Proof Size summary in bytes:
445 // Measured: `364`
446 // Estimated: `28584 + m * (2822 ±0)`
447 // Minimum execution time: 67_743_000 picoseconds.
448 Weight::from_parts(71_512_721, 28584)
449 // Standard Error: 55_005
450 .saturating_add(Weight::from_parts(54_216_922, 0).saturating_mul(m.into()))
451 .saturating_add(RocksDbWeight::get().reads(4_u64))
452 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
453 .saturating_add(RocksDbWeight::get().writes(3_u64))
454 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
455 .saturating_add(Weight::from_parts(0, 2822).saturating_mul(m.into()))
456 }
457 /// Storage: `Scarcity::Collections` (r:1 w:1)
458 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
459 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
460 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
461 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
462 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
463 /// Storage: `Scarcity::NextInstanceId` (r:1 w:1)
464 /// Proof: `Scarcity::NextInstanceId` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
465 /// Storage: `Timestamp::Now` (r:1 w:0)
466 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
467 /// Storage: `Parameters::Parameters` (r:2 w:0)
468 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
469 /// Storage: `Balances::Holds` (r:1 w:1)
470 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
471 /// Storage: `System::Account` (r:1 w:1)
472 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
473 /// Storage: `Scarcity::InstanceMetadata` (r:100 w:100)
474 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
475 /// Storage: `Scarcity::InstanceMetadataCount` (r:0 w:1)
476 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
477 /// Storage: `Scarcity::Instances` (r:0 w:1)
478 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
479 /// Storage: `Scarcity::InstanceDeposits` (r:0 w:1)
480 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
481 /// The range of component `m` is `[0, 100]`.
482 fn mint(m: u32, ) -> Weight {
483 // Proof Size summary in bytes:
484 // Measured: `580`
485 // Estimated: `28584 + m * (2814 ±0)`
486 // Minimum execution time: 93_456_000 picoseconds.
487 Weight::from_parts(84_510_329, 28584)
488 // Standard Error: 58_439
489 .saturating_add(Weight::from_parts(52_756_553, 0).saturating_mul(m.into()))
490 .saturating_add(RocksDbWeight::get().reads(9_u64))
491 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
492 .saturating_add(RocksDbWeight::get().writes(9_u64))
493 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
494 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
495 }
496 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
497 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
498 /// Storage: `Timestamp::Now` (r:1 w:0)
499 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
500 /// Storage: `System::Account` (r:1 w:1)
501 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
502 /// Storage: `Scarcity::Instances` (r:0 w:1)
503 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
504 fn transfer() -> Weight {
505 // Proof Size summary in bytes:
506 // Measured: `427`
507 // Estimated: `3593`
508 // Minimum execution time: 25_460_000 picoseconds.
509 Weight::from_parts(27_427_000, 3593)
510 .saturating_add(RocksDbWeight::get().reads(3_u64))
511 .saturating_add(RocksDbWeight::get().writes(3_u64))
512 }
513 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
514 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
515 /// Storage: `Scarcity::InstanceDeposits` (r:1 w:1)
516 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
517 /// Storage: `Scarcity::InstanceMetadata` (r:101 w:100)
518 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
519 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
520 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
521 /// Storage: `Scarcity::Collections` (r:1 w:1)
522 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
523 /// Storage: `Balances::Holds` (r:1 w:1)
524 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
525 /// Storage: `Scarcity::Instances` (r:0 w:1)
526 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
527 /// The range of component `m` is `[0, 100]`.
528 fn burn(m: u32, ) -> Weight {
529 // Proof Size summary in bytes:
530 // Measured: `609 + m * (331 ±0)`
531 // Estimated: `4036 + m * (2814 ±0)`
532 // Minimum execution time: 72_609_000 picoseconds.
533 Weight::from_parts(77_743_480, 4036)
534 // Standard Error: 3_818
535 .saturating_add(Weight::from_parts(5_666_915, 0).saturating_mul(m.into()))
536 .saturating_add(RocksDbWeight::get().reads(6_u64))
537 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
538 .saturating_add(RocksDbWeight::get().writes(6_u64))
539 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
540 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
541 }
542 /// Storage: `Scarcity::Collections` (r:1 w:1)
543 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
544 fn nominate_collection_owner() -> Weight {
545 // Proof Size summary in bytes:
546 // Measured: `267`
547 // Estimated: `3602`
548 // Minimum execution time: 14_776_000 picoseconds.
549 Weight::from_parts(16_102_000, 3602)
550 .saturating_add(RocksDbWeight::get().reads(1_u64))
551 .saturating_add(RocksDbWeight::get().writes(1_u64))
552 }
553 /// Storage: `Scarcity::Collections` (r:1 w:1)
554 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
555 /// Storage: `Scarcity::CollectionMetadata` (r:1 w:1)
556 /// Proof: `Scarcity::CollectionMetadata` (`max_values`: None, `max_size`: Some(335), added: 2810, mode: `MaxEncodedLen`)
557 /// Storage: `Parameters::Parameters` (r:2 w:0)
558 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
559 /// Storage: `Balances::Holds` (r:1 w:1)
560 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
561 fn set_collection_metadata() -> Weight {
562 // Proof Size summary in bytes:
563 // Measured: `364`
564 // Estimated: `28584`
565 // Minimum execution time: 69_347_000 picoseconds.
566 Weight::from_parts(72_942_000, 28584)
567 .saturating_add(RocksDbWeight::get().reads(5_u64))
568 .saturating_add(RocksDbWeight::get().writes(3_u64))
569 }
570 /// Storage: `Scarcity::Collections` (r:1 w:1)
571 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
572 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
573 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
574 /// Storage: `Scarcity::ItemMetadata` (r:1 w:1)
575 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
576 /// Storage: `Parameters::Parameters` (r:2 w:0)
577 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
578 /// Storage: `Balances::Holds` (r:1 w:1)
579 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
580 fn set_item_metadata() -> Weight {
581 // Proof Size summary in bytes:
582 // Measured: `438`
583 // Estimated: `28584`
584 // Minimum execution time: 79_530_000 picoseconds.
585 Weight::from_parts(83_864_000, 28584)
586 .saturating_add(RocksDbWeight::get().reads(6_u64))
587 .saturating_add(RocksDbWeight::get().writes(4_u64))
588 }
589 /// Storage: `Scarcity::Instances` (r:1 w:0)
590 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
591 /// Storage: `Scarcity::NftsByOwner` (r:1 w:0)
592 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
593 /// Storage: `Scarcity::Collections` (r:1 w:1)
594 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
595 /// Storage: `Scarcity::InstanceMetadata` (r:1 w:1)
596 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
597 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
598 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
599 /// Storage: `Parameters::Parameters` (r:2 w:0)
600 /// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(11322), added: 13797, mode: `MaxEncodedLen`)
601 /// Storage: `Balances::Holds` (r:1 w:1)
602 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
603 fn set_instance_metadata() -> Weight {
604 // Proof Size summary in bytes:
605 // Measured: `683`
606 // Estimated: `28584`
607 // Minimum execution time: 83_951_000 picoseconds.
608 Weight::from_parts(88_543_000, 28584)
609 .saturating_add(RocksDbWeight::get().reads(8_u64))
610 .saturating_add(RocksDbWeight::get().writes(4_u64))
611 }
612 /// Storage: `Scarcity::Instances` (r:1 w:1)
613 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
614 /// Storage: `Scarcity::NftsByOwner` (r:1 w:1)
615 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
616 /// Storage: `Scarcity::Collections` (r:1 w:1)
617 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
618 /// Storage: `Scarcity::InstanceMetadataCount` (r:1 w:1)
619 /// Proof: `Scarcity::InstanceMetadataCount` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
620 /// Storage: `Scarcity::InstanceDeposits` (r:1 w:1)
621 /// Proof: `Scarcity::InstanceDeposits` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
622 /// Storage: `Scarcity::InstanceMetadata` (r:101 w:100)
623 /// Proof: `Scarcity::InstanceMetadata` (`max_values`: None, `max_size`: Some(339), added: 2814, mode: `MaxEncodedLen`)
624 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
625 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
626 /// Storage: `Balances::Holds` (r:1 w:1)
627 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
628 /// Storage: `System::Account` (r:1 w:1)
629 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
630 /// Storage: `Scarcity::Locked` (r:0 w:1)
631 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
632 /// The range of component `m` is `[0, 100]`.
633 fn force_burn(m: u32, ) -> Weight {
634 // Proof Size summary in bytes:
635 // Measured: `882 + m * (331 ±0)`
636 // Estimated: `4036 + m * (2814 ±0)`
637 // Minimum execution time: 92_799_000 picoseconds.
638 Weight::from_parts(100_034_871, 4036)
639 // Standard Error: 4_574
640 .saturating_add(Weight::from_parts(5_713_596, 0).saturating_mul(m.into()))
641 .saturating_add(RocksDbWeight::get().reads(9_u64))
642 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
643 .saturating_add(RocksDbWeight::get().writes(9_u64))
644 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
645 .saturating_add(Weight::from_parts(0, 2814).saturating_mul(m.into()))
646 }
647 /// Storage: `Scarcity::Instances` (r:1 w:1)
648 /// Proof: `Scarcity::Instances` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
649 /// Storage: `Scarcity::NftsByOwner` (r:2 w:2)
650 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
651 /// Storage: `Scarcity::Collections` (r:1 w:0)
652 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
653 /// Storage: `Timestamp::Now` (r:1 w:0)
654 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
655 /// Storage: `System::Account` (r:2 w:2)
656 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
657 /// Storage: `Scarcity::Locked` (r:0 w:1)
658 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
659 fn force_transfer() -> Weight {
660 // Proof Size summary in bytes:
661 // Measured: `945`
662 // Estimated: `6196`
663 // Minimum execution time: 50_001_000 picoseconds.
664 Weight::from_parts(53_140_000, 6196)
665 .saturating_add(RocksDbWeight::get().reads(7_u64))
666 .saturating_add(RocksDbWeight::get().writes(6_u64))
667 }
668 /// Storage: `Scarcity::Collections` (r:1 w:1)
669 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
670 /// Storage: `Scarcity::ItemDefs` (r:1 w:1)
671 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
672 /// Storage: `Scarcity::ItemMetadata` (r:1 w:0)
673 /// Proof: `Scarcity::ItemMetadata` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
674 /// Storage: `Balances::Holds` (r:1 w:1)
675 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
676 fn delete_item() -> Weight {
677 // Proof Size summary in bytes:
678 // Measured: `434`
679 // Estimated: `4036`
680 // Minimum execution time: 61_953_000 picoseconds.
681 Weight::from_parts(64_911_000, 4036)
682 .saturating_add(RocksDbWeight::get().reads(4_u64))
683 .saturating_add(RocksDbWeight::get().writes(3_u64))
684 }
685 /// Storage: `Scarcity::Collections` (r:1 w:1)
686 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
687 /// Storage: `Scarcity::ItemDefs` (r:1 w:0)
688 /// Proof: `Scarcity::ItemDefs` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
689 /// Storage: `Scarcity::CollectionMetadata` (r:1 w:0)
690 /// Proof: `Scarcity::CollectionMetadata` (`max_values`: None, `max_size`: Some(335), added: 2810, mode: `MaxEncodedLen`)
691 /// Storage: `Balances::Holds` (r:1 w:1)
692 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
693 fn delete_collection() -> Weight {
694 // Proof Size summary in bytes:
695 // Measured: `364`
696 // Estimated: `4036`
697 // Minimum execution time: 56_939_000 picoseconds.
698 Weight::from_parts(60_227_000, 4036)
699 .saturating_add(RocksDbWeight::get().reads(4_u64))
700 .saturating_add(RocksDbWeight::get().writes(2_u64))
701 }
702 /// Storage: `Scarcity::Collections` (r:1 w:1)
703 /// Proof: `Scarcity::Collections` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
704 /// Storage: `System::Account` (r:1 w:1)
705 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
706 /// Storage: `Balances::Holds` (r:2 w:2)
707 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(571), added: 3046, mode: `MaxEncodedLen`)
708 fn claim_collection_ownership() -> Weight {
709 // Proof Size summary in bytes:
710 // Measured: `532`
711 // Estimated: `7082`
712 // Minimum execution time: 90_725_000 picoseconds.
713 Weight::from_parts(94_553_000, 7082)
714 .saturating_add(RocksDbWeight::get().reads(4_u64))
715 .saturating_add(RocksDbWeight::get().writes(4_u64))
716 }
717 /// Storage: `Timestamp::Now` (r:1 w:0)
718 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
719 /// Storage: `Scarcity::Locked` (r:1 w:1)
720 /// Proof: `Scarcity::Locked` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
721 /// Storage: `Scarcity::NftsByOwner` (r:2 w:1)
722 /// Proof: `Scarcity::NftsByOwner` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
723 fn as_scarcity_pipeline() -> Weight {
724 // Proof Size summary in bytes:
725 // Measured: `644`
726 // Estimated: `6116`
727 // Minimum execution time: 25_864_000 picoseconds.
728 Weight::from_parts(27_397_000, 6116)
729 .saturating_add(RocksDbWeight::get().reads(4_u64))
730 .saturating_add(RocksDbWeight::get().writes(2_u64))
731 }
732}