Trait pallet_collective::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn set_members(m: u32, n: u32, p: u32) -> Weight;
fn execute(b: u32, m: u32) -> Weight;
fn propose_execute(b: u32, m: u32) -> Weight;
fn propose_proposed(b: u32, m: u32, p: u32) -> Weight;
fn vote(m: u32) -> Weight;
fn close_early_disapproved(m: u32, p: u32) -> Weight;
fn close_early_approved(b: u32, m: u32, p: u32) -> Weight;
fn close_disapproved(m: u32, p: u32) -> Weight;
fn close_approved(b: u32, m: u32, p: u32) -> Weight;
fn disapprove_proposal(p: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_collective
.
Required Methods§
fn set_members(m: u32, n: u32, p: u32) -> Weight
fn execute(b: u32, m: u32) -> Weight
fn propose_execute(b: u32, m: u32) -> Weight
fn propose_proposed(b: u32, m: u32, p: u32) -> Weight
fn vote(m: u32) -> Weight
fn close_early_disapproved(m: u32, p: u32) -> Weight
fn close_early_approved(b: u32, m: u32, p: u32) -> Weight
fn close_disapproved(m: u32, p: u32) -> Weight
fn close_approved(b: u32, m: u32, p: u32) -> Weight
fn disapprove_proposal(p: u32) -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn set_members(m: u32, _n: u32, p: u32) -> Weight
fn set_members(m: u32, _n: u32, p: u32) -> Weight
Storage: Council::Members
(r:1 w:1)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:0)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:100 w:100)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Prime
(r:0 w:1)
Proof: Council::Prime
(max_values
: Some(1), max_size
: None, mode: Measured
)
The range of component m
is [0, 100]
.
The range of component n
is [0, 100]
.
The range of component p
is [0, 100]
.
source§fn execute(b: u32, m: u32) -> Weight
fn execute(b: u32, m: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: SafeMode::EnteredUntil
(r:1 w:0)
Proof: SafeMode::EnteredUntil
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: TxPause::PausedCalls
(r:1 w:0)
Proof: TxPause::PausedCalls
(max_values
: None, max_size
: Some(532), added: 3007, mode: MaxEncodedLen
)
The range of component b
is [2, 1024]
.
The range of component m
is [1, 100]
.
source§fn propose_execute(b: u32, m: u32) -> Weight
fn propose_execute(b: u32, m: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:0)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: SafeMode::EnteredUntil
(r:1 w:0)
Proof: SafeMode::EnteredUntil
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: TxPause::PausedCalls
(r:1 w:0)
Proof: TxPause::PausedCalls
(max_values
: None, max_size
: Some(532), added: 3007, mode: MaxEncodedLen
)
The range of component b
is [2, 1024]
.
The range of component m
is [1, 100]
.
source§fn propose_proposed(b: u32, m: u32, p: u32) -> Weight
fn propose_proposed(b: u32, m: u32, p: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalCount
(r:1 w:1)
Proof: Council::ProposalCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:0 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
The range of component b
is [2, 1024]
.
The range of component m
is [2, 100]
.
The range of component p
is [1, 100]
.
source§fn vote(m: u32) -> Weight
fn vote(m: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:1 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
The range of component m
is [5, 100]
.
source§fn close_early_disapproved(m: u32, p: u32) -> Weight
fn close_early_disapproved(m: u32, p: u32) -> Weight
Storage: Council::Voting
(r:1 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:0 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
The range of component m
is [4, 100]
.
The range of component p
is [1, 100]
.
source§fn close_early_approved(b: u32, m: u32, p: u32) -> Weight
fn close_early_approved(b: u32, m: u32, p: u32) -> Weight
Storage: Council::Voting
(r:1 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: SafeMode::EnteredUntil
(r:1 w:0)
Proof: SafeMode::EnteredUntil
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: TxPause::PausedCalls
(r:1 w:0)
Proof: TxPause::PausedCalls
(max_values
: None, max_size
: Some(532), added: 3007, mode: MaxEncodedLen
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
The range of component b
is [2, 1024]
.
The range of component m
is [4, 100]
.
The range of component p
is [1, 100]
.
source§fn close_disapproved(m: u32, p: u32) -> Weight
fn close_disapproved(m: u32, p: u32) -> Weight
Storage: Council::Voting
(r:1 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Prime
(r:1 w:0)
Proof: Council::Prime
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:0 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
The range of component m
is [4, 100]
.
The range of component p
is [1, 100]
.
source§fn close_approved(b: u32, m: u32, p: u32) -> Weight
fn close_approved(b: u32, m: u32, p: u32) -> Weight
Storage: Council::Voting
(r:1 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Prime
(r:1 w:0)
Proof: Council::Prime
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: SafeMode::EnteredUntil
(r:1 w:0)
Proof: SafeMode::EnteredUntil
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: TxPause::PausedCalls
(r:1 w:0)
Proof: TxPause::PausedCalls
(max_values
: None, max_size
: Some(532), added: 3007, mode: MaxEncodedLen
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
The range of component b
is [2, 1024]
.
The range of component m
is [4, 100]
.
The range of component p
is [1, 100]
.
source§fn disapprove_proposal(p: u32) -> Weight
fn disapprove_proposal(p: u32) -> Weight
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:0 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:0 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
The range of component p
is [1, 100]
.