Trait polkadot_runtime_common::paras_registrar::pallet::Config
source · pub trait Config: Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type RuntimeOrigin: From<<Self as Config>::RuntimeOrigin> + Into<Result<Origin, <Self as Config>::RuntimeOrigin>>;
type Currency: ReservableCurrency<Self::AccountId>;
type OnSwap: OnSwap;
type ParaDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type DataDepositPerByte: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type WeightInfo: WeightInfo;
}
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 RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype RuntimeOrigin: From<<Self as Config>::RuntimeOrigin> + Into<Result<Origin, <Self as Config>::RuntimeOrigin>>
type RuntimeOrigin: From<<Self as Config>::RuntimeOrigin> + Into<Result<Origin, <Self as Config>::RuntimeOrigin>>
The aggregated origin type must support the parachains
origin. We require that we can
infallibly convert between this origin and the system origin, but in reality, they’re
the same type, we just can’t express that to the Rust type system without writing a
where
clause everywhere.
sourcetype Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The system’s currency for on-demand parachain payment.
sourcetype OnSwap: OnSwap
type OnSwap: OnSwap
Runtime hook for when a lease holding parachain and on-demand parachain swap.
sourcetype ParaDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type ParaDeposit: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The deposit to be paid to run a on-demand parachain. This should include the cost for storing the genesis head and validation code.
sourcetype DataDepositPerByte: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type DataDepositPerByte: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The deposit to be paid per byte stored on chain.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight Information for the Extrinsics in the Pallet