Skip to content

feat(registry): resolve_username and username_available (#360) - #922

Open
Junirezz wants to merge 2 commits into
ada-nwali:testnet-implementationfrom
Junirezz:issue-360
Open

Junirezz wants to merge 2 commits into
ada-nwali:testnet-implementationfrom
Junirezz:issue-360

Conversation

@Junirezz

Copy link
Copy Markdown

Closes #360

Adds two read functions:

  • resolve_username(name) -> Result<Address, RegistryError>: owner address, or NotRegistered.
  • username_available(name) -> bool: true when register would accept the name (valid length and not taken).

The length rule moves into username_is_valid, used by register and the new functions.

Notes: register has no normalisation (matching is exact and case-sensitive), so these functions do not normalise either. The issue asks them to match register's normalisation; if you want case-folding, that is a separate change to register.

Not verified: no Rust toolchain linker here, so cargo test has not run.

…i#360)

resolve_username maps a name to its owner (NotRegistered when free). username_available applies the same length rule and uniqueness check as register. The length rule moves into username_is_valid, used by both.
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Junirezz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@monikyvitorial-lang is attempting to deploy a commit to the Ada's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

No reverse lookup from username to address

1 participant