asset_hub_westend_runtime/weights/pallet_nfts.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_nfts`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `73b9817d6032`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/asset-hub-westend-runtime/asset_hub_westend_runtime.wasm
31// --pallet=pallet_nfts
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_nfts`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_nfts::WeightInfo for WeightInfo<T> {
53 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
54 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
55 /// Storage: `Nfts::Collection` (r:1 w:1)
56 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
57 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
58 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
59 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
60 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
61 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
62 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
63 fn create() -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `106`
66 // Estimated: `3549`
67 // Minimum execution time: 34_066_000 picoseconds.
68 Weight::from_parts(34_918_000, 0)
69 .saturating_add(Weight::from_parts(0, 3549))
70 .saturating_add(T::DbWeight::get().reads(2))
71 .saturating_add(T::DbWeight::get().writes(5))
72 }
73 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
74 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
75 /// Storage: `Nfts::Collection` (r:1 w:1)
76 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
77 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
78 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
79 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
80 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
81 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
82 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
83 fn force_create() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `3`
86 // Estimated: `3549`
87 // Minimum execution time: 19_307_000 picoseconds.
88 Weight::from_parts(20_073_000, 0)
89 .saturating_add(Weight::from_parts(0, 3549))
90 .saturating_add(T::DbWeight::get().reads(2))
91 .saturating_add(T::DbWeight::get().writes(5))
92 }
93 /// Storage: `Nfts::Collection` (r:1 w:1)
94 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
95 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
96 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
97 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:1)
98 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
99 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
100 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
101 /// Storage: `Nfts::ItemConfigOf` (r:1000 w:1000)
102 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
103 /// Storage: `Nfts::CollectionMetadataOf` (r:0 w:1)
104 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
105 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
106 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
107 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
108 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
109 /// The range of component `m` is `[0, 1000]`.
110 /// The range of component `c` is `[0, 1000]`.
111 /// The range of component `a` is `[0, 1000]`.
112 fn destroy(_m: u32, _c: u32, a: u32, ) -> Weight {
113 // Proof Size summary in bytes:
114 // Measured: `32131 + a * (366 ±0)`
115 // Estimated: `2523990 + a * (2954 ±0)`
116 // Minimum execution time: 1_351_277_000 picoseconds.
117 Weight::from_parts(1_588_591_386, 0)
118 .saturating_add(Weight::from_parts(0, 2523990))
119 // Standard Error: 11_817
120 .saturating_add(Weight::from_parts(7_319_695, 0).saturating_mul(a.into()))
121 .saturating_add(T::DbWeight::get().reads(1004))
122 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
123 .saturating_add(T::DbWeight::get().writes(1005))
124 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
125 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(a.into()))
126 }
127 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
128 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
129 /// Storage: `Nfts::Item` (r:1 w:1)
130 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
131 /// Storage: `Nfts::Collection` (r:1 w:1)
132 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
133 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
134 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
135 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
136 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
137 /// Storage: `Nfts::Account` (r:0 w:1)
138 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
139 fn mint() -> Weight {
140 // Proof Size summary in bytes:
141 // Measured: `382`
142 // Estimated: `4326`
143 // Minimum execution time: 50_793_000 picoseconds.
144 Weight::from_parts(52_604_000, 0)
145 .saturating_add(Weight::from_parts(0, 4326))
146 .saturating_add(T::DbWeight::get().reads(5))
147 .saturating_add(T::DbWeight::get().writes(4))
148 }
149 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
150 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
151 /// Storage: `Nfts::Item` (r:1 w:1)
152 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
153 /// Storage: `Nfts::Collection` (r:1 w:1)
154 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
155 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
156 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
157 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
158 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
159 /// Storage: `Nfts::Account` (r:0 w:1)
160 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
161 fn force_mint() -> Weight {
162 // Proof Size summary in bytes:
163 // Measured: `382`
164 // Estimated: `4326`
165 // Minimum execution time: 48_807_000 picoseconds.
166 Weight::from_parts(50_432_000, 0)
167 .saturating_add(Weight::from_parts(0, 4326))
168 .saturating_add(T::DbWeight::get().reads(5))
169 .saturating_add(T::DbWeight::get().writes(4))
170 }
171 /// Storage: `Nfts::Attribute` (r:1 w:0)
172 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
173 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
174 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
175 /// Storage: `Nfts::Collection` (r:1 w:1)
176 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
177 /// Storage: `Nfts::Item` (r:1 w:1)
178 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
179 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
180 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
181 /// Storage: `Nfts::Account` (r:0 w:1)
182 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
183 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
184 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
185 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:0 w:1)
186 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
187 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
188 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
189 fn burn() -> Weight {
190 // Proof Size summary in bytes:
191 // Measured: `491`
192 // Estimated: `4326`
193 // Minimum execution time: 53_953_000 picoseconds.
194 Weight::from_parts(55_440_000, 0)
195 .saturating_add(Weight::from_parts(0, 4326))
196 .saturating_add(T::DbWeight::get().reads(5))
197 .saturating_add(T::DbWeight::get().writes(7))
198 }
199 /// Storage: `Nfts::Collection` (r:1 w:0)
200 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
201 /// Storage: `Nfts::Attribute` (r:1 w:0)
202 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
203 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
204 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
205 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
206 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
207 /// Storage: `Nfts::Item` (r:1 w:1)
208 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
209 /// Storage: `Nfts::Account` (r:0 w:2)
210 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
211 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
212 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
213 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
214 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
215 fn transfer() -> Weight {
216 // Proof Size summary in bytes:
217 // Measured: `520`
218 // Estimated: `4326`
219 // Minimum execution time: 46_381_000 picoseconds.
220 Weight::from_parts(47_550_000, 0)
221 .saturating_add(Weight::from_parts(0, 4326))
222 .saturating_add(T::DbWeight::get().reads(5))
223 .saturating_add(T::DbWeight::get().writes(5))
224 }
225 /// Storage: `Nfts::Collection` (r:1 w:0)
226 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
227 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
228 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
229 /// Storage: `Nfts::Item` (r:5000 w:5000)
230 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
231 /// The range of component `i` is `[0, 5000]`.
232 fn redeposit(i: u32, ) -> Weight {
233 // Proof Size summary in bytes:
234 // Measured: `690 + i * (108 ±0)`
235 // Estimated: `3549 + i * (3336 ±0)`
236 // Minimum execution time: 15_396_000 picoseconds.
237 Weight::from_parts(15_667_000, 0)
238 .saturating_add(Weight::from_parts(0, 3549))
239 // Standard Error: 25_176
240 .saturating_add(Weight::from_parts(18_296_481, 0).saturating_mul(i.into()))
241 .saturating_add(T::DbWeight::get().reads(2))
242 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
243 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
244 .saturating_add(Weight::from_parts(0, 3336).saturating_mul(i.into()))
245 }
246 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
247 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
248 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
249 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
250 fn lock_item_transfer() -> Weight {
251 // Proof Size summary in bytes:
252 // Measured: `362`
253 // Estimated: `3534`
254 // Minimum execution time: 19_622_000 picoseconds.
255 Weight::from_parts(20_507_000, 0)
256 .saturating_add(Weight::from_parts(0, 3534))
257 .saturating_add(T::DbWeight::get().reads(2))
258 .saturating_add(T::DbWeight::get().writes(1))
259 }
260 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
261 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
262 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
263 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
264 fn unlock_item_transfer() -> Weight {
265 // Proof Size summary in bytes:
266 // Measured: `362`
267 // Estimated: `3534`
268 // Minimum execution time: 19_513_000 picoseconds.
269 Weight::from_parts(20_508_000, 0)
270 .saturating_add(Weight::from_parts(0, 3534))
271 .saturating_add(T::DbWeight::get().reads(2))
272 .saturating_add(T::DbWeight::get().writes(1))
273 }
274 /// Storage: `Nfts::Collection` (r:1 w:0)
275 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
276 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
277 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
278 fn lock_collection() -> Weight {
279 // Proof Size summary in bytes:
280 // Measured: `267`
281 // Estimated: `3549`
282 // Minimum execution time: 16_241_000 picoseconds.
283 Weight::from_parts(16_659_000, 0)
284 .saturating_add(Weight::from_parts(0, 3549))
285 .saturating_add(T::DbWeight::get().reads(2))
286 .saturating_add(T::DbWeight::get().writes(1))
287 }
288 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
289 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
290 /// Storage: `Nfts::Collection` (r:1 w:1)
291 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
292 /// Storage: `System::Account` (r:1 w:1)
293 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
294 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
295 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
296 fn transfer_ownership() -> Weight {
297 // Proof Size summary in bytes:
298 // Measured: `418`
299 // Estimated: `3593`
300 // Minimum execution time: 27_539_000 picoseconds.
301 Weight::from_parts(28_537_000, 0)
302 .saturating_add(Weight::from_parts(0, 3593))
303 .saturating_add(T::DbWeight::get().reads(3))
304 .saturating_add(T::DbWeight::get().writes(5))
305 }
306 /// Storage: `Nfts::Collection` (r:1 w:1)
307 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
308 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:4)
309 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
310 fn set_team() -> Weight {
311 // Proof Size summary in bytes:
312 // Measured: `296`
313 // Estimated: `6078`
314 // Minimum execution time: 39_857_000 picoseconds.
315 Weight::from_parts(41_110_000, 0)
316 .saturating_add(Weight::from_parts(0, 6078))
317 .saturating_add(T::DbWeight::get().reads(3))
318 .saturating_add(T::DbWeight::get().writes(5))
319 }
320 /// Storage: `Nfts::Collection` (r:1 w:1)
321 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
322 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
323 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
324 fn force_collection_owner() -> Weight {
325 // Proof Size summary in bytes:
326 // Measured: `238`
327 // Estimated: `3549`
328 // Minimum execution time: 15_915_000 picoseconds.
329 Weight::from_parts(16_754_000, 0)
330 .saturating_add(Weight::from_parts(0, 3549))
331 .saturating_add(T::DbWeight::get().reads(1))
332 .saturating_add(T::DbWeight::get().writes(3))
333 }
334 /// Storage: `Nfts::Collection` (r:1 w:0)
335 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
336 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
337 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
338 fn force_collection_config() -> Weight {
339 // Proof Size summary in bytes:
340 // Measured: `203`
341 // Estimated: `3549`
342 // Minimum execution time: 12_671_000 picoseconds.
343 Weight::from_parts(13_126_000, 0)
344 .saturating_add(Weight::from_parts(0, 3549))
345 .saturating_add(T::DbWeight::get().reads(1))
346 .saturating_add(T::DbWeight::get().writes(1))
347 }
348 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
349 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
350 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
351 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
352 fn lock_item_properties() -> Weight {
353 // Proof Size summary in bytes:
354 // Measured: `362`
355 // Estimated: `3534`
356 // Minimum execution time: 18_385_000 picoseconds.
357 Weight::from_parts(19_181_000, 0)
358 .saturating_add(Weight::from_parts(0, 3534))
359 .saturating_add(T::DbWeight::get().reads(2))
360 .saturating_add(T::DbWeight::get().writes(1))
361 }
362 /// Storage: `Nfts::Collection` (r:1 w:1)
363 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
364 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
365 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
366 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
367 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
368 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
369 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
370 /// Storage: `Nfts::Attribute` (r:1 w:1)
371 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
372 fn set_attribute() -> Weight {
373 // Proof Size summary in bytes:
374 // Measured: `466`
375 // Estimated: `3944`
376 // Minimum execution time: 52_225_000 picoseconds.
377 Weight::from_parts(54_038_000, 0)
378 .saturating_add(Weight::from_parts(0, 3944))
379 .saturating_add(T::DbWeight::get().reads(5))
380 .saturating_add(T::DbWeight::get().writes(2))
381 }
382 /// Storage: `Nfts::Collection` (r:1 w:1)
383 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
384 /// Storage: `Nfts::Attribute` (r:1 w:1)
385 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
386 fn force_set_attribute() -> Weight {
387 // Proof Size summary in bytes:
388 // Measured: `271`
389 // Estimated: `3944`
390 // Minimum execution time: 25_276_000 picoseconds.
391 Weight::from_parts(26_624_000, 0)
392 .saturating_add(Weight::from_parts(0, 3944))
393 .saturating_add(T::DbWeight::get().reads(2))
394 .saturating_add(T::DbWeight::get().writes(2))
395 }
396 /// Storage: `Nfts::Attribute` (r:1 w:1)
397 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
398 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
399 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
400 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
401 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
402 /// Storage: `Nfts::Collection` (r:1 w:1)
403 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
404 fn clear_attribute() -> Weight {
405 // Proof Size summary in bytes:
406 // Measured: `910`
407 // Estimated: `3944`
408 // Minimum execution time: 52_052_000 picoseconds.
409 Weight::from_parts(53_182_000, 0)
410 .saturating_add(Weight::from_parts(0, 3944))
411 .saturating_add(T::DbWeight::get().reads(4))
412 .saturating_add(T::DbWeight::get().writes(2))
413 }
414 /// Storage: `Nfts::Item` (r:1 w:0)
415 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
416 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
417 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
418 fn approve_item_attributes() -> Weight {
419 // Proof Size summary in bytes:
420 // Measured: `308`
421 // Estimated: `4466`
422 // Minimum execution time: 16_624_000 picoseconds.
423 Weight::from_parts(17_398_000, 0)
424 .saturating_add(Weight::from_parts(0, 4466))
425 .saturating_add(T::DbWeight::get().reads(2))
426 .saturating_add(T::DbWeight::get().writes(1))
427 }
428 /// Storage: `Nfts::Item` (r:1 w:0)
429 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
430 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
431 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
432 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
433 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
434 /// Storage: `System::Account` (r:1 w:1)
435 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
436 /// The range of component `n` is `[0, 1000]`.
437 fn cancel_item_attributes_approval(n: u32, ) -> Weight {
438 // Proof Size summary in bytes:
439 // Measured: `687 + n * (398 ±0)`
440 // Estimated: `4466 + n * (2954 ±0)`
441 // Minimum execution time: 26_108_000 picoseconds.
442 Weight::from_parts(26_587_000, 0)
443 .saturating_add(Weight::from_parts(0, 4466))
444 // Standard Error: 4_483
445 .saturating_add(Weight::from_parts(7_107_904, 0).saturating_mul(n.into()))
446 .saturating_add(T::DbWeight::get().reads(4))
447 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
448 .saturating_add(T::DbWeight::get().writes(2))
449 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
450 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
451 }
452 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
453 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
454 /// Storage: `Nfts::Collection` (r:1 w:1)
455 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
456 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
457 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
458 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
459 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
460 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
461 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
462 fn set_metadata() -> Weight {
463 // Proof Size summary in bytes:
464 // Measured: `466`
465 // Estimated: `3812`
466 // Minimum execution time: 42_032_000 picoseconds.
467 Weight::from_parts(43_081_000, 0)
468 .saturating_add(Weight::from_parts(0, 3812))
469 .saturating_add(T::DbWeight::get().reads(5))
470 .saturating_add(T::DbWeight::get().writes(2))
471 }
472 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
473 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
474 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
475 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
476 /// Storage: `Nfts::Collection` (r:1 w:1)
477 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
478 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
479 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
480 fn clear_metadata() -> Weight {
481 // Proof Size summary in bytes:
482 // Measured: `776`
483 // Estimated: `3812`
484 // Minimum execution time: 43_915_000 picoseconds.
485 Weight::from_parts(45_461_000, 0)
486 .saturating_add(Weight::from_parts(0, 3812))
487 .saturating_add(T::DbWeight::get().reads(4))
488 .saturating_add(T::DbWeight::get().writes(2))
489 }
490 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
491 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
492 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
493 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
494 /// Storage: `Nfts::Collection` (r:1 w:1)
495 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
496 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
497 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
498 fn set_collection_metadata() -> Weight {
499 // Proof Size summary in bytes:
500 // Measured: `325`
501 // Estimated: `3759`
502 // Minimum execution time: 37_463_000 picoseconds.
503 Weight::from_parts(38_991_000, 0)
504 .saturating_add(Weight::from_parts(0, 3759))
505 .saturating_add(T::DbWeight::get().reads(4))
506 .saturating_add(T::DbWeight::get().writes(2))
507 }
508 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
509 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
510 /// Storage: `Nfts::Collection` (r:1 w:1)
511 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
512 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
513 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
514 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
515 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
516 fn clear_collection_metadata() -> Weight {
517 // Proof Size summary in bytes:
518 // Measured: `643`
519 // Estimated: `3759`
520 // Minimum execution time: 37_129_000 picoseconds.
521 Weight::from_parts(38_417_000, 0)
522 .saturating_add(Weight::from_parts(0, 3759))
523 .saturating_add(T::DbWeight::get().reads(4))
524 .saturating_add(T::DbWeight::get().writes(2))
525 }
526 /// Storage: `Nfts::Item` (r:1 w:1)
527 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
528 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
529 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
530 fn approve_transfer() -> Weight {
531 // Proof Size summary in bytes:
532 // Measured: `337`
533 // Estimated: `4326`
534 // Minimum execution time: 18_940_000 picoseconds.
535 Weight::from_parts(19_763_000, 0)
536 .saturating_add(Weight::from_parts(0, 4326))
537 .saturating_add(T::DbWeight::get().reads(2))
538 .saturating_add(T::DbWeight::get().writes(1))
539 }
540 /// Storage: `Nfts::Item` (r:1 w:1)
541 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
542 fn cancel_approval() -> Weight {
543 // Proof Size summary in bytes:
544 // Measured: `345`
545 // Estimated: `4326`
546 // Minimum execution time: 16_519_000 picoseconds.
547 Weight::from_parts(16_966_000, 0)
548 .saturating_add(Weight::from_parts(0, 4326))
549 .saturating_add(T::DbWeight::get().reads(1))
550 .saturating_add(T::DbWeight::get().writes(1))
551 }
552 /// Storage: `Nfts::Item` (r:1 w:1)
553 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
554 fn clear_all_transfer_approvals() -> Weight {
555 // Proof Size summary in bytes:
556 // Measured: `345`
557 // Estimated: `4326`
558 // Minimum execution time: 15_381_000 picoseconds.
559 Weight::from_parts(16_344_000, 0)
560 .saturating_add(Weight::from_parts(0, 4326))
561 .saturating_add(T::DbWeight::get().reads(1))
562 .saturating_add(T::DbWeight::get().writes(1))
563 }
564 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
565 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
566 fn set_accept_ownership() -> Weight {
567 // Proof Size summary in bytes:
568 // Measured: `3`
569 // Estimated: `3517`
570 // Minimum execution time: 12_533_000 picoseconds.
571 Weight::from_parts(13_008_000, 0)
572 .saturating_add(Weight::from_parts(0, 3517))
573 .saturating_add(T::DbWeight::get().reads(1))
574 .saturating_add(T::DbWeight::get().writes(1))
575 }
576 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
577 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
578 /// Storage: `Nfts::Collection` (r:1 w:0)
579 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
580 fn set_collection_max_supply() -> Weight {
581 // Proof Size summary in bytes:
582 // Measured: `267`
583 // Estimated: `3549`
584 // Minimum execution time: 17_894_000 picoseconds.
585 Weight::from_parts(18_669_000, 0)
586 .saturating_add(Weight::from_parts(0, 3549))
587 .saturating_add(T::DbWeight::get().reads(2))
588 .saturating_add(T::DbWeight::get().writes(1))
589 }
590 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
591 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
592 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
593 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
594 fn update_mint_settings() -> Weight {
595 // Proof Size summary in bytes:
596 // Measured: `250`
597 // Estimated: `3538`
598 // Minimum execution time: 17_157_000 picoseconds.
599 Weight::from_parts(17_784_000, 0)
600 .saturating_add(Weight::from_parts(0, 3538))
601 .saturating_add(T::DbWeight::get().reads(2))
602 .saturating_add(T::DbWeight::get().writes(1))
603 }
604 /// Storage: `Nfts::Item` (r:1 w:0)
605 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
606 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
607 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
608 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
609 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
610 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
611 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
612 fn set_price() -> Weight {
613 // Proof Size summary in bytes:
614 // Measured: `445`
615 // Estimated: `4326`
616 // Minimum execution time: 23_106_000 picoseconds.
617 Weight::from_parts(24_347_000, 0)
618 .saturating_add(Weight::from_parts(0, 4326))
619 .saturating_add(T::DbWeight::get().reads(3))
620 .saturating_add(T::DbWeight::get().writes(1))
621 }
622 /// Storage: `Nfts::Item` (r:1 w:1)
623 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
624 /// Storage: `Nfts::ItemPriceOf` (r:1 w:1)
625 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
626 /// Storage: `Nfts::Collection` (r:1 w:0)
627 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
628 /// Storage: `Nfts::Attribute` (r:1 w:0)
629 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
630 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
631 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
632 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
633 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
634 /// Storage: `Nfts::Account` (r:0 w:2)
635 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
636 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
637 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
638 fn buy_item() -> Weight {
639 // Proof Size summary in bytes:
640 // Measured: `632`
641 // Estimated: `4326`
642 // Minimum execution time: 55_619_000 picoseconds.
643 Weight::from_parts(57_654_000, 0)
644 .saturating_add(Weight::from_parts(0, 4326))
645 .saturating_add(T::DbWeight::get().reads(6))
646 .saturating_add(T::DbWeight::get().writes(5))
647 }
648 /// The range of component `n` is `[0, 10]`.
649 fn pay_tips(n: u32, ) -> Weight {
650 // Proof Size summary in bytes:
651 // Measured: `0`
652 // Estimated: `0`
653 // Minimum execution time: 2_094_000 picoseconds.
654 Weight::from_parts(3_413_045, 0)
655 .saturating_add(Weight::from_parts(0, 0))
656 // Standard Error: 6_868
657 .saturating_add(Weight::from_parts(1_981_673, 0).saturating_mul(n.into()))
658 }
659 /// Storage: `Nfts::Item` (r:2 w:0)
660 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
661 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
662 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
663 fn create_swap() -> Weight {
664 // Proof Size summary in bytes:
665 // Measured: `421`
666 // Estimated: `7662`
667 // Minimum execution time: 20_234_000 picoseconds.
668 Weight::from_parts(21_061_000, 0)
669 .saturating_add(Weight::from_parts(0, 7662))
670 .saturating_add(T::DbWeight::get().reads(2))
671 .saturating_add(T::DbWeight::get().writes(1))
672 }
673 /// Storage: `Nfts::PendingSwapOf` (r:1 w:1)
674 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
675 /// Storage: `Nfts::Item` (r:1 w:0)
676 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
677 fn cancel_swap() -> Weight {
678 // Proof Size summary in bytes:
679 // Measured: `440`
680 // Estimated: `4326`
681 // Minimum execution time: 24_566_000 picoseconds.
682 Weight::from_parts(25_453_000, 0)
683 .saturating_add(Weight::from_parts(0, 4326))
684 .saturating_add(T::DbWeight::get().reads(2))
685 .saturating_add(T::DbWeight::get().writes(1))
686 }
687 /// Storage: `Nfts::Item` (r:2 w:2)
688 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
689 /// Storage: `Nfts::PendingSwapOf` (r:1 w:2)
690 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
691 /// Storage: `Nfts::Collection` (r:1 w:0)
692 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
693 /// Storage: `Nfts::Attribute` (r:2 w:0)
694 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
695 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
696 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
697 /// Storage: `Nfts::ItemConfigOf` (r:2 w:0)
698 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
699 /// Storage: `Nfts::Account` (r:0 w:4)
700 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
701 /// Storage: `Nfts::ItemPriceOf` (r:0 w:2)
702 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
703 fn claim_swap() -> Weight {
704 // Proof Size summary in bytes:
705 // Measured: `761`
706 // Estimated: `7662`
707 // Minimum execution time: 88_227_000 picoseconds.
708 Weight::from_parts(91_859_000, 0)
709 .saturating_add(Weight::from_parts(0, 7662))
710 .saturating_add(T::DbWeight::get().reads(9))
711 .saturating_add(T::DbWeight::get().writes(10))
712 }
713 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:0)
714 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
715 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
716 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
717 /// Storage: `Nfts::Item` (r:1 w:1)
718 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
719 /// Storage: `Nfts::Collection` (r:1 w:1)
720 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
721 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
722 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
723 /// Storage: `System::Account` (r:1 w:1)
724 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
725 /// Storage: `Nfts::Attribute` (r:10 w:10)
726 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
727 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
728 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
729 /// Storage: `Nfts::Account` (r:0 w:1)
730 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
731 /// The range of component `n` is `[0, 10]`.
732 fn mint_pre_signed(n: u32, ) -> Weight {
733 // Proof Size summary in bytes:
734 // Measured: `485`
735 // Estimated: `6078 + n * (2954 ±0)`
736 // Minimum execution time: 131_317_000 picoseconds.
737 Weight::from_parts(138_001_140, 0)
738 .saturating_add(Weight::from_parts(0, 6078))
739 // Standard Error: 60_000
740 .saturating_add(Weight::from_parts(33_446_120, 0).saturating_mul(n.into()))
741 .saturating_add(T::DbWeight::get().reads(8))
742 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
743 .saturating_add(T::DbWeight::get().writes(6))
744 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
745 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
746 }
747 /// Storage: `Nfts::Item` (r:1 w:0)
748 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
749 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
750 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
751 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
752 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
753 /// Storage: `Nfts::Collection` (r:1 w:1)
754 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
755 /// Storage: `Nfts::Attribute` (r:10 w:10)
756 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
757 /// Storage: `System::Account` (r:1 w:1)
758 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
759 /// The range of component `n` is `[0, 10]`.
760 fn set_attributes_pre_signed(n: u32, ) -> Weight {
761 // Proof Size summary in bytes:
762 // Measured: `515`
763 // Estimated: `4466 + n * (2954 ±0)`
764 // Minimum execution time: 68_122_000 picoseconds.
765 Weight::from_parts(81_135_062, 0)
766 .saturating_add(Weight::from_parts(0, 4466))
767 // Standard Error: 77_041
768 .saturating_add(Weight::from_parts(32_419_216, 0).saturating_mul(n.into()))
769 .saturating_add(T::DbWeight::get().reads(4))
770 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
771 .saturating_add(T::DbWeight::get().writes(2))
772 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
773 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
774 }
775}