Skip to content

[Subgraph] Remove HMT token contract tracking#3807

Open
flopez7 wants to merge 8 commits intodevelopfrom
remove-hmt-subgraph
Open

[Subgraph] Remove HMT token contract tracking#3807
flopez7 wants to merge 8 commits intodevelopfrom
remove-hmt-subgraph

Conversation

@flopez7
Copy link
Contributor

@flopez7 flopez7 commented Feb 26, 2026

Issue tracking

#3577

Context behind the change

  • Removed HMToken tracking from the main subgraph to reduce indexing load.
  • Kept only escrow-related transaction tracking in the main subgraph.
  • Added a dedicated subgraph-hmt-stats subgraph to index HMToken statistics (HMTokenStatistics, Holder, UniqueSender, UniqueReceiver, EventDayData with HMT fields).
  • Updated TypeScript SDK to use a dedicated HMT stats subgraph endpoint (hmtSubgraphUrl / hmtSubgraphUrlApiKey) for HMT statistics methods.
  • Updated Python SDK to support/use a dedicated HMT stats subgraph endpoint (hmt_subgraph_url / hmt_subgraph_url_api_key) and route HMT statistics calls through the HMT subgraph target in custom_gql_fetch.

How has this been tested?

Deployed subgraph in polygon to make sure that the new subgraph contains the right data.
Deployed in Amoy the two new subgraphs and tested with dashboard to make sure requests works.

Release plan

Deploy new subgraphs for all the chains (right now only Amoy is fully deployed)
Deploy new SDK versions

Potential risks; What to monitor; Rollback plan

Check that all stats in dashboard are still the same.

portuu3 and others added 3 commits February 20, 2026 10:35
- Introduced a dedicated subgraph to index HMToken statistics.
- Updated network configurations for Ethereum, BSC, Polygon, and Sepolia.
- Implemented event handlers for Transfer, Approval, BulkTransfer, and BulkApproval events.
- Created entities for HMTokenStatistics, Holder, UniqueSender, UniqueReceiver, and EventDayData.
- Added tests to validate statistics calculations and daily metrics.
- Included necessary configurations, scripts, and dependencies in package.json.
- Set up ESLint and Prettier configurations for code quality.
-Updated TS SDK with new Subgraph data
@flopez7 flopez7 self-assigned this Feb 26, 2026
@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
human-app Ready Ready Preview, Comment Mar 4, 2026 3:12pm
human-dashboard-frontend Ready Ready Preview, Comment Mar 4, 2026 3:12pm
staking-dashboard Ready Ready Preview, Comment Mar 4, 2026 3:12pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Preview Mar 4, 2026 3:12pm
faucet-server Ignored Ignored Preview Mar 4, 2026 3:12pm

Request Review

@flopez7 flopez7 requested a review from portuu3 February 26, 2026 12:43
Copy link
Collaborator

@portuu3 portuu3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reestructure the folders to be:

  • packages/subgraph/human-protocol
  • packages/subgraph/hmt

@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 4, 2026 13:42 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 4, 2026 13:42 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app March 4, 2026 13:42 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants