forked from aavegotchi/aavegotchi-baazaar-gbm-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
89 lines (79 loc) · 1.89 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
type Auction @entity {
id: ID! #generated auction ID
orderId: BigInt!
type: String! #erc1155 or erc721
tokenId: BigInt!
contractAddress: Bytes! #the contract address
highestBid: BigInt! #highest bid
highestBidder: Bytes! #highest bidder
lastBidTime: BigInt!
totalBids: BigInt!
claimed: Boolean!
#Auction Settings
# dueIncentives: BigInt
hammerTimeDuration: BigInt!
bidDecimals: BigInt!
stepMin: BigInt!
incMin: BigInt!
incMax: BigInt!
bidMultiplier: BigInt!
dueIncentives: BigInt
seller: Bytes
createdAt: BigInt
startsAt: BigInt
endsAt: BigInt
endsAtOriginal: BigInt
claimAt: BigInt
quantity: BigInt
presetId: Int
cancelled: Boolean
bids: [Bid!]! @derivedFrom(field: "auction")
}
type Bid @entity {
id: ID!
tokenId: BigInt
auctionID: BigInt
auction: Auction
auctionOrderId: BigInt
bidder: Bytes
amount: BigInt
outbid: Boolean
bidTime: BigInt
previousBid: BigInt
previousBidder: Bytes
auctionTimeLeft: BigInt
auctionEndTime: BigInt
contractAddress: Bytes
claimed: Boolean
type: String
}
type Incentive @entity {
id: ID!
auctionOrderId: BigInt!
tokenId: BigInt!
contractAddress: Bytes!
earner: Bytes!
amount: BigInt!
auctionID: BigInt!
receiveTime: BigInt!
type: String!
}
type Contract @entity {
id: ID!
biddingAllowed: Boolean!
}
type Statistic @entity {
id: ID!
erc1155Auctions: BigInt!
erc721Auctions: BigInt!
}
type User @entity {
id: ID!
bids: BigInt! #how many bids this user has placed
bidAmount: BigInt! #cumulative amount of bids in GHST
outbids: BigInt! # of times this user has outbid someone
payouts: BigInt! # of times this user has received payout
payoutAmount: BigInt! #cumulative amount of payouts in GHST
wins: BigInt!
auctionsAmount: BigInt!
}