forked from ensdomains/ens-reclaim-deposit-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
69 lines (62 loc) · 1.46 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
type Domain @entity {
id: ID! # The namehash of the name
name: String # The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.[1234].eth)
labelName: String # The human readable label name (imported from CSV), if known
labelhash: Bytes # keccak256(labelName)
parent: Domain # The namehash (id) of the parent name
owner: Account!
events: [DomainEvent!]! @derivedFrom(field: "domain")
}
interface DomainEvent {
id: ID!
domain: Domain!
blockNumber: Int!
transactionID: Bytes!
}
type Account @entity {
id: ID!
domains: [Domain!]! @derivedFrom(field: "owner")
deeds: [Deed!]! @derivedFrom(field: "owner")
registrations: [Registration!] @derivedFrom(field: "registrant")
}
enum AuctionState {
AUCTION
FINALIZED
RELEASED
FORBIDDEN
}
type Deed @entity {
id: ID!
owner: Account!
value: BigInt!
name: AuctionedName @derivedFrom(field: "deed")
}
type AuctionedName @entity {
id: ID!
domain: Domain
registrationDate: BigInt!
releaseDate: BigInt
deed: Deed
secondBid: BigInt
bidCount: Int!
state: AuctionState!
}
type Registration @entity {
id: ID!
domain: Domain
registrationDate: BigInt!
expiryDate: BigInt!
registrant: Account!
}
type StatsEntity @entity {
id: ID!
numOfDeeds: Int
numAuctioned: Int
numFinalised: Int
numReleased: Int
numTransferred: Int
numClosed: Int
numForbidden: Int
accumValue: BigInt
currentValue: BigInt
}