events.sol 539 B

12345678910111213141516171819202122
  1. contract Events {
  2. /// Ladida tada
  3. event foo1(int64 id, string s);
  4. /// @title Event Foo2
  5. /// @notice Just a test
  6. /// @author them is me
  7. event foo2(int64 id, string s2, address a);
  8. event ThisEventTopicShouldGetHashed(address indexed caller);
  9. event Event(bool indexed something);
  10. function emit_event() public {
  11. emit foo1(254, "hello there");
  12. emit foo2(type(int64).max, "minor", address(this));
  13. emit ThisEventTopicShouldGetHashed(msg.sender);
  14. emit Event(true);
  15. }
  16. }