-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
113 lines (97 loc) · 2.25 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
##################
# Event Entities #
##################
"""
Event: An interface which is shared by all event entities and contains basic transaction data.
"""
interface Event {
"""
The id of the event entity.
"""
id: ID!
"""
The block timestamp which the event was logged in.
"""
timestamp: BigInt!
"""
The block number which the event was logged in.
"""
blockNumber: BigInt!
"""
The transaction hash of the transaction that the event was logged in.
"""
transactionHash: Bytes!
"""
The gas price of the transaction that the event was logged in.
"""
gasPrice: BigInt!
"""
The index of the event, e.g. first event emitted would have `logIndex` of 0.
"""
logIndex: BigInt!
"""
The name of the event - is a 1-to-1 match with the name in our smart contracts.
"""
name: String!
"""
The gas limit of the transaction that the event was logged in.
"""
gasLimit: BigInt!
"""
The gas used for this transaction.
"""
gasUsed: BigInt!
}
type NewOwnerEvent implements Event @entity(immutable: true) {
id: ID!
timestamp: BigInt!
blockNumber: BigInt!
transactionHash: Bytes!
gasPrice: BigInt!
logIndex: BigInt!
name: String!
gasLimit: BigInt!
gasUsed: BigInt!
"""
The previous owner of the Lock contract.
"""
oldOwner: Bytes!
"""
The new owner of the Lock contract.
"""
newOwner: Bytes!
}
type NewUnlockTimeEvent implements Event @entity(immutable: true) {
id: ID!
timestamp: BigInt!
blockNumber: BigInt!
transactionHash: Bytes!
gasPrice: BigInt!
logIndex: BigInt!
name: String!
gasLimit: BigInt!
gasUsed: BigInt!
"""
The owner of the Lock contract who set the new unlock time.
"""
owner: Bytes!
"""
The new unlock time of the Lock contract.
"""
newUnlockTime: BigInt!
}
type WithdrawalEvent implements Event @entity(immutable: true) {
id: ID!
timestamp: BigInt!
blockNumber: BigInt!
transactionHash: Bytes!
gasPrice: BigInt!
logIndex: BigInt!
name: String!
gasLimit: BigInt!
gasUsed: BigInt!
"""
The amount withdrawn from the Lock contract.
"""
amount: BigInt!
}