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 oracle(&self) -> AccountInfo<'info>
fn oracle(&self) -> AccountInfo<'info>
Get the oracle account.
Sourcefn token_map(&self) -> AccountInfo<'info>
fn token_map(&self) -> AccountInfo<'info>
Get the token map account.
Sourcefn controller(&self) -> AccountInfo<'info>
fn controller(&self) -> AccountInfo<'info>
Get controller account.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".