pub trait WeightInfo {
// Required methods
fn add_child_bounty(d: u32) -> Weight;
fn propose_curator() -> Weight;
fn accept_curator() -> Weight;
fn unassign_curator() -> Weight;
fn award_child_bounty() -> Weight;
fn claim_child_bounty() -> Weight;
fn close_child_bounty_added() -> Weight;
fn close_child_bounty_active() -> Weight;
}
Expand description
Weight functions needed for pallet_child_bounties
.
Required Methods§
fn add_child_bounty(d: u32) -> Weight
fn propose_curator() -> Weight
fn accept_curator() -> Weight
fn unassign_curator() -> Weight
fn award_child_bounty() -> Weight
fn claim_child_bounty() -> Weight
fn close_child_bounty_added() -> Weight
fn close_child_bounty_active() -> 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 add_child_bounty(_d: u32) -> Weight
fn add_child_bounty(_d: u32) -> Weight
Storage: ChildBounties::ParentChildBounties
(r:1 w:1)
Proof: ChildBounties::ParentChildBounties
(max_values
: None, max_size
: Some(16), added: 2491, mode: MaxEncodedLen
)
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
)
Storage: ChildBounties::ParentTotalChildBounties
(r:1 w:1)
Proof: ChildBounties::ParentTotalChildBounties
(max_values
: None, max_size
: Some(16), added: 2491, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBountyDescriptionsV1
(r:0 w:1)
Proof: ChildBounties::ChildBountyDescriptionsV1
(max_values
: None, max_size
: Some(326), added: 2801, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:0 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, mode: MaxEncodedLen
)
The range of component d
is [0, 300]
.
Source§fn propose_curator() -> Weight
fn propose_curator() -> Weight
Storage: Bounties::Bounties
(r:1 w:0)
Proof: Bounties::Bounties
(max_values
: None, max_size
: Some(177), added: 2652, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildrenCuratorFees
(r:1 w:1)
Proof: ChildBounties::ChildrenCuratorFees
(max_values
: None, max_size
: Some(28), added: 2503, mode: MaxEncodedLen
)
Source§fn accept_curator() -> Weight
fn accept_curator() -> Weight
Storage: Bounties::Bounties
(r:1 w:0)
Proof: Bounties::Bounties
(max_values
: None, max_size
: Some(177), added: 2652, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, 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 unassign_curator() -> Weight
fn unassign_curator() -> Weight
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, mode: MaxEncodedLen
)
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:1 w:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Source§fn award_child_bounty() -> Weight
fn award_child_bounty() -> Weight
Storage: Bounties::Bounties
(r:1 w:0)
Proof: Bounties::Bounties
(max_values
: None, max_size
: Some(177), added: 2652, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, mode: MaxEncodedLen
)
Source§fn claim_child_bounty() -> Weight
fn claim_child_bounty() -> Weight
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, 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::ParentChildBounties
(r:1 w:1)
Proof: ChildBounties::ParentChildBounties
(max_values
: None, max_size
: Some(16), added: 2491, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBountyDescriptionsV1
(r:0 w:1)
Proof: ChildBounties::ChildBountyDescriptionsV1
(max_values
: None, max_size
: Some(326), added: 2801, mode: MaxEncodedLen
)
Source§fn close_child_bounty_added() -> Weight
fn close_child_bounty_added() -> Weight
Storage: Bounties::Bounties
(r:1 w:0)
Proof: Bounties::Bounties
(max_values
: None, max_size
: Some(177), added: 2652, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildrenCuratorFees
(r:1 w:1)
Proof: ChildBounties::ChildrenCuratorFees
(max_values
: None, max_size
: Some(28), added: 2503, 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: ChildBounties::ChildBountyDescriptionsV1
(r:0 w:1)
Proof: ChildBounties::ChildBountyDescriptionsV1
(max_values
: None, max_size
: Some(326), added: 2801, mode: MaxEncodedLen
)
Source§fn close_child_bounty_active() -> Weight
fn close_child_bounty_active() -> Weight
Storage: Bounties::Bounties
(r:1 w:0)
Proof: Bounties::Bounties
(max_values
: None, max_size
: Some(177), added: 2652, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBounties
(r:1 w:1)
Proof: ChildBounties::ChildBounties
(max_values
: None, max_size
: Some(145), added: 2620, 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: ChildBounties::ParentChildBounties
(r:1 w:1)
Proof: ChildBounties::ParentChildBounties
(max_values
: None, max_size
: Some(16), added: 2491, mode: MaxEncodedLen
)
Storage: ChildBounties::ChildBountyDescriptionsV1
(r:0 w:1)
Proof: ChildBounties::ChildBountyDescriptionsV1
(max_values
: None, max_size
: Some(326), added: 2801, mode: MaxEncodedLen
)