Skip to content

Instantly share code, notes, and snippets.

@jefflau
Last active September 26, 2018 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jefflau/3525a3dea25f9f7180df646362f842b2 to your computer and use it in GitHub Desktop.
Save jefflau/3525a3dea25f9f7180df646362f842b2 to your computer and use it in GitHub Desktop.
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 Query {
ensNode(name: String!): EnsNode
ethereumAddress(address: String!): EthereumAddress
ownerStats(limit: Int): [OwnerStat]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment