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

Generic Registrar for ark-cli #62

Open
tareknaser opened this issue May 20, 2024 · 0 comments
Open

Generic Registrar for ark-cli #62

tareknaser opened this issue May 20, 2024 · 0 comments
Assignees

Comments

@tareknaser
Copy link
Collaborator

Description

Currently, the index registrar is part of the ark-cli crate and uses a specific resource ID type. This is suboptimal.
We need to create a registrar that is generic over the resource ID type (which could be any of the ones defined in the dev-hash crate). This generic registrar should be moved to a separate crate and be available for use by any application, with ark-cli likely being the first to adopt it.

Challenges

The current implementation of the registrar uses the lazy_static! macro, which does not support generics. We'll need to refactor the code to address this.

Tasks

  1. Refactor the registrar to be generic over the resource ID type.
  2. Move the generic registrar to a new, separate crate.
  3. Update ark-cli to use the new generic registrar.
@tareknaser tareknaser self-assigned this May 20, 2024
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

No branches or pull requests

1 participant