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§
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The runtime event type.
Sourcetype Crypto: GenerateVerifiable<Proof: Send + Sync + DecodeWithMemTracking, Signature: Send + Sync + DecodeWithMemTracking, Member: DecodeWithMemTracking>
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.
Sourcetype AccountContexts: Contains<Context>
type AccountContexts: Contains<Context>
Contexts which may validly have an account alias behind it for everyone.
Sourcetype ChunkPageSize: Get<u32>
type ChunkPageSize: Get<u32>
Number of chunks per page.
Sourcetype MaxRingSize: Get<u32>
type MaxRingSize: Get<u32>
Maximum number of people included in a ring before a new one is created.
Sourcetype OnboardingQueuePageSize: Get<u32>
type OnboardingQueuePageSize: Get<u32>
Maximum number of people included in an onboarding queue page before a new one is created.
Sourcetype BenchmarkHelper: BenchmarkHelper<<Self::Crypto as GenerateVerifiable>::StaticChunk>
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.