mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Remove a max supply record on collection's destruction (#11593)
* Remove a max supply record on collection's destruction * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
@@ -117,6 +117,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
|||||||
Attribute::<T, I>::remove_prefix((&collection,), None);
|
Attribute::<T, I>::remove_prefix((&collection,), None);
|
||||||
CollectionAccount::<T, I>::remove(&collection_details.owner, &collection);
|
CollectionAccount::<T, I>::remove(&collection_details.owner, &collection);
|
||||||
T::Currency::unreserve(&collection_details.owner, collection_details.total_deposit);
|
T::Currency::unreserve(&collection_details.owner, collection_details.total_deposit);
|
||||||
|
CollectionMaxSupply::<T, I>::remove(&collection);
|
||||||
|
|
||||||
Self::deposit_event(Event::Destroyed { collection });
|
Self::deposit_event(Event::Destroyed { collection });
|
||||||
|
|
||||||
|
|||||||
@@ -684,5 +684,13 @@ fn max_supply_should_work() {
|
|||||||
Uniques::mint(Origin::signed(user_id), collection_id, 2, user_id),
|
Uniques::mint(Origin::signed(user_id), collection_id, 2, user_id),
|
||||||
Error::<Test>::MaxSupplyReached
|
Error::<Test>::MaxSupplyReached
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// validate we remove the CollectionMaxSupply record when we destroy the collection
|
||||||
|
assert_ok!(Uniques::destroy(
|
||||||
|
Origin::signed(user_id),
|
||||||
|
collection_id,
|
||||||
|
Collection::<Test>::get(collection_id).unwrap().destroy_witness()
|
||||||
|
));
|
||||||
|
assert!(!CollectionMaxSupply::<Test>::contains_key(collection_id));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
//! Autogenerated weights for pallet_uniques
|
//! Autogenerated weights for pallet_uniques
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2022-05-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2022-06-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
|
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/substrate
|
// target/production/substrate
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=dev
|
// --chain=dev
|
||||||
@@ -32,8 +33,9 @@
|
|||||||
// --extrinsic=*
|
// --extrinsic=*
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --template=./.maintain/frame-weight-template.hbs
|
// --heap-pages=4096
|
||||||
// --output=./frame/uniques/src/weights.rs
|
// --output=./frame/uniques/src/weights.rs
|
||||||
|
// --template=./.maintain/frame-weight-template.hbs
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -76,14 +78,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(28_225_000 as Weight)
|
(27_715_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(16_513_000 as Weight)
|
(16_929_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -93,18 +95,22 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Attribute (r:0 w:1000)
|
// Storage: Uniques Attribute (r:0 w:1000)
|
||||||
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
||||||
|
// Storage: Uniques CollectionMaxSupply (r:0 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:20)
|
// Storage: Uniques Account (r:0 w:20)
|
||||||
|
/// The range of component `n` is `[0, 1000]`.
|
||||||
|
/// The range of component `m` is `[0, 1000]`.
|
||||||
|
/// The range of component `a` is `[0, 1000]`.
|
||||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((10_527_000 as Weight).saturating_mul(n as Weight))
|
.saturating_add((10_481_000 as Weight).saturating_mul(n as Weight))
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((1_505_000 as Weight).saturating_mul(m as Weight))
|
.saturating_add((1_762_000 as Weight).saturating_mul(m as Weight))
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((1_401_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((1_590_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
@@ -114,7 +120,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
||||||
// Storage: Uniques Account (r:0 w:1)
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(35_712_000 as Weight)
|
(36_577_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
@@ -122,7 +128,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:1)
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(35_740_000 as Weight)
|
(36_124_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
@@ -130,16 +136,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:2)
|
// Storage: Uniques Account (r:0 w:2)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(27_425_000 as Weight)
|
(27_225_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques Asset (r:100 w:100)
|
// Storage: Uniques Asset (r:100 w:100)
|
||||||
|
/// The range of component `i` is `[0, 5000]`.
|
||||||
fn redeposit(i: u32, ) -> Weight {
|
fn redeposit(i: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 13_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((12_499_000 as Weight).saturating_mul(i as Weight))
|
.saturating_add((12_407_000 as Weight).saturating_mul(i as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
@@ -148,26 +155,26 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(21_787_000 as Weight)
|
(21_452_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(21_938_000 as Weight)
|
(22_155_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn freeze_collection() -> Weight {
|
fn freeze_collection() -> Weight {
|
||||||
(17_122_000 as Weight)
|
(16_897_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn thaw_collection() -> Weight {
|
fn thaw_collection() -> Weight {
|
||||||
(17_188_000 as Weight)
|
(16_657_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
@@ -175,20 +182,20 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:2)
|
// Storage: Uniques ClassAccount (r:0 w:2)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(24_539_000 as Weight)
|
(25_057_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(17_808_000 as Weight)
|
(17_253_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn force_item_status() -> Weight {
|
fn force_item_status() -> Weight {
|
||||||
(20_251_000 as Weight)
|
(20_010_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -196,7 +203,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
// Storage: Uniques Attribute (r:1 w:1)
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn set_attribute() -> Weight {
|
fn set_attribute() -> Weight {
|
||||||
(41_106_000 as Weight)
|
(41_159_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -204,62 +211,62 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
// Storage: Uniques Attribute (r:1 w:1)
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn clear_attribute() -> Weight {
|
fn clear_attribute() -> Weight {
|
||||||
(40_049_000 as Weight)
|
(39_598_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn set_metadata() -> Weight {
|
fn set_metadata() -> Weight {
|
||||||
(33_701_000 as Weight)
|
(33_387_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(33_733_000 as Weight)
|
(33_208_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn set_collection_metadata() -> Weight {
|
fn set_collection_metadata() -> Weight {
|
||||||
(32_848_000 as Weight)
|
(32_619_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn clear_collection_metadata() -> Weight {
|
fn clear_collection_metadata() -> Weight {
|
||||||
(30_232_000 as Weight)
|
(31_028_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(22_890_000 as Weight)
|
(22_263_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(22_845_000 as Weight)
|
(22_910_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
||||||
fn set_accept_ownership() -> Weight {
|
fn set_accept_ownership() -> Weight {
|
||||||
(21_490_000 as Weight)
|
(20_716_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn set_collection_max_supply() -> Weight {
|
fn set_collection_max_supply() -> Weight {
|
||||||
(19_412_000 as Weight)
|
(19_380_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
@@ -270,14 +277,14 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(28_225_000 as Weight)
|
(27_715_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(16_513_000 as Weight)
|
(16_929_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -287,18 +294,22 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Attribute (r:0 w:1000)
|
// Storage: Uniques Attribute (r:0 w:1000)
|
||||||
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
||||||
|
// Storage: Uniques CollectionMaxSupply (r:0 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:20)
|
// Storage: Uniques Account (r:0 w:20)
|
||||||
|
/// The range of component `n` is `[0, 1000]`.
|
||||||
|
/// The range of component `m` is `[0, 1000]`.
|
||||||
|
/// The range of component `a` is `[0, 1000]`.
|
||||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((10_527_000 as Weight).saturating_mul(n as Weight))
|
.saturating_add((10_481_000 as Weight).saturating_mul(n as Weight))
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((1_505_000 as Weight).saturating_mul(m as Weight))
|
.saturating_add((1_762_000 as Weight).saturating_mul(m as Weight))
|
||||||
// Standard Error: 15_000
|
// Standard Error: 16_000
|
||||||
.saturating_add((1_401_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((1_590_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
||||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
@@ -308,7 +319,7 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
// Storage: Uniques CollectionMaxSupply (r:1 w:0)
|
||||||
// Storage: Uniques Account (r:0 w:1)
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(35_712_000 as Weight)
|
(36_577_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
@@ -316,7 +327,7 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:1)
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(35_740_000 as Weight)
|
(36_124_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
@@ -324,16 +335,17 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Account (r:0 w:2)
|
// Storage: Uniques Account (r:0 w:2)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(27_425_000 as Weight)
|
(27_225_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques Asset (r:100 w:100)
|
// Storage: Uniques Asset (r:100 w:100)
|
||||||
|
/// The range of component `i` is `[0, 5000]`.
|
||||||
fn redeposit(i: u32, ) -> Weight {
|
fn redeposit(i: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 13_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((12_499_000 as Weight).saturating_mul(i as Weight))
|
.saturating_add((12_407_000 as Weight).saturating_mul(i as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
@@ -342,26 +354,26 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(21_787_000 as Weight)
|
(21_452_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(21_938_000 as Weight)
|
(22_155_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn freeze_collection() -> Weight {
|
fn freeze_collection() -> Weight {
|
||||||
(17_122_000 as Weight)
|
(16_897_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn thaw_collection() -> Weight {
|
fn thaw_collection() -> Weight {
|
||||||
(17_188_000 as Weight)
|
(16_657_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
@@ -369,20 +381,20 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:2)
|
// Storage: Uniques ClassAccount (r:0 w:2)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(24_539_000 as Weight)
|
(25_057_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(17_808_000 as Weight)
|
(17_253_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||||
fn force_item_status() -> Weight {
|
fn force_item_status() -> Weight {
|
||||||
(20_251_000 as Weight)
|
(20_010_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -390,7 +402,7 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
// Storage: Uniques Attribute (r:1 w:1)
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn set_attribute() -> Weight {
|
fn set_attribute() -> Weight {
|
||||||
(41_106_000 as Weight)
|
(41_159_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
@@ -398,62 +410,62 @@ impl WeightInfo for () {
|
|||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
// Storage: Uniques Attribute (r:1 w:1)
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn clear_attribute() -> Weight {
|
fn clear_attribute() -> Weight {
|
||||||
(40_049_000 as Weight)
|
(39_598_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn set_metadata() -> Weight {
|
fn set_metadata() -> Weight {
|
||||||
(33_701_000 as Weight)
|
(33_387_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(33_733_000 as Weight)
|
(33_208_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:1)
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn set_collection_metadata() -> Weight {
|
fn set_collection_metadata() -> Weight {
|
||||||
(32_848_000 as Weight)
|
(32_619_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn clear_collection_metadata() -> Weight {
|
fn clear_collection_metadata() -> Weight {
|
||||||
(30_232_000 as Weight)
|
(31_028_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(22_890_000 as Weight)
|
(22_263_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
// Storage: Uniques Asset (r:1 w:1)
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(22_845_000 as Weight)
|
(22_910_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
// Storage: Uniques OwnershipAcceptance (r:1 w:1)
|
||||||
fn set_accept_ownership() -> Weight {
|
fn set_accept_ownership() -> Weight {
|
||||||
(21_490_000 as Weight)
|
(20_716_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
// Storage: Uniques CollectionMaxSupply (r:1 w:1)
|
||||||
// Storage: Uniques Class (r:1 w:0)
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn set_collection_max_supply() -> Weight {
|
fn set_collection_max_supply() -> Weight {
|
||||||
(19_412_000 as Weight)
|
(19_380_000 as Weight)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
//! Autogenerated weights for pallet_utility
|
//! Autogenerated weights for pallet_utility
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2022-05-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2022-06-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
|
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/substrate
|
// target/production/substrate
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=dev
|
// --chain=dev
|
||||||
@@ -32,8 +33,9 @@
|
|||||||
// --extrinsic=*
|
// --extrinsic=*
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --template=./.maintain/frame-weight-template.hbs
|
// --heap-pages=4096
|
||||||
// --output=./frame/utility/src/weights.rs
|
// --output=./frame/utility/src/weights.rs
|
||||||
|
// --template=./.maintain/frame-weight-template.hbs
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -54,50 +56,56 @@ pub trait WeightInfo {
|
|||||||
/// Weights for pallet_utility using the Substrate node and recommended hardware.
|
/// Weights for pallet_utility using the Substrate node and recommended hardware.
|
||||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn batch(c: u32, ) -> Weight {
|
fn batch(c: u32, ) -> Weight {
|
||||||
(20_307_000 as Weight)
|
(23_113_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn as_derivative() -> Weight {
|
fn as_derivative() -> Weight {
|
||||||
(4_082_000 as Weight)
|
(4_182_000 as Weight)
|
||||||
}
|
}
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn batch_all(c: u32, ) -> Weight {
|
fn batch_all(c: u32, ) -> Weight {
|
||||||
(3_087_000 as Weight)
|
(18_682_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((2_842_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_794_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn dispatch_as() -> Weight {
|
fn dispatch_as() -> Weight {
|
||||||
(11_832_000 as Weight)
|
(12_049_000 as Weight)
|
||||||
}
|
}
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn force_batch(c: u32, ) -> Weight {
|
fn force_batch(c: u32, ) -> Weight {
|
||||||
(19_750_000 as Weight)
|
(19_136_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((2_715_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_697_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For backwards compatibility and tests
|
// For backwards compatibility and tests
|
||||||
impl WeightInfo for () {
|
impl WeightInfo for () {
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn batch(c: u32, ) -> Weight {
|
fn batch(c: u32, ) -> Weight {
|
||||||
(20_307_000 as Weight)
|
(23_113_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn as_derivative() -> Weight {
|
fn as_derivative() -> Weight {
|
||||||
(4_082_000 as Weight)
|
(4_182_000 as Weight)
|
||||||
}
|
}
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn batch_all(c: u32, ) -> Weight {
|
fn batch_all(c: u32, ) -> Weight {
|
||||||
(3_087_000 as Weight)
|
(18_682_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((2_842_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_794_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn dispatch_as() -> Weight {
|
fn dispatch_as() -> Weight {
|
||||||
(11_832_000 as Weight)
|
(12_049_000 as Weight)
|
||||||
}
|
}
|
||||||
|
/// The range of component `c` is `[0, 1000]`.
|
||||||
fn force_batch(c: u32, ) -> Weight {
|
fn force_batch(c: u32, ) -> Weight {
|
||||||
(19_750_000 as Weight)
|
(19_136_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((2_715_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((2_697_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user