-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema.graphql
75 lines (69 loc) · 1.38 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
70
71
72
73
74
75
type Land @entity {
id: ID!
owner: Bytes!
x: Int!
y: Int!
timestamp: BigInt!
tokenURI: String!
}
type LandPurchase @entity {
id: ID!
contractAddress: Bytes!
topLeftX: Int!
topLeftY: Int!
size: BigInt!
buyer: Bytes!
to: Bytes!
price: BigInt!
tokenAddress: Bytes!
amountPaid: BigInt!
timestamp: BigInt!
}
type LandReferral @entity {
id: ID!
contractAddress: Bytes!
referrer: Bytes!
referee: Bytes!
tokenAddress: Bytes!
amount: BigInt!
commission: BigInt!
commissionRate: BigInt!
}
type UserStat @entity {
id: ID!
numDAILandPurchases: Int!
numETHLandPurchases: Int!
numDAILandGiven: Int!
numETHLandGiven: Int!
}
type SaleUserStat @entity {
id: ID!
numDAILandPurchases: Int!
numETHLandPurchases: Int!
numDAILandGiven: Int!
numETHLandGiven: Int!
}
type LandSaleStat @entity {
id: ID!
numDAIPurchases: Int!
numETHPurchases: Int!
totalETHSpent: BigDecimal!
totalDAISpent: BigDecimal!
numLandsFromDAIPurchase: Int!
numLandsFromETHPurchase: Int!
numUniquePurchaser: Int!
numUniqueReceiver: Int!
numNewUniqueReceiver: Int!
numNewUniquePurchaser: Int!
num1x1Purchases: Int!
num3x3Purchases: Int!
num6x6Purchases: Int!
num12x12Purchases: Int!
num24x24Purchases: Int!
}
type LandSaleReferralStat @entity {
id: ID!
numReferrals: Int!
totalETHSentToReferrees: BigDecimal!
totalDAISentToReferrees: BigDecimal!
}