referrerpolicy=no-referrer-when-downgrade
pallet_people::pallet

Trait Config

Source
pub trait Config: Config<RuntimeOrigin: From<Origin> + From<<Self::RuntimeOrigin as OriginTrait>::PalletsOrigin> + OriginTrait<PalletsOrigin: From<Origin> + TryInto<Origin, Error = <Self::RuntimeOrigin as OriginTrait>::PalletsOrigin>>, RuntimeCall: Parameter + GetDispatchInfo + IsSubType<Call<Self>> + Dispatchable<RuntimeOrigin = Self::RuntimeOrigin, Info = DispatchInfo, PostInfo = PostDispatchInfo>> + Config<RuntimeEvent: From<Event<Self>>> {
    type WeightInfo: WeightInfo;
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type Crypto: GenerateVerifiable<Proof: Send + Sync + DecodeWithMemTracking, Signature: Send + Sync + DecodeWithMemTracking, Member: DecodeWithMemTracking>;
    type AccountContexts: Contains<Context>;
    type ChunkPageSize: Get<u32>;
    type MaxRingSize: Get<u32>;
    type OnboardingQueuePageSize: Get<u32>;
    type BenchmarkHelper: BenchmarkHelper<<Self::Crypto as GenerateVerifiable>::StaticChunk>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

Source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The runtime event type.

Source

type Crypto: GenerateVerifiable<Proof: Send + Sync + DecodeWithMemTracking, Signature: Send + Sync + DecodeWithMemTracking, Member: DecodeWithMemTracking>

Trait allowing cryptographic proof of membership without exposing the underlying member. Normally a Ring-VRF.

Source

type AccountContexts: Contains<Context>

Contexts which may validly have an account alias behind it for everyone.

Source

type ChunkPageSize: Get<u32>

Number of chunks per page.

Source

type MaxRingSize: Get<u32>

Maximum number of people included in a ring before a new one is created.

Source

type OnboardingQueuePageSize: Get<u32>

Maximum number of people included in an onboarding queue page before a new one is created.

Source

type BenchmarkHelper: BenchmarkHelper<<Self::Crypto as GenerateVerifiable>::StaticChunk>

Helper for benchmarks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§