Skip to content

add: GNS (.gwei) names support#25

Draft
lucadonnoh wants to merge 1 commit into
AmbireTech:mainfrom
lucadonnoh:feature/gwei-names
Draft

add: GNS (.gwei) names support#25
lucadonnoh wants to merge 1 commit into
AmbireTech:mainfrom
lucadonnoh:feature/gwei-names

Conversation

@lucadonnoh

Copy link
Copy Markdown

What

UI counterpart of AmbireTech/ambire-common#2522: surfaces GNS (.gwei) names everywhere ENS and Namoshi names already appear.

  • GnsIcon: new svg component (the GNS pixel-G), theme-aware, same shape as NamoshiIcon.
  • AddressInput: .gwei resolution icon and the "Address / ENS / Namoshi / GNS" placeholder.
  • DomainBadge: GNS badge next to avatars (account rows, address book, signing screens, Benzin).
  • useAddressInput / validation: isValidGwei, "Valid GNS domain", failure and warning messages.
  • useResolveDomain / useReverseLookup: 'gwei' in the type unions, reverse-name fallback chain.
  • useAccountsList: .gwei names included in the account fuzzy search.
  • Address Book add-contact modal label.

Depends on

AmbireTech/ambire-common#2522 (adds the gwei fields and resolvedAddressType union this code reads). This branch deliberately does not touch the submodule pointer; type-checks will go green once the submodule is bumped past that PR. Marked as draft until then.

To try it now: point src/ambire-common at lucadonnoh/ambire-common#feature/gwei-names, then type a .gwei name (e.g. donnoh.gwei, live on mainnet with a primary name set, so both directions demo) into Send or Add Contact.

Verification

  • yarn extension:type:check-new with the common branch checked out in the submodule: "0 new errors found. 159 errors already in baseline."
  • npx eslint on all touched files: nothing on changed lines.
  • ambire-common side is covered by real-RPC jest tests in the companion PR (24/24).

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.

1 participant