pub trait ConfigAccountManager: Config {
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>;
type WeightInfo: WeightInfo;
type Currency: ReservableCurrency<Self::AccountId>;
type Assets: Unbalanced<Self::AccountId>;
type Clock: Clock<Self>;
type Executors: Executors<Self, <Self::Currency as Currency<Self::AccountId>>::Balance>;
type Time: Time;
type EscrowAccount: Get<Self::AccountId>;
type AssetBalanceOf: Convert<<Self::Currency as Currency<Self::AccountId>>::Balance, <Self::Assets as Inspect<Self::AccountId>>::Balance>;
type AssetId: FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default + Eq + TypeInfo;
}
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§
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>
The overarching event type.
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet
type Currency: ReservableCurrency<Self::AccountId>
type Assets: Unbalanced<Self::AccountId>
type Clock: Clock<Self>
type Executors: Executors<Self, <Self::Currency as Currency<Self::AccountId>>::Balance>
type Time: Time
type Time: Time
Type providing some time handler