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

Bens: metadata and multiprotocolling #899

Open
sevenzing opened this issue May 30, 2024 · 2 comments
Open

Bens: metadata and multiprotocolling #899

sevenzing opened this issue May 30, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sevenzing
Copy link
Collaborator

sevenzing commented May 30, 2024

Brief description

  • Need to enhance the bens by adding "metadata" for each domain name protocol (e.g., ENS, Genome)
  • Additionally, we need to update the relationship model between Blockscout instances and protocols to support a many-to-many relationship (like add way to specify which protocols should be used for every blockscout in config). Currently, each Blockscout instance is associated with exactly one protocol.
  • Ignore resolving address if they start with 32 zeros (rootstock enhance)

Tech

Add Metadata for Domain Name Protocols:

Extend the domain name protocol model to include the following metadata fields:

  • short_name (String): A short identifier for the protocol.
  • title (String): The full title of the protocol.
  • description (String): A brief description of the protocol.
  • icon_url (Optional String): A URL pointing to the protocol's icon.
  • docs_url (Optional String): A URL linking to the protocol's documentation.
  • tld_list (List of Strings): A list of top-level domains (TLDs) associated with the protocol, for example [".eth", ".gno"]

Add this info in domain_name response

Add endpoint to get all protocols

Update Relationship Model:

  • Modify the existing relationship between Blockscout instances and protocols to support a many-to-many relationship in config file.

  • Update the API and backend logic to handle multiple protocols for a single Blockscout instance and vice versa.

@sevenzing sevenzing self-assigned this May 30, 2024
@sevenzing
Copy link
Collaborator Author

Implemented in #890

@sevenzing sevenzing added the enhancement New feature or request label May 30, 2024
@sevenzing sevenzing added this to the BENS v1 milestone May 30, 2024
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