pub trait WeightInfo {
// Required methods
fn register_changes(l: u32) -> Weight;
fn set_main_chain_scripts() -> Weight;
}
Expand description
Weight functions needed for pallet_governed_map.
Required Methods§
fn register_changes(l: u32) -> Weight
fn set_main_chain_scripts() -> 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 register_changes(l: u32) -> Weight
fn register_changes(l: u32) -> Weight
Storage: GovernedMap::LastUpdateBlock
(r:1 w:1)
Proof: GovernedMap::LastUpdateBlock
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: GovernedMap::MainChainScripts
(r:1 w:0)
Proof: GovernedMap::MainChainScripts
(max_values
: Some(1), max_size
: Some(150), added: 645, mode: MaxEncodedLen
)
Storage: GovernedMap::Initialized
(r:1 w:1)
Proof: GovernedMap::Initialized
(max_values
: Some(1), max_size
: Some(1), added: 496, mode: MaxEncodedLen
)
Storage: GovernedMap::Mapping
(r:16 w:16)
Proof: GovernedMap::Mapping
(max_values
: None, max_size
: Some(588), added: 3063, mode: MaxEncodedLen
)
The range of component l
is [1, 16]
.
Source§fn set_main_chain_scripts() -> Weight
fn set_main_chain_scripts() -> Weight
Storage: GovernedMap::MainChainScripts
(r:0 w:1)
Proof: GovernedMap::MainChainScripts
(max_values
: Some(1), max_size
: Some(150), added: 645, mode: MaxEncodedLen
)
Storage: GovernedMap::Initialized
(r:0 w:1)
Proof: GovernedMap::Initialized
(max_values
: Some(1), max_size
: Some(1), added: 496, mode: MaxEncodedLen
)