Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network subgraph struct #8

Merged
merged 2 commits into from Dec 12, 2022
Merged

Network subgraph struct #8

merged 2 commits into from Dec 12, 2022

Conversation

hopeyen
Copy link
Collaborator

@hopeyen hopeyen commented Dec 8, 2022

  • For more flexible graphQL queries, we avoid having to generate graphql source files manually and utilize graphQL Client Response type.
  • Based on response, a Network struct to keep track of network minimum indexer stake requirement and optional indexer information with helper functions implemented to access fields later
  • Added QueryError type
  • Unit testing for helper functions

Next steps:

  • Perhaps refactor graphQL client across all endpoints
  • Discuss Network query efficiency (query all indexer at once and store the data, or only query when received relevant messages)

@hopeyen hopeyen merged commit d4b3482 into main Dec 12, 2022
@hopeyen hopeyen deleted the hope/upgradable_graphql branch December 12, 2022 23:13
@hopeyen hopeyen added the feat label Mar 7, 2023
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.

None yet

2 participants