-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
66 lines (63 loc) · 1.6 KB
/
Copy pathschema.graphql
File metadata and controls
66 lines (63 loc) · 1.6 KB
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
type EventRecord @entity {
id: ID!
timestamp: DateTime! @index
blockNumber: Int! @index
blockHash: String!
chainId: Int! @index
contractAddress: String! @index
topic0: String! @index
topic1: String @index
topic2: String @index
topic3: String @index
data: String
txHash: String! @index
txFrom: String! @index
txTo: String @index
txIndex: Int!
logIndex: Int!
decodedData: JSON
}
type AbiData @entity {
id: ID! # topic0 (events) or sighash (functions)
type: String! @index # "event" | "function"
name: String! # "Transfer", "approve"
signature: String # "Transfer(address,address,uint256)"
}
type NotificationLog @entity {
id: ID! # {recordType}:{recordId}
recordId: String! @index # EventRecord.id or TraceRecord.id
recordType: String! @index # "event" | "trace"
processor: String @index # Processor name that triggered it
notifiedAt: DateTime! @index
chainId: Int! @index
blockNumber: Int! @index
}
type TraceRecord @entity {
id: ID!
timestamp: DateTime! @index
blockNumber: Int! @index
blockHash: String!
chainId: Int! @index
txHash: String @index
txIndex: Int
txSuccess: Boolean
type: String! @index
callType: String @index
fromAddress: String @index
toAddress: String @index
value: String
gas: BigInt
gasUsed: BigInt
input: String
output: String
sighash: String @index
traceAddress: [Int!]!
subtraces: Int!
success: Boolean
error: String
revertReason: String
createdAddress: String @index
refundAddress: String
decodedInput: JSON
decodedOutput: JSON
}