rpcpool / yellowstone-vixen

MIT License
25 stars 8 forks source link

Transaction Transforming V0 #3

Open kespinola opened 3 months ago

kespinola commented 3 months ago

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

kespinola commented 2 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.

kespinola commented 1 month ago

@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.