pub struct ChainlinkPullOracle<'a, C> { /* private fields */ }
Expand description
Chainlink Pull Oracle.
Implementations§
Source§impl<'a, C> ChainlinkPullOracle<'a, C>
impl<'a, C> ChainlinkPullOracle<'a, C>
Sourcepub fn new(
chainlink: &'a Client,
gmsol: &'a Client<C>,
ctx: Arc<ChainlinkPullOracleFactory>,
skip_feeds_preparation: bool,
) -> Self
pub fn new( chainlink: &'a Client, gmsol: &'a Client<C>, ctx: Arc<ChainlinkPullOracleFactory>, skip_feeds_preparation: bool, ) -> Self
Create a new ChainlinkPullOracle
with default program ID and access controller address.
Source§impl<C: Deref<Target = impl Signer> + Clone> ChainlinkPullOracle<'_, C>
impl<C: Deref<Target = impl Signer> + Clone> ChainlinkPullOracle<'_, C>
Sourcepub async fn prepare_feeds_bundle(
&self,
feed_ids: &FeedIds,
options: BundleOptions,
) -> Result<BundleBuilder<'_, C>>
pub async fn prepare_feeds_bundle( &self, feed_ids: &FeedIds, options: BundleOptions, ) -> Result<BundleBuilder<'_, C>>
Prepare feed accounts but do not send.
Trait Implementations§
Source§impl<C> Clone for ChainlinkPullOracle<'_, C>
impl<C> Clone for ChainlinkPullOracle<'_, C>
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for ChainlinkPullOracle<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> PostPullOraclePrices<'a, C> for ChainlinkPullOracle<'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: Deref<Target = impl Signer> + Clone> PullOracle for ChainlinkPullOracle<'_, C>
impl<C: Deref<Target = impl Signer> + Clone> PullOracle for ChainlinkPullOracle<'_, C>
Source§type PriceUpdates = HashMap<[u8; 32], ApiReportData>
type PriceUpdates = HashMap<[u8; 32], ApiReportData>
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 ChainlinkPullOracle<'a, C>
impl<'a, C> !RefUnwindSafe for ChainlinkPullOracle<'a, C>
impl<'a, C> Send for ChainlinkPullOracle<'a, C>
impl<'a, C> Sync for ChainlinkPullOracle<'a, C>
impl<'a, C> Unpin for ChainlinkPullOracle<'a, C>
impl<'a, C> !UnwindSafe for ChainlinkPullOracle<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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