Trait noble_collective::Config[][src]

pub trait Config<I: Instance = DefaultInstance>: Config {
    type Origin: From<RawOrigin<Self::AccountId, I>>;
    type Proposal: Parameter + Dispatchable<Origin = Self::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo;
    type Event: From<Event<Self, I>> + Into<Self::Event>;
    type MotionDuration: Get<Self::BlockNumber>;
    type MaxProposals: Get<ProposalIndex>;
    type MaxMembers: Get<MemberCount>;
    type DefaultVote: DefaultVote;
    type WeightInfo: WeightInfo;
}

Associated Types

type Origin: From<RawOrigin<Self::AccountId, I>>[src]

The outer origin type.

type Proposal: Parameter + Dispatchable<Origin = Self::Origin, PostInfo = PostDispatchInfo> + From<Call<Self>> + GetDispatchInfo[src]

The outer call dispatch type.

type Event: From<Event<Self, I>> + Into<Self::Event>[src]

The outer event type.

type MotionDuration: Get<Self::BlockNumber>[src]

The time-out for council motions.

type MaxProposals: Get<ProposalIndex>[src]

Maximum number of proposals allowed to be active in parallel.

type MaxMembers: Get<MemberCount>[src]

The maximum number of members supported by the noble. Used for weight estimation.

NOTE: + Benchmarks will need to be re-run and weights adjusted if this changes. + This noble assumes that dependents keep to the limit without enforcing it.

type DefaultVote: DefaultVote[src]

Default vote strategy of this collective.

type WeightInfo: WeightInfo[src]

Weight information for extrinsics in this noble.

Loading content...

Implementors

Loading content...