Trait democracy::WeightInfo

source ·
pub trait WeightInfo {
Show 14 methods // Required methods fn propose() -> Weight; fn second() -> Weight; fn vote_new() -> Weight; fn vote_existing() -> Weight; fn fast_track() -> Weight; fn fast_track_referendum() -> Weight; fn cancel_proposal() -> Weight; fn cancel_referendum() -> Weight; fn on_initialize_public(r: u32) -> Weight; fn on_initialize_base(r: u32) -> Weight; fn on_initialize_base_with_launch_period(r: u32) -> Weight; fn clear_public_proposals() -> Weight; fn remove_vote(r: u32) -> Weight; fn spend_from_treasury() -> Weight;
}
Expand description

Weight functions needed for democracy.

Required Methods§

source

fn propose() -> Weight

source

fn second() -> Weight

source

fn vote_new() -> Weight

source

fn vote_existing() -> Weight

source

fn fast_track() -> Weight

source

fn fast_track_referendum() -> Weight

source

fn cancel_proposal() -> Weight

source

fn cancel_referendum() -> Weight

source

fn on_initialize_public(r: u32) -> Weight

source

fn on_initialize_base(r: u32) -> Weight

source

fn on_initialize_base_with_launch_period(r: u32) -> Weight

source

fn clear_public_proposals() -> Weight

source

fn remove_vote(r: u32) -> Weight

source

fn spend_from_treasury() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn propose() -> Weight

Storage: Democracy PublicPropCount (r:1 w:1) Proof Skipped: Democracy PublicPropCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy PublicProps (r:1 w:1) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Escrow UserPointEpoch (r:1 w:0) Proof Skipped: Escrow UserPointEpoch (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointHistory (r:1 w:0) Proof Skipped: Escrow UserPointHistory (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:1) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured) Storage: Democracy DepositOf (r:0 w:1) Proof Skipped: Democracy DepositOf (max_values: None, max_size: None, mode: Measured)

source§

fn second() -> Weight

Storage: Democracy DepositOf (r:1 w:1) Proof Skipped: Democracy DepositOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointEpoch (r:1 w:0) Proof Skipped: Escrow UserPointEpoch (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointHistory (r:1 w:0) Proof Skipped: Escrow UserPointHistory (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:1) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured)

source§

fn vote_new() -> Weight

Storage: Democracy ReferendumInfoOf (r:1 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointEpoch (r:1 w:0) Proof Skipped: Escrow UserPointEpoch (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointHistory (r:1 w:0) Proof Skipped: Escrow UserPointHistory (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:0) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured) Storage: Democracy VotingOf (r:1 w:1) Proof Skipped: Democracy VotingOf (max_values: None, max_size: None, mode: Measured)

source§

fn vote_existing() -> Weight

Storage: Democracy ReferendumInfoOf (r:1 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointEpoch (r:1 w:0) Proof Skipped: Escrow UserPointEpoch (max_values: None, max_size: None, mode: Measured) Storage: Escrow UserPointHistory (r:1 w:0) Proof Skipped: Escrow UserPointHistory (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:0) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured) Storage: Democracy VotingOf (r:1 w:1) Proof Skipped: Democracy VotingOf (max_values: None, max_size: None, mode: Measured)

source§

fn fast_track() -> Weight

Storage: Democracy PublicProps (r:1 w:1) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy DepositOf (r:1 w:1) Proof Skipped: Democracy DepositOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:1) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured) Storage: Democracy ReferendumCount (r:1 w:1) Proof Skipped: Democracy ReferendumCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumInfoOf (r:0 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured)

source§

fn fast_track_referendum() -> Weight

Storage: Democracy ReferendumInfoOf (r:1 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured)

source§

fn cancel_proposal() -> Weight

Storage: Democracy PublicProps (r:1 w:1) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy DepositOf (r:1 w:1) Proof Skipped: Democracy DepositOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:1) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured)

source§

fn cancel_referendum() -> Weight

Storage: Democracy ReferendumInfoOf (r:1 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured)

source§

fn on_initialize_public(r: u32) -> Weight

Storage: Democracy LowestUnbaked (r:1 w:0) Proof Skipped: Democracy LowestUnbaked (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumCount (r:1 w:1) Proof Skipped: Democracy ReferendumCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Democracy NextLaunchTimestamp (r:1 w:1) Proof Skipped: Democracy NextLaunchTimestamp (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy PublicProps (r:1 w:1) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy DepositOf (r:1 w:1) Proof Skipped: Democracy DepositOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow Reserved (r:1 w:1) Proof Skipped: Escrow Reserved (max_values: None, max_size: None, mode: Measured) Storage: Democracy ReferendumInfoOf (r:99 w:100) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) Storage: Escrow Epoch (r:1 w:0) Proof Skipped: Escrow Epoch (max_values: Some(1), max_size: None, mode: Measured) Storage: Escrow PointHistory (r:1 w:0) Proof Skipped: Escrow PointHistory (max_values: None, max_size: None, mode: Measured) The range of component r is [0, 99].

source§

fn on_initialize_base(r: u32) -> Weight

Storage: Democracy LowestUnbaked (r:1 w:0) Proof Skipped: Democracy LowestUnbaked (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumCount (r:1 w:0) Proof Skipped: Democracy ReferendumCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Democracy NextLaunchTimestamp (r:1 w:1) Proof Skipped: Democracy NextLaunchTimestamp (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy PublicProps (r:1 w:0) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumInfoOf (r:99 w:0) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) The range of component r is [0, 99].

source§

fn on_initialize_base_with_launch_period(r: u32) -> Weight

Storage: Democracy LowestUnbaked (r:1 w:0) Proof Skipped: Democracy LowestUnbaked (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumCount (r:1 w:0) Proof Skipped: Democracy ReferendumCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Democracy NextLaunchTimestamp (r:1 w:1) Proof Skipped: Democracy NextLaunchTimestamp (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy PublicProps (r:1 w:0) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured) Storage: Democracy ReferendumInfoOf (r:99 w:0) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) The range of component r is [0, 99].

source§

fn clear_public_proposals() -> Weight

Storage: Democracy PublicProps (r:0 w:1) Proof Skipped: Democracy PublicProps (max_values: Some(1), max_size: None, mode: Measured)

source§

fn remove_vote(r: u32) -> Weight

Storage: Democracy ReferendumInfoOf (r:1 w:1) Proof Skipped: Democracy ReferendumInfoOf (max_values: None, max_size: None, mode: Measured) Storage: Democracy VotingOf (r:1 w:1) Proof Skipped: Democracy VotingOf (max_values: None, max_size: None, mode: Measured) The range of component r is [1, 100].

source§

fn spend_from_treasury() -> Weight

Implementors§