git.delta.rocks / unique-network / refs/commits / 5f8748ceb660

difftreelog

feat(rmrk) set benchmark generated weights

Daniel Shiposha2022-06-10parent: #e62a25f.patch.diff
in: master

2 files changed

modifiedpallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/lib.rs
+++ b/pallets/proxy-rmrk-core/src/lib.rs
@@ -238,8 +238,8 @@
 		}
 
 		/// destroy collection
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::destroy_collection())]
 		pub fn destroy_collection(
 			origin: OriginFor<T>,
 			collection_id: RmrkCollectionId,
@@ -270,8 +270,8 @@
 		/// - `origin`: sender of the transaction
 		/// - `collection_id`: collection id of the nft to change issuer of
 		/// - `new_issuer`: Collection's new issuer
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::change_collection_issuer())]
 		pub fn change_collection_issuer(
 			origin: OriginFor<T>,
 			collection_id: RmrkCollectionId,
@@ -301,8 +301,8 @@
 		}
 
 		/// lock collection
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::lock_collection())]
 		pub fn lock_collection(
 			origin: OriginFor<T>,
 			collection_id: RmrkCollectionId,
@@ -342,8 +342,8 @@
 		/// - `royalty`: Permillage reward from each trade for the Recipient
 		/// - `metadata`: Arbitrary data about an nft, e.g. IPFS hash
 		/// - `transferable`: Ability to transfer this NFT
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::mint_nft())]
 		pub fn mint_nft(
 			origin: OriginFor<T>,
 			owner: T::AccountId,
@@ -440,8 +440,8 @@
 		/// - `rmrk_collection_id`: collection id of the nft to be transferred
 		/// - `rmrk_nft_id`: nft id of the nft to be transferred
 		/// - `new_owner`: new owner of the nft which can be either an account or a NFT
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::send())]
 		pub fn send(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -552,8 +552,8 @@
 		/// - `rmrk_nft_id`: nft id of the nft to be accepted
 		/// - `new_owner`: either origin's account ID or origin-owned NFT, whichever the NFT was
 		///   sent to
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::accept_nft())]
 		pub fn accept_nft(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -664,8 +664,8 @@
 		}
 
 		/// accept the addition of a new resource to an existing NFT
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::accept_resource())]
 		pub fn accept_resource(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -723,8 +723,8 @@
 		}
 
 		/// accept the removal of a resource of an existing NFT
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::accept_resource_removal())]
 		pub fn accept_resource_removal(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -788,8 +788,8 @@
 		}
 
 		/// set a custom value on an NFT
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::set_property())]
 		pub fn set_property(
 			origin: OriginFor<T>,
 			#[pallet::compact] rmrk_collection_id: RmrkCollectionId,
@@ -848,8 +848,8 @@
 		}
 
 		/// set a different order of resource priority
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::set_priority())]
 		pub fn set_priority(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -887,8 +887,8 @@
 		}
 
 		/// Create basic resource
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::add_basic_resource())]
 		pub fn add_basic_resource(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -925,8 +925,8 @@
 		}
 
 		/// Create composable resource
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::add_composable_resource())]
 		pub fn add_composable_resource(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -965,8 +965,8 @@
 		}
 
 		/// Create slot resource
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::add_slot_resource())]
 		pub fn add_slot_resource(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
@@ -1005,8 +1005,8 @@
 		}
 
 		/// remove resource
-		#[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]
 		#[transactional]
+		#[pallet::weight(<SelfWeightOf<T>>::remove_resource())]
 		pub fn remove_resource(
 			origin: OriginFor<T>,
 			rmrk_collection_id: RmrkCollectionId,
modifiedpallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth
3//! Autogenerated weights for pallet_proxy_rmrk_core3//! Autogenerated weights for pallet_proxy_rmrk_core
4//!4//!
5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
6//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-10, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
88
9// Executed Command:9// Executed Command:
34/// Weight functions needed for pallet_proxy_rmrk_core.34/// Weight functions needed for pallet_proxy_rmrk_core.
35pub trait WeightInfo {35pub trait WeightInfo {
36 fn create_collection() -> Weight;36 fn create_collection() -> Weight;
37 fn destroy_collection() -> Weight;
38 fn change_collection_issuer() -> Weight;
39 fn lock_collection() -> Weight;
40 fn mint_nft() -> Weight;
41 fn send() -> Weight;
42 fn accept_nft() -> Weight;
43 fn set_property() -> Weight;
44 fn set_priority() -> Weight;
45 fn add_basic_resource() -> Weight;
46 fn add_composable_resource() -> Weight;
47 fn add_slot_resource() -> Weight;
48 fn remove_resource() -> Weight;
49 fn accept_resource() -> Weight;
50 fn accept_resource_removal() -> Weight;
37}51}
3852
39/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.53/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.
49 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)63 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)
50 // Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)64 // Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)
51 fn create_collection() -> Weight {65 fn create_collection() -> Weight {
52 (76_647_000 as Weight)66 (40_146_000 as Weight)
53 .saturating_add(T::DbWeight::get().reads(5 as Weight))67 .saturating_add(T::DbWeight::get().reads(5 as Weight))
54 .saturating_add(T::DbWeight::get().writes(9 as Weight))68 .saturating_add(T::DbWeight::get().writes(9 as Weight))
55 }69 }
70 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
71 // Storage: Common CollectionProperties (r:1 w:1)
72 // Storage: Common CollectionById (r:1 w:1)
73 // Storage: Nonfungible TokenData (r:1 w:0)
74 // Storage: Common DestroyedCollectionCount (r:1 w:1)
75 // Storage: Nonfungible TokensMinted (r:0 w:1)
76 // Storage: Nonfungible TokensBurnt (r:0 w:1)
77 // Storage: Common AdminAmount (r:0 w:1)
78 fn destroy_collection() -> Weight {
79 (44_905_000 as Weight)
80 .saturating_add(T::DbWeight::get().reads(5 as Weight))
81 .saturating_add(T::DbWeight::get().writes(6 as Weight))
82 }
83 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
84 // Storage: Common CollectionById (r:1 w:1)
85 // Storage: Common CollectionProperties (r:1 w:0)
86 fn change_collection_issuer() -> Weight {
87 (22_502_000 as Weight)
88 .saturating_add(T::DbWeight::get().reads(3 as Weight))
89 .saturating_add(T::DbWeight::get().writes(1 as Weight))
90 }
91 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
92 // Storage: Common CollectionProperties (r:1 w:0)
93 // Storage: Common CollectionById (r:1 w:1)
94 // Storage: Nonfungible TokensMinted (r:1 w:0)
95 // Storage: Nonfungible TokensBurnt (r:1 w:0)
96 fn lock_collection() -> Weight {
97 (23_705_000 as Weight)
98 .saturating_add(T::DbWeight::get().reads(5 as Weight))
99 .saturating_add(T::DbWeight::get().writes(1 as Weight))
100 }
101 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
102 // Storage: Common CollectionProperties (r:1 w:0)
103 // Storage: Common CollectionById (r:1 w:0)
104 // Storage: Nonfungible TokensMinted (r:1 w:1)
105 // Storage: Nonfungible AccountBalance (r:1 w:1)
106 // Storage: Nonfungible TokenProperties (r:1 w:1)
107 // Storage: Nonfungible TokenData (r:0 w:1)
108 // Storage: Nonfungible Owned (r:0 w:1)
109 fn mint_nft() -> Weight {
110 (40_727_000 as Weight)
111 .saturating_add(T::DbWeight::get().reads(6 as Weight))
112 .saturating_add(T::DbWeight::get().writes(5 as Weight))
113 }
114 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
115 // Storage: Common CollectionProperties (r:1 w:0)
116 // Storage: Common CollectionById (r:1 w:0)
117 // Storage: Nonfungible TokenData (r:5 w:1)
118 // Storage: Nonfungible TokenProperties (r:1 w:0)
119 // Storage: Nonfungible AccountBalance (r:2 w:2)
120 // Storage: Nonfungible Allowance (r:1 w:0)
121 // Storage: Nonfungible TokenChildren (r:0 w:1)
122 // Storage: Nonfungible Owned (r:0 w:2)
123 fn send() -> Weight {
124 (73_288_000 as Weight)
125 .saturating_add(T::DbWeight::get().reads(12 as Weight))
126 .saturating_add(T::DbWeight::get().writes(6 as Weight))
127 }
128 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)
129 // Storage: Common CollectionProperties (r:1 w:0)
130 // Storage: Common CollectionById (r:2 w:0)
131 // Storage: Nonfungible TokenData (r:6 w:1)
132 // Storage: Nonfungible AccountBalance (r:2 w:2)
133 // Storage: Nonfungible Allowance (r:1 w:0)
134 // Storage: Nonfungible TokenProperties (r:1 w:1)
135 // Storage: Nonfungible TokenChildren (r:0 w:1)
136 // Storage: Nonfungible Owned (r:0 w:2)
137 fn accept_nft() -> Weight {
138 (81_985_000 as Weight)
139 .saturating_add(T::DbWeight::get().reads(15 as Weight))
140 .saturating_add(T::DbWeight::get().writes(7 as Weight))
141 }
142 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
143 // Storage: Common CollectionProperties (r:1 w:0)
144 // Storage: Common CollectionById (r:1 w:0)
145 // Storage: Nonfungible TokenProperties (r:1 w:1)
146 // Storage: Nonfungible TokenData (r:5 w:0)
147 fn set_property() -> Weight {
148 (50_535_000 as Weight)
149 .saturating_add(T::DbWeight::get().reads(9 as Weight))
150 .saturating_add(T::DbWeight::get().writes(1 as Weight))
151 }
152 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
153 // Storage: Common CollectionProperties (r:1 w:0)
154 // Storage: Common CollectionById (r:1 w:0)
155 // Storage: Nonfungible TokenProperties (r:1 w:1)
156 // Storage: Nonfungible TokenData (r:5 w:0)
157 fn set_priority() -> Weight {
158 (49_443_000 as Weight)
159 .saturating_add(T::DbWeight::get().reads(9 as Weight))
160 .saturating_add(T::DbWeight::get().writes(1 as Weight))
161 }
162 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
163 // Storage: Common CollectionProperties (r:1 w:1)
164 // Storage: Common CollectionById (r:1 w:1)
165 // Storage: Nonfungible TokenData (r:5 w:1)
166 // Storage: Nonfungible TokenProperties (r:2 w:2)
167 // Storage: Common CreatedCollectionCount (r:1 w:1)
168 // Storage: Common DestroyedCollectionCount (r:1 w:0)
169 // Storage: System Account (r:2 w:2)
170 // Storage: Nonfungible TokensMinted (r:1 w:1)
171 // Storage: Nonfungible AccountBalance (r:1 w:1)
172 // Storage: Nonfungible Owned (r:0 w:1)
173 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
174 fn add_basic_resource() -> Weight {
175 (104_226_000 as Weight)
176 .saturating_add(T::DbWeight::get().reads(16 as Weight))
177 .saturating_add(T::DbWeight::get().writes(12 as Weight))
178 }
179 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
180 // Storage: Common CollectionProperties (r:1 w:1)
181 // Storage: Common CollectionById (r:1 w:1)
182 // Storage: Nonfungible TokenData (r:5 w:1)
183 // Storage: Nonfungible TokenProperties (r:2 w:2)
184 // Storage: Common CreatedCollectionCount (r:1 w:1)
185 // Storage: Common DestroyedCollectionCount (r:1 w:0)
186 // Storage: System Account (r:2 w:2)
187 // Storage: Nonfungible TokensMinted (r:1 w:1)
188 // Storage: Nonfungible AccountBalance (r:1 w:1)
189 // Storage: Nonfungible Owned (r:0 w:1)
190 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
191 fn add_composable_resource() -> Weight {
192 (105_197_000 as Weight)
193 .saturating_add(T::DbWeight::get().reads(16 as Weight))
194 .saturating_add(T::DbWeight::get().writes(12 as Weight))
195 }
196 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
197 // Storage: Common CollectionProperties (r:1 w:1)
198 // Storage: Common CollectionById (r:1 w:1)
199 // Storage: Nonfungible TokenData (r:5 w:1)
200 // Storage: Nonfungible TokenProperties (r:2 w:2)
201 // Storage: Common CreatedCollectionCount (r:1 w:1)
202 // Storage: Common DestroyedCollectionCount (r:1 w:0)
203 // Storage: System Account (r:2 w:2)
204 // Storage: Nonfungible TokensMinted (r:1 w:1)
205 // Storage: Nonfungible AccountBalance (r:1 w:1)
206 // Storage: Nonfungible Owned (r:0 w:1)
207 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
208 fn add_slot_resource() -> Weight {
209 (105_899_000 as Weight)
210 .saturating_add(T::DbWeight::get().reads(16 as Weight))
211 .saturating_add(T::DbWeight::get().writes(12 as Weight))
212 }
213 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
214 // Storage: Common CollectionProperties (r:2 w:0)
215 // Storage: Common CollectionById (r:2 w:0)
216 // Storage: Nonfungible TokenProperties (r:1 w:1)
217 // Storage: Nonfungible TokenData (r:6 w:1)
218 // Storage: Nonfungible TokenChildren (r:1 w:0)
219 // Storage: Nonfungible TokensBurnt (r:1 w:1)
220 // Storage: Nonfungible AccountBalance (r:1 w:1)
221 // Storage: Nonfungible Allowance (r:1 w:0)
222 // Storage: Nonfungible Owned (r:0 w:1)
223 fn remove_resource() -> Weight {
224 (82_997_000 as Weight)
225 .saturating_add(T::DbWeight::get().reads(16 as Weight))
226 .saturating_add(T::DbWeight::get().writes(5 as Weight))
227 }
228 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
229 // Storage: Common CollectionProperties (r:1 w:0)
230 // Storage: Common CollectionById (r:1 w:0)
231 // Storage: Nonfungible TokenData (r:5 w:0)
232 // Storage: Nonfungible TokenProperties (r:2 w:1)
233 fn accept_resource() -> Weight {
234 (56_848_000 as Weight)
235 .saturating_add(T::DbWeight::get().reads(10 as Weight))
236 .saturating_add(T::DbWeight::get().writes(1 as Weight))
237 }
238 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
239 // Storage: Common CollectionProperties (r:2 w:0)
240 // Storage: Common CollectionById (r:2 w:0)
241 // Storage: Nonfungible TokenData (r:6 w:1)
242 // Storage: Nonfungible TokenProperties (r:2 w:1)
243 // Storage: Nonfungible TokenChildren (r:1 w:0)
244 // Storage: Nonfungible TokensBurnt (r:1 w:1)
245 // Storage: Nonfungible AccountBalance (r:1 w:1)
246 // Storage: Nonfungible Allowance (r:1 w:0)
247 // Storage: Nonfungible Owned (r:0 w:1)
248 fn accept_resource_removal() -> Weight {
249 (86_303_000 as Weight)
250 .saturating_add(T::DbWeight::get().reads(17 as Weight))
251 .saturating_add(T::DbWeight::get().writes(5 as Weight))
252 }
56}253}
57254
58// For backwards compatibility and tests255// For backwards compatibility and tests
67 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)264 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)
68 // Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)265 // Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)
69 fn create_collection() -> Weight {266 fn create_collection() -> Weight {
70 (76_647_000 as Weight)267 (40_146_000 as Weight)
71 .saturating_add(RocksDbWeight::get().reads(5 as Weight))268 .saturating_add(RocksDbWeight::get().reads(5 as Weight))
72 .saturating_add(RocksDbWeight::get().writes(9 as Weight))269 .saturating_add(RocksDbWeight::get().writes(9 as Weight))
73 }270 }
271 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
272 // Storage: Common CollectionProperties (r:1 w:1)
273 // Storage: Common CollectionById (r:1 w:1)
274 // Storage: Nonfungible TokenData (r:1 w:0)
275 // Storage: Common DestroyedCollectionCount (r:1 w:1)
276 // Storage: Nonfungible TokensMinted (r:0 w:1)
277 // Storage: Nonfungible TokensBurnt (r:0 w:1)
278 // Storage: Common AdminAmount (r:0 w:1)
279 fn destroy_collection() -> Weight {
280 (44_905_000 as Weight)
281 .saturating_add(RocksDbWeight::get().reads(5 as Weight))
282 .saturating_add(RocksDbWeight::get().writes(6 as Weight))
283 }
284 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
285 // Storage: Common CollectionById (r:1 w:1)
286 // Storage: Common CollectionProperties (r:1 w:0)
287 fn change_collection_issuer() -> Weight {
288 (22_502_000 as Weight)
289 .saturating_add(RocksDbWeight::get().reads(3 as Weight))
290 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
291 }
292 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
293 // Storage: Common CollectionProperties (r:1 w:0)
294 // Storage: Common CollectionById (r:1 w:1)
295 // Storage: Nonfungible TokensMinted (r:1 w:0)
296 // Storage: Nonfungible TokensBurnt (r:1 w:0)
297 fn lock_collection() -> Weight {
298 (23_705_000 as Weight)
299 .saturating_add(RocksDbWeight::get().reads(5 as Weight))
300 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
301 }
302 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
303 // Storage: Common CollectionProperties (r:1 w:0)
304 // Storage: Common CollectionById (r:1 w:0)
305 // Storage: Nonfungible TokensMinted (r:1 w:1)
306 // Storage: Nonfungible AccountBalance (r:1 w:1)
307 // Storage: Nonfungible TokenProperties (r:1 w:1)
308 // Storage: Nonfungible TokenData (r:0 w:1)
309 // Storage: Nonfungible Owned (r:0 w:1)
310 fn mint_nft() -> Weight {
311 (40_727_000 as Weight)
312 .saturating_add(RocksDbWeight::get().reads(6 as Weight))
313 .saturating_add(RocksDbWeight::get().writes(5 as Weight))
314 }
315 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
316 // Storage: Common CollectionProperties (r:1 w:0)
317 // Storage: Common CollectionById (r:1 w:0)
318 // Storage: Nonfungible TokenData (r:5 w:1)
319 // Storage: Nonfungible TokenProperties (r:1 w:0)
320 // Storage: Nonfungible AccountBalance (r:2 w:2)
321 // Storage: Nonfungible Allowance (r:1 w:0)
322 // Storage: Nonfungible TokenChildren (r:0 w:1)
323 // Storage: Nonfungible Owned (r:0 w:2)
324 fn send() -> Weight {
325 (73_288_000 as Weight)
326 .saturating_add(RocksDbWeight::get().reads(12 as Weight))
327 .saturating_add(RocksDbWeight::get().writes(6 as Weight))
328 }
329 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)
330 // Storage: Common CollectionProperties (r:1 w:0)
331 // Storage: Common CollectionById (r:2 w:0)
332 // Storage: Nonfungible TokenData (r:6 w:1)
333 // Storage: Nonfungible AccountBalance (r:2 w:2)
334 // Storage: Nonfungible Allowance (r:1 w:0)
335 // Storage: Nonfungible TokenProperties (r:1 w:1)
336 // Storage: Nonfungible TokenChildren (r:0 w:1)
337 // Storage: Nonfungible Owned (r:0 w:2)
338 fn accept_nft() -> Weight {
339 (81_985_000 as Weight)
340 .saturating_add(RocksDbWeight::get().reads(15 as Weight))
341 .saturating_add(RocksDbWeight::get().writes(7 as Weight))
342 }
343 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
344 // Storage: Common CollectionProperties (r:1 w:0)
345 // Storage: Common CollectionById (r:1 w:0)
346 // Storage: Nonfungible TokenProperties (r:1 w:1)
347 // Storage: Nonfungible TokenData (r:5 w:0)
348 fn set_property() -> Weight {
349 (50_535_000 as Weight)
350 .saturating_add(RocksDbWeight::get().reads(9 as Weight))
351 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
352 }
353 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
354 // Storage: Common CollectionProperties (r:1 w:0)
355 // Storage: Common CollectionById (r:1 w:0)
356 // Storage: Nonfungible TokenProperties (r:1 w:1)
357 // Storage: Nonfungible TokenData (r:5 w:0)
358 fn set_priority() -> Weight {
359 (49_443_000 as Weight)
360 .saturating_add(RocksDbWeight::get().reads(9 as Weight))
361 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
362 }
363 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
364 // Storage: Common CollectionProperties (r:1 w:1)
365 // Storage: Common CollectionById (r:1 w:1)
366 // Storage: Nonfungible TokenData (r:5 w:1)
367 // Storage: Nonfungible TokenProperties (r:2 w:2)
368 // Storage: Common CreatedCollectionCount (r:1 w:1)
369 // Storage: Common DestroyedCollectionCount (r:1 w:0)
370 // Storage: System Account (r:2 w:2)
371 // Storage: Nonfungible TokensMinted (r:1 w:1)
372 // Storage: Nonfungible AccountBalance (r:1 w:1)
373 // Storage: Nonfungible Owned (r:0 w:1)
374 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
375 fn add_basic_resource() -> Weight {
376 (104_226_000 as Weight)
377 .saturating_add(RocksDbWeight::get().reads(16 as Weight))
378 .saturating_add(RocksDbWeight::get().writes(12 as Weight))
379 }
380 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
381 // Storage: Common CollectionProperties (r:1 w:1)
382 // Storage: Common CollectionById (r:1 w:1)
383 // Storage: Nonfungible TokenData (r:5 w:1)
384 // Storage: Nonfungible TokenProperties (r:2 w:2)
385 // Storage: Common CreatedCollectionCount (r:1 w:1)
386 // Storage: Common DestroyedCollectionCount (r:1 w:0)
387 // Storage: System Account (r:2 w:2)
388 // Storage: Nonfungible TokensMinted (r:1 w:1)
389 // Storage: Nonfungible AccountBalance (r:1 w:1)
390 // Storage: Nonfungible Owned (r:0 w:1)
391 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
392 fn add_composable_resource() -> Weight {
393 (105_197_000 as Weight)
394 .saturating_add(RocksDbWeight::get().reads(16 as Weight))
395 .saturating_add(RocksDbWeight::get().writes(12 as Weight))
396 }
397 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
398 // Storage: Common CollectionProperties (r:1 w:1)
399 // Storage: Common CollectionById (r:1 w:1)
400 // Storage: Nonfungible TokenData (r:5 w:1)
401 // Storage: Nonfungible TokenProperties (r:2 w:2)
402 // Storage: Common CreatedCollectionCount (r:1 w:1)
403 // Storage: Common DestroyedCollectionCount (r:1 w:0)
404 // Storage: System Account (r:2 w:2)
405 // Storage: Nonfungible TokensMinted (r:1 w:1)
406 // Storage: Nonfungible AccountBalance (r:1 w:1)
407 // Storage: Nonfungible Owned (r:0 w:1)
408 // Storage: Common CollectionPropertyPermissions (r:0 w:1)
409 fn add_slot_resource() -> Weight {
410 (105_899_000 as Weight)
411 .saturating_add(RocksDbWeight::get().reads(16 as Weight))
412 .saturating_add(RocksDbWeight::get().writes(12 as Weight))
413 }
414 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
415 // Storage: Common CollectionProperties (r:2 w:0)
416 // Storage: Common CollectionById (r:2 w:0)
417 // Storage: Nonfungible TokenProperties (r:1 w:1)
418 // Storage: Nonfungible TokenData (r:6 w:1)
419 // Storage: Nonfungible TokenChildren (r:1 w:0)
420 // Storage: Nonfungible TokensBurnt (r:1 w:1)
421 // Storage: Nonfungible AccountBalance (r:1 w:1)
422 // Storage: Nonfungible Allowance (r:1 w:0)
423 // Storage: Nonfungible Owned (r:0 w:1)
424 fn remove_resource() -> Weight {
425 (82_997_000 as Weight)
426 .saturating_add(RocksDbWeight::get().reads(16 as Weight))
427 .saturating_add(RocksDbWeight::get().writes(5 as Weight))
428 }
429 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
430 // Storage: Common CollectionProperties (r:1 w:0)
431 // Storage: Common CollectionById (r:1 w:0)
432 // Storage: Nonfungible TokenData (r:5 w:0)
433 // Storage: Nonfungible TokenProperties (r:2 w:1)
434 fn accept_resource() -> Weight {
435 (56_848_000 as Weight)
436 .saturating_add(RocksDbWeight::get().reads(10 as Weight))
437 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
438 }
439 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
440 // Storage: Common CollectionProperties (r:2 w:0)
441 // Storage: Common CollectionById (r:2 w:0)
442 // Storage: Nonfungible TokenData (r:6 w:1)
443 // Storage: Nonfungible TokenProperties (r:2 w:1)
444 // Storage: Nonfungible TokenChildren (r:1 w:0)
445 // Storage: Nonfungible TokensBurnt (r:1 w:1)
446 // Storage: Nonfungible AccountBalance (r:1 w:1)
447 // Storage: Nonfungible Allowance (r:1 w:0)
448 // Storage: Nonfungible Owned (r:0 w:1)
449 fn accept_resource_removal() -> Weight {
450 (86_303_000 as Weight)
451 .saturating_add(RocksDbWeight::get().reads(17 as Weight))
452 .saturating_add(RocksDbWeight::get().writes(5 as Weight))
453 }
74}454}
75455