pub struct TokenBuyExactInCpi<'a, 'b> {Show 13 fields
pub __program: &'b AccountInfo<'a>,
pub buyer: &'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: TokenBuyExactInInstructionArgs,
}Expand description
token_buy_exact_in CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
buyer: &'b AccountInfo<'a>The buyer 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 buyer
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 buyer
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: TokenBuyExactInInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> TokenBuyExactInCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: TokenBuyExactInCpiAccounts<'a, 'b>, args: TokenBuyExactInInstructionArgs, ) -> 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 TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> !Send for TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> !Sync for TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> Unpin for TokenBuyExactInCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for TokenBuyExactInCpi<'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