referrerpolicy=no-referrer-when-downgrade

WeightInfo

Trait WeightInfo 

Source
pub trait WeightInfo {
    // Required methods
    fn set_validators(n: u32) -> Weight;
    fn set_max_collators() -> Weight;
    fn on_relay_state_proof() -> Weight;
    fn set_report_period() -> Weight;
    fn set_expected_era_duration() -> Weight;
    fn set_report_margin() -> Weight;
    fn note_author() -> Weight;
    fn report_blocks(v: u32, o: u32) -> Weight;
    fn on_poll() -> Weight;
}
Expand description

Weight functions needed for pallet_validator_collators.

Required Methods§

Source

fn set_validators(n: u32) -> Weight

Source

fn set_max_collators() -> Weight

Source

fn on_relay_state_proof() -> Weight

Source

fn set_report_period() -> Weight

Source

fn set_expected_era_duration() -> Weight

Source

fn set_report_margin() -> Weight

Source

fn note_author() -> Weight

Source

fn report_blocks(v: u32, o: u32) -> Weight

Source

fn on_poll() -> 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 ()

Source§

fn set_validators(n: u32) -> Weight

Storage: ValidatorCollators::ValidatorSet (r:1 w:1) Proof: ValidatorCollators::ValidatorSet (max_values: Some(1), max_size: Some(32006), added: 32501, mode: MaxEncodedLen) Storage: Timestamp::Now (r:1 w:0) Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: ValidatorCollators::SetReceivedAt (r:0 w:1) Proof: ValidatorCollators::SetReceivedAt (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: ValidatorCollators::PendingRotation (r:0 w:1) Proof: ValidatorCollators::PendingRotation (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) The range of component n is [1, 1000].

Source§

fn set_max_collators() -> Weight

Storage: ValidatorCollators::ValidatorSet (r:1 w:0) Proof: ValidatorCollators::ValidatorSet (max_values: Some(1), max_size: Some(32006), added: 32501, mode: MaxEncodedLen) Storage: ValidatorCollators::MaxCollators (r:0 w:1) Proof: ValidatorCollators::MaxCollators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: ValidatorCollators::PendingRotation (r:0 w:1) Proof: ValidatorCollators::PendingRotation (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: ValidatorCollators::Collators (r:0 w:1) Proof: ValidatorCollators::Collators (max_values: Some(1), max_size: Some(32038), added: 32533, mode: MaxEncodedLen)

Source§

fn on_relay_state_proof() -> Weight

Storage: ValidatorCollators::EpochRandomness (r:1 w:1) Proof: ValidatorCollators::EpochRandomness (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)

Source§

fn set_report_period() -> Weight

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

Source§

fn set_expected_era_duration() -> Weight

Storage: ValidatorCollators::ExpectedEraDuration (r:0 w:1) Proof: ValidatorCollators::ExpectedEraDuration (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)

Source§

fn set_report_margin() -> Weight

Storage: ValidatorCollators::ReportMargin (r:0 w:1) Proof: ValidatorCollators::ReportMargin (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)

Source§

fn note_author() -> Weight

Storage: ValidatorCollators::AuthoredBlocks (r:1 w:1) Proof: ValidatorCollators::AuthoredBlocks (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: ValidatorCollators::CounterForAuthoredBlocks (r:1 w:1) Proof: ValidatorCollators::CounterForAuthoredBlocks (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Source§

fn report_blocks(v: u32, o: u32) -> Weight

Storage: ValidatorCollators::CounterForAuthoredBlocks (r:1 w:1) Proof: ValidatorCollators::CounterForAuthoredBlocks (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: ValidatorCollators::ValidatorSet (r:1 w:0) Proof: ValidatorCollators::ValidatorSet (max_values: Some(1), max_size: Some(32006), added: 32501, mode: MaxEncodedLen) Storage: ValidatorCollators::AuthoredBlocks (r:1001 w:1000) Proof: ValidatorCollators::AuthoredBlocks (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) The range of component v is [1, 1000]. The range of component o is [0, 150].

Source§

fn on_poll() -> Weight

Storage: ValidatorCollators::PendingRotation (r:1 w:0) Proof: ValidatorCollators::PendingRotation (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: ValidatorCollators::SetReceivedAt (r:1 w:1) Proof: ValidatorCollators::SetReceivedAt (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: ValidatorCollators::ExpectedEraDuration (r:1 w:0) Proof: ValidatorCollators::ExpectedEraDuration (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: ValidatorCollators::ReportMargin (r:1 w:0) Proof: ValidatorCollators::ReportMargin (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Timestamp::Now (r:1 w:0) Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: ValidatorCollators::ReportPeriod (r:1 w:0) Proof: ValidatorCollators::ReportPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: ValidatorCollators::CounterForAuthoredBlocks (r:1 w:0) Proof: ValidatorCollators::CounterForAuthoredBlocks (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Implementors§

Source§

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