pub trait Config: Config + BootstrapBenchmarkingConfig {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type MaintenanceStatusProvider: GetMaintenanceStatusTrait;
    type Currency: MultiTokenCurrencyExtended<Self::AccountId> + MultiTokenReservableCurrency<Self::AccountId>;
    type PoolCreateApi: PoolCreateApi<Self::AccountId, <<Self as Config>::Currency as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance, <<Self as Config>::Currency as MultiTokenCurrency<<Self as Config>::AccountId>>::CurrencyId>;
    type DefaultBootstrapPromotedPoolWeight: Get<u8>;
    type BootstrapUpdateBuffer: Get<BlockNumberFor<Self>>;
    type TreasuryPalletId: Get<PalletId>;
    type VestingProvider: MultiTokenVestingLocks<Self::AccountId, Currency = Self::Currency, Moment = BlockNumberFor<Self>>;
    type ClearStorageLimit: Get<u32>;
    type WeightInfo: WeightInfo;
    type RewardsApi: ProofOfStakeRewardsApi<Self::AccountId, <<Self as Config>::Currency as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance, <<Self as Config>::Currency as MultiTokenCurrency<<Self as Config>::AccountId>>::CurrencyId>;
    type AssetRegistryApi: AssetRegistryApi<<<Self as Config>::Currency as MultiTokenCurrency<<Self as Config>::AccountId>>::CurrencyId>;
}
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. Configure the pallet by specifying the parameters and types on which it depends.

Required Associated Types§

Implementors§