pub trait WeightInfo {
Show 22 methods
// Required methods
fn bid() -> Weight;
fn unbid() -> Weight;
fn vouch() -> Weight;
fn unvouch() -> Weight;
fn vote() -> Weight;
fn defender_vote() -> Weight;
fn payout() -> Weight;
fn waive_repay() -> Weight;
fn found_society() -> Weight;
fn dissolve() -> Weight;
fn judge_suspended_member() -> Weight;
fn set_parameters() -> Weight;
fn punish_skeptic() -> Weight;
fn claim_membership() -> Weight;
fn bestow_membership() -> Weight;
fn kick_candidate() -> Weight;
fn resign_candidacy() -> Weight;
fn drop_candidate() -> Weight;
fn cleanup_candidacy() -> Weight;
fn cleanup_challenge() -> Weight;
fn poke_deposit() -> Weight;
fn kick_member() -> Weight;
}Expand description
Weight functions needed for pallet_society.
Required Methods§
fn bid() -> Weight
fn unbid() -> Weight
fn vouch() -> Weight
fn unvouch() -> Weight
fn vote() -> Weight
fn defender_vote() -> Weight
fn payout() -> Weight
fn waive_repay() -> Weight
fn found_society() -> Weight
fn dissolve() -> Weight
fn judge_suspended_member() -> Weight
fn set_parameters() -> Weight
fn punish_skeptic() -> Weight
fn claim_membership() -> Weight
fn bestow_membership() -> Weight
fn kick_candidate() -> Weight
fn resign_candidacy() -> Weight
fn drop_candidate() -> Weight
fn cleanup_candidacy() -> Weight
fn cleanup_challenge() -> Weight
fn poke_deposit() -> Weight
fn kick_member() -> 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 bid() -> Weight
fn bid() -> Weight
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::Candidates (r:1 w:0)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:0)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::SuspendedMembers (r:1 w:0)
Proof: Society::SuspendedMembers (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Parameters (r:1 w:0)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn unbid() -> Weight
fn unbid() -> Weight
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Source§fn vouch() -> Weight
fn vouch() -> Weight
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::Candidates (r:1 w:0)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::Members (r:2 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::SuspendedMembers (r:1 w:0)
Proof: Society::SuspendedMembers (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Source§fn unvouch() -> Weight
fn unvouch() -> Weight
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Source§fn vote() -> Weight
fn vote() -> Weight
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:0)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Votes (r:1 w:1)
Proof: Society::Votes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
Source§fn defender_vote() -> Weight
fn defender_vote() -> Weight
Storage: Society::Defending (r:1 w:1)
Proof: Society::Defending (max_values: Some(1), max_size: Some(72), added: 567, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:0)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::ChallengeRoundCount (r:1 w:0)
Proof: Society::ChallengeRoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::DefenderVotes (r:1 w:1)
Proof: Society::DefenderVotes (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
Source§fn payout() -> Weight
fn payout() -> Weight
Storage: Society::Members (r:1 w:0)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Payouts (r:1 w:1)
Proof: Society::Payouts (max_values: None, max_size: Some(257), added: 2732, 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 waive_repay() -> Weight
fn waive_repay() -> Weight
Storage: Society::Members (r:1 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Payouts (r:1 w:1)
Proof: Society::Payouts (max_values: None, max_size: Some(257), added: 2732, mode: MaxEncodedLen)
Source§fn found_society() -> Weight
fn found_society() -> Weight
Storage: Society::Head (r:1 w:1)
Proof: Society::Head (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:1)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::MemberByIndex (r:0 w:1)
Proof: Society::MemberByIndex (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
Storage: Society::Founder (r:0 w:1)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Rules (r:0 w:1)
Proof: Society::Rules (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Members (r:0 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Parameters (r:0 w:1)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn dissolve() -> Weight
fn dissolve() -> Weight
Storage: Society::Founder (r:1 w:1)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:1)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Members (r:5 w:5)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::MemberByIndex (r:5 w:5)
Proof: Society::MemberByIndex (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
Storage: Society::Votes (r:4 w:4)
Proof: Society::Votes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
Storage: Society::Candidates (r:4 w:4)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::Head (r:0 w:1)
Proof: Society::Head (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Defending (r:0 w:1)
Proof: Society::Defending (max_values: Some(1), max_size: Some(72), added: 567, mode: MaxEncodedLen)
Storage: Society::ChallengeRoundCount (r:0 w:1)
Proof: Society::ChallengeRoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Skeptic (r:0 w:1)
Proof: Society::Skeptic (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Pot (r:0 w:1)
Proof: Society::Pot (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
Storage: Society::Rules (r:0 w:1)
Proof: Society::Rules (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:0 w:1)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Bids (r:0 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::Parameters (r:0 w:1)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Storage: Society::NextHead (r:0 w:1)
Proof: Society::NextHead (max_values: Some(1), max_size: Some(52), added: 547, mode: MaxEncodedLen)
Source§fn judge_suspended_member() -> Weight
fn judge_suspended_member() -> Weight
Storage: Society::Founder (r:1 w:0)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::SuspendedMembers (r:1 w:1)
Proof: Society::SuspendedMembers (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Payouts (r:1 w:0)
Proof: Society::Payouts (max_values: None, max_size: Some(257), added: 2732, mode: MaxEncodedLen)
Storage: Society::Pot (r:1 w:1)
Proof: Society::Pot (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
Source§fn set_parameters() -> Weight
fn set_parameters() -> Weight
Storage: Society::Founder (r:1 w:0)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:0)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Parameters (r:0 w:1)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn punish_skeptic() -> Weight
fn punish_skeptic() -> Weight
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Skeptic (r:1 w:0)
Proof: Society::Skeptic (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Votes (r:1 w:0)
Proof: Society::Votes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::Parameters (r:1 w:0)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn claim_membership() -> Weight
fn claim_membership() -> Weight
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Parameters (r:1 w:0)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:1)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::NextHead (r:1 w:1)
Proof: Society::NextHead (max_values: Some(1), max_size: Some(52), added: 547, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Society::MemberByIndex (r:0 w:1)
Proof: Society::MemberByIndex (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
Storage: Society::Members (r:0 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Source§fn bestow_membership() -> Weight
fn bestow_membership() -> Weight
Storage: Society::Founder (r:1 w:0)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Parameters (r:1 w:0)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:1)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::NextHead (r:1 w:1)
Proof: Society::NextHead (max_values: Some(1), max_size: Some(52), added: 547, mode: MaxEncodedLen)
Storage: System::Account (r:1 w:1)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Society::MemberByIndex (r:0 w:1)
Proof: Society::MemberByIndex (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
Storage: Society::Members (r:0 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Source§fn kick_candidate() -> Weight
fn kick_candidate() -> Weight
Storage: Society::Founder (r:1 w:0)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: System::Account (r:2 w:2)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Source§fn resign_candidacy() -> Weight
fn resign_candidacy() -> Weight
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: System::Account (r:2 w:2)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Source§fn drop_candidate() -> Weight
fn drop_candidate() -> Weight
Storage: Society::Candidates (r:1 w:1)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::RoundCount (r:1 w:0)
Proof: Society::RoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: System::Account (r:2 w:2)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Source§fn cleanup_candidacy() -> Weight
fn cleanup_candidacy() -> Weight
Storage: Society::Candidates (r:1 w:0)
Proof: Society::Candidates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
Storage: Society::VoteClearCursor (r:1 w:0)
Proof: Society::VoteClearCursor (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
Storage: Society::Votes (r:2 w:2)
Proof: Society::Votes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
Source§fn cleanup_challenge() -> Weight
fn cleanup_challenge() -> Weight
Storage: Society::ChallengeRoundCount (r:1 w:0)
Proof: Society::ChallengeRoundCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::DefenderVotes (r:1 w:1)
Proof: Society::DefenderVotes (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
Source§fn poke_deposit() -> Weight
fn poke_deposit() -> Weight
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::Parameters (r:1 w:0)
Proof: Society::Parameters (max_values: Some(1), max_size: Some(28), added: 523, mode: MaxEncodedLen)
Source§fn kick_member() -> Weight
fn kick_member() -> Weight
Storage: Society::Founder (r:1 w:0)
Proof: Society::Founder (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Payouts (r:1 w:1)
Proof: Society::Payouts (max_values: None, max_size: Some(257), added: 2732, mode: MaxEncodedLen)
Storage: Society::Head (r:1 w:0)
Proof: Society::Head (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
Storage: Society::Members (r:1 w:1)
Proof: Society::Members (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::MemberCount (r:1 w:1)
Proof: Society::MemberCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: Society::Bids (r:1 w:1)
Proof: Society::Bids (max_values: Some(1), max_size: Some(971), added: 1466, mode: MaxEncodedLen)
Storage: Society::SuspendedMembers (r:0 w:1)
Proof: Society::SuspendedMembers (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
Storage: Society::MemberByIndex (r:0 w:1)
Proof: Society::MemberByIndex (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)