mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 14:41:11 +00:00
Referendum proposal's metadata (#12568)
* referenda metadata * todo comment * remove TODO, update rustdocs * referenda clear_metadata origin signed or root * referenda metadata unit tests * drop schema type for referenda metadata * remove metadata type * referenda metadata benches * note different preimages * metadata for democracy pallet * metadata democracy pallet tests and benches * fix cargo clippy * update docs * ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy * ".git/.scripts/bench-bot.sh" pallet dev pallet_referenda * Update the doc frame/democracy/src/lib.rs Co-authored-by: Roman Useinov <roman.useinov@gmail.com> * Update the doc frame/democracy/src/lib.rs Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com> * reference instead clone for take Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com> * error rename BadMetadata to PreimageNotExist * clear metadata within internal_cancel_referendum fn * remove redundant clone * collapse metadata api into one set_metadata method * fmt * review fixes * not request preimage on set_metadata * rename events and update docs * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_democracy * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_referenda * rename reset_metadata to transfer_metadata --------- Co-authored-by: command-bot <> Co-authored-by: Roman Useinov <roman.useinov@gmail.com> Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com>
This commit is contained in:
@@ -18,25 +18,26 @@
|
||||
//! Autogenerated weights for pallet_democracy
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! HOSTNAME: `runner-b3zmxxc-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_democracy
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/democracy/src/weights.rs
|
||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_democracy
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/democracy/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -70,6 +71,12 @@ pub trait WeightInfo {
|
||||
fn unlock_set(r: u32, ) -> Weight;
|
||||
fn remove_vote(r: u32, ) -> Weight;
|
||||
fn remove_other_vote(r: u32, ) -> Weight;
|
||||
fn set_external_metadata() -> Weight;
|
||||
fn clear_external_metadata() -> Weight;
|
||||
fn set_proposal_metadata() -> Weight;
|
||||
fn clear_proposal_metadata() -> Weight;
|
||||
fn set_referendum_metadata() -> Weight;
|
||||
fn clear_referendum_metadata() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_democracy using the Substrate node and recommended hardware.
|
||||
@@ -87,8 +94,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4864`
|
||||
// Estimated: `23409`
|
||||
// Minimum execution time: 34_509 nanoseconds.
|
||||
Weight::from_parts(34_781_000, 23409)
|
||||
// Minimum execution time: 42_939 nanoseconds.
|
||||
Weight::from_parts(43_543_000, 23409)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -98,8 +105,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3620`
|
||||
// Estimated: `5705`
|
||||
// Minimum execution time: 31_151 nanoseconds.
|
||||
Weight::from_parts(31_566_000, 5705)
|
||||
// Minimum execution time: 36_475 nanoseconds.
|
||||
Weight::from_parts(37_863_000, 5705)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -111,10 +118,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn vote_new() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3555`
|
||||
// Measured: `3565`
|
||||
// Estimated: `12720`
|
||||
// Minimum execution time: 42_618 nanoseconds.
|
||||
Weight::from_parts(43_231_000, 12720)
|
||||
// Minimum execution time: 56_372 nanoseconds.
|
||||
Weight::from_parts(57_483_000, 12720)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -126,10 +133,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn vote_existing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3577`
|
||||
// Measured: `3587`
|
||||
// Estimated: `12720`
|
||||
// Minimum execution time: 42_875 nanoseconds.
|
||||
Weight::from_parts(43_338_000, 12720)
|
||||
// Minimum execution time: 56_789 nanoseconds.
|
||||
Weight::from_parts(57_737_000, 12720)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -137,14 +144,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy Cancellations (r:1 w:1)
|
||||
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn emergency_cancel() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `5184`
|
||||
// Minimum execution time: 16_543 nanoseconds.
|
||||
Weight::from_parts(16_762_000, 5184)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
// Measured: `398`
|
||||
// Estimated: `7712`
|
||||
// Minimum execution time: 24_379 nanoseconds.
|
||||
Weight::from_parts(25_302_000, 7712)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:1)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
@@ -152,6 +161,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:3 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
@@ -160,12 +171,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
||||
fn blacklist() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5958`
|
||||
// Estimated: `28808`
|
||||
// Minimum execution time: 70_135 nanoseconds.
|
||||
Weight::from_parts(70_616_000, 28808)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
// Measured: `6036`
|
||||
// Estimated: `36392`
|
||||
// Minimum execution time: 100_345 nanoseconds.
|
||||
Weight::from_parts(102_233_000, 36392)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
@@ -175,8 +186,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3448`
|
||||
// Estimated: `6340`
|
||||
// Minimum execution time: 12_580 nanoseconds.
|
||||
Weight::from_parts(12_987_000, 6340)
|
||||
// Minimum execution time: 13_155 nanoseconds.
|
||||
Weight::from_parts(14_158_000, 6340)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -186,8 +197,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_320 nanoseconds.
|
||||
Weight::from_ref_time(3_513_000)
|
||||
// Minimum execution time: 2_961 nanoseconds.
|
||||
Weight::from_ref_time(3_139_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:0 w:1)
|
||||
@@ -196,37 +207,41 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_407 nanoseconds.
|
||||
Weight::from_ref_time(3_565_000)
|
||||
// Minimum execution time: 3_040 nanoseconds.
|
||||
Weight::from_ref_time(3_261_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumCount (r:1 w:1)
|
||||
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:2)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
fn fast_track() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `212`
|
||||
// Estimated: `1126`
|
||||
// Minimum execution time: 16_831 nanoseconds.
|
||||
Weight::from_parts(17_155_000, 1126)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
// Measured: `286`
|
||||
// Estimated: `3654`
|
||||
// Minimum execution time: 26_666 nanoseconds.
|
||||
Weight::from_parts(28_014_000, 3654)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy Blacklist (r:1 w:1)
|
||||
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn veto_external() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3477`
|
||||
// Estimated: `6340`
|
||||
// Minimum execution time: 22_072 nanoseconds.
|
||||
Weight::from_parts(22_517_000, 6340)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
// Measured: `3551`
|
||||
// Estimated: `8868`
|
||||
// Minimum execution time: 30_180 nanoseconds.
|
||||
Weight::from_parts(31_593_000, 8868)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:1)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
@@ -234,24 +249,29 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn cancel_proposal() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5837`
|
||||
// Estimated: `25505`
|
||||
// Minimum execution time: 56_925 nanoseconds.
|
||||
Weight::from_parts(57_253_000, 25505)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
// Measured: `5915`
|
||||
// Estimated: `28033`
|
||||
// Minimum execution time: 80_780 nanoseconds.
|
||||
Weight::from_parts(82_070_000, 28033)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
fn cancel_referendum() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_582 nanoseconds.
|
||||
Weight::from_ref_time(8_754_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
// Measured: `271`
|
||||
// Estimated: `2528`
|
||||
// Minimum execution time: 18_117 nanoseconds.
|
||||
Weight::from_parts(19_027_000, 2528)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
@@ -262,12 +282,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn on_initialize_base(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `207 + r * (117 ±0)`
|
||||
// Measured: `244 + r * (117 ±0)`
|
||||
// Estimated: `998 + r * (2676 ±0)`
|
||||
// Minimum execution time: 6_665 nanoseconds.
|
||||
Weight::from_parts(9_219_932, 998)
|
||||
// Standard Error: 4_236
|
||||
.saturating_add(Weight::from_ref_time(2_194_623).saturating_mul(r.into()))
|
||||
// Minimum execution time: 7_093 nanoseconds.
|
||||
Weight::from_parts(8_792_955, 998)
|
||||
// Standard Error: 6_630
|
||||
.saturating_add(Weight::from_ref_time(3_091_565).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
@@ -288,12 +308,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `207 + r * (117 ±0)`
|
||||
// Measured: `244 + r * (117 ±0)`
|
||||
// Estimated: `19318 + r * (2676 ±0)`
|
||||
// Minimum execution time: 9_842 nanoseconds.
|
||||
Weight::from_parts(11_932_535, 19318)
|
||||
// Standard Error: 4_413
|
||||
.saturating_add(Weight::from_ref_time(2_199_644).saturating_mul(r.into()))
|
||||
// Minimum execution time: 10_372 nanoseconds.
|
||||
Weight::from_parts(10_961_165, 19318)
|
||||
// Standard Error: 7_284
|
||||
.saturating_add(Weight::from_ref_time(3_112_573).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
@@ -308,12 +328,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `948 + r * (139 ±0)`
|
||||
// Measured: `958 + r * (139 ±0)`
|
||||
// Estimated: `22584 + r * (2676 ±0)`
|
||||
// Minimum execution time: 34_740 nanoseconds.
|
||||
Weight::from_parts(38_366_374, 22584)
|
||||
// Standard Error: 4_868
|
||||
.saturating_add(Weight::from_ref_time(3_286_516).saturating_mul(r.into()))
|
||||
// Minimum execution time: 36_618 nanoseconds.
|
||||
Weight::from_parts(42_803_184, 22584)
|
||||
// Standard Error: 7_268
|
||||
.saturating_add(Weight::from_ref_time(4_537_902).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
@@ -327,12 +347,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547 + r * (139 ±0)`
|
||||
// Measured: `557 + r * (139 ±0)`
|
||||
// Estimated: `12540 + r * (2676 ±0)`
|
||||
// Minimum execution time: 19_516 nanoseconds.
|
||||
Weight::from_parts(21_629_605, 12540)
|
||||
// Standard Error: 4_401
|
||||
.saturating_add(Weight::from_ref_time(3_238_187).saturating_mul(r.into()))
|
||||
// Minimum execution time: 19_758 nanoseconds.
|
||||
Weight::from_parts(21_641_793, 12540)
|
||||
// Standard Error: 6_889
|
||||
.saturating_add(Weight::from_ref_time(4_478_884).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
@@ -345,8 +365,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_291 nanoseconds.
|
||||
Weight::from_ref_time(3_485_000)
|
||||
// Minimum execution time: 2_844 nanoseconds.
|
||||
Weight::from_ref_time(3_017_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy VotingOf (r:1 w:1)
|
||||
@@ -358,12 +378,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn unlock_remove(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `617`
|
||||
// Measured: `627`
|
||||
// Estimated: `12647`
|
||||
// Minimum execution time: 19_357 nanoseconds.
|
||||
Weight::from_parts(24_014_517, 12647)
|
||||
// Standard Error: 994
|
||||
.saturating_add(Weight::from_ref_time(17_096).saturating_mul(r.into()))
|
||||
// Minimum execution time: 20_380 nanoseconds.
|
||||
Weight::from_parts(28_295_875, 12647)
|
||||
// Standard Error: 2_331
|
||||
.saturating_add(Weight::from_ref_time(67_348).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -376,12 +396,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn unlock_set(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `618 + r * (22 ±0)`
|
||||
// Measured: `628 + r * (22 ±0)`
|
||||
// Estimated: `12647`
|
||||
// Minimum execution time: 22_340 nanoseconds.
|
||||
Weight::from_parts(23_355_734, 12647)
|
||||
// Standard Error: 548
|
||||
.saturating_add(Weight::from_ref_time(64_308).saturating_mul(r.into()))
|
||||
// Minimum execution time: 24_475 nanoseconds.
|
||||
Weight::from_parts(27_102_576, 12647)
|
||||
// Standard Error: 1_464
|
||||
.saturating_add(Weight::from_ref_time(128_921).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -392,12 +412,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[1, 100]`.
|
||||
fn remove_vote(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `781 + r * (26 ±0)`
|
||||
// Measured: `791 + r * (26 ±0)`
|
||||
// Estimated: `8946`
|
||||
// Minimum execution time: 14_542 nanoseconds.
|
||||
Weight::from_parts(16_411_916, 8946)
|
||||
// Standard Error: 839
|
||||
.saturating_add(Weight::from_ref_time(73_268).saturating_mul(r.into()))
|
||||
// Minimum execution time: 15_039 nanoseconds.
|
||||
Weight::from_parts(19_252_498, 8946)
|
||||
// Standard Error: 1_798
|
||||
.saturating_add(Weight::from_ref_time(131_855).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -408,15 +428,97 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `r` is `[1, 100]`.
|
||||
fn remove_other_vote(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `781 + r * (26 ±0)`
|
||||
// Measured: `791 + r * (26 ±0)`
|
||||
// Estimated: `8946`
|
||||
// Minimum execution time: 14_463 nanoseconds.
|
||||
Weight::from_parts(16_302_901, 8946)
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(73_692).saturating_mul(r.into()))
|
||||
// Minimum execution time: 14_837 nanoseconds.
|
||||
Weight::from_parts(19_144_929, 8946)
|
||||
// Standard Error: 1_875
|
||||
.saturating_add(Weight::from_ref_time(136_819).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:0)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_external_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `356`
|
||||
// Estimated: `3193`
|
||||
// Minimum execution time: 17_338 nanoseconds.
|
||||
Weight::from_parts(17_946_000, 3193)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:0)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_external_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `286`
|
||||
// Estimated: `3155`
|
||||
// Minimum execution time: 15_364 nanoseconds.
|
||||
Weight::from_parts(15_990_000, 3155)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:0)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_proposal_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4919`
|
||||
// Estimated: `19763`
|
||||
// Minimum execution time: 37_147 nanoseconds.
|
||||
Weight::from_parts(37_778_000, 19763)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:0)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_proposal_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4853`
|
||||
// Estimated: `19725`
|
||||
// Minimum execution time: 34_118 nanoseconds.
|
||||
Weight::from_parts(34_737_000, 19725)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_referendum_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 12_787 nanoseconds.
|
||||
Weight::from_parts(13_463_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_referendum_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `302`
|
||||
// Estimated: `5204`
|
||||
// Minimum execution time: 17_636 nanoseconds.
|
||||
Weight::from_parts(18_399_000, 5204)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
@@ -433,8 +535,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4864`
|
||||
// Estimated: `23409`
|
||||
// Minimum execution time: 34_509 nanoseconds.
|
||||
Weight::from_parts(34_781_000, 23409)
|
||||
// Minimum execution time: 42_939 nanoseconds.
|
||||
Weight::from_parts(43_543_000, 23409)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -444,8 +546,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3620`
|
||||
// Estimated: `5705`
|
||||
// Minimum execution time: 31_151 nanoseconds.
|
||||
Weight::from_parts(31_566_000, 5705)
|
||||
// Minimum execution time: 36_475 nanoseconds.
|
||||
Weight::from_parts(37_863_000, 5705)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -457,10 +559,10 @@ impl WeightInfo for () {
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn vote_new() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3555`
|
||||
// Measured: `3565`
|
||||
// Estimated: `12720`
|
||||
// Minimum execution time: 42_618 nanoseconds.
|
||||
Weight::from_parts(43_231_000, 12720)
|
||||
// Minimum execution time: 56_372 nanoseconds.
|
||||
Weight::from_parts(57_483_000, 12720)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -472,10 +574,10 @@ impl WeightInfo for () {
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn vote_existing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3577`
|
||||
// Measured: `3587`
|
||||
// Estimated: `12720`
|
||||
// Minimum execution time: 42_875 nanoseconds.
|
||||
Weight::from_parts(43_338_000, 12720)
|
||||
// Minimum execution time: 56_789 nanoseconds.
|
||||
Weight::from_parts(57_737_000, 12720)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -483,14 +585,16 @@ impl WeightInfo for () {
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy Cancellations (r:1 w:1)
|
||||
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn emergency_cancel() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `5184`
|
||||
// Minimum execution time: 16_543 nanoseconds.
|
||||
Weight::from_parts(16_762_000, 5184)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
// Measured: `398`
|
||||
// Estimated: `7712`
|
||||
// Minimum execution time: 24_379 nanoseconds.
|
||||
Weight::from_parts(25_302_000, 7712)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:1)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
@@ -498,6 +602,8 @@ impl WeightInfo for () {
|
||||
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:3 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
@@ -506,12 +612,12 @@ impl WeightInfo for () {
|
||||
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
||||
fn blacklist() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5958`
|
||||
// Estimated: `28808`
|
||||
// Minimum execution time: 70_135 nanoseconds.
|
||||
Weight::from_parts(70_616_000, 28808)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
// Measured: `6036`
|
||||
// Estimated: `36392`
|
||||
// Minimum execution time: 100_345 nanoseconds.
|
||||
Weight::from_parts(102_233_000, 36392)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
@@ -521,8 +627,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3448`
|
||||
// Estimated: `6340`
|
||||
// Minimum execution time: 12_580 nanoseconds.
|
||||
Weight::from_parts(12_987_000, 6340)
|
||||
// Minimum execution time: 13_155 nanoseconds.
|
||||
Weight::from_parts(14_158_000, 6340)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -532,8 +638,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_320 nanoseconds.
|
||||
Weight::from_ref_time(3_513_000)
|
||||
// Minimum execution time: 2_961 nanoseconds.
|
||||
Weight::from_ref_time(3_139_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:0 w:1)
|
||||
@@ -542,37 +648,41 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_407 nanoseconds.
|
||||
Weight::from_ref_time(3_565_000)
|
||||
// Minimum execution time: 3_040 nanoseconds.
|
||||
Weight::from_ref_time(3_261_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumCount (r:1 w:1)
|
||||
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:2)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
fn fast_track() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `212`
|
||||
// Estimated: `1126`
|
||||
// Minimum execution time: 16_831 nanoseconds.
|
||||
Weight::from_parts(17_155_000, 1126)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
// Measured: `286`
|
||||
// Estimated: `3654`
|
||||
// Minimum execution time: 26_666 nanoseconds.
|
||||
Weight::from_parts(28_014_000, 3654)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:1)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy Blacklist (r:1 w:1)
|
||||
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn veto_external() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3477`
|
||||
// Estimated: `6340`
|
||||
// Minimum execution time: 22_072 nanoseconds.
|
||||
Weight::from_parts(22_517_000, 6340)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
// Measured: `3551`
|
||||
// Estimated: `8868`
|
||||
// Minimum execution time: 30_180 nanoseconds.
|
||||
Weight::from_parts(31_593_000, 8868)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:1)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
@@ -580,24 +690,29 @@ impl WeightInfo for () {
|
||||
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn cancel_proposal() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5837`
|
||||
// Estimated: `25505`
|
||||
// Minimum execution time: 56_925 nanoseconds.
|
||||
Weight::from_parts(57_253_000, 25505)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
// Measured: `5915`
|
||||
// Estimated: `28033`
|
||||
// Minimum execution time: 80_780 nanoseconds.
|
||||
Weight::from_parts(82_070_000, 28033)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
fn cancel_referendum() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_582 nanoseconds.
|
||||
Weight::from_ref_time(8_754_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
// Measured: `271`
|
||||
// Estimated: `2528`
|
||||
// Minimum execution time: 18_117 nanoseconds.
|
||||
Weight::from_parts(19_027_000, 2528)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
@@ -608,12 +723,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn on_initialize_base(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `207 + r * (117 ±0)`
|
||||
// Measured: `244 + r * (117 ±0)`
|
||||
// Estimated: `998 + r * (2676 ±0)`
|
||||
// Minimum execution time: 6_665 nanoseconds.
|
||||
Weight::from_parts(9_219_932, 998)
|
||||
// Standard Error: 4_236
|
||||
.saturating_add(Weight::from_ref_time(2_194_623).saturating_mul(r.into()))
|
||||
// Minimum execution time: 7_093 nanoseconds.
|
||||
Weight::from_parts(8_792_955, 998)
|
||||
// Standard Error: 6_630
|
||||
.saturating_add(Weight::from_ref_time(3_091_565).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
@@ -634,12 +749,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `207 + r * (117 ±0)`
|
||||
// Measured: `244 + r * (117 ±0)`
|
||||
// Estimated: `19318 + r * (2676 ±0)`
|
||||
// Minimum execution time: 9_842 nanoseconds.
|
||||
Weight::from_parts(11_932_535, 19318)
|
||||
// Standard Error: 4_413
|
||||
.saturating_add(Weight::from_ref_time(2_199_644).saturating_mul(r.into()))
|
||||
// Minimum execution time: 10_372 nanoseconds.
|
||||
Weight::from_parts(10_961_165, 19318)
|
||||
// Standard Error: 7_284
|
||||
.saturating_add(Weight::from_ref_time(3_112_573).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
@@ -654,12 +769,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `948 + r * (139 ±0)`
|
||||
// Measured: `958 + r * (139 ±0)`
|
||||
// Estimated: `22584 + r * (2676 ±0)`
|
||||
// Minimum execution time: 34_740 nanoseconds.
|
||||
Weight::from_parts(38_366_374, 22584)
|
||||
// Standard Error: 4_868
|
||||
.saturating_add(Weight::from_ref_time(3_286_516).saturating_mul(r.into()))
|
||||
// Minimum execution time: 36_618 nanoseconds.
|
||||
Weight::from_parts(42_803_184, 22584)
|
||||
// Standard Error: 7_268
|
||||
.saturating_add(Weight::from_ref_time(4_537_902).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
@@ -673,12 +788,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547 + r * (139 ±0)`
|
||||
// Measured: `557 + r * (139 ±0)`
|
||||
// Estimated: `12540 + r * (2676 ±0)`
|
||||
// Minimum execution time: 19_516 nanoseconds.
|
||||
Weight::from_parts(21_629_605, 12540)
|
||||
// Standard Error: 4_401
|
||||
.saturating_add(Weight::from_ref_time(3_238_187).saturating_mul(r.into()))
|
||||
// Minimum execution time: 19_758 nanoseconds.
|
||||
Weight::from_parts(21_641_793, 12540)
|
||||
// Standard Error: 6_889
|
||||
.saturating_add(Weight::from_ref_time(4_478_884).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
@@ -691,8 +806,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_291 nanoseconds.
|
||||
Weight::from_ref_time(3_485_000)
|
||||
// Minimum execution time: 2_844 nanoseconds.
|
||||
Weight::from_ref_time(3_017_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy VotingOf (r:1 w:1)
|
||||
@@ -704,12 +819,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn unlock_remove(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `617`
|
||||
// Measured: `627`
|
||||
// Estimated: `12647`
|
||||
// Minimum execution time: 19_357 nanoseconds.
|
||||
Weight::from_parts(24_014_517, 12647)
|
||||
// Standard Error: 994
|
||||
.saturating_add(Weight::from_ref_time(17_096).saturating_mul(r.into()))
|
||||
// Minimum execution time: 20_380 nanoseconds.
|
||||
Weight::from_parts(28_295_875, 12647)
|
||||
// Standard Error: 2_331
|
||||
.saturating_add(Weight::from_ref_time(67_348).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -722,12 +837,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[0, 99]`.
|
||||
fn unlock_set(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `618 + r * (22 ±0)`
|
||||
// Measured: `628 + r * (22 ±0)`
|
||||
// Estimated: `12647`
|
||||
// Minimum execution time: 22_340 nanoseconds.
|
||||
Weight::from_parts(23_355_734, 12647)
|
||||
// Standard Error: 548
|
||||
.saturating_add(Weight::from_ref_time(64_308).saturating_mul(r.into()))
|
||||
// Minimum execution time: 24_475 nanoseconds.
|
||||
Weight::from_parts(27_102_576, 12647)
|
||||
// Standard Error: 1_464
|
||||
.saturating_add(Weight::from_ref_time(128_921).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -738,12 +853,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[1, 100]`.
|
||||
fn remove_vote(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `781 + r * (26 ±0)`
|
||||
// Measured: `791 + r * (26 ±0)`
|
||||
// Estimated: `8946`
|
||||
// Minimum execution time: 14_542 nanoseconds.
|
||||
Weight::from_parts(16_411_916, 8946)
|
||||
// Standard Error: 839
|
||||
.saturating_add(Weight::from_ref_time(73_268).saturating_mul(r.into()))
|
||||
// Minimum execution time: 15_039 nanoseconds.
|
||||
Weight::from_parts(19_252_498, 8946)
|
||||
// Standard Error: 1_798
|
||||
.saturating_add(Weight::from_ref_time(131_855).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -754,13 +869,95 @@ impl WeightInfo for () {
|
||||
/// The range of component `r` is `[1, 100]`.
|
||||
fn remove_other_vote(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `781 + r * (26 ±0)`
|
||||
// Measured: `791 + r * (26 ±0)`
|
||||
// Estimated: `8946`
|
||||
// Minimum execution time: 14_463 nanoseconds.
|
||||
Weight::from_parts(16_302_901, 8946)
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(73_692).saturating_mul(r.into()))
|
||||
// Minimum execution time: 14_837 nanoseconds.
|
||||
Weight::from_parts(19_144_929, 8946)
|
||||
// Standard Error: 1_875
|
||||
.saturating_add(Weight::from_ref_time(136_819).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:0)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_external_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `356`
|
||||
// Estimated: `3193`
|
||||
// Minimum execution time: 17_338 nanoseconds.
|
||||
Weight::from_parts(17_946_000, 3193)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy NextExternal (r:1 w:0)
|
||||
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_external_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `286`
|
||||
// Estimated: `3155`
|
||||
// Minimum execution time: 15_364 nanoseconds.
|
||||
Weight::from_parts(15_990_000, 3155)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:0)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_proposal_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4919`
|
||||
// Estimated: `19763`
|
||||
// Minimum execution time: 37_147 nanoseconds.
|
||||
Weight::from_parts(37_778_000, 19763)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy PublicProps (r:1 w:0)
|
||||
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_proposal_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4853`
|
||||
// Estimated: `19725`
|
||||
// Minimum execution time: 34_118 nanoseconds.
|
||||
Weight::from_parts(34_737_000, 19725)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Preimage StatusFor (r:1 w:0)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:0 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn set_referendum_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 12_787 nanoseconds.
|
||||
Weight::from_parts(13_463_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
|
||||
/// Storage: Democracy MetadataOf (r:1 w:1)
|
||||
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
|
||||
fn clear_referendum_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `302`
|
||||
// Estimated: `5204`
|
||||
// Minimum execution time: 17_636 nanoseconds.
|
||||
Weight::from_parts(18_399_000, 5204)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user