[][src]Trait solana_sdk::entrypoint_native::InvokeContext

pub trait InvokeContext {
    fn push(&mut self, key: &Pubkey) -> Result<(), InstructionError>;
fn pop(&mut self);
fn verify_and_update(
        &mut self,
        message: &Message,
        instruction: &CompiledInstruction,
        accounts: &[Rc<RefCell<Account>>]
    ) -> Result<(), InstructionError>;
fn get_caller(&self) -> Result<&Pubkey, InstructionError>;
fn get_programs(&self) -> &[(Pubkey, ProcessInstruction)];
fn log_enabled(&self) -> bool;
fn log(&mut self, message: &str);
fn is_cross_program_supported(&self) -> bool; }

Cross-program invocation context passed to loaders

Required methods

fn push(&mut self, key: &Pubkey) -> Result<(), InstructionError>

fn pop(&mut self)

fn verify_and_update(
    &mut self,
    message: &Message,
    instruction: &CompiledInstruction,
    accounts: &[Rc<RefCell<Account>>]
) -> Result<(), InstructionError>

fn get_caller(&self) -> Result<&Pubkey, InstructionError>

fn get_programs(&self) -> &[(Pubkey, ProcessInstruction)]

fn log_enabled(&self) -> bool

fn log(&mut self, message: &str)

fn is_cross_program_supported(&self) -> bool

Are cross program invocations supported

Loading content...

Implementors

Loading content...