pub trait WeightInfo {
    // Required methods
    fn set_invulnerables(b: u32) -> Weight;
    fn set_desired_candidates() -> Weight;
    fn set_candidacy_bond() -> Weight;
    fn register_as_candidate(c: u32) -> Weight;
    fn leave_intent(c: u32) -> Weight;
    fn note_author() -> Weight;
    fn new_session(r: u32, c: u32) -> Weight;
}
Expand description

Weight functions needed for collator_selection.

Required Methods§

source

fn set_invulnerables(b: u32) -> Weight

source

fn set_desired_candidates() -> Weight

source

fn set_candidacy_bond() -> Weight

source

fn register_as_candidate(c: u32) -> Weight

source

fn leave_intent(c: u32) -> Weight

source

fn note_author() -> Weight

source

fn new_session(r: u32, c: u32) -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn set_invulnerables(b: u32) -> Weight

Storage: Session NextKeys (r:100 w:0) Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) Storage: CollatorSelection Invulnerables (r:0 w:1) Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) The range of component b is [1, 100].

source§

fn set_desired_candidates() -> Weight

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

source§

fn set_candidacy_bond() -> Weight

Storage: CollatorSelection CandidacyBond (r:0 w:1) Proof: CollatorSelection CandidacyBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)

source§

fn register_as_candidate(c: u32) -> Weight

Storage: CollatorSelection Candidates (r:1 w:1) Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(48002), added: 48497, mode: MaxEncodedLen) Storage: CollatorSelection DesiredCandidates (r:1 w:0) Proof: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: CollatorSelection Invulnerables (r:1 w:0) Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: Session NextKeys (r:1 w:0) Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) Storage: CollatorSelection CandidacyBond (r:1 w:0) Proof: CollatorSelection CandidacyBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1 w:0) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:1 w:0) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: Escrow Reserved (r:1 w:1) Proof: Escrow Reserved (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) The range of component c is [1, 999].

source§

fn leave_intent(c: u32) -> Weight

Storage: CollatorSelection Candidates (r:1 w:1) Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(48002), added: 48497, mode: MaxEncodedLen) Storage: Escrow Reserved (r:1 w:1) Proof: Escrow Reserved (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) The range of component c is [6, 1000].

source§

fn note_author() -> Weight

Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)

source§

fn new_session(r: u32, c: u32) -> Weight

Storage: CollatorSelection Candidates (r:1 w:0) Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(48002), added: 48497, mode: MaxEncodedLen) Storage: CollatorSelection CandidacyBond (r:1 w:0) Proof: CollatorSelection CandidacyBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: CollatorSelection LastAuthoredBlock (r:1000 w:0) Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: Escrow UserPointEpoch (r:1000 w:0) Proof: Escrow UserPointEpoch (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen) Storage: Escrow UserPointHistory (r:1000 w:0) Proof: Escrow UserPointHistory (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: CollatorSelection Invulnerables (r:1 w:0) Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: Escrow Reserved (r:989 w:989) Proof: Escrow Reserved (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) The range of component r is [1, 1000]. The range of component c is [1, 1000].

Implementors§