Reverse engineered prompt

I want a Rust command line app that can inspect historical Ethereum activity and surface MEV opportunities from past transactions and blocks. It should work against a tracing or archival node, default to localhost on port 8545, and save inspection results to Postgres so I can rebuild, overwrite, or reuse the data when I rerun it.

Please make it easy to run from the terminal with a command to inspect a single transaction and another to inspect a range of blocks. I also want options for reset, overwrite, node URL, trace cache location, database config, and database table name. It should recognize the major protocol families mentioned in the project, including Curve, Balancer, Uniswap style pools, Aave, Compound, 0x, and DyDx, so it can catch things like arbitrage and liquidations.

Make the project feel complete and usable, with sensible defaults, a working build, and a short README that explains setup, running, and testing. If anything is unclear, look up the current docs online and fill in the gaps.

Want more depth? Deep Reverse