-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
76 lines (71 loc) · 1.77 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
type LendGivenPrincipal @entity(immutable: true) {
id: Bytes!
token0: Bytes! # address
token1: Bytes! # address
strike: BigInt! # uint256
maturity: BigInt! # uint256
uniswapV3Fee: Int! # uint24
from: Bytes! # address
to: Bytes! # address
isToken0: Boolean! # bool
tokenAmount: BigInt! # uint256
positionAmount: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
poolPairAddress: String!
optionPairAddress: String!
}
type BorrowGivenPrincipal @entity(immutable: true) {
id: Bytes!
token0: Bytes! # address
token1: Bytes! # address
strike: BigInt! # uint256
maturity: BigInt! # uint256
uniswapV3Fee: Int! # uint24
from: Bytes! # address
tokenTo: Bytes! # address
longTo: Bytes! # address
isToken0: Boolean! # bool
isLong0: Boolean! # bool
tokenAmount: BigInt! # uint256
positionAmount: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
poolPairAddress: String!
optionPairAddress: String!
}
type Create @entity(immutable: true) {
id: String!
caller: Bytes! # address
token0: Bytes! # address
token1: Bytes! # address
optionPair: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type AcceptOwner @entity(immutable: true) {
id: Bytes!
owner: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type CreatePool @entity(immutable: true) {
id: String!
caller: Bytes! # address
option: Bytes! # address
poolPair: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type SetOwner @entity(immutable: true) {
id: Bytes!
pendingOwner: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}