Trait pallet_committee::pallet::Config[][src]

pub trait Config: Config {
    type Origin: From<CommitteeOrigin<Self::AccountId, Self::BlockNumber>>;
    type Action: Parameter + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo + TypeInfo;
    type ProposalNonce: Parameter + Member + One + Zero + Codec + Default + MaybeSerializeDeserialize + CheckedAdd + TypeInfo;
    type ProposalSubmissionPeriod: Get<Self::BlockNumber>;
    type VotingPeriod: Get<Self::BlockNumber>;
    type VotingPeriodRange: VotingPeriodRange<Self::BlockNumber>;
    type MinCouncilVotes: Get<usize>;
    type ProposalSubmissionOrigin: EnsureOrigin<<Self as Config>::Origin, Success = <Self as Config>::AccountId>;
    type ProposalExecutionOrigin: EnsureOrigin<<Self as Config>::Origin, Success = <Self as Config>::AccountId>;
    type ApprovedByCommitteeOrigin: EnsureOrigin<<Self as Config>::Origin>;
    type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Associated Types

The outer origin type.

The outer call dispatch type.

A unique number assigned to each new instance of a proposal

Duration (in blocks) of the proposal submission period

Duration (in blocks) of the voting period

Range of the voting period

Minimum number of council members that must vote for a action to be passed

Origin that is permitted to create proposals

Origin that is permitted to execute approved proposals

Origin that is permitted to execute priviliged extrinsics

The weight for this pallet’s extrinsics.

Implementors