Trait pallet_membership::Config[][src]

pub trait Config<I = DefaultInstance>: Config {
    type Event: From<Event<Self, I>> + Into<<Self as Config>::Event>;
    type AddOrigin: EnsureOrigin<Self::Origin>;
    type RemoveOrigin: EnsureOrigin<Self::Origin>;
    type SwapOrigin: EnsureOrigin<Self::Origin>;
    type ResetOrigin: EnsureOrigin<Self::Origin>;
    type PrimeOrigin: EnsureOrigin<Self::Origin>;
    type MembershipInitialized: InitializeMembers<Self::AccountId>;
    type MembershipChanged: ChangeMembers<Self::AccountId>;
    type MaxMembers: Get<u32>;
    type WeightInfo: WeightInfo;
}

Associated Types

The overarching event type.

Required origin for adding a member (though can always be Root).

Required origin for removing a member (though can always be Root).

Required origin for adding and removing a member in a single action.

Required origin for resetting membership.

Required origin for setting or resetting the prime member.

The receiver of the signal for when the membership has been initialized. This happens pre- genesis and will usually be the same as MembershipChanged. If you need to do something different on initialization, then you can change this accordingly.

The receiver of the signal for when the membership has changed.

The maximum number of members that this membership can have.

This is used for benchmarking. Re-run the benchmarks if this changes.

This is not enforced in the code; the membership size can exceed this limit.

Weight information for extrinsics in this pallet.

Implementors