-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
44 lines (35 loc) · 1.4 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
type Project @entity {
id: ID! #project name
operators: [Bytes!]! # addresses
shareableContractAddress: Bytes
likeContractAddress: Bytes
endorseContractAddress: Bytes
categories: [Category!]!
}
type Category @entity {
id: ID! #name of category
}
type Token @entity {
id: ID!
ownerAddress: Bytes!
contractAddress: Bytes!
metadataUri: String
project: Project!
isOriginal: Boolean! #token is original minted by the project admin
isSharedInstance: Boolean! #token was shared by the parent token owner with a 3rd person
isOriginalOrShared: Boolean! #combination of 2 fields isOriginal or isSharedInstance
isLikeToken: Boolean! #token represents like of an original or shared token
isEndorseToken: Boolean! #token represents endorse of an original or shared token
tokenId: BigInt
parentTokenId: BigInt #parent of a shared token
parentToken: Token # parent token a permissioned shared token was derived from
sharedChildTokens: [Token!]! @derivedFrom(field: "parentToken") # tokens from permissioned sharing
likedParentToken: Token
likeTokens: [Token!]! @derivedFrom(field: "likedParentToken") # tokens from that have liked this token
endorsedParentToken: Token
endorseTokens: [Token!]! @derivedFrom(field: "endorsedParentToken") # tokens from that have endorsed this token
endorseTokenReceiverAddress: Bytes
category: Category!
isBurned: Boolean!
mintBlock: BigInt!
}