Trait pallet_web3_names::pallet::Config
source · 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§
sourcetype OwnerOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>
type OwnerOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>
The origin allowed to perform regular operations.
sourcetype OriginSuccess: CallSources<AccountIdOf<Self>, Web3NameOwnerOf<Self>>
type OriginSuccess: CallSources<AccountIdOf<Self>, Web3NameOwnerOf<Self>>
The type of origin after a successful origin check.
sourcetype RuntimeHoldReason: From<HoldReason>
type RuntimeHoldReason: From<HoldReason>
Aggregated hold reason.
sourcetype Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>
type Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>
The currency type to reserve and release deposits.
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype MinNameLength: Get<u32>
type MinNameLength: Get<u32>
The min encoded length of a name.
sourcetype MaxNameLength: Get<u32>
type MaxNameLength: Get<u32>
The max encoded length of a name.
sourcetype Web3Name: FullCodec + Debug + PartialEq + Clone + TypeInfo + TryFrom<Vec<u8>, Error = Error<Self>> + MaxEncodedLen + Ord
type Web3Name: FullCodec + Debug + PartialEq + Clone + TypeInfo + TryFrom<Vec<u8>, Error = Error<Self>> + MaxEncodedLen + Ord
The type of a name.
sourcetype Web3NameOwner: Parameter + MaxEncodedLen
type Web3NameOwner: Parameter + MaxEncodedLen
The type of a name owner.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>
type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>
Migration manager to handle new created entries