pallet_subspace::weights

Trait WeightInfo

source
pub trait WeightInfo {
    // Required methods
    fn store_segment_headers(x: u32) -> Weight;
    fn enable_solution_range_adjustment() -> Weight;
    fn vote() -> Weight;
    fn enable_rewards_at() -> Weight;
    fn enable_authoring_by_anyone() -> Weight;
    fn set_pot_slot_iterations() -> Weight;
}
Expand description

Weight functions needed for pallet_subspace.

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 store_segment_headers(x: u32) -> Weight

Storage: Subspace::DidProcessSegmentHeaders (r:1 w:1) Proof: Subspace::DidProcessSegmentHeaders (max_values: Some(1), max_size: None, mode: Measured) Storage: Subspace::SegmentCommitment (r:20 w:20) Proof: Subspace::SegmentCommitment (max_values: None, max_size: None, mode: Measured) Storage: Subspace::CounterForSegmentCommitment (r:1 w:1) Proof: Subspace::CounterForSegmentCommitment (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: System::Digest (r:1 w:1) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) The range of component x is [1, 20].

source§

fn enable_solution_range_adjustment() -> Weight

Storage: Subspace::ShouldAdjustSolutionRange (r:1 w:1) Proof: Subspace::ShouldAdjustSolutionRange (max_values: Some(1), max_size: None, mode: Measured) Storage: Subspace::SolutionRanges (r:1 w:1) Proof: Subspace::SolutionRanges (max_values: Some(1), max_size: None, mode: Measured) Storage: System::Digest (r:1 w:1) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) Storage: Subspace::NextSolutionRangeOverride (r:0 w:1) Proof: Subspace::NextSolutionRangeOverride (max_values: Some(1), max_size: None, mode: Measured)

source§

fn vote() -> Weight

Storage: Subspace::BlockList (r:1 w:0) Proof: Subspace::BlockList (max_values: None, max_size: None, mode: Measured)

source§

fn enable_rewards_at() -> Weight

Storage: Subspace::EnableRewards (r:1 w:1) Proof: Subspace::EnableRewards (max_values: Some(1), max_size: None, mode: Measured)

source§

fn enable_authoring_by_anyone() -> Weight

Storage: Subspace::RootPlotPublicKey (r:1 w:0) Proof: Subspace::RootPlotPublicKey (max_values: Some(1), max_size: None, mode: Measured) Storage: System::Digest (r:1 w:1) Proof: System::Digest (max_values: Some(1), max_size: None, mode: Measured) Storage: Subspace::AllowAuthoringByAnyone (r:0 w:1) Proof: Subspace::AllowAuthoringByAnyone (max_values: Some(1), max_size: None, mode: Measured)

source§

fn set_pot_slot_iterations() -> Weight

Storage: Subspace::PotSlotIterations (r:1 w:0) Proof: Subspace::PotSlotIterations (max_values: Some(1), max_size: None, mode: Measured) Storage: Subspace::PotSlotIterationsUpdate (r:1 w:1) Proof: Subspace::PotSlotIterationsUpdate (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

source§

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