pub struct TokenSellExactOutCpi<'a, 'b> {Show 13 fields
pub __program: &'b AccountInfo<'a>,
pub seller: &'b AccountInfo<'a>,
pub bonding_curve: &'b AccountInfo<'a>,
pub base_mint: &'b AccountInfo<'a>,
pub base_ata: &'b AccountInfo<'a>,
pub quote_mint: &'b AccountInfo<'a>,
pub quote_vault: &'b AccountInfo<'a>,
pub quote_ata: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub ata_program: &'b AccountInfo<'a>,
pub base_token_program: &'b AccountInfo<'a>,
pub quote_token_program: &'b AccountInfo<'a>,
pub __args: TokenSellExactOutInstructionArgs,
}Expand description
token_sell_exact_out CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
seller: &'b AccountInfo<'a>The seller of the token
bonding_curve: &'b AccountInfo<'a>The bonding curve account
base_mint: &'b AccountInfo<'a>The base token mint account
base_ata: &'b AccountInfo<'a>The base token ata for the seller
quote_mint: &'b AccountInfo<'a>The quote token mint account
quote_vault: &'b AccountInfo<'a>The quote token vault
quote_ata: &'b AccountInfo<'a>The quote token ata for the seller
system_program: &'b AccountInfo<'a>System program
ata_program: &'b AccountInfo<'a>The associated token account program
base_token_program: &'b AccountInfo<'a>The token program for the base token
quote_token_program: &'b AccountInfo<'a>The token program for the quote token
__args: TokenSellExactOutInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> TokenSellExactOutCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: TokenSellExactOutCpiAccounts<'a, 'b>, args: TokenSellExactOutInstructionArgs, ) -> 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 TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> !Send for TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> !Sync for TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> Unpin for TokenSellExactOutCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for TokenSellExactOutCpi<'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