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:

  1. 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).
  2. I indexed 32-byte words.
  3. 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

LOG0 - LOG4

System Contract

This information is requested a System Contract called EventWriter.

On how the contract is called, see the relevant section.