Last active
September 26, 2018 15:26
-
-
Save jefflau/3525a3dea25f9f7180df646362f842b2 to your computer and use it in GitHub Desktop.
ensTypes.graphql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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