pub struct TwoHopSwapCpi<'a, 'b> {Show 24 fields
pub __program: &'b AccountInfo<'a>,
pub fusion_pool_one: &'b AccountInfo<'a>,
pub fusion_pool_two: &'b AccountInfo<'a>,
pub token_mint_input: &'b AccountInfo<'a>,
pub token_mint_intermediate: &'b AccountInfo<'a>,
pub token_mint_output: &'b AccountInfo<'a>,
pub token_program_input: &'b AccountInfo<'a>,
pub token_program_intermediate: &'b AccountInfo<'a>,
pub token_program_output: &'b AccountInfo<'a>,
pub token_owner_account_input: &'b AccountInfo<'a>,
pub token_vault_one_input: &'b AccountInfo<'a>,
pub token_vault_one_intermediate: &'b AccountInfo<'a>,
pub token_vault_two_intermediate: &'b AccountInfo<'a>,
pub token_vault_two_output: &'b AccountInfo<'a>,
pub token_owner_account_output: &'b AccountInfo<'a>,
pub token_authority: &'b AccountInfo<'a>,
pub tick_array_one0: &'b AccountInfo<'a>,
pub tick_array_one1: &'b AccountInfo<'a>,
pub tick_array_one2: &'b AccountInfo<'a>,
pub tick_array_two0: &'b AccountInfo<'a>,
pub tick_array_two1: &'b AccountInfo<'a>,
pub tick_array_two2: &'b AccountInfo<'a>,
pub memo_program: &'b AccountInfo<'a>,
pub __args: TwoHopSwapInstructionArgs,
}
Expand description
two_hop_swap
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
fusion_pool_one: &'b AccountInfo<'a>
§fusion_pool_two: &'b AccountInfo<'a>
§token_mint_input: &'b AccountInfo<'a>
§token_mint_intermediate: &'b AccountInfo<'a>
§token_mint_output: &'b AccountInfo<'a>
§token_program_input: &'b AccountInfo<'a>
§token_program_intermediate: &'b AccountInfo<'a>
§token_program_output: &'b AccountInfo<'a>
§token_owner_account_input: &'b AccountInfo<'a>
§token_vault_one_input: &'b AccountInfo<'a>
§token_vault_one_intermediate: &'b AccountInfo<'a>
§token_vault_two_intermediate: &'b AccountInfo<'a>
§token_vault_two_output: &'b AccountInfo<'a>
§token_owner_account_output: &'b AccountInfo<'a>
§tick_array_one0: &'b AccountInfo<'a>
§tick_array_one1: &'b AccountInfo<'a>
§tick_array_one2: &'b AccountInfo<'a>
§tick_array_two0: &'b AccountInfo<'a>
§tick_array_two1: &'b AccountInfo<'a>
§tick_array_two2: &'b AccountInfo<'a>
§memo_program: &'b AccountInfo<'a>
§__args: TwoHopSwapInstructionArgs
The arguments for the instruction.
Implementations§
Source§impl<'a, 'b> TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> TwoHopSwapCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: TwoHopSwapCpiAccounts<'a, 'b>, args: TwoHopSwapInstructionArgs, ) -> 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 TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> !Send for TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> !Sync for TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> Unpin for TwoHopSwapCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for TwoHopSwapCpi<'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