pub struct SellExactIn {Show 17 fields
pub user: Address,
pub payer: Address,
pub bonding_curve: Address,
pub base_mint: Address,
pub quote_mint: Address,
pub base_vault: Address,
pub quote_vault: Address,
pub user_base_account: Address,
pub user_quote_account: Address,
pub partner: (Address, bool),
pub partner_config: Address,
pub base_token_program: Address,
pub quote_token_program: Address,
pub associated_token_program: Address,
pub system_program: Address,
pub event_authority: Address,
pub program: Address,
}Expand description
Accounts.
Fields§
§user: Address§payer: Address§bonding_curve: Address§base_mint: Address§quote_mint: Address§base_vault: Address§quote_vault: Address§user_base_account: AddressOptional: any base-mint account user owns; defaults to this ATA.
user_quote_account: AddressOptional: any quote-mint account user owns; defaults to this ATA.
partner: (Address, bool)The partner must sign. DEFAULT_PARTNER, the system program, does not sign.
partner_config: Address§base_token_program: Address§quote_token_program: Address§associated_token_program: Address§system_program: Address§program: AddressImplementations§
Source§impl SellExactIn
impl SellExactIn
pub fn instruction(&self, args: SellExactInInstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: SellExactInInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SellExactIn
impl RefUnwindSafe for SellExactIn
impl Send for SellExactIn
impl Sync for SellExactIn
impl Unpin for SellExactIn
impl UnsafeUnpin for SellExactIn
impl UnwindSafe for SellExactIn
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