events.sol 582 B

1234567891011121314151617181920212223242526
  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. event Empty();
  11. function emit_event() public {
  12. emit foo1(254, "hello there");
  13. emit foo2(type(int64).max, "minor", address(this));
  14. emit ThisEventTopicShouldGetHashed(msg.sender);
  15. emit Event(true);
  16. emit Empty();
  17. }
  18. }