pub trait WeightInfo {
Show 19 methods
// Required methods
fn validate() -> Weight;
fn chill() -> Weight;
fn declare() -> Weight;
fn elect() -> Weight;
fn force_allow_affidavits() -> Weight;
fn force_affidavit_begins_at() -> Weight;
fn force_affidavit_ends_at() -> Weight;
fn force_election_begins_at() -> Weight;
fn force_election_runner_points_upgrade() -> Weight;
fn force_validate_tx_priority() -> Weight;
fn force_election_tx_priority() -> Weight;
fn force_affidavit_tx_priority() -> Weight;
fn force_finality_after() -> Weight;
fn force_finality_ticks() -> Weight;
fn inspect_elects() -> Weight;
fn prepare_validation_payload() -> Weight;
fn inspect_affidavit() -> Weight;
fn on_offence(n: u32) -> Weight;
fn on_initialize_with_author() -> Weight;
}Expand description
Weight functions needed for pallet_chain_manager.
Required Methods§
fn validate() -> Weight
fn chill() -> Weight
fn declare() -> Weight
fn elect() -> Weight
fn force_allow_affidavits() -> Weight
fn force_affidavit_begins_at() -> Weight
fn force_affidavit_ends_at() -> Weight
fn force_election_begins_at() -> Weight
fn force_election_runner_points_upgrade() -> Weight
fn force_validate_tx_priority() -> Weight
fn force_election_tx_priority() -> Weight
fn force_affidavit_tx_priority() -> Weight
fn force_finality_after() -> Weight
fn force_finality_ticks() -> Weight
fn inspect_elects() -> Weight
fn prepare_validation_payload() -> Weight
fn inspect_affidavit() -> Weight
fn on_offence(n: u32) -> 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 validate() -> Weight
fn validate() -> Weight
Storage: Authors::AuthorsMap (r:1 w:0)
Proof: Authors::AuthorsMap (max_values: None, max_size: Some(127), added: 2602, mode: MaxEncodedLen)
Storage: Commitment::CommitMap (r:1 w:0)
Proof: Commitment::CommitMap (max_values: None, max_size: Some(1600), added: 4075, mode: MaxEncodedLen)
Storage: Commitment::DigestMap (r:1 w:0)
Proof: Commitment::DigestMap (max_values: None, max_size: Some(229), added: 2704, mode: MaxEncodedLen)
Storage: Authors::MinCollateral (r:1 w:0)
Proof: Authors::MinCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitKeys (r:0 w:1)
Proof: ChainManager::AffidavitKeys (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
Source§fn chill() -> Weight
fn chill() -> Weight
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::AuthorsMap (r:1 w:0)
Proof: Authors::AuthorsMap (max_values: None, max_size: Some(127), added: 2602, mode: MaxEncodedLen)
Storage: Session::Validators (r:1 w:0)
Proof: Session::Validators (max_values: Some(1), max_size: None, mode: Measured)
Storage: ChainManager::SessionStartAt (r:1 w:0)
Proof: ChainManager::SessionStartAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitBeginsAt (r:1 w:0)
Proof: ChainManager::AffidavitBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitEndsAt (r:1 w:0)
Proof: ChainManager::AffidavitEndsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitKeys (r:2 w:1)
Proof: ChainManager::AffidavitKeys (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
Storage: ChainManager::AuthorAffidavits (r:1 w:0)
Proof: ChainManager::AuthorAffidavits (max_values: None, max_size: Some(40574), added: 43049, mode: MaxEncodedLen)
Source§fn declare() -> Weight
fn declare() -> Weight
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitKeys (r:1 w:1)
Proof: ChainManager::AffidavitKeys (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
Storage: ChainManager::AllowAffidavits (r:1 w:0)
Proof: ChainManager::AllowAffidavits (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Storage: Authors::AuthorsMap (r:1 w:0)
Proof: Authors::AuthorsMap (max_values: None, max_size: Some(127), added: 2602, mode: MaxEncodedLen)
Storage: Commitment::CommitMap (r:1 w:0)
Proof: Commitment::CommitMap (max_values: None, max_size: Some(1600), added: 4075, mode: MaxEncodedLen)
Storage: Commitment::DigestMap (r:1 w:0)
Proof: Commitment::DigestMap (max_values: None, max_size: Some(229), added: 2704, mode: MaxEncodedLen)
Storage: Authors::MinCollateral (r:1 w:0)
Proof: Authors::MinCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
Storage: ChainManager::SessionStartAt (r:1 w:0)
Proof: ChainManager::SessionStartAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitBeginsAt (r:1 w:0)
Proof: ChainManager::AffidavitBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitEndsAt (r:1 w:0)
Proof: ChainManager::AffidavitEndsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::AuthorFunders (r:1 w:0)
Proof: Authors::AuthorFunders (max_values: None, max_size: Some(161), added: 2636, mode: MaxEncodedLen)
Storage: ChainManager::AuthorAffidavits (r:0 w:1)
Proof: ChainManager::AuthorAffidavits (max_values: None, max_size: Some(40574), added: 43049, mode: MaxEncodedLen)
Source§fn elect() -> Weight
fn elect() -> Weight
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitKeys (r:1 w:0)
Proof: ChainManager::AffidavitKeys (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
Storage: ChainManager::SessionStartAt (r:1 w:0)
Proof: ChainManager::SessionStartAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitBeginsAt (r:1 w:0)
Proof: ChainManager::AffidavitBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitEndsAt (r:1 w:0)
Proof: ChainManager::AffidavitEndsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::ElectionBeginsAt (r:1 w:0)
Proof: ChainManager::ElectionBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AuthorAffidavits (r:12 w:0)
Proof: ChainManager::AuthorAffidavits (max_values: None, max_size: Some(40574), added: 43049, mode: MaxEncodedLen)
Storage: Authors::MinElected (r:1 w:0)
Proof: Authors::MinElected (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::ForceMaxElected (r:1 w:0)
Proof: Authors::ForceMaxElected (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Storage: Authors::Elected (r:12 w:11)
Proof: Authors::Elected (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Storage: ChainManager::ElectsPreparedBy (r:0 w:1)
Proof: ChainManager::ElectsPreparedBy (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
Storage: Authors::RecentElectedOn (r:0 w:1)
Proof: Authors::RecentElectedOn (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn force_allow_affidavits() -> Weight
fn force_allow_affidavits() -> Weight
Storage: ChainManager::AllowAffidavits (r:0 w:1)
Proof: ChainManager::AllowAffidavits (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
Source§fn force_affidavit_begins_at() -> Weight
fn force_affidavit_begins_at() -> Weight
Storage: ChainManager::AffidavitEndsAt (r:1 w:0)
Proof: ChainManager::AffidavitEndsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitBeginsAt (r:0 w:1)
Proof: ChainManager::AffidavitBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn force_affidavit_ends_at() -> Weight
fn force_affidavit_ends_at() -> Weight
Storage: ChainManager::AffidavitBeginsAt (r:1 w:0)
Proof: ChainManager::AffidavitBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitEndsAt (r:0 w:1)
Proof: ChainManager::AffidavitEndsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn force_election_begins_at() -> Weight
fn force_election_begins_at() -> Weight
Storage: ChainManager::ElectionBeginsAt (r:0 w:1)
Proof: ChainManager::ElectionBeginsAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn force_election_runner_points_upgrade() -> Weight
fn force_election_runner_points_upgrade() -> Weight
Storage: ChainManager::ElectionRunnerPointsUpgrade (r:0 w:1)
Proof: ChainManager::ElectionRunnerPointsUpgrade (max_values: Some(1), max_size: Some(9), added: 504, mode: MaxEncodedLen)
Source§fn force_validate_tx_priority() -> Weight
fn force_validate_tx_priority() -> Weight
Storage: ChainManager::ValidateTxPriority (r:0 w:1)
Proof: ChainManager::ValidateTxPriority (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Source§fn force_election_tx_priority() -> Weight
fn force_election_tx_priority() -> Weight
Storage: ChainManager::ElectionTxPriority (r:0 w:1)
Proof: ChainManager::ElectionTxPriority (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Source§fn force_affidavit_tx_priority() -> Weight
fn force_affidavit_tx_priority() -> Weight
Storage: ChainManager::AffidavitTxPriority (r:0 w:1)
Proof: ChainManager::AffidavitTxPriority (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Source§fn force_finality_after() -> Weight
fn force_finality_after() -> Weight
Storage: ChainManager::FinalityAfter (r:0 w:1)
Proof: ChainManager::FinalityAfter (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Source§fn force_finality_ticks() -> Weight
fn force_finality_ticks() -> Weight
Storage: ChainManager::FinalityTicks (r:0 w:1)
Proof: ChainManager::FinalityTicks (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn inspect_elects() -> Weight
fn inspect_elects() -> Weight
Storage: Authors::RecentElectedOn (r:1 w:0)
Proof: Authors::RecentElectedOn (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::Elected (r:11 w:0)
Proof: Authors::Elected (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Source§fn prepare_validation_payload() -> Weight
fn prepare_validation_payload() -> Weight
Storage: Timestamp::Now (r:1 w:0)
Proof: Timestamp::Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: System::BlockHash (r:1 w:0)
Proof: System::BlockHash (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
Storage: ChainManager::FinalityAfter (r:1 w:0)
Proof: ChainManager::FinalityAfter (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
Storage: ChainManager::FinalityTicks (r:1 w:0)
Proof: ChainManager::FinalityTicks (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn inspect_affidavit() -> Weight
fn inspect_affidavit() -> Weight
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::AffidavitKeys (r:1 w:0)
Proof: ChainManager::AffidavitKeys (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
Storage: ChainManager::AuthorAffidavits (r:1 w:0)
Proof: ChainManager::AuthorAffidavits (max_values: None, max_size: Some(40574), added: 43049, mode: MaxEncodedLen)
Source§fn on_offence(n: u32) -> Weight
fn on_offence(n: u32) -> Weight
Storage: Authors::AuthorsMap (r:100 w:100)
Proof: Authors::AuthorsMap (max_values: None, max_size: Some(127), added: 2602, mode: MaxEncodedLen)
Storage: Authors::IncreaseProbationBy (r:1 w:0)
Proof: Authors::IncreaseProbationBy (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::PenaltiesBuffer (r:1 w:0)
Proof: Authors::PenaltiesBuffer (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Authors::AuthorPenalties (r:100 w:100)
Proof: Authors::AuthorPenalties (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
Storage: Authors::PenaltiesUntil (r:1 w:1)
Proof: Authors::PenaltiesUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
The range of component n is [1, 100].
Storage: ChainManager::CurrentSession (r:1 w:0)
Proof: ChainManager::CurrentSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: ChainManager::BlockPointsStore (r:1 w:1)
Proof: ChainManager::BlockPointsStore (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)