pub trait Config: Config {
    type Currency: Currency<Self::AccountId>;
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type Xdns: Xdns<Self, BalanceOf<Self>>;
    type WeightInfo: WeightInfo;
    type SelectLightClient: SelectLightClient<Self>;
}
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. Configure the pallet by specifying the parameters and types on which it depends.

Required Associated Types§

source

type Currency: Currency<Self::AccountId>

Currency access

source

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

Because this pallet emits events, it depends on the runtime’s definition of an event.

source

type Xdns: Xdns<Self, BalanceOf<Self>>

Access to XDNS pallet

source

type WeightInfo: WeightInfo

Type representing the weight of this pallet

source

type SelectLightClient: SelectLightClient<Self>

Selects the light client implementation

Implementors§