Trait PostPullOraclePrices

Source
pub trait PostPullOraclePrices<'a, C>: PullOracle {
    // Required method
    fn fetch_price_update_instructions(
        &self,
        price_updates: &Self::PriceUpdates,
        options: BundleOptions,
    ) -> impl Future<Output = Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>>;
}
Expand description

Post pull oracle price updates.

Required Methods§

Source

fn fetch_price_update_instructions( &self, price_updates: &Self::PriceUpdates, options: BundleOptions, ) -> impl Future<Output = Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>>

Fetch instructions to post the price updates.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, C: Clone + Deref<Target = impl Signer>> PostPullOraclePrices<'a, C> for SwitchboardPullOracle<'a, C>

Source§

impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for ChainlinkPullOracle<'a, C>

Source§

impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for PythPullOracleWithHermes<'a, C>

Source§

impl<'r, 'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for &'r PythPullOracleWithHermes<'a, C>
where 'r: 'a,