I'm trying to recreate the ABI of an event function (that I don't have the ABI for). I have looked at event ABIs in other contracts of the same project and they all look like this:
I have copied this format and changed the function name and inputs.
Filtering logs for this event with web3py works just fine, but calling eventname().processLog() to decode the data of such a log raises
LogTopicError: Expected 5 log topics. Got 0.
Indeed the event function has 5 inputs whose values are all provided in the data field of the log dictionary. And besides the default topic there are no additional topics.
So web3py expects those inputs to be reflected in the topics and not the data. How do I denote those inputs as data so that web3py reads and decodes the corresponding values in the data field?
I know I can easily decode it myself, but I want to use web3py's API where possible, it's much cleaner.