forked from poap-xyz/poap-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 7
/
schema.graphql
37 lines (34 loc) · 1.03 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
type Token @entity
{
id: ID!
owner: Account!
event: Event
transfers: [Transfer!]! @derivedFrom(field: "token")
transferCount: BigInt!
created: BigInt!
mintOrder: BigInt
}
type Account @entity
{
id: ID!
tokens: [Token!]! @derivedFrom(field: "owner")
tokensOwned: BigInt!
}
type Event @entity
{
id: ID!
tokens: [Token!]! @derivedFrom(field: "event")
tokenCount: BigInt!
created: BigInt!
transferCount: BigInt!
tokenMints: BigInt!
}
type Transfer @entity
{
id: ID!
token: Token!
from: Account!
to: Account!
transaction: Bytes!
timestamp: BigInt!
}