pub trait WeightInfo {
Show 15 methods
// Required methods
fn create_collection() -> Weight;
fn define_item(m: u32) -> Weight;
fn mint(m: u32) -> Weight;
fn transfer() -> Weight;
fn burn(m: u32) -> Weight;
fn nominate_collection_owner() -> Weight;
fn set_collection_metadata() -> Weight;
fn set_item_metadata() -> Weight;
fn set_instance_metadata() -> Weight;
fn force_burn(m: u32) -> Weight;
fn force_transfer() -> Weight;
fn delete_item() -> Weight;
fn delete_collection() -> Weight;
fn claim_collection_ownership() -> Weight;
fn as_scarcity_pipeline() -> Weight;
}Expand description
Weight functions needed for pallet_scarcity.
Required Methods§
fn create_collection() -> Weight
fn define_item(m: u32) -> Weight
fn mint(m: u32) -> Weight
fn transfer() -> Weight
fn burn(m: u32) -> Weight
fn nominate_collection_owner() -> Weight
fn set_collection_metadata() -> Weight
fn set_item_metadata() -> Weight
fn set_instance_metadata() -> Weight
fn force_burn(m: u32) -> Weight
fn force_transfer() -> Weight
fn delete_item() -> Weight
fn delete_collection() -> Weight
fn claim_collection_ownership() -> Weight
fn as_scarcity_pipeline() -> Weight
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl WeightInfo for ()
impl WeightInfo for ()
Source§fn create_collection() -> Weight
fn create_collection() -> Weight
Storage: Scarcity::NextCollectionId (r:1 w:1)
Proof: Scarcity::NextCollectionId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Storage: Scarcity::Collections (r:0 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Source§fn define_item(m: u32) -> Weight
fn define_item(m: u32) -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Storage: Scarcity::ItemMetadata (r:100 w:100)
Proof: Scarcity::ItemMetadata (max_values: None, max_size: Some(347), added: 2822, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:0 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
The range of component m is [0, 100].
Source§fn mint(m: u32) -> Weight
fn mint(m: u32) -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Scarcity::NftsByOwner (r:1 w:1)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
Storage: Scarcity::NextInstanceId (r:1 w:1)
Proof: Scarcity::NextInstanceId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadata (r:100 w:100)
Proof: Scarcity::InstanceMetadata (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadataCount (r:0 w:1)
Proof: Scarcity::InstanceMetadataCount (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Storage: Scarcity::Instances (r:0 w:1)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Scarcity::InstanceDeposits (r:0 w:1)
Proof: Scarcity::InstanceDeposits (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
The range of component m is [0, 100].
Source§fn transfer() -> Weight
fn transfer() -> Weight
Storage: Scarcity::NftsByOwner (r:1 w:1)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Scarcity::Instances (r:0 w:1)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Source§fn burn(m: u32) -> Weight
fn burn(m: u32) -> Weight
Storage: Scarcity::InstanceMetadataCount (r:1 w:1)
Proof: Scarcity::InstanceMetadataCount (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Storage: Scarcity::InstanceDeposits (r:1 w:1)
Proof: Scarcity::InstanceDeposits (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadata (r:101 w:100)
Proof: Scarcity::InstanceMetadata (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Storage: Scarcity::Instances (r:0 w:1)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
The range of component m is [0, 100].
Source§fn nominate_collection_owner() -> Weight
fn nominate_collection_owner() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Source§fn set_collection_metadata() -> Weight
fn set_collection_metadata() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::CollectionMetadata (r:1 w:1)
Proof: Scarcity::CollectionMetadata (max_values: None, max_size: Some(335), added: 2810, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn set_item_metadata() -> Weight
fn set_item_metadata() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Scarcity::ItemMetadata (r:1 w:1)
Proof: Scarcity::ItemMetadata (max_values: None, max_size: Some(347), added: 2822, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn set_instance_metadata() -> Weight
fn set_instance_metadata() -> Weight
Storage: Scarcity::Instances (r:1 w:0)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Scarcity::NftsByOwner (r:1 w:0)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadata (r:1 w:1)
Proof: Scarcity::InstanceMetadata (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadataCount (r:1 w:1)
Proof: Scarcity::InstanceMetadataCount (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(11322), added: 13797, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn force_burn(m: u32) -> Weight
fn force_burn(m: u32) -> Weight
Storage: Scarcity::Instances (r:1 w:1)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Scarcity::NftsByOwner (r:1 w:1)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadataCount (r:1 w:1)
Proof: Scarcity::InstanceMetadataCount (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Storage: Scarcity::InstanceDeposits (r:1 w:1)
Proof: Scarcity::InstanceDeposits (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
Storage: Scarcity::InstanceMetadata (r:101 w:100)
Proof: Scarcity::InstanceMetadata (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Scarcity::Locked (r:0 w:1)
Proof: Scarcity::Locked (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
The range of component m is [0, 100].
Source§fn force_transfer() -> Weight
fn force_transfer() -> Weight
Storage: Scarcity::Instances (r:1 w:1)
Proof: Scarcity::Instances (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Scarcity::NftsByOwner (r:2 w:2)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
Storage: Scarcity::Collections (r:1 w:0)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: System::Account (r:2 w:2)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Scarcity::Locked (r:0 w:1)
Proof: Scarcity::Locked (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
Source§fn delete_item() -> Weight
fn delete_item() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:1)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Scarcity::ItemMetadata (r:1 w:0)
Proof: Scarcity::ItemMetadata (max_values: None, max_size: Some(347), added: 2822, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn delete_collection() -> Weight
fn delete_collection() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: Scarcity::ItemDefs (r:1 w:0)
Proof: Scarcity::ItemDefs (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
Storage: Scarcity::CollectionMetadata (r:1 w:0)
Proof: Scarcity::CollectionMetadata (max_values: None, max_size: Some(335), added: 2810, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn claim_collection_ownership() -> Weight
fn claim_collection_ownership() -> Weight
Storage: Scarcity::Collections (r:1 w:1)
Proof: Scarcity::Collections (max_values: None, max_size: Some(137), added: 2612, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Balances::Holds (r:2 w:2)
Proof: Balances::Holds (max_values: None, max_size: Some(571), added: 3046, mode: MaxEncodedLen)
Source§fn as_scarcity_pipeline() -> Weight
fn as_scarcity_pipeline() -> Weight
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: Scarcity::Locked (r:1 w:1)
Proof: Scarcity::Locked (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
Storage: Scarcity::NftsByOwner (r:2 w:1)
Proof: Scarcity::NftsByOwner (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)