-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
47 lines (43 loc) · 949 Bytes
/
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
type Creation @entity {
id: ID!
creationId: BigInt! # uint256
creator: Bytes! # address
space: Bytes! # address
uri: String! # string
price: BigInt! # uint256
mintedAmount: BigInt!
timestamp: BigInt!
}
type Minter @entity {
id: ID!
creationId: BigInt! # uint256
minter: Bytes! # address
amount: Int!
}
type MintRecord @entity(immutable: true) {
id: ID!
creationId: BigInt! # uint256
minter: Bytes! # address
curator: Bytes! # address
amount: BigInt! # uint256
price: BigInt! # uint256
mark: String! # string
timestamp: BigInt!
creation: Creation!
}
type Tip @entity {
id: ID!
uri: String!
receiver: Bytes! # address
totalAmount: BigInt! # uint256
}
type TipRecord @entity(immutable: true) {
id: ID!
requestId: BigInt! # uint256
tipper: Bytes! # address
receiver: Bytes! # address
amount: BigInt! # uint256
uri: String!
tipperRewardPercent: BigInt! # uint256
timestamp: BigInt!
}