pallet_nfts/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_nfts`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, 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_nfts
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/nfts/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// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_nfts`.
74pub trait WeightInfo {
75 fn create() -> Weight;
76 fn force_create() -> Weight;
77 fn destroy(m: u32, c: u32, a: u32, ) -> Weight;
78 fn mint() -> Weight;
79 fn force_mint() -> Weight;
80 fn burn() -> Weight;
81 fn transfer() -> Weight;
82 fn redeposit(i: u32, ) -> Weight;
83 fn lock_item_transfer() -> Weight;
84 fn unlock_item_transfer() -> Weight;
85 fn lock_collection() -> Weight;
86 fn transfer_ownership() -> Weight;
87 fn set_team() -> Weight;
88 fn force_collection_owner() -> Weight;
89 fn force_collection_config() -> Weight;
90 fn lock_item_properties() -> Weight;
91 fn set_attribute() -> Weight;
92 fn force_set_attribute() -> Weight;
93 fn clear_attribute() -> Weight;
94 fn approve_item_attributes() -> Weight;
95 fn cancel_item_attributes_approval(n: u32, ) -> Weight;
96 fn set_metadata() -> Weight;
97 fn clear_metadata() -> Weight;
98 fn set_collection_metadata() -> Weight;
99 fn clear_collection_metadata() -> Weight;
100 fn approve_transfer() -> Weight;
101 fn cancel_approval() -> Weight;
102 fn clear_all_transfer_approvals() -> Weight;
103 fn set_accept_ownership() -> Weight;
104 fn set_collection_max_supply() -> Weight;
105 fn update_mint_settings() -> Weight;
106 fn set_price() -> Weight;
107 fn buy_item() -> Weight;
108 fn pay_tips(n: u32, ) -> Weight;
109 fn create_swap() -> Weight;
110 fn cancel_swap() -> Weight;
111 fn claim_swap() -> Weight;
112 fn mint_pre_signed(n: u32, ) -> Weight;
113 fn set_attributes_pre_signed(n: u32, ) -> Weight;
114}
115
116/// Weights for `pallet_nfts` using the Substrate node and recommended hardware.
117pub struct SubstrateWeight<T>(PhantomData<T>);
118impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
119 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
120 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
121 /// Storage: `Nfts::Collection` (r:1 w:1)
122 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
123 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
124 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
125 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
126 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
127 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
128 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
129 fn create() -> Weight {
130 // Proof Size summary in bytes:
131 // Measured: `52`
132 // Estimated: `3549`
133 // Minimum execution time: 29_866_000 picoseconds.
134 Weight::from_parts(30_591_000, 3549)
135 .saturating_add(T::DbWeight::get().reads(2_u64))
136 .saturating_add(T::DbWeight::get().writes(5_u64))
137 }
138 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
139 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
140 /// Storage: `Nfts::Collection` (r:1 w:1)
141 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
142 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
143 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
144 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
145 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
146 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
147 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
148 fn force_create() -> Weight {
149 // Proof Size summary in bytes:
150 // Measured: `0`
151 // Estimated: `3549`
152 // Minimum execution time: 15_636_000 picoseconds.
153 Weight::from_parts(16_162_000, 3549)
154 .saturating_add(T::DbWeight::get().reads(2_u64))
155 .saturating_add(T::DbWeight::get().writes(5_u64))
156 }
157 /// Storage: `Nfts::Collection` (r:1 w:1)
158 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
159 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
160 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
161 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:1)
162 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
163 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
164 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
165 /// Storage: `Nfts::ItemConfigOf` (r:1000 w:1000)
166 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
167 /// Storage: `Nfts::CollectionMetadataOf` (r:0 w:1)
168 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
169 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
170 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
171 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
172 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
173 /// The range of component `m` is `[0, 1000]`.
174 /// The range of component `c` is `[0, 1000]`.
175 /// The range of component `a` is `[0, 1000]`.
176 fn destroy(m: u32, c: u32, a: u32, ) -> Weight {
177 // Proof Size summary in bytes:
178 // Measured: `32112 + a * (366 ±0)`
179 // Estimated: `2523990 + a * (2954 ±0)`
180 // Minimum execution time: 1_304_899_000 picoseconds.
181 Weight::from_parts(1_206_247_822, 2523990)
182 // Standard Error: 4_591
183 .saturating_add(Weight::from_parts(49_431, 0).saturating_mul(m.into()))
184 // Standard Error: 4_591
185 .saturating_add(Weight::from_parts(24_260, 0).saturating_mul(c.into()))
186 // Standard Error: 4_591
187 .saturating_add(Weight::from_parts(7_104_726, 0).saturating_mul(a.into()))
188 .saturating_add(T::DbWeight::get().reads(1004_u64))
189 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
190 .saturating_add(T::DbWeight::get().writes(1005_u64))
191 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
192 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(a.into()))
193 }
194 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
195 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
196 /// Storage: `Nfts::Item` (r:1 w:1)
197 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
198 /// Storage: `Nfts::Collection` (r:1 w:1)
199 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
200 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
201 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
202 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
203 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
204 /// Storage: `Nfts::Account` (r:0 w:1)
205 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
206 fn mint() -> Weight {
207 // Proof Size summary in bytes:
208 // Measured: `362`
209 // Estimated: `4326`
210 // Minimum execution time: 48_441_000 picoseconds.
211 Weight::from_parts(49_363_000, 4326)
212 .saturating_add(T::DbWeight::get().reads(5_u64))
213 .saturating_add(T::DbWeight::get().writes(4_u64))
214 }
215 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
216 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
217 /// Storage: `Nfts::Item` (r:1 w:1)
218 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
219 /// Storage: `Nfts::Collection` (r:1 w:1)
220 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
221 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
222 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
223 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
224 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
225 /// Storage: `Nfts::Account` (r:0 w:1)
226 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
227 fn force_mint() -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `362`
230 // Estimated: `4326`
231 // Minimum execution time: 46_608_000 picoseconds.
232 Weight::from_parts(47_860_000, 4326)
233 .saturating_add(T::DbWeight::get().reads(5_u64))
234 .saturating_add(T::DbWeight::get().writes(4_u64))
235 }
236 /// Storage: `Nfts::Attribute` (r:1 w:0)
237 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
238 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
239 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
240 /// Storage: `Nfts::Collection` (r:1 w:1)
241 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
242 /// Storage: `Nfts::Item` (r:1 w:1)
243 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
244 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
245 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
246 /// Storage: `Nfts::Account` (r:0 w:1)
247 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
248 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
249 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
250 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:0 w:1)
251 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
252 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
253 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
254 fn burn() -> Weight {
255 // Proof Size summary in bytes:
256 // Measured: `472`
257 // Estimated: `4326`
258 // Minimum execution time: 51_492_000 picoseconds.
259 Weight::from_parts(52_170_000, 4326)
260 .saturating_add(T::DbWeight::get().reads(5_u64))
261 .saturating_add(T::DbWeight::get().writes(7_u64))
262 }
263 /// Storage: `Nfts::Collection` (r:1 w:0)
264 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
265 /// Storage: `Nfts::Attribute` (r:1 w:0)
266 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
267 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
268 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
269 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
270 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
271 /// Storage: `Nfts::Item` (r:1 w:1)
272 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
273 /// Storage: `Nfts::Account` (r:0 w:2)
274 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
275 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
276 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
277 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
278 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
279 fn transfer() -> Weight {
280 // Proof Size summary in bytes:
281 // Measured: `501`
282 // Estimated: `4326`
283 // Minimum execution time: 40_207_000 picoseconds.
284 Weight::from_parts(41_360_000, 4326)
285 .saturating_add(T::DbWeight::get().reads(5_u64))
286 .saturating_add(T::DbWeight::get().writes(5_u64))
287 }
288 /// Storage: `Nfts::Collection` (r:1 w:0)
289 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
290 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
291 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
292 /// Storage: `Nfts::Item` (r:5000 w:5000)
293 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
294 /// The range of component `i` is `[0, 5000]`.
295 fn redeposit(i: u32, ) -> Weight {
296 // Proof Size summary in bytes:
297 // Measured: `671 + i * (108 ±0)`
298 // Estimated: `3549 + i * (3336 ±0)`
299 // Minimum execution time: 14_100_000 picoseconds.
300 Weight::from_parts(14_412_000, 3549)
301 // Standard Error: 20_746
302 .saturating_add(Weight::from_parts(17_706_123, 0).saturating_mul(i.into()))
303 .saturating_add(T::DbWeight::get().reads(2_u64))
304 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
305 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
306 .saturating_add(Weight::from_parts(0, 3336).saturating_mul(i.into()))
307 }
308 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
309 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
310 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
311 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
312 fn lock_item_transfer() -> Weight {
313 // Proof Size summary in bytes:
314 // Measured: `343`
315 // Estimated: `3534`
316 // Minimum execution time: 18_777_000 picoseconds.
317 Weight::from_parts(19_084_000, 3534)
318 .saturating_add(T::DbWeight::get().reads(2_u64))
319 .saturating_add(T::DbWeight::get().writes(1_u64))
320 }
321 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
322 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
323 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
324 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
325 fn unlock_item_transfer() -> Weight {
326 // Proof Size summary in bytes:
327 // Measured: `343`
328 // Estimated: `3534`
329 // Minimum execution time: 18_460_000 picoseconds.
330 Weight::from_parts(18_907_000, 3534)
331 .saturating_add(T::DbWeight::get().reads(2_u64))
332 .saturating_add(T::DbWeight::get().writes(1_u64))
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:1 w:1)
337 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
338 fn lock_collection() -> Weight {
339 // Proof Size summary in bytes:
340 // Measured: `248`
341 // Estimated: `3549`
342 // Minimum execution time: 15_010_000 picoseconds.
343 Weight::from_parts(15_523_000, 3549)
344 .saturating_add(T::DbWeight::get().reads(2_u64))
345 .saturating_add(T::DbWeight::get().writes(1_u64))
346 }
347 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
348 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
349 /// Storage: `Nfts::Collection` (r:1 w:1)
350 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
351 /// Storage: `System::Account` (r:1 w:1)
352 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
353 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
354 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
355 fn transfer_ownership() -> Weight {
356 // Proof Size summary in bytes:
357 // Measured: `399`
358 // Estimated: `3593`
359 // Minimum execution time: 24_987_000 picoseconds.
360 Weight::from_parts(25_668_000, 3593)
361 .saturating_add(T::DbWeight::get().reads(3_u64))
362 .saturating_add(T::DbWeight::get().writes(5_u64))
363 }
364 /// Storage: `Nfts::Collection` (r:1 w:1)
365 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
366 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:4)
367 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
368 fn set_team() -> Weight {
369 // Proof Size summary in bytes:
370 // Measured: `277`
371 // Estimated: `6078`
372 // Minimum execution time: 36_287_000 picoseconds.
373 Weight::from_parts(36_653_000, 6078)
374 .saturating_add(T::DbWeight::get().reads(3_u64))
375 .saturating_add(T::DbWeight::get().writes(5_u64))
376 }
377 /// Storage: `Nfts::Collection` (r:1 w:1)
378 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
379 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
380 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
381 fn force_collection_owner() -> Weight {
382 // Proof Size summary in bytes:
383 // Measured: `219`
384 // Estimated: `3549`
385 // Minimum execution time: 15_143_000 picoseconds.
386 Weight::from_parts(15_551_000, 3549)
387 .saturating_add(T::DbWeight::get().reads(1_u64))
388 .saturating_add(T::DbWeight::get().writes(3_u64))
389 }
390 /// Storage: `Nfts::Collection` (r:1 w:0)
391 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
392 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
393 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
394 fn force_collection_config() -> Weight {
395 // Proof Size summary in bytes:
396 // Measured: `184`
397 // Estimated: `3549`
398 // Minimum execution time: 11_145_000 picoseconds.
399 Weight::from_parts(11_395_000, 3549)
400 .saturating_add(T::DbWeight::get().reads(1_u64))
401 .saturating_add(T::DbWeight::get().writes(1_u64))
402 }
403 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
404 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
405 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
406 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
407 fn lock_item_properties() -> Weight {
408 // Proof Size summary in bytes:
409 // Measured: `343`
410 // Estimated: `3534`
411 // Minimum execution time: 17_174_000 picoseconds.
412 Weight::from_parts(17_738_000, 3534)
413 .saturating_add(T::DbWeight::get().reads(2_u64))
414 .saturating_add(T::DbWeight::get().writes(1_u64))
415 }
416 /// Storage: `Nfts::Collection` (r:1 w:1)
417 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
418 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
419 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
420 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
421 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
422 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
423 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
424 /// Storage: `Nfts::Attribute` (r:1 w:1)
425 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
426 fn set_attribute() -> Weight {
427 // Proof Size summary in bytes:
428 // Measured: `447`
429 // Estimated: `3944`
430 // Minimum execution time: 49_013_000 picoseconds.
431 Weight::from_parts(50_124_000, 3944)
432 .saturating_add(T::DbWeight::get().reads(5_u64))
433 .saturating_add(T::DbWeight::get().writes(2_u64))
434 }
435 /// Storage: `Nfts::Collection` (r:1 w:1)
436 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
437 /// Storage: `Nfts::Attribute` (r:1 w:1)
438 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
439 fn force_set_attribute() -> Weight {
440 // Proof Size summary in bytes:
441 // Measured: `252`
442 // Estimated: `3944`
443 // Minimum execution time: 23_738_000 picoseconds.
444 Weight::from_parts(24_558_000, 3944)
445 .saturating_add(T::DbWeight::get().reads(2_u64))
446 .saturating_add(T::DbWeight::get().writes(2_u64))
447 }
448 /// Storage: `Nfts::Attribute` (r:1 w:1)
449 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
450 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
451 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
452 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
453 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, 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 fn clear_attribute() -> Weight {
457 // Proof Size summary in bytes:
458 // Measured: `891`
459 // Estimated: `3944`
460 // Minimum execution time: 45_483_000 picoseconds.
461 Weight::from_parts(46_308_000, 3944)
462 .saturating_add(T::DbWeight::get().reads(4_u64))
463 .saturating_add(T::DbWeight::get().writes(2_u64))
464 }
465 /// Storage: `Nfts::Item` (r:1 w:0)
466 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
467 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
468 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
469 fn approve_item_attributes() -> Weight {
470 // Proof Size summary in bytes:
471 // Measured: `289`
472 // Estimated: `4326`
473 // Minimum execution time: 15_153_000 picoseconds.
474 Weight::from_parts(15_686_000, 4326)
475 .saturating_add(T::DbWeight::get().reads(2_u64))
476 .saturating_add(T::DbWeight::get().writes(1_u64))
477 }
478 /// Storage: `Nfts::Item` (r:1 w:0)
479 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
480 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
481 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
482 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
483 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
484 /// Storage: `System::Account` (r:1 w:1)
485 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
486 /// The range of component `n` is `[0, 1000]`.
487 fn cancel_item_attributes_approval(n: u32, ) -> Weight {
488 // Proof Size summary in bytes:
489 // Measured: `668 + n * (398 ±0)`
490 // Estimated: `4326 + n * (2954 ±0)`
491 // Minimum execution time: 23_720_000 picoseconds.
492 Weight::from_parts(24_121_000, 4326)
493 // Standard Error: 4_581
494 .saturating_add(Weight::from_parts(7_030_724, 0).saturating_mul(n.into()))
495 .saturating_add(T::DbWeight::get().reads(4_u64))
496 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
497 .saturating_add(T::DbWeight::get().writes(2_u64))
498 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
499 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
500 }
501 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
502 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
503 /// Storage: `Nfts::Collection` (r:1 w:1)
504 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
505 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
506 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
507 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
508 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
509 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
510 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
511 fn set_metadata() -> Weight {
512 // Proof Size summary in bytes:
513 // Measured: `447`
514 // Estimated: `3812`
515 // Minimum execution time: 40_386_000 picoseconds.
516 Weight::from_parts(40_903_000, 3812)
517 .saturating_add(T::DbWeight::get().reads(5_u64))
518 .saturating_add(T::DbWeight::get().writes(2_u64))
519 }
520 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
521 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
522 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
523 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
524 /// Storage: `Nfts::Collection` (r:1 w:1)
525 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
526 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
527 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
528 fn clear_metadata() -> Weight {
529 // Proof Size summary in bytes:
530 // Measured: `757`
531 // Estimated: `3812`
532 // Minimum execution time: 38_438_000 picoseconds.
533 Weight::from_parts(39_323_000, 3812)
534 .saturating_add(T::DbWeight::get().reads(4_u64))
535 .saturating_add(T::DbWeight::get().writes(2_u64))
536 }
537 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
538 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
539 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
540 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
541 /// Storage: `Nfts::Collection` (r:1 w:1)
542 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
543 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
544 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
545 fn set_collection_metadata() -> Weight {
546 // Proof Size summary in bytes:
547 // Measured: `306`
548 // Estimated: `3759`
549 // Minimum execution time: 36_043_000 picoseconds.
550 Weight::from_parts(36_498_000, 3759)
551 .saturating_add(T::DbWeight::get().reads(4_u64))
552 .saturating_add(T::DbWeight::get().writes(2_u64))
553 }
554 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
555 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
556 /// Storage: `Nfts::Collection` (r:1 w:1)
557 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
558 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
559 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
560 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
561 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
562 fn clear_collection_metadata() -> Weight {
563 // Proof Size summary in bytes:
564 // Measured: `624`
565 // Estimated: `3759`
566 // Minimum execution time: 35_275_000 picoseconds.
567 Weight::from_parts(35_879_000, 3759)
568 .saturating_add(T::DbWeight::get().reads(4_u64))
569 .saturating_add(T::DbWeight::get().writes(2_u64))
570 }
571 /// Storage: `Nfts::Item` (r:1 w:1)
572 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
573 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
574 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
575 fn approve_transfer() -> Weight {
576 // Proof Size summary in bytes:
577 // Measured: `318`
578 // Estimated: `4326`
579 // Minimum execution time: 18_190_000 picoseconds.
580 Weight::from_parts(18_717_000, 4326)
581 .saturating_add(T::DbWeight::get().reads(2_u64))
582 .saturating_add(T::DbWeight::get().writes(1_u64))
583 }
584 /// Storage: `Nfts::Item` (r:1 w:1)
585 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
586 fn cancel_approval() -> Weight {
587 // Proof Size summary in bytes:
588 // Measured: `326`
589 // Estimated: `4326`
590 // Minimum execution time: 15_088_000 picoseconds.
591 Weight::from_parts(15_564_000, 4326)
592 .saturating_add(T::DbWeight::get().reads(1_u64))
593 .saturating_add(T::DbWeight::get().writes(1_u64))
594 }
595 /// Storage: `Nfts::Item` (r:1 w:1)
596 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
597 fn clear_all_transfer_approvals() -> Weight {
598 // Proof Size summary in bytes:
599 // Measured: `326`
600 // Estimated: `4326`
601 // Minimum execution time: 14_365_000 picoseconds.
602 Weight::from_parts(14_920_000, 4326)
603 .saturating_add(T::DbWeight::get().reads(1_u64))
604 .saturating_add(T::DbWeight::get().writes(1_u64))
605 }
606 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
607 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
608 fn set_accept_ownership() -> Weight {
609 // Proof Size summary in bytes:
610 // Measured: `0`
611 // Estimated: `3517`
612 // Minimum execution time: 9_845_000 picoseconds.
613 Weight::from_parts(10_228_000, 3517)
614 .saturating_add(T::DbWeight::get().reads(1_u64))
615 .saturating_add(T::DbWeight::get().writes(1_u64))
616 }
617 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
618 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
619 /// Storage: `Nfts::Collection` (r:1 w:0)
620 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
621 fn set_collection_max_supply() -> Weight {
622 // Proof Size summary in bytes:
623 // Measured: `248`
624 // Estimated: `3549`
625 // Minimum execution time: 16_666_000 picoseconds.
626 Weight::from_parts(17_328_000, 3549)
627 .saturating_add(T::DbWeight::get().reads(2_u64))
628 .saturating_add(T::DbWeight::get().writes(1_u64))
629 }
630 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
631 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
632 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
633 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
634 fn update_mint_settings() -> Weight {
635 // Proof Size summary in bytes:
636 // Measured: `231`
637 // Estimated: `3538`
638 // Minimum execution time: 15_969_000 picoseconds.
639 Weight::from_parts(16_717_000, 3538)
640 .saturating_add(T::DbWeight::get().reads(2_u64))
641 .saturating_add(T::DbWeight::get().writes(1_u64))
642 }
643 /// Storage: `Nfts::Item` (r:1 w:0)
644 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
645 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
646 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
647 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
648 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
649 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
650 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
651 fn set_price() -> Weight {
652 // Proof Size summary in bytes:
653 // Measured: `426`
654 // Estimated: `4326`
655 // Minimum execution time: 21_833_000 picoseconds.
656 Weight::from_parts(22_580_000, 4326)
657 .saturating_add(T::DbWeight::get().reads(3_u64))
658 .saturating_add(T::DbWeight::get().writes(1_u64))
659 }
660 /// Storage: `Nfts::Item` (r:1 w:1)
661 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
662 /// Storage: `Nfts::ItemPriceOf` (r:1 w:1)
663 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
664 /// Storage: `Nfts::Collection` (r:1 w:0)
665 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
666 /// Storage: `Nfts::Attribute` (r:1 w:0)
667 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
668 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
669 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
670 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
671 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
672 /// Storage: `Nfts::Account` (r:0 w:2)
673 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
674 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
675 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
676 fn buy_item() -> Weight {
677 // Proof Size summary in bytes:
678 // Measured: `613`
679 // Estimated: `4326`
680 // Minimum execution time: 50_016_000 picoseconds.
681 Weight::from_parts(51_155_000, 4326)
682 .saturating_add(T::DbWeight::get().reads(6_u64))
683 .saturating_add(T::DbWeight::get().writes(5_u64))
684 }
685 /// The range of component `n` is `[0, 10]`.
686 fn pay_tips(n: u32, ) -> Weight {
687 // Proof Size summary in bytes:
688 // Measured: `0`
689 // Estimated: `0`
690 // Minimum execution time: 1_695_000 picoseconds.
691 Weight::from_parts(2_625_514, 0)
692 // Standard Error: 5_213
693 .saturating_add(Weight::from_parts(1_843_482, 0).saturating_mul(n.into()))
694 }
695 /// Storage: `Nfts::Item` (r:2 w:0)
696 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
697 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
698 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
699 fn create_swap() -> Weight {
700 // Proof Size summary in bytes:
701 // Measured: `402`
702 // Estimated: `7662`
703 // Minimum execution time: 18_600_000 picoseconds.
704 Weight::from_parts(19_453_000, 7662)
705 .saturating_add(T::DbWeight::get().reads(2_u64))
706 .saturating_add(T::DbWeight::get().writes(1_u64))
707 }
708 /// Storage: `Nfts::PendingSwapOf` (r:1 w:1)
709 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
710 /// Storage: `Nfts::Item` (r:1 w:0)
711 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
712 fn cancel_swap() -> Weight {
713 // Proof Size summary in bytes:
714 // Measured: `421`
715 // Estimated: `4326`
716 // Minimum execution time: 18_476_000 picoseconds.
717 Weight::from_parts(19_091_000, 4326)
718 .saturating_add(T::DbWeight::get().reads(2_u64))
719 .saturating_add(T::DbWeight::get().writes(1_u64))
720 }
721 /// Storage: `Nfts::Item` (r:2 w:2)
722 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
723 /// Storage: `Nfts::PendingSwapOf` (r:1 w:2)
724 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
725 /// Storage: `Nfts::Collection` (r:1 w:0)
726 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
727 /// Storage: `Nfts::Attribute` (r:2 w:0)
728 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
729 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
730 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
731 /// Storage: `Nfts::ItemConfigOf` (r:2 w:0)
732 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
733 /// Storage: `Nfts::Account` (r:0 w:4)
734 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
735 /// Storage: `Nfts::ItemPriceOf` (r:0 w:2)
736 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
737 fn claim_swap() -> Weight {
738 // Proof Size summary in bytes:
739 // Measured: `742`
740 // Estimated: `7662`
741 // Minimum execution time: 81_691_000 picoseconds.
742 Weight::from_parts(84_109_000, 7662)
743 .saturating_add(T::DbWeight::get().reads(9_u64))
744 .saturating_add(T::DbWeight::get().writes(10_u64))
745 }
746 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:0)
747 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
748 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
749 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
750 /// Storage: `Nfts::Item` (r:1 w:1)
751 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
752 /// Storage: `Nfts::Collection` (r:1 w:1)
753 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
754 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
755 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
756 /// Storage: `System::Account` (r:1 w:1)
757 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
758 /// Storage: `Nfts::Attribute` (r:10 w:10)
759 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
760 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
761 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
762 /// Storage: `Nfts::Account` (r:0 w:1)
763 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
764 /// The range of component `n` is `[0, 10]`.
765 fn mint_pre_signed(n: u32, ) -> Weight {
766 // Proof Size summary in bytes:
767 // Measured: `464`
768 // Estimated: `6078 + n * (2954 ±0)`
769 // Minimum execution time: 125_533_000 picoseconds.
770 Weight::from_parts(130_187_155, 6078)
771 // Standard Error: 46_370
772 .saturating_add(Weight::from_parts(33_019_771, 0).saturating_mul(n.into()))
773 .saturating_add(T::DbWeight::get().reads(8_u64))
774 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
775 .saturating_add(T::DbWeight::get().writes(6_u64))
776 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
777 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
778 }
779 /// Storage: `Nfts::Item` (r:1 w:0)
780 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
781 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
782 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
783 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
784 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
785 /// Storage: `Nfts::Collection` (r:1 w:1)
786 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
787 /// Storage: `Nfts::Attribute` (r:10 w:10)
788 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
789 /// Storage: `System::Account` (r:1 w:1)
790 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
791 /// The range of component `n` is `[0, 10]`.
792 fn set_attributes_pre_signed(n: u32, ) -> Weight {
793 // Proof Size summary in bytes:
794 // Measured: `496`
795 // Estimated: `4326 + n * (2954 ±0)`
796 // Minimum execution time: 65_098_000 picoseconds.
797 Weight::from_parts(74_929_657, 4326)
798 // Standard Error: 61_212
799 .saturating_add(Weight::from_parts(31_387_885, 0).saturating_mul(n.into()))
800 .saturating_add(T::DbWeight::get().reads(4_u64))
801 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
802 .saturating_add(T::DbWeight::get().writes(2_u64))
803 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
804 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
805 }
806}
807
808// For backwards compatibility and tests.
809impl WeightInfo for () {
810 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
811 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
812 /// Storage: `Nfts::Collection` (r:1 w:1)
813 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
814 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
815 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
816 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
817 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
818 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
819 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
820 fn create() -> Weight {
821 // Proof Size summary in bytes:
822 // Measured: `52`
823 // Estimated: `3549`
824 // Minimum execution time: 29_866_000 picoseconds.
825 Weight::from_parts(30_591_000, 3549)
826 .saturating_add(RocksDbWeight::get().reads(2_u64))
827 .saturating_add(RocksDbWeight::get().writes(5_u64))
828 }
829 /// Storage: `Nfts::NextCollectionId` (r:1 w:1)
830 /// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
831 /// Storage: `Nfts::Collection` (r:1 w:1)
832 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
833 /// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
834 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
835 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
836 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
837 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
838 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
839 fn force_create() -> Weight {
840 // Proof Size summary in bytes:
841 // Measured: `0`
842 // Estimated: `3549`
843 // Minimum execution time: 15_636_000 picoseconds.
844 Weight::from_parts(16_162_000, 3549)
845 .saturating_add(RocksDbWeight::get().reads(2_u64))
846 .saturating_add(RocksDbWeight::get().writes(5_u64))
847 }
848 /// Storage: `Nfts::Collection` (r:1 w:1)
849 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
850 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
851 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
852 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:1)
853 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
854 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
855 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
856 /// Storage: `Nfts::ItemConfigOf` (r:1000 w:1000)
857 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
858 /// Storage: `Nfts::CollectionMetadataOf` (r:0 w:1)
859 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
860 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
861 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
862 /// Storage: `Nfts::CollectionAccount` (r:0 w:1)
863 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
864 /// The range of component `m` is `[0, 1000]`.
865 /// The range of component `c` is `[0, 1000]`.
866 /// The range of component `a` is `[0, 1000]`.
867 fn destroy(m: u32, c: u32, a: u32, ) -> Weight {
868 // Proof Size summary in bytes:
869 // Measured: `32112 + a * (366 ±0)`
870 // Estimated: `2523990 + a * (2954 ±0)`
871 // Minimum execution time: 1_304_899_000 picoseconds.
872 Weight::from_parts(1_206_247_822, 2523990)
873 // Standard Error: 4_591
874 .saturating_add(Weight::from_parts(49_431, 0).saturating_mul(m.into()))
875 // Standard Error: 4_591
876 .saturating_add(Weight::from_parts(24_260, 0).saturating_mul(c.into()))
877 // Standard Error: 4_591
878 .saturating_add(Weight::from_parts(7_104_726, 0).saturating_mul(a.into()))
879 .saturating_add(RocksDbWeight::get().reads(1004_u64))
880 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(a.into())))
881 .saturating_add(RocksDbWeight::get().writes(1005_u64))
882 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(a.into())))
883 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(a.into()))
884 }
885 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
886 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
887 /// Storage: `Nfts::Item` (r:1 w:1)
888 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
889 /// Storage: `Nfts::Collection` (r:1 w:1)
890 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
891 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
892 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
893 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
894 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
895 /// Storage: `Nfts::Account` (r:0 w:1)
896 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
897 fn mint() -> Weight {
898 // Proof Size summary in bytes:
899 // Measured: `362`
900 // Estimated: `4326`
901 // Minimum execution time: 48_441_000 picoseconds.
902 Weight::from_parts(49_363_000, 4326)
903 .saturating_add(RocksDbWeight::get().reads(5_u64))
904 .saturating_add(RocksDbWeight::get().writes(4_u64))
905 }
906 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
907 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
908 /// Storage: `Nfts::Item` (r:1 w:1)
909 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
910 /// Storage: `Nfts::Collection` (r:1 w:1)
911 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
912 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
913 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
914 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
915 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
916 /// Storage: `Nfts::Account` (r:0 w:1)
917 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
918 fn force_mint() -> Weight {
919 // Proof Size summary in bytes:
920 // Measured: `362`
921 // Estimated: `4326`
922 // Minimum execution time: 46_608_000 picoseconds.
923 Weight::from_parts(47_860_000, 4326)
924 .saturating_add(RocksDbWeight::get().reads(5_u64))
925 .saturating_add(RocksDbWeight::get().writes(4_u64))
926 }
927 /// Storage: `Nfts::Attribute` (r:1 w:0)
928 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
929 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
930 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
931 /// Storage: `Nfts::Collection` (r:1 w:1)
932 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
933 /// Storage: `Nfts::Item` (r:1 w:1)
934 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
935 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
936 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
937 /// Storage: `Nfts::Account` (r:0 w:1)
938 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
939 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
940 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
941 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:0 w:1)
942 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
943 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
944 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
945 fn burn() -> Weight {
946 // Proof Size summary in bytes:
947 // Measured: `472`
948 // Estimated: `4326`
949 // Minimum execution time: 51_492_000 picoseconds.
950 Weight::from_parts(52_170_000, 4326)
951 .saturating_add(RocksDbWeight::get().reads(5_u64))
952 .saturating_add(RocksDbWeight::get().writes(7_u64))
953 }
954 /// Storage: `Nfts::Collection` (r:1 w:0)
955 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
956 /// Storage: `Nfts::Attribute` (r:1 w:0)
957 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
958 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
959 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
960 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
961 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
962 /// Storage: `Nfts::Item` (r:1 w:1)
963 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
964 /// Storage: `Nfts::Account` (r:0 w:2)
965 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
966 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
967 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
968 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
969 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
970 fn transfer() -> Weight {
971 // Proof Size summary in bytes:
972 // Measured: `501`
973 // Estimated: `4326`
974 // Minimum execution time: 40_207_000 picoseconds.
975 Weight::from_parts(41_360_000, 4326)
976 .saturating_add(RocksDbWeight::get().reads(5_u64))
977 .saturating_add(RocksDbWeight::get().writes(5_u64))
978 }
979 /// Storage: `Nfts::Collection` (r:1 w:0)
980 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
981 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
982 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
983 /// Storage: `Nfts::Item` (r:5000 w:5000)
984 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
985 /// The range of component `i` is `[0, 5000]`.
986 fn redeposit(i: u32, ) -> Weight {
987 // Proof Size summary in bytes:
988 // Measured: `671 + i * (108 ±0)`
989 // Estimated: `3549 + i * (3336 ±0)`
990 // Minimum execution time: 14_100_000 picoseconds.
991 Weight::from_parts(14_412_000, 3549)
992 // Standard Error: 20_746
993 .saturating_add(Weight::from_parts(17_706_123, 0).saturating_mul(i.into()))
994 .saturating_add(RocksDbWeight::get().reads(2_u64))
995 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(i.into())))
996 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
997 .saturating_add(Weight::from_parts(0, 3336).saturating_mul(i.into()))
998 }
999 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1000 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1001 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
1002 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1003 fn lock_item_transfer() -> Weight {
1004 // Proof Size summary in bytes:
1005 // Measured: `343`
1006 // Estimated: `3534`
1007 // Minimum execution time: 18_777_000 picoseconds.
1008 Weight::from_parts(19_084_000, 3534)
1009 .saturating_add(RocksDbWeight::get().reads(2_u64))
1010 .saturating_add(RocksDbWeight::get().writes(1_u64))
1011 }
1012 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1013 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1014 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
1015 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1016 fn unlock_item_transfer() -> Weight {
1017 // Proof Size summary in bytes:
1018 // Measured: `343`
1019 // Estimated: `3534`
1020 // Minimum execution time: 18_460_000 picoseconds.
1021 Weight::from_parts(18_907_000, 3534)
1022 .saturating_add(RocksDbWeight::get().reads(2_u64))
1023 .saturating_add(RocksDbWeight::get().writes(1_u64))
1024 }
1025 /// Storage: `Nfts::Collection` (r:1 w:0)
1026 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1027 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
1028 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1029 fn lock_collection() -> Weight {
1030 // Proof Size summary in bytes:
1031 // Measured: `248`
1032 // Estimated: `3549`
1033 // Minimum execution time: 15_010_000 picoseconds.
1034 Weight::from_parts(15_523_000, 3549)
1035 .saturating_add(RocksDbWeight::get().reads(2_u64))
1036 .saturating_add(RocksDbWeight::get().writes(1_u64))
1037 }
1038 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
1039 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
1040 /// Storage: `Nfts::Collection` (r:1 w:1)
1041 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1042 /// Storage: `System::Account` (r:1 w:1)
1043 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1044 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
1045 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
1046 fn transfer_ownership() -> Weight {
1047 // Proof Size summary in bytes:
1048 // Measured: `399`
1049 // Estimated: `3593`
1050 // Minimum execution time: 24_987_000 picoseconds.
1051 Weight::from_parts(25_668_000, 3593)
1052 .saturating_add(RocksDbWeight::get().reads(3_u64))
1053 .saturating_add(RocksDbWeight::get().writes(5_u64))
1054 }
1055 /// Storage: `Nfts::Collection` (r:1 w:1)
1056 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1057 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:4)
1058 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1059 fn set_team() -> Weight {
1060 // Proof Size summary in bytes:
1061 // Measured: `277`
1062 // Estimated: `6078`
1063 // Minimum execution time: 36_287_000 picoseconds.
1064 Weight::from_parts(36_653_000, 6078)
1065 .saturating_add(RocksDbWeight::get().reads(3_u64))
1066 .saturating_add(RocksDbWeight::get().writes(5_u64))
1067 }
1068 /// Storage: `Nfts::Collection` (r:1 w:1)
1069 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1070 /// Storage: `Nfts::CollectionAccount` (r:0 w:2)
1071 /// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
1072 fn force_collection_owner() -> Weight {
1073 // Proof Size summary in bytes:
1074 // Measured: `219`
1075 // Estimated: `3549`
1076 // Minimum execution time: 15_143_000 picoseconds.
1077 Weight::from_parts(15_551_000, 3549)
1078 .saturating_add(RocksDbWeight::get().reads(1_u64))
1079 .saturating_add(RocksDbWeight::get().writes(3_u64))
1080 }
1081 /// Storage: `Nfts::Collection` (r:1 w:0)
1082 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1083 /// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
1084 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1085 fn force_collection_config() -> Weight {
1086 // Proof Size summary in bytes:
1087 // Measured: `184`
1088 // Estimated: `3549`
1089 // Minimum execution time: 11_145_000 picoseconds.
1090 Weight::from_parts(11_395_000, 3549)
1091 .saturating_add(RocksDbWeight::get().reads(1_u64))
1092 .saturating_add(RocksDbWeight::get().writes(1_u64))
1093 }
1094 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1095 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1096 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
1097 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1098 fn lock_item_properties() -> Weight {
1099 // Proof Size summary in bytes:
1100 // Measured: `343`
1101 // Estimated: `3534`
1102 // Minimum execution time: 17_174_000 picoseconds.
1103 Weight::from_parts(17_738_000, 3534)
1104 .saturating_add(RocksDbWeight::get().reads(2_u64))
1105 .saturating_add(RocksDbWeight::get().writes(1_u64))
1106 }
1107 /// Storage: `Nfts::Collection` (r:1 w:1)
1108 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1109 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1110 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1111 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1112 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1113 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1114 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1115 /// Storage: `Nfts::Attribute` (r:1 w:1)
1116 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1117 fn set_attribute() -> Weight {
1118 // Proof Size summary in bytes:
1119 // Measured: `447`
1120 // Estimated: `3944`
1121 // Minimum execution time: 49_013_000 picoseconds.
1122 Weight::from_parts(50_124_000, 3944)
1123 .saturating_add(RocksDbWeight::get().reads(5_u64))
1124 .saturating_add(RocksDbWeight::get().writes(2_u64))
1125 }
1126 /// Storage: `Nfts::Collection` (r:1 w:1)
1127 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1128 /// Storage: `Nfts::Attribute` (r:1 w:1)
1129 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1130 fn force_set_attribute() -> Weight {
1131 // Proof Size summary in bytes:
1132 // Measured: `252`
1133 // Estimated: `3944`
1134 // Minimum execution time: 23_738_000 picoseconds.
1135 Weight::from_parts(24_558_000, 3944)
1136 .saturating_add(RocksDbWeight::get().reads(2_u64))
1137 .saturating_add(RocksDbWeight::get().writes(2_u64))
1138 }
1139 /// Storage: `Nfts::Attribute` (r:1 w:1)
1140 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1141 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1142 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1143 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1144 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1145 /// Storage: `Nfts::Collection` (r:1 w:1)
1146 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1147 fn clear_attribute() -> Weight {
1148 // Proof Size summary in bytes:
1149 // Measured: `891`
1150 // Estimated: `3944`
1151 // Minimum execution time: 45_483_000 picoseconds.
1152 Weight::from_parts(46_308_000, 3944)
1153 .saturating_add(RocksDbWeight::get().reads(4_u64))
1154 .saturating_add(RocksDbWeight::get().writes(2_u64))
1155 }
1156 /// Storage: `Nfts::Item` (r:1 w:0)
1157 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1158 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
1159 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
1160 fn approve_item_attributes() -> Weight {
1161 // Proof Size summary in bytes:
1162 // Measured: `289`
1163 // Estimated: `4326`
1164 // Minimum execution time: 15_153_000 picoseconds.
1165 Weight::from_parts(15_686_000, 4326)
1166 .saturating_add(RocksDbWeight::get().reads(2_u64))
1167 .saturating_add(RocksDbWeight::get().writes(1_u64))
1168 }
1169 /// Storage: `Nfts::Item` (r:1 w:0)
1170 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1171 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
1172 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
1173 /// Storage: `Nfts::Attribute` (r:1001 w:1000)
1174 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1175 /// Storage: `System::Account` (r:1 w:1)
1176 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1177 /// The range of component `n` is `[0, 1000]`.
1178 fn cancel_item_attributes_approval(n: u32, ) -> Weight {
1179 // Proof Size summary in bytes:
1180 // Measured: `668 + n * (398 ±0)`
1181 // Estimated: `4326 + n * (2954 ±0)`
1182 // Minimum execution time: 23_720_000 picoseconds.
1183 Weight::from_parts(24_121_000, 4326)
1184 // Standard Error: 4_581
1185 .saturating_add(Weight::from_parts(7_030_724, 0).saturating_mul(n.into()))
1186 .saturating_add(RocksDbWeight::get().reads(4_u64))
1187 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
1188 .saturating_add(RocksDbWeight::get().writes(2_u64))
1189 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
1190 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
1191 }
1192 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1193 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1194 /// Storage: `Nfts::Collection` (r:1 w:1)
1195 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1196 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1197 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1198 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1199 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1200 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
1201 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
1202 fn set_metadata() -> Weight {
1203 // Proof Size summary in bytes:
1204 // Measured: `447`
1205 // Estimated: `3812`
1206 // Minimum execution time: 40_386_000 picoseconds.
1207 Weight::from_parts(40_903_000, 3812)
1208 .saturating_add(RocksDbWeight::get().reads(5_u64))
1209 .saturating_add(RocksDbWeight::get().writes(2_u64))
1210 }
1211 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1212 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1213 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
1214 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
1215 /// Storage: `Nfts::Collection` (r:1 w:1)
1216 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1217 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1218 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1219 fn clear_metadata() -> Weight {
1220 // Proof Size summary in bytes:
1221 // Measured: `757`
1222 // Estimated: `3812`
1223 // Minimum execution time: 38_438_000 picoseconds.
1224 Weight::from_parts(39_323_000, 3812)
1225 .saturating_add(RocksDbWeight::get().reads(4_u64))
1226 .saturating_add(RocksDbWeight::get().writes(2_u64))
1227 }
1228 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1229 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1230 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1231 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1232 /// Storage: `Nfts::Collection` (r:1 w:1)
1233 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1234 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
1235 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
1236 fn set_collection_metadata() -> Weight {
1237 // Proof Size summary in bytes:
1238 // Measured: `306`
1239 // Estimated: `3759`
1240 // Minimum execution time: 36_043_000 picoseconds.
1241 Weight::from_parts(36_498_000, 3759)
1242 .saturating_add(RocksDbWeight::get().reads(4_u64))
1243 .saturating_add(RocksDbWeight::get().writes(2_u64))
1244 }
1245 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1246 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1247 /// Storage: `Nfts::Collection` (r:1 w:1)
1248 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1249 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1250 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1251 /// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
1252 /// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
1253 fn clear_collection_metadata() -> Weight {
1254 // Proof Size summary in bytes:
1255 // Measured: `624`
1256 // Estimated: `3759`
1257 // Minimum execution time: 35_275_000 picoseconds.
1258 Weight::from_parts(35_879_000, 3759)
1259 .saturating_add(RocksDbWeight::get().reads(4_u64))
1260 .saturating_add(RocksDbWeight::get().writes(2_u64))
1261 }
1262 /// Storage: `Nfts::Item` (r:1 w:1)
1263 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1264 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1265 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1266 fn approve_transfer() -> Weight {
1267 // Proof Size summary in bytes:
1268 // Measured: `318`
1269 // Estimated: `4326`
1270 // Minimum execution time: 18_190_000 picoseconds.
1271 Weight::from_parts(18_717_000, 4326)
1272 .saturating_add(RocksDbWeight::get().reads(2_u64))
1273 .saturating_add(RocksDbWeight::get().writes(1_u64))
1274 }
1275 /// Storage: `Nfts::Item` (r:1 w:1)
1276 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1277 fn cancel_approval() -> Weight {
1278 // Proof Size summary in bytes:
1279 // Measured: `326`
1280 // Estimated: `4326`
1281 // Minimum execution time: 15_088_000 picoseconds.
1282 Weight::from_parts(15_564_000, 4326)
1283 .saturating_add(RocksDbWeight::get().reads(1_u64))
1284 .saturating_add(RocksDbWeight::get().writes(1_u64))
1285 }
1286 /// Storage: `Nfts::Item` (r:1 w:1)
1287 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1288 fn clear_all_transfer_approvals() -> Weight {
1289 // Proof Size summary in bytes:
1290 // Measured: `326`
1291 // Estimated: `4326`
1292 // Minimum execution time: 14_365_000 picoseconds.
1293 Weight::from_parts(14_920_000, 4326)
1294 .saturating_add(RocksDbWeight::get().reads(1_u64))
1295 .saturating_add(RocksDbWeight::get().writes(1_u64))
1296 }
1297 /// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
1298 /// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
1299 fn set_accept_ownership() -> Weight {
1300 // Proof Size summary in bytes:
1301 // Measured: `0`
1302 // Estimated: `3517`
1303 // Minimum execution time: 9_845_000 picoseconds.
1304 Weight::from_parts(10_228_000, 3517)
1305 .saturating_add(RocksDbWeight::get().reads(1_u64))
1306 .saturating_add(RocksDbWeight::get().writes(1_u64))
1307 }
1308 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
1309 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1310 /// Storage: `Nfts::Collection` (r:1 w:0)
1311 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1312 fn set_collection_max_supply() -> Weight {
1313 // Proof Size summary in bytes:
1314 // Measured: `248`
1315 // Estimated: `3549`
1316 // Minimum execution time: 16_666_000 picoseconds.
1317 Weight::from_parts(17_328_000, 3549)
1318 .saturating_add(RocksDbWeight::get().reads(2_u64))
1319 .saturating_add(RocksDbWeight::get().writes(1_u64))
1320 }
1321 /// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
1322 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1323 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
1324 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1325 fn update_mint_settings() -> Weight {
1326 // Proof Size summary in bytes:
1327 // Measured: `231`
1328 // Estimated: `3538`
1329 // Minimum execution time: 15_969_000 picoseconds.
1330 Weight::from_parts(16_717_000, 3538)
1331 .saturating_add(RocksDbWeight::get().reads(2_u64))
1332 .saturating_add(RocksDbWeight::get().writes(1_u64))
1333 }
1334 /// Storage: `Nfts::Item` (r:1 w:0)
1335 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1336 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1337 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1338 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1339 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1340 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
1341 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
1342 fn set_price() -> Weight {
1343 // Proof Size summary in bytes:
1344 // Measured: `426`
1345 // Estimated: `4326`
1346 // Minimum execution time: 21_833_000 picoseconds.
1347 Weight::from_parts(22_580_000, 4326)
1348 .saturating_add(RocksDbWeight::get().reads(3_u64))
1349 .saturating_add(RocksDbWeight::get().writes(1_u64))
1350 }
1351 /// Storage: `Nfts::Item` (r:1 w:1)
1352 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1353 /// Storage: `Nfts::ItemPriceOf` (r:1 w:1)
1354 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
1355 /// Storage: `Nfts::Collection` (r:1 w:0)
1356 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1357 /// Storage: `Nfts::Attribute` (r:1 w:0)
1358 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1359 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1360 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1361 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
1362 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1363 /// Storage: `Nfts::Account` (r:0 w:2)
1364 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
1365 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
1366 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
1367 fn buy_item() -> Weight {
1368 // Proof Size summary in bytes:
1369 // Measured: `613`
1370 // Estimated: `4326`
1371 // Minimum execution time: 50_016_000 picoseconds.
1372 Weight::from_parts(51_155_000, 4326)
1373 .saturating_add(RocksDbWeight::get().reads(6_u64))
1374 .saturating_add(RocksDbWeight::get().writes(5_u64))
1375 }
1376 /// The range of component `n` is `[0, 10]`.
1377 fn pay_tips(n: u32, ) -> Weight {
1378 // Proof Size summary in bytes:
1379 // Measured: `0`
1380 // Estimated: `0`
1381 // Minimum execution time: 1_695_000 picoseconds.
1382 Weight::from_parts(2_625_514, 0)
1383 // Standard Error: 5_213
1384 .saturating_add(Weight::from_parts(1_843_482, 0).saturating_mul(n.into()))
1385 }
1386 /// Storage: `Nfts::Item` (r:2 w:0)
1387 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1388 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
1389 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
1390 fn create_swap() -> Weight {
1391 // Proof Size summary in bytes:
1392 // Measured: `402`
1393 // Estimated: `7662`
1394 // Minimum execution time: 18_600_000 picoseconds.
1395 Weight::from_parts(19_453_000, 7662)
1396 .saturating_add(RocksDbWeight::get().reads(2_u64))
1397 .saturating_add(RocksDbWeight::get().writes(1_u64))
1398 }
1399 /// Storage: `Nfts::PendingSwapOf` (r:1 w:1)
1400 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
1401 /// Storage: `Nfts::Item` (r:1 w:0)
1402 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1403 fn cancel_swap() -> Weight {
1404 // Proof Size summary in bytes:
1405 // Measured: `421`
1406 // Estimated: `4326`
1407 // Minimum execution time: 18_476_000 picoseconds.
1408 Weight::from_parts(19_091_000, 4326)
1409 .saturating_add(RocksDbWeight::get().reads(2_u64))
1410 .saturating_add(RocksDbWeight::get().writes(1_u64))
1411 }
1412 /// Storage: `Nfts::Item` (r:2 w:2)
1413 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1414 /// Storage: `Nfts::PendingSwapOf` (r:1 w:2)
1415 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
1416 /// Storage: `Nfts::Collection` (r:1 w:0)
1417 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1418 /// Storage: `Nfts::Attribute` (r:2 w:0)
1419 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1420 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1421 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1422 /// Storage: `Nfts::ItemConfigOf` (r:2 w:0)
1423 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1424 /// Storage: `Nfts::Account` (r:0 w:4)
1425 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
1426 /// Storage: `Nfts::ItemPriceOf` (r:0 w:2)
1427 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
1428 fn claim_swap() -> Weight {
1429 // Proof Size summary in bytes:
1430 // Measured: `742`
1431 // Estimated: `7662`
1432 // Minimum execution time: 81_691_000 picoseconds.
1433 Weight::from_parts(84_109_000, 7662)
1434 .saturating_add(RocksDbWeight::get().reads(9_u64))
1435 .saturating_add(RocksDbWeight::get().writes(10_u64))
1436 }
1437 /// Storage: `Nfts::CollectionRoleOf` (r:2 w:0)
1438 /// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
1439 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1440 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1441 /// Storage: `Nfts::Item` (r:1 w:1)
1442 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1443 /// Storage: `Nfts::Collection` (r:1 w:1)
1444 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1445 /// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
1446 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
1447 /// Storage: `System::Account` (r:1 w:1)
1448 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1449 /// Storage: `Nfts::Attribute` (r:10 w:10)
1450 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1451 /// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
1452 /// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
1453 /// Storage: `Nfts::Account` (r:0 w:1)
1454 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
1455 /// The range of component `n` is `[0, 10]`.
1456 fn mint_pre_signed(n: u32, ) -> Weight {
1457 // Proof Size summary in bytes:
1458 // Measured: `464`
1459 // Estimated: `6078 + n * (2954 ±0)`
1460 // Minimum execution time: 125_533_000 picoseconds.
1461 Weight::from_parts(130_187_155, 6078)
1462 // Standard Error: 46_370
1463 .saturating_add(Weight::from_parts(33_019_771, 0).saturating_mul(n.into()))
1464 .saturating_add(RocksDbWeight::get().reads(8_u64))
1465 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
1466 .saturating_add(RocksDbWeight::get().writes(6_u64))
1467 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
1468 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
1469 }
1470 /// Storage: `Nfts::Item` (r:1 w:0)
1471 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
1472 /// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
1473 /// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(681), added: 3156, mode: `MaxEncodedLen`)
1474 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
1475 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
1476 /// Storage: `Nfts::Collection` (r:1 w:1)
1477 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
1478 /// Storage: `Nfts::Attribute` (r:10 w:10)
1479 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
1480 /// Storage: `System::Account` (r:1 w:1)
1481 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1482 /// The range of component `n` is `[0, 10]`.
1483 fn set_attributes_pre_signed(n: u32, ) -> Weight {
1484 // Proof Size summary in bytes:
1485 // Measured: `496`
1486 // Estimated: `4326 + n * (2954 ±0)`
1487 // Minimum execution time: 65_098_000 picoseconds.
1488 Weight::from_parts(74_929_657, 4326)
1489 // Standard Error: 61_212
1490 .saturating_add(Weight::from_parts(31_387_885, 0).saturating_mul(n.into()))
1491 .saturating_add(RocksDbWeight::get().reads(4_u64))
1492 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
1493 .saturating_add(RocksDbWeight::get().writes(2_u64))
1494 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
1495 .saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
1496 }
1497}