Trait pallet_glutton::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn initialize_pallet_grow(n: u32) -> Weight;
fn initialize_pallet_shrink(n: u32) -> Weight;
fn waste_ref_time_iter(i: u32) -> Weight;
fn waste_proof_size_some(i: u32) -> Weight;
fn on_idle_high_proof_waste() -> Weight;
fn on_idle_low_proof_waste() -> Weight;
fn empty_on_idle() -> Weight;
fn set_compute() -> Weight;
fn set_storage() -> Weight;
}
Expand description
Weight functions needed for pallet_glutton.
Required Methods§
fn initialize_pallet_grow(n: u32) -> Weight
fn initialize_pallet_shrink(n: u32) -> Weight
fn waste_ref_time_iter(i: u32) -> Weight
fn waste_proof_size_some(i: u32) -> Weight
fn on_idle_high_proof_waste() -> Weight
fn on_idle_low_proof_waste() -> Weight
fn empty_on_idle() -> Weight
fn set_compute() -> Weight
fn set_storage() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn initialize_pallet_grow(n: u32) -> Weight
fn initialize_pallet_grow(n: u32) -> Weight
Storage: Glutton TrashDataCount (r:1 w:1)
Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Glutton TrashData (r:0 w:1000)
Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
The range of component n
is [0, 1000]
.
source§fn initialize_pallet_shrink(n: u32) -> Weight
fn initialize_pallet_shrink(n: u32) -> Weight
Storage: Glutton TrashDataCount (r:1 w:1)
Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Glutton TrashData (r:0 w:1000)
Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
The range of component n
is [0, 1000]
.
source§fn waste_ref_time_iter(i: u32) -> Weight
fn waste_ref_time_iter(i: u32) -> Weight
The range of component i
is [0, 100000]
.
source§fn waste_proof_size_some(i: u32) -> Weight
fn waste_proof_size_some(i: u32) -> Weight
Storage: Glutton TrashData (r:5000 w:0)
Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
The range of component i
is [0, 5000]
.
source§fn on_idle_high_proof_waste() -> Weight
fn on_idle_high_proof_waste() -> Weight
Storage: Glutton Storage (r:1 w:0) Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Glutton Compute (r:1 w:0) Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Glutton TrashData (r:1737 w:0) Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
source§fn on_idle_low_proof_waste() -> Weight
fn on_idle_low_proof_waste() -> Weight
Storage: Glutton Storage (r:1 w:0) Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Glutton Compute (r:1 w:0) Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Glutton TrashData (r:5 w:0) Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
source§fn empty_on_idle() -> Weight
fn empty_on_idle() -> Weight
Storage: Glutton Storage (r:1 w:0) Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Glutton Compute (r:1 w:0) Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
source§fn set_compute() -> Weight
fn set_compute() -> Weight
Storage: Glutton Compute (r:0 w:1) Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
source§fn set_storage() -> Weight
fn set_storage() -> Weight
Storage: Glutton Storage (r:0 w:1) Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)