pub trait Config: Config<RuntimeOrigin: Into<Result<Origin, <Self as Config>::RuntimeOrigin>>> + Config<RuntimeEvent: From<Event<Self>>> {
type OnDepositSet: OnDepositSet;
type HolderParaId: Get<ParaId>;
type SendToPara: SendToPara;
type MaxFailedReleases: Get<u32>;
type WeightInfo: WeightInfo;
type BenchmarkHelper: BenchmarkHelper;
}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 OnDepositSet: OnDepositSet
type OnDepositSet: OnDepositSet
Receives the outcome of each pending request: the hrmp pallet.
Sourcetype HolderParaId: Get<ParaId>
type HolderParaId: Get<ParaId>
The para that holds the deposits.
Only it may answer requests.
Sourcetype SendToPara: SendToPara
type SendToPara: SendToPara
Sends messages to the parachain that holds the deposits.
Sourcetype MaxFailedReleases: Get<u32>
type MaxFailedReleases: Get<u32>
How many releases may wait in FailedReleases to be retried.
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for the extrinsics in this pallet.
Sourcetype BenchmarkHelper: BenchmarkHelper
type BenchmarkHelper: BenchmarkHelper
Prepares the runtime for the 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.