pub trait WeightInfo {
    // Required methods
    fn set_signature_threshold() -> Weight;
    fn set_keygen_threshold() -> Weight;
    fn submit_public_key(n: u32) -> Weight;
    fn submit_next_public_key(n: u32) -> Weight;
    fn submit_misbehaviour_reports(n: u32) -> Weight;
    fn unjail() -> Weight;
    fn force_unjail_signing() -> Weight;
    fn force_unjail_keygen() -> Weight;
}
Expand description

Weight functions needed for pallet_dkg_metadata.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn set_signature_threshold() -> Weight

Storage: DKG NextAuthorities (r:1 w:0) Proof: DKG NextAuthorities (max_values: Some(1), max_size: Some(3302), added: 3797, mode: MaxEncodedLen) Storage: DKG PendingSignatureThreshold (r:1 w:1) Proof: DKG PendingSignatureThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

source§

fn set_keygen_threshold() -> Weight

Storage: DKG NextAuthorities (r:1 w:0) Proof: DKG NextAuthorities (max_values: Some(1), max_size: Some(3302), added: 3797, mode: MaxEncodedLen) Storage: DKG PendingSignatureThreshold (r:1 w:0) Proof: DKG PendingSignatureThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: DKG PendingKeygenThreshold (r:1 w:1) Proof: DKG PendingKeygenThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

source§

fn submit_public_key(n: u32) -> Weight

Storage: DKG DKGPublicKey (r:1 w:1) Proof: DKG DKGPublicKey (max_values: Some(1), max_size: Some(522), added: 1017, mode: MaxEncodedLen) Storage: DKG BestAuthorities (r:1 w:0) Proof: DKG BestAuthorities (max_values: Some(1), max_size: Some(3502), added: 3997, mode: MaxEncodedLen) Storage: DKG SignatureThreshold (r:1 w:0) Proof: DKG SignatureThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: DKG AuthoritySetId (r:1 w:0) Proof: DKG AuthoritySetId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: DKG AuthorityReputations (r:51 w:51) Proof: DKG AuthorityReputations (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) Storage: DKG NextUnsignedAt (r:0 w:1) Proof: DKG NextUnsignedAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) The range of component n is [4, 100].

source§

fn submit_next_public_key(n: u32) -> Weight

Storage: DKG NextDKGPublicKey (r:1 w:1) Proof: DKG NextDKGPublicKey (max_values: Some(1), max_size: Some(522), added: 1017, mode: MaxEncodedLen) Storage: DKG NextBestAuthorities (r:1 w:0) Proof: DKG NextBestAuthorities (max_values: Some(1), max_size: Some(3502), added: 3997, mode: MaxEncodedLen) Storage: DKG NextSignatureThreshold (r:1 w:0) Proof: DKG NextSignatureThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: DKG NextAuthoritySetId (r:1 w:0) Proof: DKG NextAuthoritySetId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: DKG NextUnsignedAt (r:0 w:1) Proof: DKG NextUnsignedAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: DKG RefreshInProgress (r:0 w:1) Proof: DKG RefreshInProgress (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) The range of component n is [3, 100].

source§

fn submit_misbehaviour_reports(n: u32) -> Weight

Storage: DKG NextAuthorities (r:1 w:0) Proof: DKG NextAuthorities (max_values: Some(1), max_size: Some(3302), added: 3797, mode: MaxEncodedLen) Storage: DKG NextSignatureThreshold (r:1 w:0) Proof: DKG NextSignatureThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: DKG AuthorityReputations (r:7 w:1) Proof: DKG AuthorityReputations (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) Storage: DKG NextBestAuthorities (r:1 w:1) Proof: DKG NextBestAuthorities (max_values: Some(1), max_size: Some(3502), added: 3997, mode: MaxEncodedLen) Storage: DKG JailedKeygenAuthorities (r:6 w:0) Proof: DKG JailedKeygenAuthorities (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: DKG NextKeygenThreshold (r:1 w:0) Proof: DKG NextKeygenThreshold (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) Storage: DKG NextUnsignedAt (r:0 w:1) Proof: DKG NextUnsignedAt (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) The range of component n is [3, 100].

source§

fn unjail() -> Weight

Storage: DKG AccountToAuthority (r:1 w:0) Proof: DKG AccountToAuthority (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) Storage: DKG JailedKeygenAuthorities (r:1 w:1) Proof: DKG JailedKeygenAuthorities (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen) Storage: DKG JailedSigningAuthorities (r:1 w:1) Proof: DKG JailedSigningAuthorities (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)

source§

fn force_unjail_signing() -> Weight

Storage: DKG JailedSigningAuthorities (r:0 w:1) Proof: DKG JailedSigningAuthorities (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)

source§

fn force_unjail_keygen() -> Weight

Storage: DKG JailedKeygenAuthorities (r:0 w:1) Proof: DKG JailedKeygenAuthorities (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)

Implementors§

source§

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