Trait pallet_society::weights::WeightInfo
source · pub trait WeightInfo {
Show 20 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;
}
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
Object Safety§
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
: None, mode: Measured
)
Storage: Society::Candidates
(r:1 w:0)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Members
(r:1 w:0)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::SuspendedMembers
(r:1 w:0)
Proof: Society::SuspendedMembers
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:1 w:0)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
source§fn unbid() -> Weight
fn unbid() -> Weight
Storage: Society::Bids
(r:1 w:1)
Proof: Society::Bids
(max_values
: Some(1), max_size
: None, mode: Measured
)
source§fn vouch() -> Weight
fn vouch() -> Weight
Storage: Society::Bids
(r:1 w:1)
Proof: Society::Bids
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Candidates
(r:1 w:0)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Members
(r:2 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::SuspendedMembers
(r:1 w:0)
Proof: Society::SuspendedMembers
(max_values
: None, max_size
: None, mode: Measured
)
source§fn unvouch() -> Weight
fn unvouch() -> Weight
Storage: Society::Bids
(r:1 w:1)
Proof: Society::Bids
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Members
(r:1 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
source§fn vote() -> Weight
fn vote() -> Weight
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Members
(r:1 w:0)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Votes
(r:1 w:1)
Proof: Society::Votes
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Members
(r:1 w:0)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::ChallengeRoundCount
(r:1 w:0)
Proof: Society::ChallengeRoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::DefenderVotes
(r:1 w:1)
Proof: Society::DefenderVotes
(max_values
: None, max_size
: None, mode: Measured
)
source§fn payout() -> Weight
fn payout() -> Weight
Storage: Society::Members
(r:1 w:0)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Payouts
(r:1 w:1)
Proof: Society::Payouts
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Payouts
(r:1 w:1)
Proof: Society::Payouts
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::MemberCount
(r:1 w:1)
Proof: Society::MemberCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::MemberByIndex
(r:0 w:1)
Proof: Society::MemberByIndex
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Founder
(r:0 w:1)
Proof: Society::Founder
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Rules
(r:0 w:1)
Proof: Society::Rules
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Members
(r:0 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:0 w:1)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
source§fn dissolve() -> Weight
fn dissolve() -> Weight
Storage: Society::Founder
(r:1 w:1)
Proof: Society::Founder
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::MemberCount
(r:1 w:1)
Proof: Society::MemberCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Members
(r:5 w:5)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::MemberByIndex
(r:5 w:5)
Proof: Society::MemberByIndex
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Votes
(r:4 w:4)
Proof: Society::Votes
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Candidates
(r:4 w:4)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Head
(r:0 w:1)
Proof: Society::Head
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Defending
(r:0 w:1)
Proof: Society::Defending
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::ChallengeRoundCount
(r:0 w:1)
Proof: Society::ChallengeRoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Skeptic
(r:0 w:1)
Proof: Society::Skeptic
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Pot
(r:0 w:1)
Proof: Society::Pot
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Rules
(r:0 w:1)
Proof: Society::Rules
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:0 w:1)
Proof: Society::RoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Bids
(r:0 w:1)
Proof: Society::Bids
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:0 w:1)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::NextHead
(r:0 w:1)
Proof: Society::NextHead
(max_values
: Some(1), max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::SuspendedMembers
(r:1 w:1)
Proof: Society::SuspendedMembers
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Payouts
(r:1 w:0)
Proof: Society::Payouts
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Pot
(r:1 w:1)
Proof: Society::Pot
(max_values
: Some(1), max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::MemberCount
(r:1 w:0)
Proof: Society::MemberCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:0 w:1)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
source§fn punish_skeptic() -> Weight
fn punish_skeptic() -> Weight
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Skeptic
(r:1 w:0)
Proof: Society::Skeptic
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Votes
(r:1 w:0)
Proof: Society::Votes
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Members
(r:1 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:1 w:0)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
source§fn claim_membership() -> Weight
fn claim_membership() -> Weight
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:1 w:0)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::MemberCount
(r:1 w:1)
Proof: Society::MemberCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::NextHead
(r:1 w:1)
Proof: Society::NextHead
(max_values
: Some(1), max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Members
(r:0 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::Parameters
(r:1 w:0)
Proof: Society::Parameters
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::MemberCount
(r:1 w:1)
Proof: Society::MemberCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Society::NextHead
(r:1 w:1)
Proof: Society::NextHead
(max_values
: Some(1), max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Members
(r:0 w:1)
Proof: Society::Members
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), 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 resign_candidacy() -> Weight
fn resign_candidacy() -> Weight
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), 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 drop_candidate() -> Weight
fn drop_candidate() -> Weight
Storage: Society::Candidates
(r:1 w:1)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::RoundCount
(r:1 w:0)
Proof: Society::RoundCount
(max_values
: Some(1), 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 cleanup_candidacy() -> Weight
fn cleanup_candidacy() -> Weight
Storage: Society::Candidates
(r:1 w:0)
Proof: Society::Candidates
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::VoteClearCursor
(r:1 w:0)
Proof: Society::VoteClearCursor
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Society::Votes
(r:2 w:2)
Proof: Society::Votes
(max_values
: None, max_size
: None, mode: Measured
)
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
: None, mode: Measured
)
Storage: Society::DefenderVotes
(r:1 w:1)
Proof: Society::DefenderVotes
(max_values
: None, max_size
: None, mode: Measured
)