pub fn is_raydium_launchpad_swap_instruction(
instruction: &Instruction<'_>,
) -> (bool, SwapDirection)Expand description
Determine if a Solana instruction is a Raydium launchpad swap instruction. Checks program ID, data length, account count, and instruction discriminator to identify Raydium launchpad swap instructions. Returns the swap direction identified by the discriminator.