-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
84 lines (84 loc) · 1.93 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
type User @entity{
id: ID!
usdLBalance: BigDecimal!
xUSDLBalance:BigDecimal!
entryValue: BigDecimal!
realizedEarnings: BigDecimal!
unlockBlock: BigInt!
hourlyUserData: [HourlyUserTrack!]! @derivedFrom(field: "user")
dailyUserData: [DailyUserTrack!]! @derivedFrom(field: "user")
monthlyUserData: [MonthlyUserTrack!]! @derivedFrom(field: "user")
}
type USDL @entity{
id: ID!
totalSupply: BigDecimal!
multiplier: BigDecimal!
fees: BigDecimal!
maxCapacity: BigDecimal!
xUSDLAddress: Bytes!
}
type XUSDL @entity{
id: ID!
totalSupply: BigDecimal!
pricePerShare: BigDecimal!
USDEarnings: BigDecimal!
minimumLock: BigInt!
peripheryAddress: Bytes!
}
type HourlyUserTrack @entity{
id: ID!
user: User!
hourlyUsdLBalance: BigDecimal!
hourlyXusdlBalance:BigDecimal!
hourlyEntryValue: BigDecimal!
}
type DailyUserTrack @entity{
id: ID!
user: User!
dailyUsdLBalance: BigDecimal!
dailyXusdlBalance:BigDecimal!
dailyEntryValue: BigDecimal!
}
type MonthlyUserTrack @entity{
id: ID!
user: User!
monthlyUsdLBalance: BigDecimal!
monthlyXusdlBalance:BigDecimal!
monthlyEntryValue: BigDecimal!
}
type HourlyVolume @entity{
id: ID!
hourlyUSDLTotalSupply: BigDecimal!
hourlyxUSDLTotalSupply: BigDecimal!
hourlyPricePerShare: BigDecimal!
}
type DailyVolume @entity{
id: ID!
dailyUSDLTotalSupply: BigDecimal!
dailyxUSDLTotalSupply: BigDecimal!
dailyPricePerShare: BigDecimal!
}
type MonthlyVolume @entity{
id: ID!
monthlyUSDLTotalSupply: BigDecimal!
monthlyxUSDLTotalSupply: BigDecimal!
monthlyPricePerShare: BigDecimal!
}
type DailyAPY @entity{
id: ID!
dailyUSDEarnings: BigDecimal!
avgUSDEarningPerUSDL:BigDecimal!
dailyApy: BigDecimal!
}
type WeeklyAPY @entity{
id: ID!
weeklyUSDEarnings: BigDecimal!
avgUSDEarningPerUSDL:BigDecimal!
weeklyApy: BigDecimal!
}
type MonthlyAPY @entity{
id: ID!
monthlyUSDEarnings: BigDecimal!
avgUSDEarningPerUSDL:BigDecimal!
monthlyApy: BigDecimal!
}