-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
91 lines (83 loc) · 1.98 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
type Collection @entity {
id: String!
ogTokenAddress: String!
blockTimestamp: BigInt!
tokens: [WNFT!]! @derivedFrom(field: "collection")
tokensCount: BigInt!
lastAddedTokenTimestamp: BigInt!
}
type TokenAdded @entity(immutable: true) {
id: Bytes!
ogTokenAddress: Bytes!
ogTokenId: BigInt! # uint256
tokenId: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
price: BigInt! # uint256
minHoldPeriod: BigInt! # uint256
transactionHash: Bytes!
}
type WNFT @entity {
id: String!
collection: Collection!
ogTokenAddress: String!
ogTokenId: BigInt!
tokenId: BigInt!
currentOwner: Bytes! # address
lastPrice: BigInt! # uint256
firstStakePrice: BigInt! # uint256
minHoldPeriod: BigInt! # uint256
blockTimestamp: BigInt!
}
type Outbid @entity(immutable: true) {
id: Bytes!
ogTokenAddress: Bytes! # address
ogTokenId: BigInt! # uint256
tokenId: BigInt! # uint256
amount: BigInt! # uint256
price: BigInt! # uint256
owner: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type TokenDeleted @entity(immutable: true) {
id: Bytes!
ogTokenAddress: Bytes!
ogTokenId: BigInt! # uint256
tokenId: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type CollectionAdded @entity(immutable: true) {
id: Bytes!
collectionId: BigInt! # uint256
ogTokenAddress: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Editor @entity {
id: Bytes! # address
sender: Bytes! # address
role: Bytes! # bytes32
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Admin @entity {
id: Bytes! # address
sender: Bytes! # address
role: Bytes! # bytes32
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type Transfer @entity(immutable: true) {
id: Bytes!
from: Bytes! # address
to: Bytes! # address
tokenId: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}