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.

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

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 parathread payment.

source

type OnSwap: OnSwap

Runtime hook for when a parachain and parathread swap.

source

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

The deposit to be paid to run a parathread. 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§