pallet_staking_async_parachain_runtime/weights/pallet_nfts.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//! Autogenerated weights for `pallet_nfts`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot-parachain
28// benchmark
29// pallet
30// --chain=asset-hub-next-westend-dev
31// --wasm-execution=compiled
32// --pallet=pallet_nfts
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --extrinsic=*
37// --steps=50
38// --repeat=20
39// --json
40// --header=./file_header.txt
41// --output=./parachains/runtimes/assets/asset-hub-next-westend/src/weights/
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_nfts`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_nfts::WeightInfo for WeightInfo<T> {
54 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
55 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56 /// Storage: `Nfts::Collection` (r:1 w:1)
57 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
58 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
59 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
60 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
61 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
62 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
63 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
64 fn create() -> Weight {
65 // Proof Size summary in bytes:
66 // Measured: `179`
67 // Estimated: `3549`
68 // Minimum execution time: 37_322_000 picoseconds.
69 Weight::from_parts(38_364_000, 0)
70 .saturating_add(Weight::from_parts(0, 3549))
71 .saturating_add(T::DbWeight::get().reads(2))
72 .saturating_add(T::DbWeight::get().writes(5))
73 }
74 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
75 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
76 /// Storage: `Nfts::Collection` (r:1 w:1)
77 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
78 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
79 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
80 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
81 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
82 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
83 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
84 fn force_create() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `76`
87 // Estimated: `3549`
88 // Minimum execution time: 22_254_000 picoseconds.
89 Weight::from_parts(22_613_000, 0)
90 .saturating_add(Weight::from_parts(0, 3549))
91 .saturating_add(T::DbWeight::get().reads(2))
92 .saturating_add(T::DbWeight::get().writes(5))
93 }
94 /// Storage: `Nfts::Collection` (r:1 w:1)
95 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
96 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
97 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
98 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:1)
99 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
100 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
101 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
102 /// Storage: `Nfts::ItemConfigOf` (r:1000 w:1000)
103 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
104 /// Storage: `Nfts::CollectionMetadataOf` (r:0 w:1)
105 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
106 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
107 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
108 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
109 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
110 /// The range of component `m` is `[0, 1000]`.
111 /// The range of component `c` is `[0, 1000]`.
112 /// The range of component `a` is `[0, 1000]`.
113 fn destroy(_m: u32, c: u32, a: u32, ) -> Weight {
114 // Proof Size summary in bytes:
115 // Measured: `32204 + a * (366 ±0)`
116 // Estimated: `2523990 + a * (2954 ±0)`
117 // Minimum execution time: 1_204_644_000 picoseconds.
118 Weight::from_parts(1_122_618_254, 0)
119 .saturating_add(Weight::from_parts(0, 2523990))
120 // Standard Error: 9_641
121 .saturating_add(Weight::from_parts(39_956, 0).saturating_mul(c.into()))
122 // Standard Error: 9_641
123 .saturating_add(Weight::from_parts(6_866_428, 0).saturating_mul(a.into()))
124 .saturating_add(T::DbWeight::get().reads(1004))
125 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
126 .saturating_add(T::DbWeight::get().writes(1005))
127 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
128 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(a.into()))
129 }
130 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
131 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
132 /// Storage: `Nfts::Item` (r:1 w:1)
133 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
134 /// Storage: `Nfts::Collection` (r:1 w:1)
135 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
136 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
137 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
138 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
139 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
140 /// Storage: `Nfts::Account` (r:0 w:1)
141 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
142 fn mint() -> Weight {
143 // Proof Size summary in bytes:
144 // Measured: `455`
145 // Estimated: `4326`
146 // Minimum execution time: 47_903_000 picoseconds.
147 Weight::from_parts(48_938_000, 0)
148 .saturating_add(Weight::from_parts(0, 4326))
149 .saturating_add(T::DbWeight::get().reads(5))
150 .saturating_add(T::DbWeight::get().writes(4))
151 }
152 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
153 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
154 /// Storage: `Nfts::Item` (r:1 w:1)
155 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
156 /// Storage: `Nfts::Collection` (r:1 w:1)
157 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
158 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
159 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
160 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
161 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
162 /// Storage: `Nfts::Account` (r:0 w:1)
163 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
164 fn force_mint() -> Weight {
165 // Proof Size summary in bytes:
166 // Measured: `455`
167 // Estimated: `4326`
168 // Minimum execution time: 46_662_000 picoseconds.
169 Weight::from_parts(47_673_000, 0)
170 .saturating_add(Weight::from_parts(0, 4326))
171 .saturating_add(T::DbWeight::get().reads(5))
172 .saturating_add(T::DbWeight::get().writes(4))
173 }
174 /// Storage: `Nfts::Attribute` (r:1 w:0)
175 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
176 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
177 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
178 /// Storage: `Nfts::Collection` (r:1 w:1)
179 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
180 /// Storage: `Nfts::Item` (r:1 w:1)
181 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
182 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
183 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
184 /// Storage: `Nfts::Account` (r:0 w:1)
185 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
186 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
187 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
188 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:0 w:1)
189 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
190 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
191 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
192 fn burn() -> Weight {
193 // Proof Size summary in bytes:
194 // Measured: `564`
195 // Estimated: `4326`
196 // Minimum execution time: 53_042_000 picoseconds.
197 Weight::from_parts(54_352_000, 0)
198 .saturating_add(Weight::from_parts(0, 4326))
199 .saturating_add(T::DbWeight::get().reads(5))
200 .saturating_add(T::DbWeight::get().writes(7))
201 }
202 /// Storage: `Nfts::Collection` (r:1 w:0)
203 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
204 /// Storage: `Nfts::Attribute` (r:1 w:0)
205 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
206 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
207 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
208 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
209 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
210 /// Storage: `Nfts::Item` (r:1 w:1)
211 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
212 /// Storage: `Nfts::Account` (r:0 w:2)
213 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
214 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
215 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
216 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
217 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
218 fn transfer() -> Weight {
219 // Proof Size summary in bytes:
220 // Measured: `593`
221 // Estimated: `4326`
222 // Minimum execution time: 40_570_000 picoseconds.
223 Weight::from_parts(43_020_000, 0)
224 .saturating_add(Weight::from_parts(0, 4326))
225 .saturating_add(T::DbWeight::get().reads(5))
226 .saturating_add(T::DbWeight::get().writes(5))
227 }
228 /// Storage: `Nfts::Collection` (r:1 w:0)
229 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
230 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
231 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
232 /// Storage: `Nfts::Item` (r:5000 w:5000)
233 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
234 /// The range of component `i` is `[0, 5000]`.
235 fn redeposit(i: u32, ) -> Weight {
236 // Proof Size summary in bytes:
237 // Measured: `763 + i * (108 ±0)`
238 // Estimated: `3549 + i * (3336 ±0)`
239 // Minimum execution time: 15_982_000 picoseconds.
240 Weight::from_parts(16_291_000, 0)
241 .saturating_add(Weight::from_parts(0, 3549))
242 // Standard Error: 23_954
243 .saturating_add(Weight::from_parts(17_559_013, 0).saturating_mul(i.into()))
244 .saturating_add(T::DbWeight::get().reads(2))
245 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
246 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
247 .saturating_add(Weight::from_parts(0, 3336).saturating_mul(i.into()))
248 }
249 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
250 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
251 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
252 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
253 fn lock_item_transfer() -> Weight {
254 // Proof Size summary in bytes:
255 // Measured: `435`
256 // Estimated: `3534`
257 // Minimum execution time: 20_084_000 picoseconds.
258 Weight::from_parts(20_572_000, 0)
259 .saturating_add(Weight::from_parts(0, 3534))
260 .saturating_add(T::DbWeight::get().reads(2))
261 .saturating_add(T::DbWeight::get().writes(1))
262 }
263 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
264 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
265 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
266 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
267 fn unlock_item_transfer() -> Weight {
268 // Proof Size summary in bytes:
269 // Measured: `435`
270 // Estimated: `3534`
271 // Minimum execution time: 20_007_000 picoseconds.
272 Weight::from_parts(20_221_000, 0)
273 .saturating_add(Weight::from_parts(0, 3534))
274 .saturating_add(T::DbWeight::get().reads(2))
275 .saturating_add(T::DbWeight::get().writes(1))
276 }
277 /// Storage: `Nfts::Collection` (r:1 w:0)
278 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
279 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
280 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
281 fn lock_collection() -> Weight {
282 // Proof Size summary in bytes:
283 // Measured: `340`
284 // Estimated: `3549`
285 // Minimum execution time: 16_815_000 picoseconds.
286 Weight::from_parts(17_191_000, 0)
287 .saturating_add(Weight::from_parts(0, 3549))
288 .saturating_add(T::DbWeight::get().reads(2))
289 .saturating_add(T::DbWeight::get().writes(1))
290 }
291 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
292 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
293 /// Storage: `Nfts::Collection` (r:1 w:1)
294 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
295 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
296 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
297 fn transfer_ownership() -> Weight {
298 // Proof Size summary in bytes:
299 // Measured: `388`
300 // Estimated: `3549`
301 // Minimum execution time: 22_234_000 picoseconds.
302 Weight::from_parts(22_888_000, 0)
303 .saturating_add(Weight::from_parts(0, 3549))
304 .saturating_add(T::DbWeight::get().reads(2))
305 .saturating_add(T::DbWeight::get().writes(4))
306 }
307 /// Storage: `Nfts::Collection` (r:1 w:1)
308 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
309 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:4)
310 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
311 fn set_team() -> Weight {
312 // Proof Size summary in bytes:
313 // Measured: `369`
314 // Estimated: `6078`
315 // Minimum execution time: 38_473_000 picoseconds.
316 Weight::from_parts(39_578_000, 0)
317 .saturating_add(Weight::from_parts(0, 6078))
318 .saturating_add(T::DbWeight::get().reads(3))
319 .saturating_add(T::DbWeight::get().writes(5))
320 }
321 /// Storage: `Nfts::Collection` (r:1 w:1)
322 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
323 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
324 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
325 fn force_collection_owner() -> Weight {
326 // Proof Size summary in bytes:
327 // Measured: `311`
328 // Estimated: `3549`
329 // Minimum execution time: 17_377_000 picoseconds.
330 Weight::from_parts(17_887_000, 0)
331 .saturating_add(Weight::from_parts(0, 3549))
332 .saturating_add(T::DbWeight::get().reads(1))
333 .saturating_add(T::DbWeight::get().writes(3))
334 }
335 /// Storage: `Nfts::Collection` (r:1 w:0)
336 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
337 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
338 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
339 fn force_collection_config() -> Weight {
340 // Proof Size summary in bytes:
341 // Measured: `276`
342 // Estimated: `3549`
343 // Minimum execution time: 14_575_000 picoseconds.
344 Weight::from_parts(14_890_000, 0)
345 .saturating_add(Weight::from_parts(0, 3549))
346 .saturating_add(T::DbWeight::get().reads(1))
347 .saturating_add(T::DbWeight::get().writes(1))
348 }
349 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
350 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
351 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
352 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
353 fn lock_item_properties() -> Weight {
354 // Proof Size summary in bytes:
355 // Measured: `435`
356 // Estimated: `3534`
357 // Minimum execution time: 18_864_000 picoseconds.
358 Weight::from_parts(19_401_000, 0)
359 .saturating_add(Weight::from_parts(0, 3534))
360 .saturating_add(T::DbWeight::get().reads(2))
361 .saturating_add(T::DbWeight::get().writes(1))
362 }
363 /// Storage: `Nfts::Collection` (r:1 w:1)
364 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
365 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
366 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
367 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
368 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
369 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
370 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
371 /// Storage: `Nfts::Attribute` (r:1 w:1)
372 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
373 fn set_attribute() -> Weight {
374 // Proof Size summary in bytes:
375 // Measured: `539`
376 // Estimated: `3944`
377 // Minimum execution time: 48_949_000 picoseconds.
378 Weight::from_parts(50_054_000, 0)
379 .saturating_add(Weight::from_parts(0, 3944))
380 .saturating_add(T::DbWeight::get().reads(5))
381 .saturating_add(T::DbWeight::get().writes(2))
382 }
383 /// Storage: `Nfts::Collection` (r:1 w:1)
384 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
385 /// Storage: `Nfts::Attribute` (r:1 w:1)
386 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
387 fn force_set_attribute() -> Weight {
388 // Proof Size summary in bytes:
389 // Measured: `344`
390 // Estimated: `3944`
391 // Minimum execution time: 25_545_000 picoseconds.
392 Weight::from_parts(26_189_000, 0)
393 .saturating_add(Weight::from_parts(0, 3944))
394 .saturating_add(T::DbWeight::get().reads(2))
395 .saturating_add(T::DbWeight::get().writes(2))
396 }
397 /// Storage: `Nfts::Attribute` (r:1 w:1)
398 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
399 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
400 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
401 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
402 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
403 /// Storage: `Nfts::Collection` (r:1 w:1)
404 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
405 fn clear_attribute() -> Weight {
406 // Proof Size summary in bytes:
407 // Measured: `983`
408 // Estimated: `3944`
409 // Minimum execution time: 45_215_000 picoseconds.
410 Weight::from_parts(46_030_000, 0)
411 .saturating_add(Weight::from_parts(0, 3944))
412 .saturating_add(T::DbWeight::get().reads(4))
413 .saturating_add(T::DbWeight::get().writes(2))
414 }
415 /// Storage: `Nfts::Item` (r:1 w:0)
416 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
417 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
418 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
419 fn approve_item_attributes() -> Weight {
420 // Proof Size summary in bytes:
421 // Measured: `381`
422 // Estimated: `4466`
423 // Minimum execution time: 17_084_000 picoseconds.
424 Weight::from_parts(17_758_000, 0)
425 .saturating_add(Weight::from_parts(0, 4466))
426 .saturating_add(T::DbWeight::get().reads(2))
427 .saturating_add(T::DbWeight::get().writes(1))
428 }
429 /// Storage: `Nfts::Item` (r:1 w:0)
430 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
431 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
432 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
433 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
434 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
435 /// Storage: `System::Account` (r:1 w:1)
436 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
437 /// The range of component `n` is `[0, 1000]`.
438 fn cancel_item_attributes_approval(n: u32, ) -> Weight {
439 // Proof Size summary in bytes:
440 // Measured: `760 + n * (398 ±0)`
441 // Estimated: `4466 + n * (2954 ±0)`
442 // Minimum execution time: 25_696_000 picoseconds.
443 Weight::from_parts(26_074_000, 0)
444 .saturating_add(Weight::from_parts(0, 4466))
445 // Standard Error: 7_263
446 .saturating_add(Weight::from_parts(6_492_893, 0).saturating_mul(n.into()))
447 .saturating_add(T::DbWeight::get().reads(4))
448 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
449 .saturating_add(T::DbWeight::get().writes(2))
450 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
451 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
452 }
453 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
454 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
455 /// Storage: `Nfts::Collection` (r:1 w:1)
456 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
457 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
458 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
459 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
460 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
461 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
462 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
463 fn set_metadata() -> Weight {
464 // Proof Size summary in bytes:
465 // Measured: `539`
466 // Estimated: `3812`
467 // Minimum execution time: 40_890_000 picoseconds.
468 Weight::from_parts(41_530_000, 0)
469 .saturating_add(Weight::from_parts(0, 3812))
470 .saturating_add(T::DbWeight::get().reads(5))
471 .saturating_add(T::DbWeight::get().writes(2))
472 }
473 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
474 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
475 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
476 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
477 /// Storage: `Nfts::Collection` (r:1 w:1)
478 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
479 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
480 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
481 fn clear_metadata() -> Weight {
482 // Proof Size summary in bytes:
483 // Measured: `849`
484 // Estimated: `3812`
485 // Minimum execution time: 38_847_000 picoseconds.
486 Weight::from_parts(39_924_000, 0)
487 .saturating_add(Weight::from_parts(0, 3812))
488 .saturating_add(T::DbWeight::get().reads(4))
489 .saturating_add(T::DbWeight::get().writes(2))
490 }
491 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
492 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
493 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
494 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
495 /// Storage: `Nfts::Collection` (r:1 w:1)
496 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
497 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
498 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
499 fn set_collection_metadata() -> Weight {
500 // Proof Size summary in bytes:
501 // Measured: `398`
502 // Estimated: `3759`
503 // Minimum execution time: 36_693_000 picoseconds.
504 Weight::from_parts(37_689_000, 0)
505 .saturating_add(Weight::from_parts(0, 3759))
506 .saturating_add(T::DbWeight::get().reads(4))
507 .saturating_add(T::DbWeight::get().writes(2))
508 }
509 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
510 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
511 /// Storage: `Nfts::Collection` (r:1 w:0)
512 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
513 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
514 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
515 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
516 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
517 fn clear_collection_metadata() -> Weight {
518 // Proof Size summary in bytes:
519 // Measured: `716`
520 // Estimated: `3759`
521 // Minimum execution time: 36_168_000 picoseconds.
522 Weight::from_parts(36_757_000, 0)
523 .saturating_add(Weight::from_parts(0, 3759))
524 .saturating_add(T::DbWeight::get().reads(4))
525 .saturating_add(T::DbWeight::get().writes(1))
526 }
527 /// Storage: `Nfts::Item` (r:1 w:1)
528 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
529 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
530 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
531 fn approve_transfer() -> Weight {
532 // Proof Size summary in bytes:
533 // Measured: `410`
534 // Estimated: `4326`
535 // Minimum execution time: 20_589_000 picoseconds.
536 Weight::from_parts(21_153_000, 0)
537 .saturating_add(Weight::from_parts(0, 4326))
538 .saturating_add(T::DbWeight::get().reads(2))
539 .saturating_add(T::DbWeight::get().writes(1))
540 }
541 /// Storage: `Nfts::Item` (r:1 w:1)
542 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
543 fn cancel_approval() -> Weight {
544 // Proof Size summary in bytes:
545 // Measured: `418`
546 // Estimated: `4326`
547 // Minimum execution time: 18_133_000 picoseconds.
548 Weight::from_parts(18_701_000, 0)
549 .saturating_add(Weight::from_parts(0, 4326))
550 .saturating_add(T::DbWeight::get().reads(1))
551 .saturating_add(T::DbWeight::get().writes(1))
552 }
553 /// Storage: `Nfts::Item` (r:1 w:1)
554 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
555 fn clear_all_transfer_approvals() -> Weight {
556 // Proof Size summary in bytes:
557 // Measured: `418`
558 // Estimated: `4326`
559 // Minimum execution time: 16_809_000 picoseconds.
560 Weight::from_parts(17_391_000, 0)
561 .saturating_add(Weight::from_parts(0, 4326))
562 .saturating_add(T::DbWeight::get().reads(1))
563 .saturating_add(T::DbWeight::get().writes(1))
564 }
565 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
566 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
567 fn set_accept_ownership() -> Weight {
568 // Proof Size summary in bytes:
569 // Measured: `76`
570 // Estimated: `3517`
571 // Minimum execution time: 14_878_000 picoseconds.
572 Weight::from_parts(15_275_000, 0)
573 .saturating_add(Weight::from_parts(0, 3517))
574 .saturating_add(T::DbWeight::get().reads(1))
575 .saturating_add(T::DbWeight::get().writes(1))
576 }
577 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
578 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
579 /// Storage: `Nfts::Collection` (r:1 w:0)
580 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
581 fn set_collection_max_supply() -> Weight {
582 // Proof Size summary in bytes:
583 // Measured: `340`
584 // Estimated: `3549`
585 // Minimum execution time: 18_388_000 picoseconds.
586 Weight::from_parts(18_950_000, 0)
587 .saturating_add(Weight::from_parts(0, 3549))
588 .saturating_add(T::DbWeight::get().reads(2))
589 .saturating_add(T::DbWeight::get().writes(1))
590 }
591 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
592 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
593 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
594 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
595 fn update_mint_settings() -> Weight {
596 // Proof Size summary in bytes:
597 // Measured: `323`
598 // Estimated: `3538`
599 // Minimum execution time: 18_190_000 picoseconds.
600 Weight::from_parts(18_552_000, 0)
601 .saturating_add(Weight::from_parts(0, 3538))
602 .saturating_add(T::DbWeight::get().reads(2))
603 .saturating_add(T::DbWeight::get().writes(1))
604 }
605 /// Storage: `Nfts::Item` (r:1 w:0)
606 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
607 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
608 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
609 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
610 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
611 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
612 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
613 fn set_price() -> Weight {
614 // Proof Size summary in bytes:
615 // Measured: `518`
616 // Estimated: `4326`
617 // Minimum execution time: 22_986_000 picoseconds.
618 Weight::from_parts(23_601_000, 0)
619 .saturating_add(Weight::from_parts(0, 4326))
620 .saturating_add(T::DbWeight::get().reads(3))
621 .saturating_add(T::DbWeight::get().writes(1))
622 }
623 /// Storage: `Nfts::Item` (r:1 w:1)
624 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
625 /// Storage: `Nfts::ItemPriceOf` (r:1 w:1)
626 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
627 /// Storage: `Nfts::Collection` (r:1 w:0)
628 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
629 /// Storage: `Nfts::Attribute` (r:1 w:0)
630 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
631 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
632 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
633 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
634 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
635 /// Storage: `Nfts::Account` (r:0 w:2)
636 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
637 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
638 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
639 fn buy_item() -> Weight {
640 // Proof Size summary in bytes:
641 // Measured: `705`
642 // Estimated: `4326`
643 // Minimum execution time: 49_098_000 picoseconds.
644 Weight::from_parts(50_262_000, 0)
645 .saturating_add(Weight::from_parts(0, 4326))
646 .saturating_add(T::DbWeight::get().reads(6))
647 .saturating_add(T::DbWeight::get().writes(5))
648 }
649 /// The range of component `n` is `[0, 10]`.
650 fn pay_tips(n: u32, ) -> Weight {
651 // Proof Size summary in bytes:
652 // Measured: `0`
653 // Estimated: `0`
654 // Minimum execution time: 2_208_000 picoseconds.
655 Weight::from_parts(3_312_261, 0)
656 .saturating_add(Weight::from_parts(0, 0))
657 // Standard Error: 6_242
658 .saturating_add(Weight::from_parts(3_672_096, 0).saturating_mul(n.into()))
659 }
660 /// Storage: `Nfts::Item` (r:2 w:0)
661 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
662 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
663 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
664 fn create_swap() -> Weight {
665 // Proof Size summary in bytes:
666 // Measured: `494`
667 // Estimated: `7662`
668 // Minimum execution time: 20_906_000 picoseconds.
669 Weight::from_parts(21_412_000, 0)
670 .saturating_add(Weight::from_parts(0, 7662))
671 .saturating_add(T::DbWeight::get().reads(2))
672 .saturating_add(T::DbWeight::get().writes(1))
673 }
674 /// Storage: `Nfts::PendingSwapOf` (r:1 w:1)
675 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
676 /// Storage: `Nfts::Item` (r:1 w:0)
677 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
678 fn cancel_swap() -> Weight {
679 // Proof Size summary in bytes:
680 // Measured: `513`
681 // Estimated: `4326`
682 // Minimum execution time: 20_250_000 picoseconds.
683 Weight::from_parts(20_703_000, 0)
684 .saturating_add(Weight::from_parts(0, 4326))
685 .saturating_add(T::DbWeight::get().reads(2))
686 .saturating_add(T::DbWeight::get().writes(1))
687 }
688 /// Storage: `Nfts::Item` (r:2 w:2)
689 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
690 /// Storage: `Nfts::PendingSwapOf` (r:1 w:2)
691 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
692 /// Storage: `Nfts::Collection` (r:1 w:0)
693 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
694 /// Storage: `Nfts::Attribute` (r:2 w:0)
695 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
696 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
697 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
698 /// Storage: `Nfts::ItemConfigOf` (r:2 w:0)
699 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
700 /// Storage: `Nfts::Account` (r:0 w:4)
701 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
702 /// Storage: `Nfts::ItemPriceOf` (r:0 w:2)
703 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
704 fn claim_swap() -> Weight {
705 // Proof Size summary in bytes:
706 // Measured: `834`
707 // Estimated: `7662`
708 // Minimum execution time: 83_471_000 picoseconds.
709 Weight::from_parts(85_349_000, 0)
710 .saturating_add(Weight::from_parts(0, 7662))
711 .saturating_add(T::DbWeight::get().reads(9))
712 .saturating_add(T::DbWeight::get().writes(10))
713 }
714 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:0)
715 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
716 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
717 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
718 /// Storage: `Nfts::Item` (r:1 w:1)
719 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
720 /// Storage: `Nfts::Collection` (r:1 w:1)
721 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
722 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
723 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
724 /// Storage: `System::Account` (r:1 w:1)
725 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
726 /// Storage: `Nfts::Attribute` (r:10 w:10)
727 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
728 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
729 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
730 /// Storage: `Nfts::Account` (r:0 w:1)
731 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
732 /// The range of component `n` is `[0, 10]`.
733 fn mint_pre_signed(n: u32, ) -> Weight {
734 // Proof Size summary in bytes:
735 // Measured: `558`
736 // Estimated: `6078 + n * (2954 ±0)`
737 // Minimum execution time: 140_728_000 picoseconds.
738 Weight::from_parts(148_945_062, 0)
739 .saturating_add(Weight::from_parts(0, 6078))
740 // Standard Error: 49_446
741 .saturating_add(Weight::from_parts(30_948_884, 0).saturating_mul(n.into()))
742 .saturating_add(T::DbWeight::get().reads(8))
743 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
744 .saturating_add(T::DbWeight::get().writes(6))
745 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
746 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
747 }
748 /// Storage: `Nfts::Item` (r:1 w:0)
749 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
750 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
751 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
752 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
753 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
754 /// Storage: `Nfts::Collection` (r:1 w:1)
755 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
756 /// Storage: `Nfts::Attribute` (r:10 w:10)
757 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
758 /// Storage: `System::Account` (r:1 w:1)
759 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
760 /// The range of component `n` is `[0, 10]`.
761 fn set_attributes_pre_signed(n: u32, ) -> Weight {
762 // Proof Size summary in bytes:
763 // Measured: `588`
764 // Estimated: `4466 + n * (2954 ±0)`
765 // Minimum execution time: 82_713_000 picoseconds.
766 Weight::from_parts(95_912_559, 0)
767 .saturating_add(Weight::from_parts(0, 4466))
768 // Standard Error: 73_934
769 .saturating_add(Weight::from_parts(30_039_875, 0).saturating_mul(n.into()))
770 .saturating_add(T::DbWeight::get().reads(4))
771 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
772 .saturating_add(T::DbWeight::get().writes(2))
773 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
774 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
775 }
776}