-
Notifications
You must be signed in to change notification settings - Fork 18
feat: return domain from reverse registrar #354
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
base: master
Are you sure you want to change the base?
feat: return domain from reverse registrar #354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances domain lookup functionality by returning domains from custom resolvers through the reverse registrar. The changes introduce a new function to fetch domain names from the reverse registrar, update the lookupDomains method to include this new lookup, and export EMPTY_ADDRESS to promote reusability across modules.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/lookupDomains.ts | Added reverse registrar lookup with getDomainFromReverseRegistrar; refactored error handling using Promise.allSettled. |
| src/addressResolvers/utils.ts | Exported EMPTY_ADDRESS for broader module usage. |
Comments suppressed due to low confidence (1)
src/addressResolvers/utils.ts:5
- [nitpick] The naming of EMPTY_ADDRESS is clear; however, ensure that all modules consistently import and use this constant to avoid mismatches in address comparisons.
export const EMPTY_ADDRESS = '0x0000000000000000000000000000000000000000';
|
Still need to confirm that the |
I don't get it 🤔 |
If we merge this PR, the address Remaining issue is that the verification that this address is truly the owner of this domain will fail on sequencer, as there's no concept of owner for TLD domain. The address is not registered as owner, still looking for a way to verify ownership of TLD, maybe with https://github.com/ensdomains/ensjs/blob/main/docs/dns/function.getDnsOwner.md |
|

Toward https://github.com/snapshot-labs/workflow/issues/485
The
lookup_domainsmethod now returns domains set in the reverse registrarTest
It should return
{ "jsonrpc": "2.0", "result": [ "appdefi.eth", "defi.app" ], "id": null }Note that this address->name feature is only added to
lookup_domains, and not also tolookup_address, as it's an expensive request. It will mainly be used for offchain space creation.