pub struct ChainlinkPullOracleFactory { /* private fields */ }Expand description
Chainlink Pull Oracle Factory.
Implementations§
Source§impl ChainlinkPullOracleFactory
impl ChainlinkPullOracleFactory
Sourcepub fn new(store: &Pubkey, feed_index: u16) -> Self
pub fn new(store: &Pubkey, feed_index: u16) -> Self
Create a new ChainlinkPullOracleFactory with default program ID and access controller address.
Sourcepub fn with_program_id_and_access_controller(
store: &Pubkey,
feed_index: u16,
chainlink_program: &Pubkey,
access_controller: &Pubkey,
) -> Self
pub fn with_program_id_and_access_controller( store: &Pubkey, feed_index: u16, chainlink_program: &Pubkey, access_controller: &Pubkey, ) -> Self
Create a new ChainlinkPullOracleFactory with the given program ID and access controller address.
Sourcepub async fn prepare_feeds_bundle<'a, C: Deref<Target = impl Signer> + Clone>(
&self,
gmsol: &'a Client<C>,
feed_ids: HashMap<Pubkey, FeedId>,
options: BundleOptions,
) -> Result<BundleBuilder<'a, C>>
pub async fn prepare_feeds_bundle<'a, C: Deref<Target = impl Signer> + Clone>( &self, gmsol: &'a Client<C>, feed_ids: HashMap<Pubkey, FeedId>, options: BundleOptions, ) -> Result<BundleBuilder<'a, C>>
Prepare feed accounts but do not send.
Sourcepub async fn prepare_feeds<C: Deref<Target = impl Signer> + Clone>(
&self,
gmsol: &Client<C>,
feed_ids: HashMap<Pubkey, FeedId>,
) -> Result<()>
pub async fn prepare_feeds<C: Deref<Target = impl Signer> + Clone>( &self, gmsol: &Client<C>, feed_ids: HashMap<Pubkey, FeedId>, ) -> Result<()>
Prepare feed accounts for the given tokens and feed_ids.
Sourcepub fn make_oracle<'a, C>(
self: Arc<Self>,
chainlink: &'a Client,
gmsol: &'a Client<C>,
skip_feeds_preparation: bool,
) -> ChainlinkPullOracle<'a, C>
pub fn make_oracle<'a, C>( self: Arc<Self>, chainlink: &'a Client, gmsol: &'a Client<C>, skip_feeds_preparation: bool, ) -> ChainlinkPullOracle<'a, C>
Create ChainlinkPullOracle.
Auto Trait Implementations§
impl !Freeze for ChainlinkPullOracleFactory
impl RefUnwindSafe for ChainlinkPullOracleFactory
impl Send for ChainlinkPullOracleFactory
impl Sync for ChainlinkPullOracleFactory
impl Unpin for ChainlinkPullOracleFactory
impl UnwindSafe for ChainlinkPullOracleFactory
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