pub trait Config: Config + Config {
    type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
    type Origin: From<<Self as Config>::Origin> + Into<Result<Origin, <Self as Config>::Origin>>;
    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.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

The overarching event type.

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.

The system’s currency for parathread payment.

Runtime hook for when a parachain and parathread swap.

The deposit to be paid to run a parathread. This should include the cost for storing the genesis head and validation code.

The deposit to be paid per byte stored on chain.

Weight Information for the Extrinsics in the Pallet

Implementors§