trufnetwork / trufnetwork/node
Goal: Include event tracking at TN
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 7
- Forks
- 3
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 13
Description
(issue description to be improved and specs created)
Blockchains' smart contract events are usually good to enable indexers to populate data correctly and efficiently.
Scanning the entire network for existing data is inefficient, and we have workarounds to scan data incrementally for structural changes (i.e. new streams), but we could do better to track other important events for our indexer.
- taxonomy updates
- stream deletes
- metadata updates (visibility, permissions, etc)
Finding the correct granularity is not easy; we'd need to understand the impact on each event tracking, but it could make our indexer's job a lot more efficient.
for this we'd need a new table for events, and at our write actions execute some private dispatch_event action
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by defining the event-tracking specifications and reviewing the indexer's current incremental scanning workarounds, then assess the proposed events: taxonomy updates, stream deletes, and metadata updates. Done should include agreed event granularity and a clear design for the events table and dispatching from write actions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- blockchain, data-engineering
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100