Trait pallet_ema_oracle::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type WeightInfo: WeightInfo;
type BlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>;
type SupportedPeriods: Get<BoundedVec<OraclePeriod, ConstU32<MAX_PERIODS>>>;
type MaxUniqueEntries: Get<u32>;
}
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 WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for the extrinsics.
sourcetype BlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>
type BlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>
Provider for the current block number.
sourcetype SupportedPeriods: Get<BoundedVec<OraclePeriod, ConstU32<MAX_PERIODS>>>
type SupportedPeriods: Get<BoundedVec<OraclePeriod, ConstU32<MAX_PERIODS>>>
The periods supported by the pallet. I.e. which oracles to track.
sourcetype MaxUniqueEntries: Get<u32>
type MaxUniqueEntries: Get<u32>
Maximum number of unique oracle entries expected in one block.