-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
65 lines (61 loc) · 1.36 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
"""
Metadata Registry
"""
type MetadataEntry @entity {
"Concatenation of network, msgSender and metadata name"
id: ID!
"msg.sender"
owner: Bytes!
"network of the data source, i.e. mainnet, rinkeby, etc"
network: String!
"metadata in JSON formatted string"
metadata: String
"metadata permissions"
permissions: [Permission!] @derivedFrom(field: "metadata")
"metadata creation time"
createdAt: BigInt!
"metadata last updated time"
lastUpdatedAt: BigInt
"metadata deleted time"
deletedAt: BigInt
}
"""
Metadata Permissions
"""
type Permission @entity {
"concatenation of metadataId and account"
id: ID!
"metadata with this permission"
metadata: MetadataEntry!
"account granted with this permission"
account: Bytes!
"create metadata permission"
create: Boolean!
"update metadata permission"
update: Boolean!
"delete metadata permission"
delete: Boolean!
"allow to set permission"
permissions: Boolean!
createdAt: BigInt!
lastUpdatedAt: BigInt
}
"""
Error contains metadata processing errors
"""
type Error @entity {
"Concatenation of transaction hash and logIndex"
id: ID!
"NewPost event content input"
content: String
"error message"
errorMessage: String
"transaction hash"
txHash: Bytes!
"event log index"
logIndex: BigInt!
"msg.sender"
msgSender: Bytes!
"transaction timestamp"
timestamp: BigInt!
}