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
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 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
)