Skip to content

feat: add ENS discovery helper for ERC-8257 tools#5

Open
CodySearsOS wants to merge 1 commit into
mainfrom
feat/ens-discovery-helper
Open

feat: add ENS discovery helper for ERC-8257 tools#5
CodySearsOS wants to merge 1 commit into
mainfrom
feat/ens-discovery-helper

Conversation

@CodySearsOS
Copy link
Copy Markdown
Collaborator

Adds discoverToolsFromENS() that performs the ENS × ERC-8257 traversal:

  • Walks ENS subnames via pluggable SubnameResolver (ships with paginated subgraph-based default and static resolver for testing)
  • Reads registrations[*] text records and parses CAIP-19 identifiers
  • Fetches tool configs from the onchain 8257 registry (chain-resolved)
  • Verifies origin attestations on both ends (tool manifest ↔ ENS record)

New exports: discoverToolsFromENS, parseCAIP19ToolRef, formatCAIP19ToolRef, staticSubnameResolver, subgraphSubnameResolver, and associated types.

Adds discoverToolsFromENS() that performs the ENS × ERC-8257 traversal:
- Walks ENS subnames via pluggable SubnameResolver (ships with paginated
  subgraph-based default and static resolver for testing)
- Reads registrations[*] text records and parses CAIP-19 identifiers
- Fetches tool configs from the onchain 8257 registry (chain-resolved)
- Verifies origin attestations on both ends (tool manifest ↔ ENS record)

New exports: discoverToolsFromENS, parseCAIP19ToolRef, formatCAIP19ToolRef,
staticSubnameResolver, subgraphSubnameResolver, and associated types.

Co-Authored-By: cody.sears@opensea.io <cody.sears@opensea.io>
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