Trait pallet_chainlink_feed::pallet::FeedOracle [−][src]
pub trait FeedOracle<T: Config> {
type FeedId: Parameter + BaseArithmetic;
type Feed: FeedInterface<T>;
type MutableFeed: MutableFeedInterface<T>;
fn feed(id: Self::FeedId) -> Option<Self::Feed>;
fn feed_mut(id: Self::FeedId) -> Option<Self::MutableFeed>;
}
Expand description
Trait for interacting with the feeds in the pallet.
Associated Types
type FeedId: Parameter + BaseArithmetic
type Feed: FeedInterface<T>
type MutableFeed: MutableFeedInterface<T>
Required methods
Return the read-only interface for the given feed.
Returns None
if the feed does not exist.
fn feed_mut(id: Self::FeedId) -> Option<Self::MutableFeed>
fn feed_mut(id: Self::FeedId) -> Option<Self::MutableFeed>
Return the read-write interface for the given feed.
Returns None
if the feed does not exist.