Trait pallet_duster::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen;
type Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize;
type CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord;
type MultiCurrency: MultiCurrencyExtended<Self::AccountId, CurrencyId = Self::CurrencyId, Balance = Self::Balance, Amount = Self::Amount>;
type MinCurrencyDeposits: GetByKey<Self::CurrencyId, Self::Balance>;
type Reward: Get<Self::Balance>;
type NativeCurrencyId: Get<Self::CurrencyId>;
type BlacklistUpdateOrigin: EnsureOrigin<Self::Origin>;
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§
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>
sourcetype Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen
Balance type
sourcetype Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize
type Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize
The amount type, should be signed version of Balance
sourcetype CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord
type CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord
Asset type
sourcetype MultiCurrency: MultiCurrencyExtended<Self::AccountId, CurrencyId = Self::CurrencyId, Balance = Self::Balance, Amount = Self::Amount>
type MultiCurrency: MultiCurrencyExtended<Self::AccountId, CurrencyId = Self::CurrencyId, Balance = Self::Balance, Amount = Self::Amount>
Currency for transfers
sourcetype MinCurrencyDeposits: GetByKey<Self::CurrencyId, Self::Balance>
type MinCurrencyDeposits: GetByKey<Self::CurrencyId, Self::Balance>
The minimum amount required to keep an account.
sourcetype NativeCurrencyId: Get<Self::CurrencyId>
type NativeCurrencyId: Get<Self::CurrencyId>
Native Asset Id
sourcetype BlacklistUpdateOrigin: EnsureOrigin<Self::Origin>
type BlacklistUpdateOrigin: EnsureOrigin<Self::Origin>
The origin which can manage whiltelist.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this module.