Skip to content

Conversation

@houjunchen
Copy link

@houjunchen houjunchen commented Jul 1, 2025

Summary

  • Fix schema validation errors by adding required immutable directive to all entities
  • Add immutable: false to mutable entities (PoolManager, Bundle, Token, Pool, etc.)
  • Add immutable: true to immutable event entities (Transaction, Swap, ModifyLiquidity, etc.)

Background

The Graph Protocol's CLI now requires all @entity directives to include an immutable parameter (graph-tooling PR #1994). This change ensures compatibility with the latest Graph tooling requirements.

Changes

  • Updated all 18 entity types in schema.graphql to include appropriate immutable flags
  • Mutable entities (state that gets updated): immutable: false
  • Immutable entities (historical events): immutable: true

🤖 Generated with Claude Code

- Add immutable: false to mutable entities (PoolManager, Bundle, Token, Pool, etc.)
- Add immutable: true to immutable event entities (Transaction, Swap, ModifyLiquidity, etc.)
- Required by Graph Protocol's new schema validation rules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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