Define Message custom parser interfaces
Closed this issue · 0 comments
pharr117 commented
The Transaction/Message main loop will need to pass the raw RPC data to custom parsers so that developers may extend the datasets parsed from the messages.
The parsers will require the following at the very least:
- A method to associate the parser with a Message type
- A parser method that is passed the raw RPC Transaction/Message data and returns custom datasets
- An indexer method that:
- Gets the DB connection
- Gets the base indexed data for the Block, Transaction and the particular Message value
The intention of (3) is to pass the custom parser all the data it will need to insert its custom dataset into the database.