-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.graphql
126 lines (118 loc) · 2.8 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
type Transaction @entity {
id: ID!
blockNumber: BigInt!
timestamp: BigInt!
sender: User!
referral: ReservationReferral
reservations: [Reservation!]! @derivedFrom(field: "transaction")
}
type User @entity {
id: ID!
transactions: [Transaction!]! @derivedFrom(field: "sender")
reservations: [Reservation!]! @derivedFrom(field: "user")
reservationDays: [UserReservationDay!]! @derivedFrom(field: "user")
reservationEffectiveWei: BigInt!
reservationActualWei: BigInt!
reservationCount: BigInt!
reservationDayCount: BigInt!
reservationReferrals: [ReservationReferral!]! @derivedFrom(field: "referrer")
reservationReferralActualWei: BigInt!
reservationReferralCount: BigInt!
stakes: [Stake!]! @derivedFrom(field: "staker")
stakeReferrals: [Stake!]! @derivedFrom(field: "referrer")
stakeCount: BigInt!
cmStatus: Boolean!
cmStatusInLaunch: Boolean!
gasRefunded: BigInt!
refundTransaction: String
}
type Reservation @entity {
id: ID!
transaction: Transaction!
timestamp: BigInt!
user: User!
investmentDay: BigInt!
effectiveWei: BigInt!
actualWei: BigInt!
referral: ReservationReferral
}
type ReservationReferral @entity {
id: ID!
transaction: Transaction!
timestamp: BigInt!
referrer: User!
referee: User!
actualWei: BigInt!
}
type UserReservationDay @entity {
id: ID!
user: User!
investmentDay: BigInt!
effectiveWei: BigInt!
actualWei: BigInt!
reservationCount: BigInt!
}
type GlobalReservationDay @entity {
id: ID!
investmentDay: BigInt!
supply: BigInt
minSupply: BigInt!
maxSupply: BigInt!
effectiveWei: BigInt!
actualWei: BigInt!
reservationCount: BigInt!
userCount: BigInt!
}
type GlobalReservationDaySnapshot @entity {
id: ID!
timestamp: BigInt!
investmentDay: BigInt!
effectiveWei: BigInt!
actualWei: BigInt!
reservationCount: BigInt!
userCount: BigInt!
}
type Global @entity {
id: ID!
userCount: BigInt!
reserverCount: BigInt!
reservationReferrerCount: BigInt!
cmStatusCount: BigInt!
cmStatusInLaunchCount: BigInt!
reservationCount: BigInt!
reservationEffectiveWei: BigInt!
reservationActualWei: BigInt!
stakeCount: BigInt!
stakerCount: BigInt!
totalShares: BigInt!
totalStaked: BigInt!
sharePrice: BigInt
sharePricePrevious: BigInt
referrerShares: BigInt!
currentWiseDay: BigInt
ownerlessSupply: BigInt!
circulatingSupply: BigInt!
liquidSupply: BigInt!
mintedSupply: BigInt!
ownedSupply: BigInt!
}
type Stake @entity {
id: ID!
staker: User!
referrer: User!
principal: BigInt!
shares: BigInt!
cmShares: BigInt!
currentShares: BigInt!
startDay: BigInt!
lockDays: BigInt!
daiEquivalent: BigInt!
reward: BigInt
closeDay: BigInt
penalty: BigInt
scrapedYodas: BigInt!
sharesPenalized: BigInt!
referrerSharesPenalized: BigInt!
scrapeCount: BigInt!
lastScrapeDay: BigInt
}