pub trait WeightInfo {
    // Required methods
    fn reserve() -> Weight;
    fn unreserve() -> Weight;
    fn set_referrer() -> Weight;
}
Expand description

Weight functions needed for referrals.

Required Methods§

source

fn reserve() -> Weight

source

fn unreserve() -> Weight

source

fn set_referrer() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn reserve() -> Weight

Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Referrals ReferrerBalances (r:1 w:1) Proof Skipped: Referrals ReferrerBalances (max_values: None, max_size: None, mode: Measured)

source§

fn unreserve() -> Weight

Storage: Referrals ReferrerBalances (r:1 w:1) Proof Skipped: Referrals ReferrerBalances (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn set_referrer() -> Weight

Storage: Referrals Referrers (r:1 w:1) Proof Skipped: Referrals Referrers (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Referrals Referrals (r:1 w:1) Proof Skipped: Referrals Referrals (max_values: None, max_size: None, mode: Measured)

Implementors§

source§

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