Skip to content

Add event block GraphQL queries and methods to LedgerClient#109

Merged
jfrench9 merged 1 commit intomainfrom
feature/event-block-graphql
May 1, 2026
Merged

Add event block GraphQL queries and methods to LedgerClient#109
jfrench9 merged 1 commit intomainfrom
feature/event-block-graphql

Conversation

@jfrench9
Copy link
Copy Markdown
Member

@jfrench9 jfrench9 commented May 1, 2026

Summary

Introduces event block query support to the LedgerClient by adding new GraphQL queries and corresponding client methods. This feature extends the ledger module's capabilities to retrieve and interact with event block data through the GraphQL API.

Key Accomplishments

  • New GraphQL Queries: Added event block query definitions to the ledger GraphQL queries module (robosystems_client/graphql/queries/ledger/__init__.py), providing the query structures needed to fetch event block data from the API.
  • LedgerClient Methods: Extended LedgerClient with new methods for executing event block queries, enabling consumers of the client library to programmatically retrieve event block information (~72 lines of new client logic).
  • Comprehensive Test Coverage: Added 153 lines of tests in test_ledger_client.py covering the new event block query methods, ensuring correctness and reliability of the new functionality.

Changes Breakdown

Area Details
Client Layer New event block methods added to LedgerClient
GraphQL Queries Event block query definitions added to ledger query module
Tests Full unit test coverage for all new client methods

Breaking Changes

None. This is a purely additive change that introduces new methods and queries without modifying existing interfaces.

Testing Notes

  • New unit tests have been added to tests/test_ledger_client.py covering the event block query functionality.
  • All new methods should be validated against both mocked responses and, where applicable, integration environments to ensure query compatibility with the backend schema.
  • Reviewers should verify that the GraphQL query fields and structure align with the current backend schema definition for event blocks.

Infrastructure Considerations

  • Ensure that the target GraphQL backend supports the event block schema/types referenced by the new queries before deploying consumers that rely on this functionality.
  • No new dependencies or configuration changes are required; this leverages the existing GraphQL client infrastructure.

🤖 Generated with Claude Code

Branch Info:

  • Source: feature/event-block-graphql
  • Target: main
  • Type: feature

Co-Authored-By: Claude noreply@anthropic.com

@jfrench9 jfrench9 merged commit 21a63e9 into main May 1, 2026
1 check passed
@jfrench9 jfrench9 deleted the feature/event-block-graphql branch May 1, 2026 19:46
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