Function top_level_instructions_loop

Source
pub fn top_level_instructions_loop(
    top_level_instructions: &Vec<Instruction<'_>>,
    inner_instructions: &HashMap<u8, Vec<Instruction<'_>>>,
    account_keys: &Vec<Pubkey>,
    ta_mint: &HashMap<u8, Pubkey>,
    running_token_balances: &mut HashMap<u8, u64>,
    swap_tx_sender: &Sender<SwapTx>,
    token_create_sender: &Sender<TokenCreation>,
    block_time: u64,
    slot: u64,
    index: u64,
    signers: &HashSet<Pubkey>,
    signature: &Signature,
)
Expand description

Process top-level instructions in a transaction. Iterates through top-level instructions, classifies them, and processes swap/creation instructions. Also calls inner_instructions_loop to process the inner instructions that belong to each top level instruction.