Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.18 KB

Logging Operations.md

File metadata and controls

32 lines (26 loc) · 1.18 KB
OP Code (Hexidecimal) Operation1 Description Gas
0xa0 LOG0 2 0 Append log record with no topics 375
0xa1 LOG1 3 0 Append log record with one topic 750
0xa2 LOG2 4 0 Append log record with two topics 1125
0xa3 LOG3 5 0 Append log record with three topics 1500
0xa4 LOG4 6 0 Append log record with four topics 1875

Slide Screenshot

076.jpg


Slide Text

  • Append Log Record -> Topics
  • Logs -> event
  • Parameters can be indexed or non-index as part of the log
  • Indexed -> Topic Part of Log
  • Non-indexed -> Data part of the log
  • Can be critical how contracts communicate some parts of state to off-chain tools

References


Tags

Footnotes

  1. (Mnemonic, Stack items placed, Stack items removed)