Trait WithOracle

Source
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§

Get the chainlink program.

Source

fn oracle(&self) -> AccountInfo<'info>

Get the oracle account.

Source

fn token_map(&self) -> AccountInfo<'info>

Get the token map account.

Source

fn controller(&self) -> AccountInfo<'info>

Get controller account.

Implementors§