-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
107 lines (97 loc) · 2.29 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
type Piggy @entity {
id: ID!
from: Bytes! # address
collateral: BigInt! # uint256
lotSize: BigInt! # uint256
strike: BigInt! # uint256
expiryBlock: BigInt! # uint256
isEuro: Boolean! # bool
isPut: Boolean! # bool
RFP: Boolean! # bool
isOnAuction: Boolean! # bool
startBlock: BigInt # uint256
startPrice: BigInt # uint256
reservePrice: BigInt # uint256
auctionLength: BigInt # uint256
timeStep: BigInt # uint256
priceStep: BigInt # uint256
auctionDuration: BigInt # uint256
}
type TransferPiggy @entity {
id: ID!
from: Bytes! # address
to: Bytes! # address
tokenId: BigInt! # uint256
}
type UpdateRFP @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
collateralERC: Bytes! # address
premiumERC: Bytes! # address
dataResolverNow: Bytes! # address
dataResolverAtExpiry: Bytes! # address
reqCollateral: BigInt! # uint256
lotSize: BigInt! # uint256
strikePrice: BigInt! # uint256
expiry: BigInt! # uint256
isEuro: Boolean! # bool
isPut: Boolean! # bool
}
type ReclaimAndBurn @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
RFP: Boolean! # bool
}
type StartAuction @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
startBlock: BigInt! # uint256
startPrice: BigInt! # uint256
reservePrice: BigInt! # uint256
auctionLength: BigInt! # uint256
timeStep: BigInt! # uint256
priceStep: BigInt! # uint256
}
type EndAuction @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
RFP: Boolean! # bool
}
type SatisfyAuction @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
paidPremium: BigInt! # uint256
change: BigInt! # uint256
auctionPremium: BigInt! # uint256
}
type RequestSettlementPrice @entity {
id: ID!
feePayer: Bytes! # address
tokenId: BigInt! # uint256
oracleFee: BigInt! # uint256
dataResolver: Bytes! # address
}
type OracleReturned @entity {
id: ID!
resolver: Bytes! # address
tokenId: BigInt! # uint256
price: BigInt! # uint256
}
type SettlePiggy @entity {
id: ID!
from: Bytes! # address
tokenId: BigInt! # uint256
holderPayout: BigInt! # uint256
writerPayout: BigInt! # uint256
}
type ClaimPayout @entity {
id: ID!
from: Bytes! # address
amount: BigInt! # uint256
paymentToken: Bytes! # address
}