pub struct StakeCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub staker_account: &'b AccountInfo<'a>,
pub vault_account: &'b AccountInfo<'a>,
pub staker_orca_ata: &'b AccountInfo<'a>,
pub staker_xorca_ata: &'b AccountInfo<'a>,
pub xorca_mint_account: &'b AccountInfo<'a>,
pub state_account: &'b AccountInfo<'a>,
pub orca_mint_account: &'b AccountInfo<'a>,
pub token_program_account: &'b AccountInfo<'a>,
pub __args: StakeInstructionArgs,
}Expand description
stake CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
staker_account: &'b AccountInfo<'a>§vault_account: &'b AccountInfo<'a>§staker_orca_ata: &'b AccountInfo<'a>§staker_xorca_ata: &'b AccountInfo<'a>§xorca_mint_account: &'b AccountInfo<'a>§state_account: &'b AccountInfo<'a>§orca_mint_account: &'b AccountInfo<'a>§token_program_account: &'b AccountInfo<'a>§__args: StakeInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> StakeCpi<'a, 'b>
impl<'a, 'b> StakeCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: StakeCpiAccounts<'a, 'b>, args: StakeInstructionArgs, ) -> 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> Freeze for StakeCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for StakeCpi<'a, 'b>
impl<'a, 'b> !Send for StakeCpi<'a, 'b>
impl<'a, 'b> !Sync for StakeCpi<'a, 'b>
impl<'a, 'b> Unpin for StakeCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for StakeCpi<'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