pub trait Config: Config {
type SupplyPalletId: Get<PalletId>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type UnsignedFixedPoint: FixedPointNumber<Inner = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance> + TruncateFixedPointToInt + Encode + EncodeLike + Decode + MaybeSerializeDeserialize + TypeInfo + MaxEncodedLen;
type Currency: ReservableCurrency<Self::AccountId>;
type InflationPeriod: Get<BlockNumberFor<Self>>;
type OnInflation: OnInflation<Self::AccountId, Currency = Self::Currency>;
type WeightInfo: WeightInfo;
}
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.
Configuration
The pallet’s configuration trait.
Required Associated Types§
sourcetype SupplyPalletId: Get<PalletId>
type SupplyPalletId: Get<PalletId>
The supply module id, used for deriving its sovereign account ID.
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 UnsignedFixedPoint: FixedPointNumber<Inner = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance> + TruncateFixedPointToInt + Encode + EncodeLike + Decode + MaybeSerializeDeserialize + TypeInfo + MaxEncodedLen
type UnsignedFixedPoint: FixedPointNumber<Inner = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance> + TruncateFixedPointToInt + Encode + EncodeLike + Decode + MaybeSerializeDeserialize + TypeInfo + MaxEncodedLen
Unsigned fixed point type.
sourcetype InflationPeriod: Get<BlockNumberFor<Self>>
type InflationPeriod: Get<BlockNumberFor<Self>>
The period between inflation updates.
sourcetype OnInflation: OnInflation<Self::AccountId, Currency = Self::Currency>
type OnInflation: OnInflation<Self::AccountId, Currency = Self::Currency>
Handler for when the total supply has inflated.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.