We want to use these types in public user-facing APIs, so they shouldn't be in core. Co-authored-by: Felix Lange <fjl@twurst.com>
This change moves all the transaction indexing functions to a separate txindexer.go file and defines a txIndexer structure as a refactoring.