pub struct PythPullOracleWithHermes<'a, C> { /* private fields */ }
Expand description
Pyth Pull Oracle.
Implementations§
Source§impl<'a, C> PythPullOracleWithHermes<'a, C>
impl<'a, C> PythPullOracleWithHermes<'a, C>
Sourcepub fn from_parts(
gmsol: &'a Client<C>,
hermes: &'a Hermes,
oracle: &'a PythPullOracle<C>,
) -> Self
pub fn from_parts( gmsol: &'a Client<C>, hermes: &'a Hermes, oracle: &'a PythPullOracle<C>, ) -> Self
Create from parts.
Trait Implementations§
Source§impl<'r, 'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for &'r PythPullOracleWithHermes<'a, C>where
'r: 'a,
impl<'r, 'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for &'r PythPullOracleWithHermes<'a, C>where
'r: 'a,
Source§async fn fetch_price_update_instructions(
&self,
price_updates: &Self::PriceUpdates,
options: BundleOptions,
) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
async fn fetch_price_update_instructions( &self, price_updates: &Self::PriceUpdates, options: BundleOptions, ) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
Fetch instructions to post the price updates.
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for PythPullOracleWithHermes<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for PythPullOracleWithHermes<'a, C>
Source§async fn fetch_price_update_instructions(
&self,
price_updates: &Self::PriceUpdates,
options: BundleOptions,
) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
async fn fetch_price_update_instructions( &self, price_updates: &Self::PriceUpdates, options: BundleOptions, ) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
Fetch instructions to post the price updates.
Source§impl<C> PullOracle for &PythPullOracleWithHermes<'_, C>
impl<C> PullOracle for &PythPullOracleWithHermes<'_, C>
Source§type PriceUpdates = PriceUpdates
type PriceUpdates = PriceUpdates
Price Updates.
Source§async fn fetch_price_updates(
&self,
feed_ids: &FeedIds,
after: Option<OffsetDateTime>,
) -> Result<Self::PriceUpdates>
async fn fetch_price_updates( &self, feed_ids: &FeedIds, after: Option<OffsetDateTime>, ) -> Result<Self::PriceUpdates>
Fetch Price Update.
Source§impl<C> PullOracle for PythPullOracleWithHermes<'_, C>
impl<C> PullOracle for PythPullOracleWithHermes<'_, C>
Source§type PriceUpdates = PriceUpdates
type PriceUpdates = PriceUpdates
Price Updates.
Source§async fn fetch_price_updates(
&self,
feed_ids: &FeedIds,
after: Option<OffsetDateTime>,
) -> Result<Self::PriceUpdates>
async fn fetch_price_updates( &self, feed_ids: &FeedIds, after: Option<OffsetDateTime>, ) -> Result<Self::PriceUpdates>
Fetch Price Update.
Auto Trait Implementations§
impl<'a, C> Freeze for PythPullOracleWithHermes<'a, C>
impl<'a, C> !RefUnwindSafe for PythPullOracleWithHermes<'a, C>
impl<'a, C> Send for PythPullOracleWithHermes<'a, C>
impl<'a, C> Sync for PythPullOracleWithHermes<'a, C>
impl<'a, C> Unpin for PythPullOracleWithHermes<'a, C>
impl<'a, C> !UnwindSafe for PythPullOracleWithHermes<'a, C>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more