-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.graphql
151 lines (136 loc) · 2.76 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
type GIVPower @entity {
id: ID!
initialDate: BigInt!
locksCreated: Int!
roundDuration: Int!
totalGIVLocked: BigInt!
}
type TokenLock @entity {
id: ID!
user: User!
amount: BigInt!
rounds: Int!
untilRound: Int!
unlockableAt: BigInt
unlockedAt: BigInt
unlocked: Boolean!
}
type User @entity {
id: ID!
givLocked: BigInt!
lastGivPowerUpdateTime: BigInt!
locksOwned: [TokenLock!] @derivedFrom(field: "user")
tokensBalance: [TokenBalance!] @derivedFrom(field: "user")
unipoolsBalance: [UnipoolBalance!] @derivedFrom(field: "user")
tokenDistroBalance: [TokenDistroBalance!] @derivedFrom(field: "user")
giversPFPToken: [GiversPFPToken!] @derivedFrom(field: "user")
}
type UserGivPowerSnapshot @entity {
id: ID!
timestamp: BigInt!
user: User!
givPowerAmount: BigInt!
cumulativeGivPowerAmount: BigInt!
}
type TokenBalance @entity {
id: ID!
balance: BigInt!
user: User!
token: String!
updatedAt: BigInt!
}
type UnipoolBalance @entity {
id: ID!
balance: BigInt!
user: User!
unipool: String!
rewards: BigInt!
rewardPerTokenPaid: BigInt!
updatedAt: BigInt!
}
type BalanceChange @entity {
id: ID!
account: String!
contractAddress: String!
time: BigInt!
block: BigInt!
amount: BigInt!
newBalance: BigInt!
}
type Unipool @entity {
id: ID!
periodFinish: BigInt
totalSupply: BigInt!
rewardRate: BigInt!
lastUpdateTime: BigInt
rewardPerTokenStored: BigInt!
}
type TokenDistroBalance @entity {
id: ID!
user: User!
allocatedTokens: BigInt!
allocationCount: BigInt!
claimed: BigInt!
givback: BigInt!
givDropClaimed: Boolean
givbackLiquidPart: BigInt!
tokenDistroAddress: String
}
type TokenAllocation @entity {
id: ID!
recipient: String!
amount: BigInt!
timestamp: BigInt!
txHash: String!
distributor: String
givback: Boolean
praise: Boolean
tokenDistroAddress: String!
}
type TransactionTokenAllocation @entity {
id: ID!
tokenAllocationIds: [String!]!
}
type TokenDistro @entity {
id: ID!
totalTokens: BigInt
startTime: BigInt
cliffTime: BigInt
duration: BigInt
initialAmount: BigInt
lockedAmount: BigInt
}
type UniswapPosition @entity {
id: ID!
tokenId: String!
token0: String!
token1: String!
liquidity: BigInt!
tickLower: Int!
tickUpper: Int!
tokenURI: String!
owner: String!
staker: String
staked: Boolean
closed: Boolean
}
type UniswapV3Pool @entity {
id: ID!
token0: String!
token1: String!
sqrtPriceX96: BigInt!
tick: BigInt!
liquidity: BigInt!
}
type UniswapInfinitePosition @entity {
id: ID!
lastUpdateTimeStamp: BigInt!
lastRewardAmount: BigInt!
}
type GiversPFPToken @entity {
id: ID!
tokenId: Int!
user: User!
imageIpfs: String!
contractAddress: String!
}