-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
53 lines (52 loc) · 1.33 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
type Auction @entity(immutable: false){
id: ID!
tokenContract: Bytes! # address
tokenId: BigInt! # uint256
auction_live: Boolean! # bool
auction_type: AuctionType!
auction_seller: Bytes! # address
auction_sellerFundsRecipient: Bytes! # address
auction_reservePrice: BigInt! # uint256
auction_highestBid: BigInt! # uint256
auction_highestBidder: Bytes! # address
auction_startTime: BigInt! # uint96
auction_currency: Bytes! # address
auction_firstBidTime: BigInt! # uint96
auction_duration: BigInt! # uint80
auction_FeeBps: Int! # uint16
auction_FeeRecipient: Bytes! # address
auction_events: [AuctionEvent!]! @derivedFrom(field: "auction")
auction_bids: [AuctionBid!]! @derivedFrom(field: "auction")
}
type AuctionEvent @entity (immutable: false) {
id: ID!
eventType: AuctionEventType
auction: Auction!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type AuctionBid @entity (immutable: false) {
id: ID!
first_bid: Boolean! # bool
extended_bid: Boolean! # bool
auction: Auction!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
enum AuctionEventType {
AUCTION_CREATED
AUCTION_RESERVE_PRICE_UPDATED
AUCTION_CANCELED
AUCTION_BID
AUCTION_ENDED
}
enum AuctionType{
CORE_ETH
CORE_ERC20
FINDER_ETH
FINDER_ERC20
LISTING_ETH
LISTING_ERC20
}