-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
52 lines (50 loc) · 1.13 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
type Owner @entity {
# address of the owner + "#" + market Address.
id: ID!
# address of the owner.
address: Bytes!
# compound market address
market: Bytes!
# lists of all enabled and disabled managers.
manager: [Manager!]! @derivedFrom(field: "owner")
}
type Manager @entity {
# manager address + "#" + owner address + "#" + market address.
id: ID!
# address of the manager.
address: Bytes!
# owner of the manager.
owner: Owner!
# whether the manager is enabled or disabled by the owner.
isAllowed: Boolean!
# whether the manager is DSA or not.
isDSA: Boolean!
# compound market address
market: Bytes!
# transction details of the transaction when manager enabled or disabled.
transactionData: TransactionData!
}
type TransactionData @entity {
# transaction hash + "#" + log index
id: ID!
# transaction index
txnIndex: BigInt!
# from
from: Bytes!
# to
to: Bytes
# input
input: Bytes!
# block number
blockNumber: BigInt!
# timestamp
timestamp: BigInt!
# gas
blockGasUsed: BigInt!
#gas price
gasPrice: BigInt!
# gas limit
gasLimit: BigInt!
#value
value: BigInt!
}