referrerpolicy=no-referrer-when-downgrade

Trait pallet_safe_mode::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn on_initialize_noop() -> Weight;
    fn on_initialize_exit() -> Weight;
    fn enter() -> Weight;
    fn force_enter() -> Weight;
    fn extend() -> Weight;
    fn force_extend() -> Weight;
    fn force_exit() -> Weight;
    fn release_deposit() -> Weight;
    fn force_release_deposit() -> Weight;
    fn force_slash_deposit() -> Weight;
}
Expand description

Weight functions needed for pallet_safe_mode.

Required Methods§

source

fn on_initialize_noop() -> Weight

source

fn on_initialize_exit() -> Weight

source

fn enter() -> Weight

source

fn force_enter() -> Weight

source

fn extend() -> Weight

source

fn force_extend() -> Weight

source

fn force_exit() -> Weight

source

fn release_deposit() -> Weight

source

fn force_release_deposit() -> Weight

source

fn force_slash_deposit() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn on_initialize_noop() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:0) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn on_initialize_exit() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn enter() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen) Storage: SafeMode::Deposits (r:0 w:1) Proof: SafeMode::Deposits (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn force_enter() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn extend() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen) Storage: SafeMode::Deposits (r:0 w:1) Proof: SafeMode::Deposits (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn force_extend() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn force_exit() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:1) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn release_deposit() -> Weight

Storage: SafeMode::Deposits (r:1 w:1) Proof: SafeMode::Deposits (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: SafeMode::EnteredUntil (r:1 w:0) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen)

source§

fn force_release_deposit() -> Weight

Storage: SafeMode::Deposits (r:1 w:1) Proof: SafeMode::Deposits (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(355), added: 2830, mode: MaxEncodedLen)

source§

fn force_slash_deposit() -> Weight

Storage: SafeMode::Deposits (r:1 w:1) Proof: SafeMode::Deposits (max_values: None, max_size: Some(68), added: 2543, 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>