# Trait pallet_collective::weights::WeightInfo

source · ```
pub trait WeightInfo {
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

## 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 Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:0)
Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Voting (r:100 w:100)
Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council Prime (r:0 w:1)
Proof Skipped: 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 Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
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 Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:1 w:0)
Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
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 Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:1 w:1)
Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:1)
Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalCount (r:1 w:1)
Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Voting (r:0 w:1)
Proof Skipped: 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 Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Voting (r:1 w:1)
Proof Skipped: 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 Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council Members (r:1 w:0)
Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:1)
Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:0 w:1)
Proof Skipped: 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 Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council Members (r:1 w:0)
Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:1 w:1)
Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:1)
Proof Skipped: 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 Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council Members (r:1 w:0)
Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Prime (r:1 w:0)
Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:1)
Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:0 w:1)
Proof Skipped: 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 Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council Members (r:1 w:0)
Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Prime (r:1 w:0)
Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council ProposalOf (r:1 w:1)
Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
Storage: Council Proposals (r:1 w:1)
Proof Skipped: 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 Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
Storage: Council Voting (r:0 w:1)
Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
Storage: Council ProposalOf (r:0 w:1)
Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
The range of component `p`

is `[1, 100]`

.