Trait pallet_collective::pallet::Config
source · pub trait Config<I: 'static = ()>: Config {
type Origin: From<RawOrigin<Self::AccountId, I>>;
type Proposal: Parameter + Dispatchable<Origin = <Self as Config<I>>::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo;
type Event: From<Event<Self, I>> + IsType<<Self as Config>::Event>;
type MotionDuration: Get<Self::BlockNumber>;
type MaxProposals: Get<ProposalIndex>;
type MaxMembers: Get<MemberCount>;
type DefaultVote: DefaultVote;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype Proposal: Parameter + Dispatchable<Origin = <Self as Config<I>>::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo
type Proposal: Parameter + Dispatchable<Origin = <Self as Config<I>>::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo
The outer call dispatch type.
sourcetype MotionDuration: Get<Self::BlockNumber>
type MotionDuration: Get<Self::BlockNumber>
The time-out for council motions.
sourcetype MaxProposals: Get<ProposalIndex>
type MaxProposals: Get<ProposalIndex>
Maximum number of proposals allowed to be active in parallel.
sourcetype MaxMembers: Get<MemberCount>
type MaxMembers: Get<MemberCount>
The maximum number of members supported by the pallet. Used for weight estimation.
NOTE:
- Benchmarks will need to be re-run and weights adjusted if this changes.
- This pallet assumes that dependents keep to the limit without enforcing it.
sourcetype DefaultVote: DefaultVote
type DefaultVote: DefaultVote
Default vote strategy of this collective.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.