-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
53 lines (50 loc) · 1.09 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
type Pool @entity {
id: ID!
poolAddress: Bytes! # address
uniswapPool: Bytes! # address
collateralTracker0: Bytes! # address
collateralTracker1: Bytes! # address
rareNftId: BigInt! # uint256
rarity: BigInt! # uint256
amount0: BigInt! # uint256
amount1: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Position @entity {
id: ID!
owner: Bytes!
tokenId: BigInt!
size: BigInt!
pool: Pool! # link position to pools
poolUtilizations: BigInt!
tick: Int!
active: Boolean!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Liquidation @entity {
id: ID!
liquidator: Bytes!
liquidatee: Bytes!
bonusAmounts: BigInt!
tick: Int!
pool: Pool! # Link liquidation to pool
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type ForcedExercise @entity {
id: ID!
exercisor: Bytes!
user: Bytes!
tokenId: BigInt!
exerciseFee: BigInt!
tick: Int!
pool: Pool! # Link forced exercise to pool
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}