-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
74 lines (70 loc) · 1.16 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
type Account @entity {
id: ID!
name: String
bioHash: String
pictureHash: String
bids: Int
bidsReceived: Int
sales: Int
bought: Int
totalSold: BigInt
totalBought: BigInt
isCreator: Boolean
isCollector: Boolean
bidding: [Auction!]!
biddingTotal: Int
selling: [Auction!]!
sellingTotal: Int
}
type Auction @entity {
id: ID!
intId: Int!
contract: Bytes!
tokenId: BigInt!
owner: Bytes!
duration: Int
reservePrice: BigInt
houseId: BigInt!
fee: Int
approved: Boolean
firstBidTime: BigInt
amount: BigInt!
bidder: Bytes!
created: BigInt
bids: Int
}
type Contract @entity {
id: ID!
address: Bytes!
name: String!
bids: Int
sales: Int
total: BigInt
lastUpdated: Int
totalAuctions: Int
auctions: [Auction!]!
}
type House @entity {
id: ID!
name: String!
curator: Bytes!
fee: Int
preApproved: Boolean
bids: Int
sales: Int
total: BigInt
feesTotal: BigInt
activeAuctions: Int
lastUpdated: Int
creators: [Account!]!
auctions: [Auction!]!
}
type Totals @entity {
id: ID!
houses: BigInt!
auctions: BigInt!
contracts: BigInt!
creators: BigInt!
collectors: BigInt!
active: [Auction!]!
}