mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
e1c033ebe1
(imported from https://github.com/paritytech/cumulus/pull/2157) ## Changes This MR refactores the XCMP, Parachains System and DMP pallets to use the [MessageQueue](https://github.com/paritytech/substrate/pull/12485) for delayed execution of incoming messages. The DMP pallet is entirely replaced by the MQ and thereby removed. This allows for PoV-bounded execution and resolves a number of issues that stem from the current work-around. All System Parachains adopt this change. The most important changes are in `primitives/core/src/lib.rs`, `parachains/common/src/process_xcm_message.rs`, `pallets/parachain-system/src/lib.rs`, `pallets/xcmp-queue/src/lib.rs` and the runtime configs. ### DMP Queue Pallet The pallet got removed and its logic refactored into parachain-system. Overweight message management can be done directly through the MQ pallet. Final undeployment migrations are provided by `cumulus_pallet_dmp_queue::UndeployDmpQueue` and `DeleteDmpQueue` that can be configured with an aux config trait like: ```rust parameter_types! { pub const DmpQueuePalletName: &'static str = \"DmpQueue\" < CHANGE ME; pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent; } impl cumulus_pallet_dmp_queue::MigrationConfig for Runtime { type PalletName = DmpQueuePalletName; type DmpHandler = frame_support::traits::EnqueueWithOrigin<MessageQueue, RelayOrigin>; type DbWeight = <Runtime as frame_system::Config>::DbWeight; } // And adding them to your Migrations tuple: pub type Migrations = ( ... cumulus_pallet_dmp_queue::UndeployDmpQueue<Runtime>, cumulus_pallet_dmp_queue::DeleteDmpQueue<Runtime>, ); ``` ### XCMP Queue pallet Removed all dispatch queue functionality. Incoming XCMP messages are now either: Immediately handled if they are Signals, enqueued into the MQ pallet otherwise. New config items for the XCMP queue pallet: ```rust /// The actual queue implementation that retains the messages for later processing. type XcmpQueue: EnqueueMessage<ParaId>; /// How a XCM over HRMP from a sibling parachain should be processed. type XcmpProcessor: ProcessMessage<Origin = ParaId>; /// The maximal number of suspended XCMP channels at the same time. #[pallet::constant] type MaxInboundSuspended: Get<u32>; ``` How to configure those: ```rust // Use the MessageQueue pallet to store messages for later processing. The `TransformOrigin` is needed since // the MQ pallet itself operators on `AggregateMessageOrigin` but we want to enqueue `ParaId`s. type XcmpQueue = TransformOrigin<MessageQueue, AggregateMessageOrigin, ParaId, ParaIdToSibling>; // Process XCMP messages from siblings. This is type-safe to only accept `ParaId`s. They will be dispatched // with origin `Junction::Sibling(…)`. type XcmpProcessor = ProcessFromSibling< ProcessXcmMessage< AggregateMessageOrigin, xcm_executor::XcmExecutor<xcm_config::XcmConfig>, RuntimeCall, >, >; // Not really important what to choose here. Just something larger than the maximal number of channels. type MaxInboundSuspended = sp_core::ConstU32<1_000>; ``` The `InboundXcmpStatus` storage item was replaced by `InboundXcmpSuspended` since it now only tracks inbound queue suspension and no message indices anymore. Now only sends the most recent channel `Signals`, as all prio ones are out-dated anyway. ### Parachain System pallet For `DMP` messages instead of forwarding them to the `DMP` pallet, it now pushes them to the configured `DmpQueue`. The message processing which was triggered in `set_validation_data` is now being done by the MQ pallet `on_initialize`. XCMP messages are still handed off to the `XcmpMessageHandler` (XCMP-Queue pallet) - no change here. New config items for the parachain system pallet: ```rust /// Queues inbound downward messages for delayed processing. /// /// Analogous to the `XcmpQueue` of the XCMP queue pallet. type DmpQueue: EnqueueMessage<AggregateMessageOrigin>; ``` How to configure: ```rust /// Use the MQ pallet to store DMP messages for delayed processing. type DmpQueue = MessageQueue; ``` ## Message Flow The flow of messages on the parachain side. Messages come in from the left via the `Validation Data` and finally end up at the `Xcm Executor` on the right.  ## Further changes - Bumped the default suspension, drop and resume thresholds in `QueueConfigData::default()`. - `XcmpQueue::{suspend_xcm_execution, resume_xcm_execution}` errors when they would be a noop. - Properly validate the `QueueConfigData` before setting it. - Marked weight files as auto-generated so they wont auto-expand in the MR files view. - Move the `hypothetical` asserts to `frame_support` under the name `experimental_hypothetically` Questions: - [ ] What about the ugly `#[cfg(feature = \"runtime-benchmarks\")]` in the runtimes? Not sure how to best fix. Just having them like this makes tests fail that rely on the real message processor when the feature is enabled. - [ ] Need a good weight for `MessageQueueServiceWeight`. The scheduler already takes 80% so I put it to 10% but that is quite low. TODO: - [x] Remove c&p code after https://github.com/paritytech/polkadot/pull/6271 - [x] Use `HandleMessage` once it is public in Substrate - [x] fix `runtime-benchmarks` feature https://github.com/paritytech/polkadot/pull/6966 - [x] Benchmarks - [x] Tests - [ ] Migrate `InboundXcmpStatus` to `InboundXcmpSuspended` - [x] Possibly cleanup Migrations (DMP+XCMP) - [x] optional: create `TransformProcessMessageOrigin` in Substrate and replace `ProcessFromSibling` - [ ] Rerun weights on ref HW --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: command-bot <>
773 lines
40 KiB
Rust
773 lines
40 KiB
Rust
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Autogenerated weights for `pallet_nfts`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-polkadot-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=asset-hub-polkadot-dev
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_nfts
|
|
// --no-storage-info
|
|
// --no-median-slopes
|
|
// --no-min-squares
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/asset-hub-polkadot/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_nfts`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_nfts::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Nfts::NextCollectionId` (r:1 w:1)
|
|
/// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionAccount` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn create() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `145`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 37_915_000 picoseconds.
|
|
Weight::from_parts(39_275_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Nfts::NextCollectionId` (r:1 w:1)
|
|
/// Proof: `Nfts::NextCollectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionAccount` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn force_create() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `42`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 22_722_000 picoseconds.
|
|
Weight::from_parts(23_500_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1001 w:1000)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1000 w:1000)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionMetadataOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionAccount` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
/// The range of component `m` is `[0, 1000]`.
|
|
/// The range of component `c` is `[0, 1000]`.
|
|
/// The range of component `a` is `[0, 1000]`.
|
|
fn destroy(_m: u32, _c: u32, a: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `32170 + a * (366 ±0)`
|
|
// Estimated: `2523990 + a * (2954 ±0)`
|
|
// Minimum execution time: 1_231_520_000 picoseconds.
|
|
Weight::from_parts(1_228_960_098, 0)
|
|
.saturating_add(Weight::from_parts(0, 2523990))
|
|
// Standard Error: 8_836
|
|
.saturating_add(Weight::from_parts(6_818_975, 0).saturating_mul(a.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1004))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1005))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
|
|
.saturating_add(Weight::from_parts(0, 2954).saturating_mul(a.into()))
|
|
}
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:1)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
fn mint() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `421`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 48_581_000 picoseconds.
|
|
Weight::from_parts(50_020_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:1)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
fn force_mint() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `421`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 47_171_000 picoseconds.
|
|
Weight::from_parts(48_084_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
/// Storage: `Nfts::Attribute` (r:1 w:0)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemMetadataOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:1)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
|
|
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemAttributesApprovalsOf` (r:0 w:1)
|
|
/// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
fn burn() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `530`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 53_591_000 picoseconds.
|
|
Weight::from_parts(55_074_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1 w:0)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:2)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
|
|
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
fn transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `559`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 40_935_000 picoseconds.
|
|
Weight::from_parts(41_835_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:5000 w:5000)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// The range of component `i` is `[0, 5000]`.
|
|
fn redeposit(i: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `729 + i * (108 ±0)`
|
|
// Estimated: `3549 + i * (3336 ±0)`
|
|
// Minimum execution time: 16_543_000 picoseconds.
|
|
Weight::from_parts(16_769_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
// Standard Error: 23_638
|
|
.saturating_add(Weight::from_parts(17_762_895, 0).saturating_mul(i.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
|
.saturating_add(Weight::from_parts(0, 3336).saturating_mul(i.into()))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn lock_item_transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `401`
|
|
// Estimated: `3534`
|
|
// Minimum execution time: 20_446_000 picoseconds.
|
|
Weight::from_parts(20_740_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3534))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn unlock_item_transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `401`
|
|
// Estimated: `3534`
|
|
// Minimum execution time: 20_088_000 picoseconds.
|
|
Weight::from_parts(20_627_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3534))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
fn lock_collection() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `306`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 17_036_000 picoseconds.
|
|
Weight::from_parts(17_435_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
|
|
/// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionAccount` (r:0 w:2)
|
|
/// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn transfer_ownership() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `354`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 22_528_000 picoseconds.
|
|
Weight::from_parts(23_047_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:2 w:4)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
fn set_team() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `335`
|
|
// Estimated: `6078`
|
|
// Minimum execution time: 38_473_000 picoseconds.
|
|
Weight::from_parts(39_353_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 6078))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionAccount` (r:0 w:2)
|
|
/// Proof: `Nfts::CollectionAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn force_collection_owner() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `277`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 17_708_000 picoseconds.
|
|
Weight::from_parts(18_022_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:0 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
fn force_collection_config() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `242`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 14_606_000 picoseconds.
|
|
Weight::from_parts(14_891_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn lock_item_properties() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `401`
|
|
// Estimated: `3534`
|
|
// Minimum execution time: 19_492_000 picoseconds.
|
|
Weight::from_parts(19_919_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3534))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
fn set_attribute() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `505`
|
|
// Estimated: `3944`
|
|
// Minimum execution time: 50_583_000 picoseconds.
|
|
Weight::from_parts(53_846_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3944))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
fn force_set_attribute() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `310`
|
|
// Estimated: `3944`
|
|
// Minimum execution time: 25_937_000 picoseconds.
|
|
Weight::from_parts(26_540_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3944))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
fn clear_attribute() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `949`
|
|
// Estimated: `3944`
|
|
// Minimum execution time: 45_738_000 picoseconds.
|
|
Weight::from_parts(46_468_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3944))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
|
|
fn approve_item_attributes() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `347`
|
|
// Estimated: `4466`
|
|
// Minimum execution time: 17_361_000 picoseconds.
|
|
Weight::from_parts(18_191_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4466))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1001 w:1000)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn cancel_item_attributes_approval(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `726 + n * (398 ±0)`
|
|
// Estimated: `4466 + n * (2954 ±0)`
|
|
// Minimum execution time: 25_884_000 picoseconds.
|
|
Weight::from_parts(26_265_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4466))
|
|
// Standard Error: 6_423
|
|
.saturating_add(Weight::from_parts(6_507_369, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
|
|
fn set_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `505`
|
|
// Estimated: `3812`
|
|
// Minimum execution time: 40_802_000 picoseconds.
|
|
Weight::from_parts(41_742_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3812))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn clear_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `815`
|
|
// Estimated: `3812`
|
|
// Minimum execution time: 38_904_000 picoseconds.
|
|
Weight::from_parts(39_919_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3812))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
|
|
fn set_collection_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `364`
|
|
// Estimated: `3759`
|
|
// Minimum execution time: 37_012_000 picoseconds.
|
|
Weight::from_parts(37_632_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3759))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionMetadataOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionMetadataOf` (`max_values`: None, `max_size`: Some(294), added: 2769, mode: `MaxEncodedLen`)
|
|
fn clear_collection_metadata() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `682`
|
|
// Estimated: `3759`
|
|
// Minimum execution time: 36_243_000 picoseconds.
|
|
Weight::from_parts(37_313_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3759))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
fn approve_transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `376`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 20_919_000 picoseconds.
|
|
Weight::from_parts(21_505_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
fn cancel_approval() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `384`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 18_943_000 picoseconds.
|
|
Weight::from_parts(19_969_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
fn clear_all_transfer_approvals() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `384`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 17_320_000 picoseconds.
|
|
Weight::from_parts(18_071_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::OwnershipAcceptance` (r:1 w:1)
|
|
/// Proof: `Nfts::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
fn set_accept_ownership() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `42`
|
|
// Estimated: `3517`
|
|
// Minimum execution time: 14_934_000 picoseconds.
|
|
Weight::from_parts(15_422_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3517))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
fn set_collection_max_supply() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `306`
|
|
// Estimated: `3549`
|
|
// Minimum execution time: 18_715_000 picoseconds.
|
|
Weight::from_parts(19_025_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3549))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
fn update_mint_settings() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `289`
|
|
// Estimated: `3538`
|
|
// Minimum execution time: 18_249_000 picoseconds.
|
|
Weight::from_parts(18_826_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3538))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
|
|
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
|
fn set_price() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `484`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 23_529_000 picoseconds.
|
|
Weight::from_parts(23_958_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemPriceOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:1 w:0)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:2)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
fn buy_item() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `671`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 50_885_000 picoseconds.
|
|
Weight::from_parts(52_157_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(6))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// The range of component `n` is `[0, 10]`.
|
|
fn pay_tips(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_258_000 picoseconds.
|
|
Weight::from_parts(3_342_691, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
// Standard Error: 6_268
|
|
.saturating_add(Weight::from_parts(3_761_373, 0).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:2 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
fn create_swap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `460`
|
|
// Estimated: `7662`
|
|
// Minimum execution time: 21_220_000 picoseconds.
|
|
Weight::from_parts(21_654_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 7662))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::PendingSwapOf` (r:1 w:1)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
fn cancel_swap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `479`
|
|
// Estimated: `4326`
|
|
// Minimum execution time: 20_430_000 picoseconds.
|
|
Weight::from_parts(21_038_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4326))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:2 w:2)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::PendingSwapOf` (r:1 w:2)
|
|
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:0)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:2 w:0)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:2 w:0)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:4)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemPriceOf` (r:0 w:2)
|
|
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
|
fn claim_swap() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `800`
|
|
// Estimated: `7662`
|
|
// Minimum execution time: 83_344_000 picoseconds.
|
|
Weight::from_parts(84_898_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 7662))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(10))
|
|
}
|
|
/// Storage: `Nfts::CollectionRoleOf` (r:2 w:0)
|
|
/// Proof: `Nfts::CollectionRoleOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Item` (r:1 w:1)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemConfigOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:10 w:10)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemMetadataOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemMetadataOf` (`max_values`: None, `max_size`: Some(347), added: 2822, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Account` (r:0 w:1)
|
|
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 10]`.
|
|
fn mint_pre_signed(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `524`
|
|
// Estimated: `6078 + n * (2954 ±0)`
|
|
// Minimum execution time: 143_435_000 picoseconds.
|
|
Weight::from_parts(151_744_537, 0)
|
|
.saturating_add(Weight::from_parts(0, 6078))
|
|
// Standard Error: 44_459
|
|
.saturating_add(Weight::from_parts(31_293_503, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(8))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: `Nfts::Item` (r:1 w:0)
|
|
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::ItemAttributesApprovalsOf` (r:1 w:1)
|
|
/// Proof: `Nfts::ItemAttributesApprovalsOf` (`max_values`: None, `max_size`: Some(1001), added: 3476, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
|
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Collection` (r:1 w:1)
|
|
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// Storage: `Nfts::Attribute` (r:10 w:10)
|
|
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 10]`.
|
|
fn set_attributes_pre_signed(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `554`
|
|
// Estimated: `4466 + n * (2954 ±0)`
|
|
// Minimum execution time: 84_627_000 picoseconds.
|
|
Weight::from_parts(96_076_065, 0)
|
|
.saturating_add(Weight::from_parts(0, 4466))
|
|
// Standard Error: 62_058
|
|
.saturating_add(Weight::from_parts(30_461_383, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 2954).saturating_mul(n.into()))
|
|
}
|
|
}
|