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§
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
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 ()
impl WeightInfo for ()
Source§fn on_initialize_noop() -> Weight
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
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
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(427), added: 2902, 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
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
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(427), added: 2902, 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
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
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
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(427), added: 2902, mode: MaxEncodedLen
)
Source§fn force_release_deposit() -> Weight
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(427), added: 2902, mode: MaxEncodedLen
)
Source§fn force_slash_deposit() -> Weight
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(427), added: 2902, mode: MaxEncodedLen
)