--- 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(>::destroy_collection())] pub fn destroy_collection( origin: OriginFor, 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(>::change_collection_issuer())] pub fn change_collection_issuer( origin: OriginFor, collection_id: RmrkCollectionId, @@ -301,8 +301,8 @@ } /// lock collection - #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))] #[transactional] + #[pallet::weight(>::lock_collection())] pub fn lock_collection( origin: OriginFor, 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(>::mint_nft())] pub fn mint_nft( origin: OriginFor, 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(>::send())] pub fn send( origin: OriginFor, 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(>::accept_nft())] pub fn accept_nft( origin: OriginFor, 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(>::accept_resource())] pub fn accept_resource( origin: OriginFor, 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(>::accept_resource_removal())] pub fn accept_resource_removal( origin: OriginFor, 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(>::set_property())] pub fn set_property( origin: OriginFor, #[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(>::set_priority())] pub fn set_priority( origin: OriginFor, 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(>::add_basic_resource())] pub fn add_basic_resource( origin: OriginFor, 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(>::add_composable_resource())] pub fn add_composable_resource( origin: OriginFor, 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(>::add_slot_resource())] pub fn add_slot_resource( origin: OriginFor, rmrk_collection_id: RmrkCollectionId, @@ -1005,8 +1005,8 @@ } /// remove resource - #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))] #[transactional] + #[pallet::weight(>::remove_resource())] pub fn remove_resource( origin: OriginFor, rmrk_collection_id: RmrkCollectionId, --- 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)) + } }