referrerpolicy=no-referrer-when-downgrade

propose

Function propose 

Source
pub fn propose<T: Config<I>, I: 'static>(
    threshold: MemberCount,
    proposal: Box<<T as Config<I>>::Proposal>,
    length_bound: u32,
)
Expand description

Add a new proposal to either be voted on or executed directly.

Requires the sender to be member.

threshold determines whether proposal is executed directly (threshold < 2) or put up for voting.

The proposal is identified by Pallet::proposal_hash, which covers both the call and the threshold. The threshold is fixed at submission time and is therefore part of the proposal’s identity: the same call may be under consideration with different thresholds without colliding. With threshold < 2 the call still fails with DuplicateProposal while a motion with the same call and threshold is active; such a motion can be opened through Pallet::do_propose_proposed, e.g. by pallet-alliance.

§Complexity

  • O(B + M + P1) or O(B + M + P2) where:
    • B is proposal size in bytes (length-fee-bounded)
    • M is members-count (code- and governance-bounded)
    • branching is influenced by threshold where:
      • P1 is proposal execution complexity (threshold < 2)
      • P2 is proposals-count (code-bounded) (threshold >= 2)

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::propose.