pipermerriam/ethereum-function-signature-registry

Event Signature Model

Closed this issue · 0 comments

a5net commented

What is wrong?

Currently, the app can extract and save only function signatures. The same needs to be done with event signatures as well. We can start by adding the necessary Django Model.

How can it be done

First, create a Django Model. The model should contain the following fields:

  • text_signature (TextField)
  • bytes_signature (BinaryField) - the result of Keccak-256 hashing as 32 bytes
  • hex_signature (CharField)
  • created_at (DateTimeField)
  • updated_at (DateTimeField)

Ultimately, it should look similar to Function Signature Model