Separate the event signatures from the 4byte function signatures and add middleware on the Contract model to add any relevant signatures to model. Then update the ContractEvent to decode getPastLogs and subscribeLogs calls when possible.
To summarize
EventSignature model
Middleware to auto add event signature from contract abi
Middleware to auto decode ContractEvent if no returnValues using the EventSignatureContract.eventAbiBySignature info
closes #111
Separate the event signatures from the
4byte
function signatures and add middleware on theContract
model to add any relevant signatures to model. Then update theContractEvent
to decodegetPastLogs
andsubscribeLogs
calls when possible.To summarize
EventSignature
modelContractEvent
if noreturnValues
using theEventSignature
Contract.eventAbiBySignature
info closes #111