pub trait WithOracle<'info>: WithStore<'info> {
// Required methods
fn chainlink_program(&self) -> Option<AccountInfo<'info>>;
fn oracle(&self) -> AccountInfo<'info>;
fn token_map(&self) -> AccountInfo<'info>;
fn controller(&self) -> AccountInfo<'info>;
}
Expand description
Accounts that with oracle context.
Required Methods§
Sourcefn chainlink_program(&self) -> Option<AccountInfo<'info>>
fn chainlink_program(&self) -> Option<AccountInfo<'info>>
Get the chainlink program.
Sourcefn controller(&self) -> AccountInfo<'info>
fn controller(&self) -> AccountInfo<'info>
Get controller account.