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§

source

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

The overarching event type.

source

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.

source

type Currency: ReservableCurrency<Self::AccountId>

The system’s currency for on-demand parachain payment.

source

type OnSwap: OnSwap

Runtime hook for when a lease holding parachain and on-demand parachain swap.

source

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.

source

type DataDepositPerByte: Get<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

The deposit to be paid per byte stored on chain.

source

type WeightInfo: WeightInfo

Weight Information for the Extrinsics in the Pallet

Implementors§