ARK-Builders / ARK-Builders/ark-core

Generic Registrar for `ark-cli`

Open
#62 0 comments 0 reactions 1 assignee Claimed by @tareknaser View on GitHub
Dominant language
Rust
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.