pub trait WeightInfo {
// Required methods
fn apply_item_actions_add(s: u32) -> Weight;
fn apply_item_actions_delete(n: u32) -> Weight;
fn upsert_page(s: u32) -> Weight;
fn delete_page() -> Weight;
fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight;
fn apply_item_actions_with_signature_v2_delete(n: u32) -> Weight;
fn upsert_page_with_signature_v2(s: u32) -> Weight;
fn delete_page_with_signature_v2() -> Weight;
fn paginated_v1_to_v2_miss() -> Weight;
fn paginated_v1_to_v2_hit() -> Weight;
fn itemized_v1_to_v2_miss() -> Weight;
fn itemized_v1_to_v2_hit() -> Weight;
}Expand description
Weight functions needed for pallet_stateful_storage.
Required Methods§
fn apply_item_actions_add(s: u32) -> Weight
fn apply_item_actions_delete(n: u32) -> Weight
fn upsert_page(s: u32) -> Weight
fn delete_page() -> Weight
fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight
fn apply_item_actions_with_signature_v2_delete(n: u32) -> Weight
fn upsert_page_with_signature_v2(s: u32) -> Weight
fn delete_page_with_signature_v2() -> Weight
fn paginated_v1_to_v2_miss() -> Weight
fn paginated_v1_to_v2_hit() -> Weight
fn itemized_v1_to_v2_miss() -> Weight
fn itemized_v1_to_v2_hit() -> 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 apply_item_actions_add(s: u32) -> Weight
fn apply_item_actions_add(s: u32) -> Weight
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:0)
Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
The range of component s is [1024, 5120].
Source§fn apply_item_actions_delete(_n: u32) -> Weight
fn apply_item_actions_delete(_n: u32) -> Weight
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:0)
Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
The range of component n is [1, 5].
Source§fn upsert_page(s: u32) -> Weight
fn upsert_page(s: u32) -> Weight
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:0)
Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
The range of component s is [1, 1024].
Source§fn delete_page() -> Weight
fn delete_page() -> Weight
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:0)
Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Source§fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight
fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
The range of component s is [1024, 5120].
Source§fn apply_item_actions_with_signature_v2_delete(_n: u32) -> Weight
fn apply_item_actions_with_signature_v2_delete(_n: u32) -> Weight
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1)
The range of component n is [1, 5].
Source§fn upsert_page_with_signature_v2(s: u32) -> Weight
fn upsert_page_with_signature_v2(s: u32) -> Weight
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
The range of component s is [1, 1024].
Source§fn delete_page_with_signature_v2() -> Weight
fn delete_page_with_signature_v2() -> Weight
Storage: Msa::PublicKeyToMsaId (r:1 w:0)
Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
Storage: Schemas::SchemaInfos (r:1 w:0)
Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)
Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Source§fn paginated_v1_to_v2_miss() -> Weight
fn paginated_v1_to_v2_miss() -> Weight
Storage: UNKNOWN KEY 0x (r:1 w:0)
Proof: UNKNOWN KEY 0x (r:1 w:0)
Source§fn paginated_v1_to_v2_hit() -> Weight
fn paginated_v1_to_v2_hit() -> Weight
Storage: UNKNOWN KEY 0x (r:1 w:0)
Proof: UNKNOWN KEY 0x (r:1 w:0)
Storage: UNKNOWN KEY 0xf1577fbf1d628fdddb4ebfc6e8d95fb1f1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Proof: UNKNOWN KEY 0xf1577fbf1d628fdddb4ebfc6e8d95fb1f1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)
Source§fn itemized_v1_to_v2_miss() -> Weight
fn itemized_v1_to_v2_miss() -> Weight
Storage: UNKNOWN KEY 0x (r:1 w:0)
Proof: UNKNOWN KEY 0x (r:1 w:0)
Source§fn itemized_v1_to_v2_hit() -> Weight
fn itemized_v1_to_v2_hit() -> Weight
Storage: UNKNOWN KEY 0x (r:1 w:0)
Proof: UNKNOWN KEY 0x (r:1 w:0)
Storage: UNKNOWN KEY 0xf1577fbf1d628fdddb4ebfc6e8d95fb10100 (r:1 w:1)
Proof: UNKNOWN KEY 0xf1577fbf1d628fdddb4ebfc6e8d95fb10100 (r:1 w:1)