pub trait WeightInfo {
    // Required methods
    fn create() -> Weight;
    fn create_sponsored_account_with_delegation(s: u32) -> Weight;
    fn revoke_delegation_by_provider() -> Weight;
    fn add_public_key_to_msa() -> Weight;
    fn delete_msa_public_key() -> Weight;
    fn retire_msa() -> Weight;
    fn grant_delegation(s: u32) -> Weight;
    fn revoke_delegation_by_delegator() -> Weight;
    fn create_provider() -> Weight;
    fn create_provider_via_governance() -> Weight;
    fn propose_to_be_provider() -> Weight;
    fn revoke_schema_permissions(s: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_msa.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn create() -> Weight

Storage: Msa::CurrentMsaIdentifierMaximum (r:1 w:1) Proof: Msa::CurrentMsaIdentifierMaximum (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:1 w:1) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::PublicKeyCountForMsaId (r:1 w:1) Proof: Msa::PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)

source§

fn create_sponsored_account_with_delegation(s: u32) -> Weight

Storage: Msa::PayloadSignatureRegistryList (r:2 w:2) Proof: Msa::PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen) Storage: Msa::PayloadSignatureRegistryPointer (r:1 w:1) Proof: Msa::PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:2 w:1) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::ProviderToRegistryEntry (r:1 w:0) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) Storage: Msa::CurrentMsaIdentifierMaximum (r:1 w:1) Proof: Msa::CurrentMsaIdentifierMaximum (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: Msa::PublicKeyCountForMsaId (r:1 w:1) Proof: Msa::PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen) Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:1) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen) Storage: Schemas::CurrentSchemaIdentifierMaximum (r:1 w:0) Proof: Schemas::CurrentSchemaIdentifierMaximum (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) The range of component s is [0, 30].

source§

fn revoke_delegation_by_provider() -> Weight

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:1) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)

source§

fn add_public_key_to_msa() -> Weight

Storage: Msa::PayloadSignatureRegistryList (r:4 w:4) Proof: Msa::PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen) Storage: Msa::PayloadSignatureRegistryPointer (r:1 w:1) Proof: Msa::PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:2 w:1) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::PublicKeyCountForMsaId (r:1 w:1) Proof: Msa::PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)

source§

fn delete_msa_public_key() -> Weight

Storage: Msa::PublicKeyToMsaId (r:2 w:1) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::PublicKeyCountForMsaId (r:1 w:1) Proof: Msa::PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)

source§

fn retire_msa() -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:1) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::PublicKeyCountForMsaId (r:1 w:1) Proof: Msa::PublicKeyCountForMsaId (max_values: None, max_size: Some(17), added: 2492, mode: MaxEncodedLen)

source§

fn grant_delegation(s: u32) -> Weight

Storage: Msa::PayloadSignatureRegistryList (r:2 w:2) Proof: Msa::PayloadSignatureRegistryList (max_values: Some(50000), max_size: Some(144), added: 2124, mode: MaxEncodedLen) Storage: Msa::PayloadSignatureRegistryPointer (r:1 w:1) Proof: Msa::PayloadSignatureRegistryPointer (max_values: Some(1), max_size: Some(140), added: 635, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:2 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::ProviderToRegistryEntry (r:1 w:0) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:1) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen) Storage: Schemas::CurrentSchemaIdentifierMaximum (r:1 w:0) Proof: Schemas::CurrentSchemaIdentifierMaximum (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) The range of component s is [0, 30].

source§

fn revoke_delegation_by_delegator() -> Weight

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:1) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen)

source§

fn create_provider() -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::ProviderToRegistryEntry (r:1 w:1) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)

source§

fn create_provider_via_governance() -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::ProviderToRegistryEntry (r:1 w:1) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)

source§

fn propose_to_be_provider() -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Council::ProposalOf (r:1 w:1) Proof: Council::ProposalOf (max_values: None, max_size: None, mode: Measured) Storage: Council::Proposals (r:1 w:1) Proof: Council::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: Council::ProposalCount (r:1 w:1) Proof: Council::ProposalCount (max_values: Some(1), max_size: None, mode: Measured) Storage: Council::Voting (r:0 w:1) Proof: Council::Voting (max_values: None, max_size: None, mode: Measured)

source§

fn revoke_schema_permissions(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: Msa::DelegatorAndProviderToDelegation (r:1 w:1) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen) Storage: Schemas::CurrentSchemaIdentifierMaximum (r:1 w:0) Proof: Schemas::CurrentSchemaIdentifierMaximum (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) The range of component s is [0, 30].

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>