pub trait WeightInfo {
// Required methods
fn announce(n: u32) -> Weight;
fn send_announcement(n: u32) -> Weight;
}Expand description
Weight functions needed for pallet_validator_set_announcer.
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 ()
impl WeightInfo for ()
Source§fn announce(n: u32) -> Weight
fn announce(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: 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 send_announcement(n: u32) -> Weight
fn send_announcement(n: u32) -> Weight
Storage: XcmpQueue::DeliveryFeeFactor (r:1 w:0)
Proof: XcmpQueue::DeliveryFeeFactor (max_values: None, max_size: Some(28), added:
2503, mode: MaxEncodedLen)
Storage: PolkadotXcm::SupportedVersion (r:1 w:0)
Proof: PolkadotXcm::SupportedVersion (max_values: None, max_size: None, mode:
Measured)
Storage: XcmpQueue::OutboundXcmpStatus (r:1 w:1)
Proof: XcmpQueue::OutboundXcmpStatus (max_values: Some(1), max_size: Some(2306),
added: 2801, mode: MaxEncodedLen)
Storage: ParachainSystem::RelevantMessagingState (r:1 w:0)
Proof: ParachainSystem::RelevantMessagingState (max_values: Some(1), max_size: None,
mode: Measured)
Storage: XcmpQueue::OutboundXcmpMessages (r:1 w:1)
Proof: XcmpQueue::OutboundXcmpMessages (max_values: None, max_size: Some(105506),
added: 107981, mode: MaxEncodedLen)
The range of component n is [1, 1000].