MetricsDAO / harmony_dbt

DBT Project for the Harmony Blockchain
12 stars 8 forks source link

Parse logs and generate event_inputs #107

Open Vahid-flipside opened 2 years ago

Vahid-flipside commented 2 years ago

Hi, As per the below query there are a large number of event_inputs that are null. Not that they are null in the data base they are of type null!! These transactions in fact all have inputs.

select * from HARMONY_DEV.DEV.LOGS where typeof(event_inputs) = 'NULL_VALUE'

antonyip commented 2 years ago

This is a good issue.

Task:

  1. Extract all event signatures and function signatures from 4byte.
  2. Figure out a way to parse the logs based on the above infomation.
  3. Create a new table called parsed_logs.
Vahid-flipside commented 2 years ago

Hi @antonyip Is there any news on this?

antonyip commented 2 years ago

Anyone's free to take up this task.

eevui commented 2 years ago

I've checked a couple log events against 4byte.

So far, they come up empty. Probably the only way to find out what the names of these events are is for ABI to be exposed, really.

Vahid-flipside commented 2 years ago

How about leaving it as null as opposed to hardcoding it as "NULL VALUE"?