difftreelog
feat(rmrk) set benchmark generated weights
in: master
2 files changed
pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth238 }238 }239239240 /// destroy collection240 /// destroy collection241 #[transactional]241 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]242 #[pallet::weight(<SelfWeightOf<T>>::destroy_collection())]242 #[transactional]243 pub fn destroy_collection(243 pub fn destroy_collection(244 origin: OriginFor<T>,244 origin: OriginFor<T>,245 collection_id: RmrkCollectionId,245 collection_id: RmrkCollectionId,270 /// - `origin`: sender of the transaction270 /// - `origin`: sender of the transaction271 /// - `collection_id`: collection id of the nft to change issuer of271 /// - `collection_id`: collection id of the nft to change issuer of272 /// - `new_issuer`: Collection's new issuer272 /// - `new_issuer`: Collection's new issuer273 #[transactional]273 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]274 #[pallet::weight(<SelfWeightOf<T>>::change_collection_issuer())]274 #[transactional]275 pub fn change_collection_issuer(275 pub fn change_collection_issuer(276 origin: OriginFor<T>,276 origin: OriginFor<T>,277 collection_id: RmrkCollectionId,277 collection_id: RmrkCollectionId,301 }301 }302302303 /// lock collection303 /// lock collection304 #[transactional]304 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]305 #[pallet::weight(<SelfWeightOf<T>>::lock_collection())]305 #[transactional]306 pub fn lock_collection(306 pub fn lock_collection(307 origin: OriginFor<T>,307 origin: OriginFor<T>,308 collection_id: RmrkCollectionId,308 collection_id: RmrkCollectionId,342 /// - `royalty`: Permillage reward from each trade for the Recipient342 /// - `royalty`: Permillage reward from each trade for the Recipient343 /// - `metadata`: Arbitrary data about an nft, e.g. IPFS hash343 /// - `metadata`: Arbitrary data about an nft, e.g. IPFS hash344 /// - `transferable`: Ability to transfer this NFT344 /// - `transferable`: Ability to transfer this NFT345 #[transactional]345 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]346 #[pallet::weight(<SelfWeightOf<T>>::mint_nft())]346 #[transactional]347 pub fn mint_nft(347 pub fn mint_nft(348 origin: OriginFor<T>,348 origin: OriginFor<T>,349 owner: T::AccountId,349 owner: T::AccountId,440 /// - `rmrk_collection_id`: collection id of the nft to be transferred440 /// - `rmrk_collection_id`: collection id of the nft to be transferred441 /// - `rmrk_nft_id`: nft id of the nft to be transferred441 /// - `rmrk_nft_id`: nft id of the nft to be transferred442 /// - `new_owner`: new owner of the nft which can be either an account or a NFT442 /// - `new_owner`: new owner of the nft which can be either an account or a NFT443 #[transactional]443 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]444 #[pallet::weight(<SelfWeightOf<T>>::send())]444 #[transactional]445 pub fn send(445 pub fn send(446 origin: OriginFor<T>,446 origin: OriginFor<T>,447 rmrk_collection_id: RmrkCollectionId,447 rmrk_collection_id: RmrkCollectionId,552 /// - `rmrk_nft_id`: nft id of the nft to be accepted552 /// - `rmrk_nft_id`: nft id of the nft to be accepted553 /// - `new_owner`: either origin's account ID or origin-owned NFT, whichever the NFT was553 /// - `new_owner`: either origin's account ID or origin-owned NFT, whichever the NFT was554 /// sent to554 /// sent to555 #[transactional]555 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]556 #[pallet::weight(<SelfWeightOf<T>>::accept_nft())]556 #[transactional]557 pub fn accept_nft(557 pub fn accept_nft(558 origin: OriginFor<T>,558 origin: OriginFor<T>,559 rmrk_collection_id: RmrkCollectionId,559 rmrk_collection_id: RmrkCollectionId,664 }664 }665665666 /// accept the addition of a new resource to an existing NFT666 /// accept the addition of a new resource to an existing NFT667 #[transactional]667 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]668 #[pallet::weight(<SelfWeightOf<T>>::accept_resource())]668 #[transactional]669 pub fn accept_resource(669 pub fn accept_resource(670 origin: OriginFor<T>,670 origin: OriginFor<T>,671 rmrk_collection_id: RmrkCollectionId,671 rmrk_collection_id: RmrkCollectionId,723 }723 }724724725 /// accept the removal of a resource of an existing NFT725 /// accept the removal of a resource of an existing NFT726 #[transactional]726 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]727 #[pallet::weight(<SelfWeightOf<T>>::accept_resource_removal())]727 #[transactional]728 pub fn accept_resource_removal(728 pub fn accept_resource_removal(729 origin: OriginFor<T>,729 origin: OriginFor<T>,730 rmrk_collection_id: RmrkCollectionId,730 rmrk_collection_id: RmrkCollectionId,788 }788 }789789790 /// set a custom value on an NFT790 /// set a custom value on an NFT791 #[transactional]791 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]792 #[pallet::weight(<SelfWeightOf<T>>::set_property())]792 #[transactional]793 pub fn set_property(793 pub fn set_property(794 origin: OriginFor<T>,794 origin: OriginFor<T>,795 #[pallet::compact] rmrk_collection_id: RmrkCollectionId,795 #[pallet::compact] rmrk_collection_id: RmrkCollectionId,848 }848 }849849850 /// set a different order of resource priority850 /// set a different order of resource priority851 #[transactional]851 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]852 #[pallet::weight(<SelfWeightOf<T>>::set_priority())]852 #[transactional]853 pub fn set_priority(853 pub fn set_priority(854 origin: OriginFor<T>,854 origin: OriginFor<T>,855 rmrk_collection_id: RmrkCollectionId,855 rmrk_collection_id: RmrkCollectionId,887 }887 }888888889 /// Create basic resource889 /// Create basic resource890 #[transactional]890 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]891 #[pallet::weight(<SelfWeightOf<T>>::add_basic_resource())]891 #[transactional]892 pub fn add_basic_resource(892 pub fn add_basic_resource(893 origin: OriginFor<T>,893 origin: OriginFor<T>,894 rmrk_collection_id: RmrkCollectionId,894 rmrk_collection_id: RmrkCollectionId,925 }925 }926926927 /// Create composable resource927 /// Create composable resource928 #[transactional]928 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]929 #[pallet::weight(<SelfWeightOf<T>>::add_composable_resource())]929 #[transactional]930 pub fn add_composable_resource(930 pub fn add_composable_resource(931 origin: OriginFor<T>,931 origin: OriginFor<T>,932 rmrk_collection_id: RmrkCollectionId,932 rmrk_collection_id: RmrkCollectionId,965 }965 }966966967 /// Create slot resource967 /// Create slot resource968 #[transactional]968 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]969 #[pallet::weight(<SelfWeightOf<T>>::add_slot_resource())]969 #[transactional]970 pub fn add_slot_resource(970 pub fn add_slot_resource(971 origin: OriginFor<T>,971 origin: OriginFor<T>,972 rmrk_collection_id: RmrkCollectionId,972 rmrk_collection_id: RmrkCollectionId,1005 }1005 }100610061007 /// remove resource1007 /// remove resource1008 #[transactional]1008 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]1009 #[pallet::weight(<SelfWeightOf<T>>::remove_resource())]1009 #[transactional]1010 pub fn remove_resource(1010 pub fn remove_resource(1011 origin: OriginFor<T>,1011 origin: OriginFor<T>,1012 rmrk_collection_id: RmrkCollectionId,1012 rmrk_collection_id: RmrkCollectionId,pallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth--- a/pallets/proxy-rmrk-core/src/weights.rs
+++ b/pallets/proxy-rmrk-core/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_proxy_rmrk_core
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2022-06-10, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -34,6 +34,20 @@
/// Weight functions needed for pallet_proxy_rmrk_core.
pub trait WeightInfo {
fn create_collection() -> Weight;
+ fn destroy_collection() -> Weight;
+ fn change_collection_issuer() -> Weight;
+ fn lock_collection() -> Weight;
+ fn mint_nft() -> Weight;
+ fn send() -> Weight;
+ fn accept_nft() -> Weight;
+ fn set_property() -> Weight;
+ fn set_priority() -> Weight;
+ fn add_basic_resource() -> Weight;
+ fn add_composable_resource() -> Weight;
+ fn add_slot_resource() -> Weight;
+ fn remove_resource() -> Weight;
+ fn accept_resource() -> Weight;
+ fn accept_resource_removal() -> Weight;
}
/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.
@@ -49,10 +63,193 @@
// Storage: RmrkCore UniqueCollectionId (r:0 w:1)
// Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)
fn create_collection() -> Weight {
- (76_647_000 as Weight)
+ (40_146_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(9 as Weight))
}
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:1 w:0)
+ // Storage: Common DestroyedCollectionCount (r:1 w:1)
+ // Storage: Nonfungible TokensMinted (r:0 w:1)
+ // Storage: Nonfungible TokensBurnt (r:0 w:1)
+ // Storage: Common AdminAmount (r:0 w:1)
+ fn destroy_collection() -> Weight {
+ (44_905_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(5 as Weight))
+ .saturating_add(T::DbWeight::get().writes(6 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ fn change_collection_issuer() -> Weight {
+ (22_502_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(3 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokensMinted (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:0)
+ fn lock_collection() -> Weight {
+ (23_705_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(5 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn mint_nft() -> Weight {
+ (40_727_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(6 as Weight))
+ .saturating_add(T::DbWeight::get().writes(5 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:1 w:0)
+ // Storage: Nonfungible AccountBalance (r:2 w:2)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible TokenChildren (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:2)
+ fn send() -> Weight {
+ (73_288_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(12 as Weight))
+ .saturating_add(T::DbWeight::get().writes(6 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:2 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible AccountBalance (r:2 w:2)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenChildren (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:2)
+ fn accept_nft() -> Weight {
+ (81_985_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(15 as Weight))
+ .saturating_add(T::DbWeight::get().writes(7 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ fn set_property() -> Weight {
+ (50_535_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(9 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ fn set_priority() -> Weight {
+ (49_443_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(9 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_basic_resource() -> Weight {
+ (104_226_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(16 as Weight))
+ .saturating_add(T::DbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_composable_resource() -> Weight {
+ (105_197_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(16 as Weight))
+ .saturating_add(T::DbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_slot_resource() -> Weight {
+ (105_899_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(16 as Weight))
+ .saturating_add(T::DbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:2 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible TokenChildren (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn remove_resource() -> Weight {
+ (82_997_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(16 as Weight))
+ .saturating_add(T::DbWeight::get().writes(5 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ // Storage: Nonfungible TokenProperties (r:2 w:1)
+ fn accept_resource() -> Weight {
+ (56_848_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(10 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:2 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:1)
+ // Storage: Nonfungible TokenChildren (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn accept_resource_removal() -> Weight {
+ (86_303_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(17 as Weight))
+ .saturating_add(T::DbWeight::get().writes(5 as Weight))
+ }
}
// For backwards compatibility and tests
@@ -67,8 +264,191 @@
// Storage: RmrkCore UniqueCollectionId (r:0 w:1)
// Storage: RmrkCore RmrkInernalCollectionId (r:0 w:1)
fn create_collection() -> Weight {
- (76_647_000 as Weight)
+ (40_146_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(9 as Weight))
}
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:1 w:0)
+ // Storage: Common DestroyedCollectionCount (r:1 w:1)
+ // Storage: Nonfungible TokensMinted (r:0 w:1)
+ // Storage: Nonfungible TokensBurnt (r:0 w:1)
+ // Storage: Common AdminAmount (r:0 w:1)
+ fn destroy_collection() -> Weight {
+ (44_905_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(5 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(6 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ fn change_collection_issuer() -> Weight {
+ (22_502_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(3 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokensMinted (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:0)
+ fn lock_collection() -> Weight {
+ (23_705_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(5 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn mint_nft() -> Weight {
+ (40_727_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(6 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(5 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:1 w:0)
+ // Storage: Nonfungible AccountBalance (r:2 w:2)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible TokenChildren (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:2)
+ fn send() -> Weight {
+ (73_288_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(12 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(6 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:2 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible AccountBalance (r:2 w:2)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenChildren (r:0 w:1)
+ // Storage: Nonfungible Owned (r:0 w:2)
+ fn accept_nft() -> Weight {
+ (81_985_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(15 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(7 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ fn set_property() -> Weight {
+ (50_535_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(9 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ fn set_priority() -> Weight {
+ (49_443_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(9 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_basic_resource() -> Weight {
+ (104_226_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(16 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_composable_resource() -> Weight {
+ (105_197_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(16 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:1)
+ // Storage: Common CollectionById (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:5 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:2)
+ // Storage: Common CreatedCollectionCount (r:1 w:1)
+ // Storage: Common DestroyedCollectionCount (r:1 w:0)
+ // Storage: System Account (r:2 w:2)
+ // Storage: Nonfungible TokensMinted (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ // Storage: Common CollectionPropertyPermissions (r:0 w:1)
+ fn add_slot_resource() -> Weight {
+ (105_899_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(16 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(12 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:2 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenProperties (r:1 w:1)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible TokenChildren (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn remove_resource() -> Weight {
+ (82_997_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(16 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(5 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:0)
+ // Storage: Nonfungible TokenData (r:5 w:0)
+ // Storage: Nonfungible TokenProperties (r:2 w:1)
+ fn accept_resource() -> Weight {
+ (56_848_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(10 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: RmrkCore UniqueCollectionId (r:1 w:0)
+ // Storage: Common CollectionProperties (r:2 w:0)
+ // Storage: Common CollectionById (r:2 w:0)
+ // Storage: Nonfungible TokenData (r:6 w:1)
+ // Storage: Nonfungible TokenProperties (r:2 w:1)
+ // Storage: Nonfungible TokenChildren (r:1 w:0)
+ // Storage: Nonfungible TokensBurnt (r:1 w:1)
+ // Storage: Nonfungible AccountBalance (r:1 w:1)
+ // Storage: Nonfungible Allowance (r:1 w:0)
+ // Storage: Nonfungible Owned (r:0 w:1)
+ fn accept_resource_removal() -> Weight {
+ (86_303_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(17 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(5 as Weight))
+ }
}