pallet_sponsorship::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn create_pot() -> Weight;
    fn remove_pot() -> Weight;
    fn update_pot_limits() -> Weight;
    fn update_sponsorship_type() -> Weight;
    fn register_users(l: u32) -> Weight;
    fn remove_users(l: u32) -> Weight;
    fn update_users_limits(l: u32) -> Weight;
    fn pre_sponsor() -> Weight;
    fn post_sponsor() -> Weight;
}
Expand description

Weight functions needed for pallet_sponsorship.

Required Methods§

Source

fn create_pot() -> Weight

Source

fn remove_pot() -> Weight

Source

fn update_pot_limits() -> Weight

Source

fn update_sponsorship_type() -> Weight

Source

fn register_users(l: u32) -> Weight

Source

fn remove_users(l: u32) -> Weight

Source

fn update_users_limits(l: u32) -> Weight

Source

fn pre_sponsor() -> Weight

Source

fn post_sponsor() -> 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 register_users(l: u32) -> Weight

The range of component l is [1, 1000].

Source§

fn remove_users(l: u32) -> Weight

The range of component l is [1, 1000].

Source§

fn update_users_limits(l: u32) -> Weight

The range of component l is [1, 1000].

Source§

fn create_pot() -> Weight

Source§

fn remove_pot() -> Weight

Source§

fn update_pot_limits() -> Weight

Source§

fn update_sponsorship_type() -> Weight

Source§

fn pre_sponsor() -> Weight

Source§

fn post_sponsor() -> Weight

Implementors§

Source§

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