Generic blockchain event indexer for EVM-compatible smart contracts with real-time processing and gap detection