pub trait Config: Config {
Show 13 associated items type BanOrigin: EnsureOrigin<Self::RuntimeOrigin>; type OwnerOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>; type OriginSuccess: CallSources<AccountIdOf<Self>, Web3NameOwnerOf<Self>>; type RuntimeHoldReason: From<HoldReason>; type Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>; type Deposit: Get<BalanceOf<Self>>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type MinNameLength: Get<u32>; type MaxNameLength: Get<u32>; type Web3Name: FullCodec + Debug + PartialEq + Clone + TypeInfo + TryFrom<Vec<u8>, Error = Error<Self>> + MaxEncodedLen + Ord; type Web3NameOwner: Parameter + MaxEncodedLen; type WeightInfo: WeightInfo; type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<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.

Required Associated Types§

source

type BanOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin allowed to ban names.

source

type OwnerOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>

The origin allowed to perform regular operations.

source

type OriginSuccess: CallSources<AccountIdOf<Self>, Web3NameOwnerOf<Self>>

The type of origin after a successful origin check.

source

type RuntimeHoldReason: From<HoldReason>

Aggregated hold reason.

source

type Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>

The currency type to reserve and release deposits.

source

type Deposit: Get<BalanceOf<Self>>

The amount of KILT to deposit to claim a name.

source

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

The overarching event type.

source

type MinNameLength: Get<u32>

The min encoded length of a name.

source

type MaxNameLength: Get<u32>

The max encoded length of a name.

source

type Web3Name: FullCodec + Debug + PartialEq + Clone + TypeInfo + TryFrom<Vec<u8>, Error = Error<Self>> + MaxEncodedLen + Ord

The type of a name.

source

type Web3NameOwner: Parameter + MaxEncodedLen

The type of a name owner.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>

Migration manager to handle new created entries

Implementors§