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

Trait WeightInfo

Source
pub trait WeightInfo {
Show 13 methods // Required methods fn onboard_new_mbms() -> Weight; fn progress_mbms_none() -> Weight; fn exec_migration_completed() -> Weight; fn exec_migration_skipped_historic() -> Weight; fn exec_migration_advance() -> Weight; fn exec_migration_complete() -> Weight; fn exec_migration_fail() -> Weight; fn on_init_loop() -> Weight; fn force_set_cursor() -> Weight; fn force_set_active_cursor() -> Weight; fn force_onboard_mbms() -> Weight; fn clear_historic(n: u32) -> Weight; fn reset_pallet_migration(n: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_migrations.

Required Methods§

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 onboard_new_mbms() -> Weight

Storage: MultiBlockMigrations::Cursor (r:1 w:1) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0)

Source§

fn progress_mbms_none() -> Weight

Storage: MultiBlockMigrations::Cursor (r:1 w:0) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen)

Source§

fn exec_migration_completed() -> Weight

Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Storage: MultiBlockMigrations::Cursor (r:0 w:1) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen)

Source§

fn exec_migration_skipped_historic() -> Weight

Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Storage: MultiBlockMigrations::Historic (r:1 w:0) Proof: MultiBlockMigrations::Historic (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen)

Source§

fn exec_migration_advance() -> Weight

Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Storage: MultiBlockMigrations::Historic (r:1 w:0) Proof: MultiBlockMigrations::Historic (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen)

Source§

fn exec_migration_complete() -> Weight

Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Storage: MultiBlockMigrations::Historic (r:1 w:1) Proof: MultiBlockMigrations::Historic (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen)

Source§

fn exec_migration_fail() -> Weight

Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Storage: MultiBlockMigrations::Historic (r:1 w:0) Proof: MultiBlockMigrations::Historic (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen) Storage: MultiBlockMigrations::Cursor (r:0 w:1) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen)

Source§

fn force_set_cursor() -> Weight

Storage: MultiBlockMigrations::Cursor (r:0 w:1) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen)

Source§

fn force_set_active_cursor() -> Weight

Storage: MultiBlockMigrations::Cursor (r:0 w:1) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen)

Source§

fn force_onboard_mbms() -> Weight

Storage: MultiBlockMigrations::Cursor (r:1 w:0) Proof: MultiBlockMigrations::Cursor (max_values: Some(1), max_size: Some(65550), added: 66045, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0) Proof: UNKNOWN KEY 0x583359fe0e84d953a9dd84e8addb08a5 (r:1 w:0)

Source§

fn clear_historic(n: u32) -> Weight

Storage: MultiBlockMigrations::Historic (r:256 w:256) Proof: MultiBlockMigrations::Historic (max_values: None, max_size: Some(266), added: 2741, mode: MaxEncodedLen) The range of component n is [0, 256].

Source§

fn reset_pallet_migration(n: u32) -> Weight

Storage: Skipped::Metadata (r:0 w:0) Proof: Skipped::Metadata (max_values: None, max_size: None, mode: Measured) The range of component n is [0, 2048].

Source§

fn on_init_loop() -> Weight

Implementors§

Source§

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