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§
Sourcefn load_instruction(&self) -> Result<InstructionRef<'_>>
fn load_instruction(&self) -> Result<InstructionRef<'_>>
Load instruction.
Sourcefn 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<'_>>
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.