referrerpolicy=no-referrer-when-downgrade
pallet_tips::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn report_awesome(r: u32) -> Weight;
    fn retract_tip() -> Weight;
    fn tip_new(r: u32, t: u32) -> Weight;
    fn tip(t: u32) -> Weight;
    fn close_tip(t: u32) -> Weight;
    fn slash_tip(t: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_tips.

Required Methods§

Source

fn report_awesome(r: u32) -> Weight

Source

fn retract_tip() -> Weight

Source

fn tip_new(r: u32, t: u32) -> Weight

Source

fn tip(t: u32) -> Weight

Source

fn close_tip(t: u32) -> Weight

Source

fn slash_tip(t: u32) -> Weight

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn report_awesome(r: u32) -> Weight

Storage: Tips::Reasons (r:1 w:1) Proof: Tips::Reasons (max_values: None, max_size: None, mode: Measured) Storage: Tips::Tips (r:1 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) The range of component r is [0, 300].

Source§

fn retract_tip() -> Weight

Storage: Tips::Tips (r:1 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) Storage: Tips::Reasons (r:0 w:1) Proof: Tips::Reasons (max_values: None, max_size: None, mode: Measured)

Source§

fn tip_new(r: u32, t: u32) -> Weight

Storage: Elections::Members (r:1 w:0) Proof: Elections::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: Tips::Reasons (r:1 w:1) Proof: Tips::Reasons (max_values: None, max_size: None, mode: Measured) Storage: Tips::Tips (r:0 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) The range of component r is [0, 300]. The range of component t is [1, 13].

Source§

fn tip(t: u32) -> Weight

Storage: Elections::Members (r:1 w:0) Proof: Elections::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: Tips::Tips (r:1 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) The range of component t is [1, 13].

Source§

fn close_tip(t: u32) -> Weight

Storage: Tips::Tips (r:1 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) Storage: Elections::Members (r:1 w:0) Proof: Elections::Members (max_values: Some(1), 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: Tips::Reasons (r:0 w:1) Proof: Tips::Reasons (max_values: None, max_size: None, mode: Measured) The range of component t is [1, 13].

Source§

fn slash_tip(t: u32) -> Weight

Storage: Tips::Tips (r:1 w:1) Proof: Tips::Tips (max_values: None, max_size: None, mode: Measured) Storage: Tips::Reasons (r:0 w:1) Proof: Tips::Reasons (max_values: None, max_size: None, mode: Measured) The range of component t is [1, 13].

Implementors§

Source§

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