Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ensTypes.graphql
type Address {
address: String
}
type Node {
name: String
nameHash: String
label: String
node: String
subNodes: [Node]
}
type NodeEvent {
node: Node
actor: Address
block: Int
tx: String
action: String
}
type Resolver {
address: String
block: Int
txId: String
}
type EnsNode {
node: Node
owner: Address
ownerHistory: [NodeEvent]
resolverHistory: [Resolver]
}
type EthereumAddress {
nodeHistory: [NodeEvent]
nodes: [Node]
}
type OwnerStat {
owner: Address
nodesOwned: Int
}
type Address {
address: String!
ownedNames: [Domain]
}
interface ResolverEvent {
}
type Resolver {
address: Address!
events: [ResolverEvent]
}
interface RegistryEvent {
domain: Domain!
blockNumber: Int!
blockHash: String!
transactionHash: String!
}
type TransferEvent implements RegistryEvent {
domain: Domain!
blockNumber: Int!
blockHash: String!
transactionHash: String!
owner: Address
}
type SubdomainTransferEvent implements RegistryEvent {
domain: Domain!
blockNumber: Int!
blockHash: String!
transactionHash: String!
subdomain: Domain!
owner: Address
}
type NewResolverEvent implements RegistryEvent {
domain: Domain!
blockNumber: Int!
blockHash: String!
transactionHash: String!
resolver: Resolver!
}
type Domain {
namehash: String!
parent: Domain
subdomains: [Domain]
labels: [String]
owner: Address
resolver: Resolver
history: RegistryEvent
}
type Query {
domain(name: String!): Domain
address(address: String!): Address
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.