Revert "FRAME: Create TransactionExtension as a replacement for SignedExtension (#2280)" (#3665)

This PR reverts #2280 which introduced `TransactionExtension` to replace
`SignedExtension`.

As a result of the discussion
[here](https://github.com/paritytech/polkadot-sdk/pull/3623#issuecomment-1986789700),
the changes will be reverted for now with plans to reintroduce the
concept in the future.

---------

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
This commit is contained in:
georgepisaltu
2024-03-13 16:10:59 +02:00
committed by GitHub
parent 60ac5a723c
commit bbd51ce867
350 changed files with 15826 additions and 24304 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ use sp_core::H256;
use sp_runtime::{testing::Header, traits::BlakeTwo256, BuildStorage};
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, RuntimeCall, u64, ()>;
pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, u64, RuntimeCall, ()>;
frame_support::construct_runtime!(
pub enum Test
+323 -354
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_collective`
//! Autogenerated weights for pallet_collective
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-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-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/collective/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/collective/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_collective`.
/// Weight functions needed for pallet_collective.
pub trait WeightInfo {
fn set_members(m: u32, n: u32, p: u32, ) -> Weight;
fn execute(b: u32, m: u32, ) -> Weight;
@@ -63,30 +64,30 @@ pub trait WeightInfo {
fn disapprove_proposal(p: u32, ) -> Weight;
}
/// Weights for `pallet_collective` using the Substrate node and recommended hardware.
/// Weights for pallet_collective using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Council::Members` (r:1 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:100 w:100)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:100 w:100)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[0, 100]`.
/// The range of component `n` is `[0, 100]`.
/// The range of component `p` is `[0, 100]`.
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `15894 + m * (1967 ±23) + p * (4332 ±23)`
// Minimum execution time: 15_559_000 picoseconds.
Weight::from_parts(15_870_000, 15894)
// Standard Error: 54_310
.saturating_add(Weight::from_parts(4_117_753, 0).saturating_mul(m.into()))
// Standard Error: 54_310
.saturating_add(Weight::from_parts(7_677_627, 0).saturating_mul(p.into()))
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
// Minimum execution time: 17_506_000 picoseconds.
Weight::from_parts(17_767_000, 15861)
// Standard Error: 60_220
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
// Standard Error: 60_220
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes(2_u64))
@@ -94,261 +95,245 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 19_024_000 picoseconds.
Weight::from_parts(18_153_872, 3997)
// Standard Error: 46
.saturating_add(Weight::from_parts(1_933, 0).saturating_mul(b.into()))
// Standard Error: 478
.saturating_add(Weight::from_parts(18_872, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `1688 + m * (32 ±0)`
// Minimum execution time: 16_203_000 picoseconds.
Weight::from_parts(15_348_267, 1688)
// Standard Error: 37
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
// Standard Error: 382
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:0)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:0)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 20_895_000 picoseconds.
Weight::from_parts(20_081_761, 3997)
// Standard Error: 57
.saturating_add(Weight::from_parts(1_982, 0).saturating_mul(b.into()))
// Standard Error: 594
.saturating_add(Weight::from_parts(32_085, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `3668 + m * (32 ±0)`
// Minimum execution time: 18_642_000 picoseconds.
Weight::from_parts(17_708_609, 3668)
// Standard Error: 58
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
// Standard Error: 598
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalCount` (r:1 w:1)
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalCount (r:1 w:1)
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 22_068_000 picoseconds.
Weight::from_parts(19_639_088, 3917)
// Standard Error: 104
.saturating_add(Weight::from_parts(3_896, 0).saturating_mul(b.into()))
// Standard Error: 1_095
.saturating_add(Weight::from_parts(31_634, 0).saturating_mul(m.into()))
// Standard Error: 1_081
.saturating_add(Weight::from_parts(178_702, 0).saturating_mul(p.into()))
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 27_067_000 picoseconds.
Weight::from_parts(25_456_964, 3884)
// Standard Error: 112
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
// Standard Error: 1_177
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
// Standard Error: 1_162
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `974 + m * (64 ±0)`
// Estimated: `4438 + m * (64 ±0)`
// Minimum execution time: 22_395_000 picoseconds.
Weight::from_parts(23_025_217, 4438)
// Standard Error: 842
.saturating_add(Weight::from_parts(58_102, 0).saturating_mul(m.into()))
// Measured: `941 + m * (64 ±0)`
// Estimated: `4405 + m * (64 ±0)`
// Minimum execution time: 26_055_000 picoseconds.
Weight::from_parts(27_251_907, 4405)
// Standard Error: 1_008
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 24_179_000 picoseconds.
Weight::from_parts(23_846_394, 4008)
// Standard Error: 1_052
.saturating_add(Weight::from_parts(40_418, 0).saturating_mul(m.into()))
// Standard Error: 1_026
.saturating_add(Weight::from_parts(171_653, 0).saturating_mul(p.into()))
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 28_363_000 picoseconds.
Weight::from_parts(28_733_464, 3975)
// Standard Error: 1_275
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
// Standard Error: 1_244
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_129_000 picoseconds.
Weight::from_parts(40_808_957, 4327)
// Standard Error: 134
.saturating_add(Weight::from_parts(3_579, 0).saturating_mul(b.into()))
// Standard Error: 1_425
.saturating_add(Weight::from_parts(37_166, 0).saturating_mul(m.into()))
// Standard Error: 1_389
.saturating_add(Weight::from_parts(200_986, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 40_391_000 picoseconds.
Weight::from_parts(42_695_215, 4149)
// Standard Error: 167
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
// Standard Error: 1_772
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
// Standard Error: 1_727
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 26_385_000 picoseconds.
Weight::from_parts(25_713_839, 4028)
// Standard Error: 1_254
.saturating_add(Weight::from_parts(36_206, 0).saturating_mul(m.into()))
// Standard Error: 1_223
.saturating_add(Weight::from_parts(195_114, 0).saturating_mul(p.into()))
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 31_368_000 picoseconds.
Weight::from_parts(32_141_835, 3995)
// Standard Error: 1_451
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
// Standard Error: 1_415
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_903_000 picoseconds.
Weight::from_parts(43_152_907, 4347)
// Standard Error: 146
.saturating_add(Weight::from_parts(3_459, 0).saturating_mul(b.into()))
// Standard Error: 1_548
.saturating_add(Weight::from_parts(35_321, 0).saturating_mul(m.into()))
// Standard Error: 1_509
.saturating_add(Weight::from_parts(202_541, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 43_271_000 picoseconds.
Weight::from_parts(45_495_648, 4169)
// Standard Error: 174
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
// Standard Error: 1_840
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
// Standard Error: 1_793
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `392 + p * (32 ±0)`
// Estimated: `1877 + p * (32 ±0)`
// Minimum execution time: 12_656_000 picoseconds.
Weight::from_parts(14_032_951, 1877)
// Standard Error: 1_025
.saturating_add(Weight::from_parts(159_143, 0).saturating_mul(p.into()))
// Measured: `359 + p * (32 ±0)`
// Estimated: `1844 + p * (32 ±0)`
// Minimum execution time: 15_170_000 picoseconds.
Weight::from_parts(17_567_243, 1844)
// Standard Error: 1_430
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Council::Members` (r:1 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:100 w:100)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:100 w:100)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[0, 100]`.
/// The range of component `n` is `[0, 100]`.
/// The range of component `p` is `[0, 100]`.
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `15894 + m * (1967 ±23) + p * (4332 ±23)`
// Minimum execution time: 15_559_000 picoseconds.
Weight::from_parts(15_870_000, 15894)
// Standard Error: 54_310
.saturating_add(Weight::from_parts(4_117_753, 0).saturating_mul(m.into()))
// Standard Error: 54_310
.saturating_add(Weight::from_parts(7_677_627, 0).saturating_mul(p.into()))
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
// Minimum execution time: 17_506_000 picoseconds.
Weight::from_parts(17_767_000, 15861)
// Standard Error: 60_220
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
// Standard Error: 60_220
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(RocksDbWeight::get().writes(2_u64))
@@ -356,232 +341,216 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 19_024_000 picoseconds.
Weight::from_parts(18_153_872, 3997)
// Standard Error: 46
.saturating_add(Weight::from_parts(1_933, 0).saturating_mul(b.into()))
// Standard Error: 478
.saturating_add(Weight::from_parts(18_872, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `1688 + m * (32 ±0)`
// Minimum execution time: 16_203_000 picoseconds.
Weight::from_parts(15_348_267, 1688)
// Standard Error: 37
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
// Standard Error: 382
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:0)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:0)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 20_895_000 picoseconds.
Weight::from_parts(20_081_761, 3997)
// Standard Error: 57
.saturating_add(Weight::from_parts(1_982, 0).saturating_mul(b.into()))
// Standard Error: 594
.saturating_add(Weight::from_parts(32_085, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `3668 + m * (32 ±0)`
// Minimum execution time: 18_642_000 picoseconds.
Weight::from_parts(17_708_609, 3668)
// Standard Error: 58
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
// Standard Error: 598
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalCount` (r:1 w:1)
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalCount (r:1 w:1)
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 22_068_000 picoseconds.
Weight::from_parts(19_639_088, 3917)
// Standard Error: 104
.saturating_add(Weight::from_parts(3_896, 0).saturating_mul(b.into()))
// Standard Error: 1_095
.saturating_add(Weight::from_parts(31_634, 0).saturating_mul(m.into()))
// Standard Error: 1_081
.saturating_add(Weight::from_parts(178_702, 0).saturating_mul(p.into()))
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 27_067_000 picoseconds.
Weight::from_parts(25_456_964, 3884)
// Standard Error: 112
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
// Standard Error: 1_177
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
// Standard Error: 1_162
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `974 + m * (64 ±0)`
// Estimated: `4438 + m * (64 ±0)`
// Minimum execution time: 22_395_000 picoseconds.
Weight::from_parts(23_025_217, 4438)
// Standard Error: 842
.saturating_add(Weight::from_parts(58_102, 0).saturating_mul(m.into()))
// Measured: `941 + m * (64 ±0)`
// Estimated: `4405 + m * (64 ±0)`
// Minimum execution time: 26_055_000 picoseconds.
Weight::from_parts(27_251_907, 4405)
// Standard Error: 1_008
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 24_179_000 picoseconds.
Weight::from_parts(23_846_394, 4008)
// Standard Error: 1_052
.saturating_add(Weight::from_parts(40_418, 0).saturating_mul(m.into()))
// Standard Error: 1_026
.saturating_add(Weight::from_parts(171_653, 0).saturating_mul(p.into()))
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 28_363_000 picoseconds.
Weight::from_parts(28_733_464, 3975)
// Standard Error: 1_275
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
// Standard Error: 1_244
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_129_000 picoseconds.
Weight::from_parts(40_808_957, 4327)
// Standard Error: 134
.saturating_add(Weight::from_parts(3_579, 0).saturating_mul(b.into()))
// Standard Error: 1_425
.saturating_add(Weight::from_parts(37_166, 0).saturating_mul(m.into()))
// Standard Error: 1_389
.saturating_add(Weight::from_parts(200_986, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 40_391_000 picoseconds.
Weight::from_parts(42_695_215, 4149)
// Standard Error: 167
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
// Standard Error: 1_772
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
// Standard Error: 1_727
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 26_385_000 picoseconds.
Weight::from_parts(25_713_839, 4028)
// Standard Error: 1_254
.saturating_add(Weight::from_parts(36_206, 0).saturating_mul(m.into()))
// Standard Error: 1_223
.saturating_add(Weight::from_parts(195_114, 0).saturating_mul(p.into()))
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 31_368_000 picoseconds.
Weight::from_parts(32_141_835, 3995)
// Standard Error: 1_451
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
// Standard Error: 1_415
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_903_000 picoseconds.
Weight::from_parts(43_152_907, 4347)
// Standard Error: 146
.saturating_add(Weight::from_parts(3_459, 0).saturating_mul(b.into()))
// Standard Error: 1_548
.saturating_add(Weight::from_parts(35_321, 0).saturating_mul(m.into()))
// Standard Error: 1_509
.saturating_add(Weight::from_parts(202_541, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(7_u64))
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 43_271_000 picoseconds.
Weight::from_parts(45_495_648, 4169)
// Standard Error: 174
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
// Standard Error: 1_840
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
// Standard Error: 1_793
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `392 + p * (32 ±0)`
// Estimated: `1877 + p * (32 ±0)`
// Minimum execution time: 12_656_000 picoseconds.
Weight::from_parts(14_032_951, 1877)
// Standard Error: 1_025
.saturating_add(Weight::from_parts(159_143, 0).saturating_mul(p.into()))
// Measured: `359 + p * (32 ±0)`
// Estimated: `1844 + p * (32 ±0)`
// Minimum execution time: 15_170_000 picoseconds.
Weight::from_parts(17_567_243, 1844)
// Standard Error: 1_430
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))