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

Create a fetch wrapper for off-chain services like #9

Open
3 of 5 tasks
stevenkhong opened this issue Nov 21, 2024 · 1 comment
Open
3 of 5 tasks

Create a fetch wrapper for off-chain services like #9

stevenkhong opened this issue Nov 21, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@stevenkhong
Copy link
Contributor

stevenkhong commented Nov 21, 2024

Summary

dApps often interact with off-chain services (usually indexers) to retrieve historic chain state. This utility class will serve as foundation for building those query clients.

Goals

  1. Provide basic functionalities for conveniently create query clients for services do not support protobuf.
  2. Will be extended by Hydrogen and Insights clients.
  3. Primary problem this wrapper should solve is how to easily add query endpoints and register types.

Non-goals

  1. Create elaborate http handlers like axios, we can use a library for that.

Tasks

Create fetch client factory:

  • Create fetch wrapper class in @demex-sdk/core
  • Add example on how to use
  • Update README.md

Create clients:

  • Hydrogen Client
  • Insights Client

References

Previous iterations of query clients:

@stevenkhong stevenkhong added the help wanted Extra attention is needed label Nov 21, 2024
@stevenkhong
Copy link
Contributor Author

done on #21. updated issue message to include TODO for Hydrogen and Insights fetch clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant