Trait orml_currencies::module::Config

source ·
pub trait Config: Config {
    type MultiCurrency: TransferAll<Self::AccountId> + MultiCurrencyExtended<Self::AccountId> + MultiLockableCurrency<Self::AccountId> + MultiReservableCurrency<Self::AccountId> + NamedMultiReservableCurrency<Self::AccountId>;
    type NativeCurrency: BasicCurrencyExtended<Self::AccountId, Balance = <<Self as Config>::MultiCurrency as MultiCurrency<<Self as Config>::AccountId>>::Balance, Amount = <<Self as Config>::MultiCurrency as MultiCurrencyExtended<<Self as Config>::AccountId>>::Amount> + BasicLockableCurrency<Self::AccountId, Balance = <<Self as Config>::MultiCurrency as MultiCurrency<<Self as Config>::AccountId>>::Balance> + BasicReservableCurrency<Self::AccountId, Balance = <<Self as Config>::MultiCurrency as MultiCurrency<<Self as Config>::AccountId>>::Balance> + NamedBasicReservableCurrency<Self::AccountId, <<Self as Config>::MultiCurrency as NamedMultiReservableCurrency<<Self as Config>::AccountId>>::ReserveIdentifier, Balance = <<Self as Config>::MultiCurrency as MultiCurrency<<Self as Config>::AccountId>>::Balance>;
    type GetNativeCurrencyId: Get<<<Self as Config>::MultiCurrency as MultiCurrency<<Self as Config>::AccountId>>::CurrencyId>;
    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.

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§