Function process_pumpfun_event_instruction

Source
pub fn process_pumpfun_event_instruction(
    instruction: &Instruction<'_>,
    block_time: u64,
    slot: u64,
    index: u64,
    atomic_instruction_index: u8,
    signers: &HashSet<Pubkey>,
    signature: &Signature,
) -> SwapTx
Expand description

Process a Pumpfun bonding curve event instruction and create a SwapTx. Pumpfun bonding curve events contain all information needed to build the SwapTx type. Assumes the instruction has already been validated as a valid Pumpfun event instruction.