Trait pallet_sassafras::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn on_initialize() -> Weight;
fn enact_epoch_change(x: u32, y: u32) -> Weight;
fn submit_tickets(x: u32) -> Weight;
fn plan_config_change() -> Weight;
fn update_ring_verifier(x: u32) -> Weight;
fn load_ring_context() -> Weight;
fn sort_segments(x: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_sassafras
.
Required Methods§
fn on_initialize() -> Weight
fn enact_epoch_change(x: u32, y: u32) -> Weight
fn submit_tickets(x: u32) -> Weight
fn plan_config_change() -> Weight
fn update_ring_verifier(x: u32) -> Weight
fn load_ring_context() -> Weight
fn sort_segments(x: u32) -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn on_initialize() -> Weight
fn on_initialize() -> Weight
Storage: System::Digest
(r:1 w:1)
Proof: System::Digest
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Sassafras::NextRandomness
(r:1 w:0)
Proof: Sassafras::NextRandomness
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::NextAuthorities
(r:1 w:0)
Proof: Sassafras::NextAuthorities
(max_values
: Some(1), max_size
: Some(3302), added: 3797, mode: MaxEncodedLen
)
Storage: Sassafras::CurrentRandomness
(r:1 w:0)
Proof: Sassafras::CurrentRandomness
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::EpochIndex
(r:1 w:0)
Proof: Sassafras::EpochIndex
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::RandomnessAccumulator
(r:1 w:1)
Proof: Sassafras::RandomnessAccumulator
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::CurrentSlot
(r:0 w:1)
Proof: Sassafras::CurrentSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::ClaimTemporaryData
(r:0 w:1)
Proof: Sassafras::ClaimTemporaryData
(max_values
: Some(1), max_size
: Some(33), added: 528, mode: MaxEncodedLen
)
Storage: Sassafras::GenesisSlot
(r:0 w:1)
Proof: Sassafras::GenesisSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
source§fn enact_epoch_change(x: u32, y: u32) -> Weight
fn enact_epoch_change(x: u32, y: u32) -> Weight
Storage: Sassafras::CurrentSlot
(r:1 w:0)
Proof: Sassafras::CurrentSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::EpochIndex
(r:1 w:1)
Proof: Sassafras::EpochIndex
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::GenesisSlot
(r:1 w:0)
Proof: Sassafras::GenesisSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::NextAuthorities
(r:1 w:1)
Proof: Sassafras::NextAuthorities
(max_values
: Some(1), max_size
: Some(3302), added: 3797, mode: MaxEncodedLen
)
Storage: Sassafras::RingContext
(r:1 w:0)
Proof: Sassafras::RingContext
(max_values
: Some(1), max_size
: Some(590324), added: 590819, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsMeta
(r:1 w:1)
Proof: Sassafras::TicketsMeta
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: Sassafras::NextRandomness
(r:1 w:1)
Proof: Sassafras::NextRandomness
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::RandomnessAccumulator
(r:1 w:0)
Proof: Sassafras::RandomnessAccumulator
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::NextEpochConfig
(r:1 w:1)
Proof: Sassafras::NextEpochConfig
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::PendingEpochConfigChange
(r:1 w:1)
Proof: Sassafras::PendingEpochConfigChange
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: System::Digest
(r:1 w:1)
Proof: System::Digest
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Sassafras::SortedCandidates
(r:1 w:0)
Proof: Sassafras::SortedCandidates
(max_values
: Some(1), max_size
: Some(3202), added: 3697, mode: MaxEncodedLen
)
Storage: Sassafras::UnsortedSegments
(r:79 w:79)
Proof: Sassafras::UnsortedSegments
(max_values
: None, max_size
: Some(2054), added: 4529, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsIds
(r:5000 w:200)
Proof: Sassafras::TicketsIds
(max_values
: None, max_size
: Some(21), added: 2496, mode: MaxEncodedLen
)
Storage: Sassafras::Authorities
(r:0 w:1)
Proof: Sassafras::Authorities
(max_values
: Some(1), max_size
: Some(3302), added: 3797, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsData
(r:0 w:9896)
Proof: Sassafras::TicketsData
(max_values
: None, max_size
: Some(84), added: 2559, mode: MaxEncodedLen
)
Storage: Sassafras::RingVerifierData
(r:0 w:1)
Proof: Sassafras::RingVerifierData
(max_values
: Some(1), max_size
: Some(388), added: 883, mode: MaxEncodedLen
)
Storage: Sassafras::EpochConfig
(r:0 w:1)
Proof: Sassafras::EpochConfig
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::CurrentRandomness
(r:0 w:1)
Proof: Sassafras::CurrentRandomness
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
The range of component x
is [1, 100]
.
The range of component y
is [1000, 5000]
.
source§fn submit_tickets(x: u32) -> Weight
fn submit_tickets(x: u32) -> Weight
Storage: Sassafras::CurrentSlot
(r:1 w:0)
Proof: Sassafras::CurrentSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::EpochIndex
(r:1 w:0)
Proof: Sassafras::EpochIndex
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::GenesisSlot
(r:1 w:0)
Proof: Sassafras::GenesisSlot
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::RingVerifierData
(r:1 w:0)
Proof: Sassafras::RingVerifierData
(max_values
: Some(1), max_size
: Some(388), added: 883, mode: MaxEncodedLen
)
Storage: Sassafras::NextAuthorities
(r:1 w:0)
Proof: Sassafras::NextAuthorities
(max_values
: Some(1), max_size
: Some(3302), added: 3797, mode: MaxEncodedLen
)
Storage: Sassafras::NextEpochConfig
(r:1 w:0)
Proof: Sassafras::NextEpochConfig
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
Storage: Sassafras::NextRandomness
(r:1 w:0)
Proof: Sassafras::NextRandomness
(max_values
: Some(1), max_size
: Some(32), added: 527, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsData
(r:25 w:25)
Proof: Sassafras::TicketsData
(max_values
: None, max_size
: Some(84), added: 2559, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsMeta
(r:1 w:1)
Proof: Sassafras::TicketsMeta
(max_values
: Some(1), max_size
: Some(12), added: 507, mode: MaxEncodedLen
)
Storage: Sassafras::UnsortedSegments
(r:1 w:1)
Proof: Sassafras::UnsortedSegments
(max_values
: None, max_size
: Some(2054), added: 4529, mode: MaxEncodedLen
)
The range of component x
is [1, 25]
.
source§fn plan_config_change() -> Weight
fn plan_config_change() -> Weight
Storage: Sassafras::PendingEpochConfigChange
(r:0 w:1)
Proof: Sassafras::PendingEpochConfigChange
(max_values
: Some(1), max_size
: Some(8), added: 503, mode: MaxEncodedLen
)
source§fn update_ring_verifier(x: u32) -> Weight
fn update_ring_verifier(x: u32) -> Weight
Storage: Sassafras::RingContext
(r:1 w:0)
Proof: Sassafras::RingContext
(max_values
: Some(1), max_size
: Some(590324), added: 590819, mode: MaxEncodedLen
)
Storage: Sassafras::RingVerifierData
(r:0 w:1)
Proof: Sassafras::RingVerifierData
(max_values
: Some(1), max_size
: Some(388), added: 883, mode: MaxEncodedLen
)
The range of component x
is [1, 100]
.
source§fn load_ring_context() -> Weight
fn load_ring_context() -> Weight
Storage: Sassafras::RingContext
(r:1 w:0)
Proof: Sassafras::RingContext
(max_values
: Some(1), max_size
: Some(590324), added: 590819, mode: MaxEncodedLen
)
source§fn sort_segments(x: u32) -> Weight
fn sort_segments(x: u32) -> Weight
Storage: Sassafras::SortedCandidates
(r:1 w:0)
Proof: Sassafras::SortedCandidates
(max_values
: Some(1), max_size
: Some(3202), added: 3697, mode: MaxEncodedLen
)
Storage: Sassafras::UnsortedSegments
(r:100 w:100)
Proof: Sassafras::UnsortedSegments
(max_values
: None, max_size
: Some(2054), added: 4529, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsIds
(r:0 w:200)
Proof: Sassafras::TicketsIds
(max_values
: None, max_size
: Some(21), added: 2496, mode: MaxEncodedLen
)
Storage: Sassafras::TicketsData
(r:0 w:12600)
Proof: Sassafras::TicketsData
(max_values
: None, max_size
: Some(84), added: 2559, mode: MaxEncodedLen
)
The range of component x
is [1, 100]
.