referrerpolicy=no-referrer-when-downgrade

WeightInfo

Trait WeightInfo 

Source
pub trait WeightInfo {
Show 14 methods // Required methods fn propose_bounty(d: u32) -> Weight; fn approve_bounty() -> Weight; fn propose_curator() -> Weight; fn approve_bounty_with_curator() -> Weight; fn unassign_curator() -> Weight; fn accept_curator() -> Weight; fn award_bounty() -> Weight; fn claim_bounty() -> Weight; fn close_bounty_proposed() -> Weight; fn close_bounty_active() -> Weight; fn extend_bounty_expiry() -> Weight; fn spend_funds(b: u32) -> Weight; fn poke_deposit() -> Weight; fn reclaim_bounty_funds() -> Weight;
}
Expand description

Weight functions needed for pallet_bounties.

Required Methods§

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

Source§

fn propose_bounty(d: u32) -> Weight

Storage: Bounties::BountyCount (r:1 w:1) Proof: Bounties::BountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Bounties::BountyDescriptions (r:0 w:1) Proof: Bounties::BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen) Storage: Bounties::Bounties (r:0 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) The range of component d is [0, 300].

Source§

fn approve_bounty() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: Bounties::BountyApprovals (r:1 w:1) Proof: Bounties::BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)

Source§

fn propose_curator() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)

Source§

fn approve_bounty_with_curator() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: Bounties::BountyApprovals (r:1 w:1) Proof: Bounties::BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)

Source§

fn unassign_curator() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Source§

fn accept_curator() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Source§

fn award_bounty() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: ChildBounties::ParentChildBounties (r:1 w:0) Proof: ChildBounties::ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)

Source§

fn claim_bounty() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: System::Account (r:3 w:3) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: ChildBounties::ChildrenCuratorFees (r:1 w:1) Proof: ChildBounties::ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) Storage: Bounties::BountyDescriptions (r:0 w:1) Proof: Bounties::BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen) Storage: ChildBounties::ParentTotalChildBounties (r:0 w:1) Proof: ChildBounties::ParentTotalChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) Storage: ChildBounties::ParentChildBounties (r:0 w:1) Proof: ChildBounties::ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)

Source§

fn close_bounty_proposed() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: ChildBounties::ParentChildBounties (r:1 w:0) Proof: ChildBounties::ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Bounties::BountyDescriptions (r:0 w:1) Proof: Bounties::BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)

Source§

fn close_bounty_active() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: ChildBounties::ParentChildBounties (r:1 w:1) Proof: ChildBounties::ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Bounties::BountyDescriptions (r:0 w:1) Proof: Bounties::BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen) Storage: ChildBounties::ParentTotalChildBounties (r:0 w:1) Proof: ChildBounties::ParentTotalChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)

Source§

fn extend_bounty_expiry() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)

Source§

fn spend_funds(b: u32) -> Weight

Storage: Bounties::BountyApprovals (r:1 w:1) Proof: Bounties::BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen) Storage: Bounties::Bounties (r:100 w:100) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: System::Account (r:200 w:200) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component b is [0, 100].

Source§

fn poke_deposit() -> Weight

Storage: Bounties::Bounties (r:1 w:1) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: Bounties::BountyDescriptions (r:1 w:0) Proof: Bounties::BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Source§

fn reclaim_bounty_funds() -> Weight

Storage: Bounties::Bounties (r:1 w:0) Proof: Bounties::Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Implementors§

Source§

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