Logging
Events
The EraVM event instructions operate at a lower level. Each LOG
-like instruction is expanded into a loop, with each iteration writing two 256-bit words in the following order:
- The initializer cell, which describes the number of indexed words (e.g.
I
) and the size of non-indexed data in bytes (e.g.D
). I
indexed 32-byte words.D
bytes of data.
If only one word remains to be written, the second input is zero.
For a detailed reference, see EraVM instruction: log.event
LOG0 - LOG4
System Contract
This information is requested a System Contract called EventWriter.
On how the contract is called, see the relevant section.