pub struct Swap {Show 14 fields
pub token_program_a: Pubkey,
pub token_program_b: Pubkey,
pub memo_program: Pubkey,
pub token_authority: Pubkey,
pub fusion_pool: Pubkey,
pub token_mint_a: Pubkey,
pub token_mint_b: Pubkey,
pub token_owner_account_a: Pubkey,
pub token_owner_account_b: Pubkey,
pub token_vault_a: Pubkey,
pub token_vault_b: Pubkey,
pub tick_array0: Pubkey,
pub tick_array1: Pubkey,
pub tick_array2: Pubkey,
}
Expand description
Accounts.
Fields§
§token_program_a: Pubkey
§token_program_b: Pubkey
§memo_program: Pubkey
§fusion_pool: Pubkey
§token_mint_a: Pubkey
§token_mint_b: Pubkey
§token_owner_account_a: Pubkey
§token_owner_account_b: Pubkey
§token_vault_a: Pubkey
§token_vault_b: Pubkey
§tick_array0: Pubkey
§tick_array1: Pubkey
§tick_array2: Pubkey
Implementations§
Source§impl Swap
impl Swap
pub fn instruction(&self, args: SwapInstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: SwapInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Swap
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnwindSafe for Swap
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