trufnetwork / trufnetwork/node

Goal: Include event tracking at TN

Open
#987 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.