Trait InstructionLoader

Source
pub trait InstructionLoader<'info> {
    // Required methods
    fn load_instruction(&self) -> Result<InstructionRef<'_>>;
    fn load_and_init_instruction(
        &self,
        executor: Pubkey,
        wallet_bump: u8,
        rent_receiver: Pubkey,
        program_id: Pubkey,
        data: &[u8],
        accounts: &[AccountInfo<'info>],
        signers: &[u16],
    ) -> Result<InstructionRef<'_>>;
}
Expand description

Instruction Loader.

Required Methods§

Source

fn load_instruction(&self) -> Result<InstructionRef<'_>>

Load instruction.

Source

fn load_and_init_instruction( &self, executor: Pubkey, wallet_bump: u8, rent_receiver: Pubkey, program_id: Pubkey, data: &[u8], accounts: &[AccountInfo<'info>], signers: &[u16], ) -> Result<InstructionRef<'_>>

Load and initialize the instruction.

Implementations on Foreign Types§

Source§

impl<'info> InstructionLoader<'info> for AccountLoader<'info, InstructionHeader>

Source§

fn load_instruction(&self) -> Result<InstructionRef<'_>>

Source§

fn load_and_init_instruction( &self, executor: Pubkey, wallet_bump: u8, rent_receiver: Pubkey, program_id: Pubkey, instruction_data: &[u8], instruction_accounts: &[AccountInfo<'info>], signers: &[u16], ) -> Result<InstructionRef<'_>>

Implementors§