blockful-io / external-resolver

This project aims to scale the Ethereum Name Service (ENS) by consolidating existing patterns and proofs of concept into a unified and production-ready codebase.
MIT License
15 stars 3 forks source link

L2 Metadata API #209

Closed pikonha closed 1 month ago

pikonha commented 2 months ago

Feature Request

Implement the ENSIP-16 for Arbitrum domains.

Describe Preferred Solution

Create a domain graphql resolver for gathering data from Arbitrum the same way we do for the database ones.

type Domain {
  id: ID!
  context: Bytes
  owner: Bytes
  name: String
  node: Bytes
  label: String
  labelhash: Bytes
  resolvedAddress: Bytes
  parent: String
  parentNode: Bytes
  subdomains: [Domain!]
  subdomainCount: Int!
  resolver: Resolver!
  expiryDate: BigInt!
  registerDate: BigInt
}

type Text {
  key: String
  value: String
}

type Address {
  address: Bytes
  coin: BigInt
}

type Resolver {
  id: ID!
  node: Bytes
  context: Bytes
  address: Bytes
  addr: Bytes
  contentHash: Bytes
  texts: [Text!]
  addresses: [Address!]
}

type Query {
  domain(name: String!): Domain
}

Architecture Diagram

QA Replication steps