-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
125 lines (114 loc) · 2.48 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
type LRTDeposit @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
referralId: String! @index
depositor: String! @index
asset: String!
depositAmount: BigInt!
amountReceived: BigInt!
}
type LRTBalanceData @entity {
id: ID! @index
recipient: LRTPointRecipient! @index
referralId: String @index
pointsDate: DateTime!
points: BigInt!
referralPointsBase: BigInt!
asset: String
source: String
balance: BigInt!
balanceDate: DateTime!
}
type LRTPointRecipient @entity {
id: ID! @index
balance: BigInt!
points: BigInt!
pointsDate: DateTime! @index
referralPoints: BigInt!
elPoints: BigInt!
balanceDatas: [LRTBalanceData]! @derivedFrom(field: "recipient")
referralCount: Int!
referrerCount: Int!
}
type LRTPointRecipientHistory @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
recipient: String!
balance: BigInt!
points: BigInt!
pointsDate: DateTime! @index
referralPoints: BigInt!
elPoints: BigInt!
referralCount: Int!
referrerCount: Int!
}
type LRTSummary @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
balance: BigInt!
points: BigInt!
elPoints: BigInt!
}
type LRTEigenPointCalculation @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
amount: BigInt!
points: BigInt!
}
type LRTCampaign @entity {
id: ID! @index # campaign
campaign: String! @index
balance: BigInt!
elPoints: BigInt!
}
type LRTCampaignHistory @entity {
id: ID! @index # block:campaign
timestamp: DateTime! @index
blockNumber: Int! @index
campaign: String! @index
balance: BigInt!
elPoints: BigInt!
}
type LRTCampaignRecipient @entity {
id: ID! @index # campaign:recipient
campaign: String! @index
recipient: String! @index
balance: BigInt!
elPoints: BigInt!
}
enum LRTWithdrawalStatus {
Requested
Claimed
Migrated
}
type LRTWithdrawal @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
status: LRTWithdrawalStatus!
staker: String!
delegatedTo: String!
withdrawer: String!
nonce: BigInt!
startBlock: Int!
strategies: [String!]
shares: [String!]
}
type LRTWithdrawalRequest @entity {
id: ID! @index
timestamp: DateTime! @index
blockNumber: Int! @index
withdrawal: LRTWithdrawal!
status: LRTWithdrawalStatus!
withdrawer: String!
asset: String!
strategy: String!
primeETHAmount: BigInt!
assetAmount: BigInt!
sharesAmount: BigInt!
claimedAmount: BigInt!
}