Smart Contracts emit event logs when certain predefined actions are completed. The structure published in these logs is predefined by the developer of the smart contract, the content is dynamically created during the transaction.
Logs are useful for monitoring, alerting and in general keeping track of what happens inside of a smart contract. Logs are your best friend as a data analyst since they reliably present you with data that is intended to be analysed post factum. If you ever want to see which logs can be emitted by a smart contract, you can simply search for the keyword
emit in the source code of the smart contract.
We will decode all event logs for smart contracts into tables named accordingly to this schema: