Skip to content

Conversation

Maar-io
Copy link
Collaborator

@Maar-io Maar-io commented May 8, 2025

Schema and Data Model Enhancements:

  • Replaced TokenBalance entity with AddressTokens to track owned token IDs as an array. Added new entities for Season8Condition, Season9Condition, and Season10Condition to support progressive seasonal qualification logic.

Query Enhancements:

  • Added new GraphQL queries for checking seasonal conditions (season8condition.graphql, season9condition.graphql, season10condition.graphql) and user-specific data (userAllSeasons.graphql). Removed redundant fields and optimized existing queries like season7userCondition.graphql. [1] [2] [3] [4] [5] [6]

Configuration Improvements:

  • Updated docker-compose.yml to use a specific graph-node version (v0.33.0), added a health check, and disabled the GraphQL playground for production environments. Adjusted local graph-node endpoints in package.json scripts. [1] [2] [3] [4]

Helper Functions for Seasonal Logic:

  • Introduced season-helpers.ts with functions to calculate seasonal eligibility, check token ownership, and handle progressive qualification logic for Seasons 8–10. Added constants for token IDs and season cutoff timestamps to ensure consistency.

Documentation and Testing:

  • Added a detailed README.md with setup instructions, features, and deployment steps. Included example queries and a test suite in the tests directory.

These changes collectively enhance the subgraph's functionality and performance, enabling efficient tracking of token ownership and seasonal eligibility.

@Maar-io Maar-io requested a review from bobo-k2 May 9, 2025 09:22
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.

1 participant