Trait pallet_chainlink_feed::pallet::Config [−][src]
pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type FeedId: Member + Parameter + Default + Copy + HasCompact + BaseArithmetic;
type Value: Member + Parameter + Default + Copy + HasCompact + PartialEq + BaseArithmetic + MaybeSerializeDeserialize;
type Currency: ReservableCurrency<Self::AccountId>;
type PalletId: Get<PalletId>;
type MinimumReserve: Get<BalanceOf<Self>>;
type StringLimit: Get<u32>;
type OracleCountLimit: Get<u32>;
type FeedLimit: Get<Self::FeedId>;
type OnAnswerHandler: OnAnswerHandler<Self>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Associated Types
type FeedId: Member + Parameter + Default + Copy + HasCompact + BaseArithmetic
type FeedId: Member + Parameter + Default + Copy + HasCompact + BaseArithmetic
Type for feed indexing.
type Value: Member + Parameter + Default + Copy + HasCompact + PartialEq + BaseArithmetic + MaybeSerializeDeserialize
type Value: Member + Parameter + Default + Copy + HasCompact + PartialEq + BaseArithmetic + MaybeSerializeDeserialize
Oracle feed values.
type Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
Interface used for balance transfers.
The module id used to determine the account for storing the funds used to pay the oracles.
type MinimumReserve: Get<BalanceOf<Self>>
type MinimumReserve: Get<BalanceOf<Self>>
The minimum amount of funds that need to be present in the fund account.
type StringLimit: Get<u32>
type StringLimit: Get<u32>
Maximum allowed string length.
type OracleCountLimit: Get<u32>
type OracleCountLimit: Get<u32>
Maximum number of oracles per feed.
type OnAnswerHandler: OnAnswerHandler<Self>
type OnAnswerHandler: OnAnswerHandler<Self>
This callback will trigger when the round answer updates
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
The weight for this pallet’s extrinsics.