Open kespinola opened 3 months ago
Vixen should create a more natural representation of the transaction that accounts for CPI. Parsers should register instructions to be parsed and vixen determine if the instruction can be parsed by a registered program. In the case it can't represents as some unknown instruction type which contains accounts assigned to the instruction and any of it's CPI calls.
@ray-kast like to get your thoughts but initially think it be good for vixen to re-organize the transaction accounting for nested instructions and assigning account lists to the instructions instead of index references to the complete account key list.
Issue
Solana transaction objects are optimized for size but when it time to index them its difficult to assemble the instructions into their logic structure.
References
https://docs.rs/solana-transaction-status/1.18.11/solana_transaction_status/struct.TransactionStatusMeta.html