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

REST API for cached chain registry #59

Open
cbrit opened this issue Jun 20, 2022 · 1 comment
Open

REST API for cached chain registry #59

cbrit opened this issue Jun 20, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cbrit
Copy link
Member

cbrit commented Jun 20, 2022

We need either a feature or separate ocular crate in the workspace for hosting a cache of the chain registry with a RESTful API for ocular to query chain and IBC path information. This should be optional as a user may opt to manually configure their chain client and/or read in IBC path data some other way.

@cbrit cbrit added the enhancement New feature or request label Jun 20, 2022
@cbrit cbrit self-assigned this Jun 24, 2022
@cbrit
Copy link
Member Author

cbrit commented Jun 24, 2022

Current design idea:

ocular crate:

  • registry-api feature that includes the entire server/handler/caching system
  • Written with axum
  • Have the option to cache data from a local chain-registry repository clone instead of calling to Github

ocular_cli crate:

  • ocular registry start command that runs the above from a CLI context

Splitting it up this way means users can choose to either run the API in a separate process or spin up a thread from within their app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant