pub struct RedeemStrategy1Cpi<'a, 'b> {Show 14 fields
pub __program: &'b AccountInfo<'a>,
pub user: &'b AccountInfo<'a>,
pub admin_permissions: Option<&'b AccountInfo<'a>>,
pub main: &'b AccountInfo<'a>,
pub strategy_controller: &'b AccountInfo<'a>,
pub receipt_mint: &'b AccountInfo<'a>,
pub user_receipt_ata: &'b AccountInfo<'a>,
pub user_earn_ata: &'b AccountInfo<'a>,
pub strategy_controller_earn_token_account: &'b AccountInfo<'a>,
pub token_program: &'b AccountInfo<'a>,
pub associated_token_program: &'b AccountInfo<'a>,
pub instruction_sysvar_account: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub __args: RedeemStrategy1InstructionArgs,
}Expand description
redeem_strategy1 CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
user: &'b AccountInfo<'a>§admin_permissions: Option<&'b AccountInfo<'a>>§main: &'b AccountInfo<'a>§strategy_controller: &'b AccountInfo<'a>§receipt_mint: &'b AccountInfo<'a>§user_receipt_ata: &'b AccountInfo<'a>§user_earn_ata: &'b AccountInfo<'a>§strategy_controller_earn_token_account: &'b AccountInfo<'a>§token_program: &'b AccountInfo<'a>§associated_token_program: &'b AccountInfo<'a>§instruction_sysvar_account: &'b AccountInfo<'a>§system_program: &'b AccountInfo<'a>§__args: RedeemStrategy1InstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> RedeemStrategy1Cpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: RedeemStrategy1CpiAccounts<'a, 'b>, args: RedeemStrategy1InstructionArgs, ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> !Send for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> !Sync for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> Freeze for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> Unpin for RedeemStrategy1Cpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for RedeemStrategy1Cpi<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more