referrerpolicy=no-referrer-when-downgrade

Trait pallet_collective::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn set_members(m: u32, n: u32, p: u32) -> Weight;
    fn execute(b: u32, m: u32) -> Weight;
    fn propose_execute(b: u32, m: u32) -> Weight;
    fn propose_proposed(b: u32, m: u32, p: u32) -> Weight;
    fn vote(m: u32) -> Weight;
    fn close_early_disapproved(m: u32, p: u32) -> Weight;
    fn close_early_approved(b: u32, m: u32, p: u32) -> Weight;
    fn close_disapproved(m: u32, p: u32) -> Weight;
    fn close_approved(b: u32, m: u32, p: u32) -> Weight;
    fn disapprove_proposal(p: u32) -> Weight;
    fn kill(d: u32, p: u32) -> Weight;
    fn release_proposal_cost() -> Weight;
}
Expand description

Weight functions needed for pallet_collective.

Required Methods§

source

fn set_members(m: u32, n: u32, p: u32) -> Weight

source

fn execute(b: u32, m: u32) -> Weight

source

fn propose_execute(b: u32, m: u32) -> Weight

source

fn propose_proposed(b: u32, m: u32, p: u32) -> Weight

source

fn vote(m: u32) -> Weight

source

fn close_early_disapproved(m: u32, p: u32) -> Weight

source

fn close_early_approved(b: u32, m: u32, p: u32) -> Weight

source

fn close_disapproved(m: u32, p: u32) -> Weight

source

fn close_approved(b: u32, m: u32, p: u32) -> Weight

source

fn disapprove_proposal(p: u32) -> Weight

source

fn kill(d: u32, p: u32) -> Weight

source

fn release_proposal_cost() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn set_members(m: u32, _n: u32, p: u32) -> Weight

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) The range of component m is [0, 100]. The range of component n is [0, 100]. The range of component p is [0, 100].

source§

fn execute(b: u32, m: u32) -> Weight

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) The range of component b is [2, 1024]. The range of component m is [1, 100].

source§

fn propose_execute(b: u32, m: u32) -> Weight

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) The range of component b is [2, 1024]. The range of component m is [1, 100].

source§

fn propose_proposed(b: u32, m: u32, p: u32) -> Weight

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: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen) 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::CostOf (r:0 w:1) Proof: Council::CostOf (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].

source§

fn vote(m: u32) -> Weight

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) The range of component m is [5, 100].

source§

fn close_early_disapproved(m: u32, p: u32) -> Weight

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) The range of component m is [4, 100]. The range of component p is [1, 100].

source§

fn close_early_approved(b: u32, m: u32, p: u32) -> Weight

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) The range of component b is [2, 1024]. The range of component m is [4, 100]. The range of component p is [1, 100].

source§

fn close_disapproved(m: u32, p: u32) -> Weight

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) The range of component m is [4, 100]. The range of component p is [1, 100].

source§

fn close_approved(b: u32, m: u32, p: u32) -> Weight

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) The range of component b is [2, 1024]. The range of component m is [4, 100]. The range of component p is [1, 100].

source§

fn disapprove_proposal(p: u32) -> Weight

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) The range of component p is [1, 100].

source§

fn kill(d: u32, p: u32) -> Weight

Storage: Council::ProposalOf (r:1 w:1) Proof: Council::ProposalOf (max_values: None, max_size: None, mode: Measured) Storage: Council::CostOf (r:1 w:1) Proof: Council::CostOf (max_values: None, max_size: None, mode: Measured) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, 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:0 w:1) Proof: Council::Voting (max_values: None, max_size: None, mode: Measured) The range of component d is [0, 1]. The range of component p is [1, 100].

source§

fn release_proposal_cost() -> Weight

Storage: Council::ProposalOf (r:1 w:0) Proof: Council::ProposalOf (max_values: None, max_size: None, mode: Measured) Storage: Council::CostOf (r:1 w:1) Proof: Council::CostOf (max_values: None, max_size: None, mode: Measured) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen)

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>