-
Notifications
You must be signed in to change notification settings - Fork 9
/
schema.graphql
243 lines (233 loc) · 5.36 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
type TransferEntity @entity {
id: ID!
blockId: String!
blockHash: String!
extrinsicId: String!
isSuccess: Boolean!
timestamp: Date!
from: String!
to: String!
currency: String!
amount: String!
amountRounded: Float!
}
type CollectionEntity @entity {
id: ID!
collectionId: String!
owner: String @index
offchainData: String!
nfts: [String]!
nbNfts: Int!
limit: Int
hasReachedLimit: Boolean!
isClosed: Boolean!
timestampCreated: Date!
timestampBurned: Date
timestampClosed: Date
timestampLimited: Date
}
type NftEntity @entity {
id: ID!
nftId: String!
auction: AuctionEntity
collection: CollectionEntity
owner: String @index
creator: String! @index
offchainData: String!
secretOffchainData: String
capsuleOffchainData: String
royalty: Float!
isCapsule: Boolean!
isCapsuleSynced: Boolean!
isSecret: Boolean!
isSecretSynced: Boolean!
delegatee: String @index
isDelegated: Boolean!
isSoulbound: Boolean!
isListed: Boolean!
typeOfListing: String
isRented: Boolean!
rentee: String
rentalContract: RentEntity
price: String
priceRounded: Float
marketplace: MarketplaceEntity
isTransmission: Boolean!
transmissionRecipient: String
transmissionProtocol: TransmissionEntity
createdAt: Date!
updatedAt: Date!
timestampCreated: Date!
timestampBurned: Date
timestampListed: Date
timestampRented: Date
timestampSecretAdded: Date
timestampConvertedToCapsule: Date
}
type NftOperationEntity @entity {
id: ID!
blockId: String!
extrinsicId: String!
nft: NftEntity!
from: String @index
to: String @index
collectionId: String @index
commissionFeeType: String
commissionFee: String
commissionFeeRounded: Float
listingFeeType: String
listingFee: String
listingFeeRounded: Float
price: String
priceRounded: Float
royalty: Float
royaltyCut: String
royaltyCutRounded: Float
marketplaceId: String @index
marketplaceCut: String
marketplaceCutRounded: Float
auctionStartPrice: String
auctionStartPriceRounded: Float
auctionBuyItNowPrice: String
auctionBuyItNowPriceRounded: Float
rentalContractStartBlock: Int
rentalContractDuration: String
rentalContractBlockDuration: Int
rentalContractMaxSubscriptionBlockDuration: Int
rentalContractFeeType: String
rentalContractFee: String
rentalContractFeeRounded: Float
transmissionProtocol: String
transmissionEndBlock: Int
timestamp: Date!
typeOfTransaction: String!
}
type RentEntity @entity {
id: ID!
nftId: String! @index
hasStarted: Boolean!
hasEnded: Boolean!
hasBeenCanceled: Boolean!
isExpired: Boolean!
renter: String! @index
rentee: String @index
startBlockId: Int
creationBlockId: Int!
durationType: String!
blockDuration: Int
maxSubscriptionBlockDuration: Int
isSubscriptionChangeable: Boolean
nextSubscriptionRenewalBlockId: Int
nbSubscriptionRenewal: Int
newTermsAvailable: Boolean
nbTermsUpdate: Int
acceptanceType: String!
acceptanceList: [String]
renterCanRevoke: Boolean!
revokedBy: String
rentFeeType: String!
rentFee: String!
rentFeeRounded: Float!
rentOffers: [String]
nbRentOffers: Int
totalRentOffersReceived: Int
renterCancellationFeeType: String
renterCancellationFee: String
renterCancellationFeeRounded: Float
renteeCancellationFeeType: String
renteeCancellationFee: String
renteeCancellationFeeRounded: Float
timestampCreated: Date!
timestampStarted: Date
timestampLastSubscriptionRenewal: Date
timestampLastTermsUpdate: Date
timestampLastOffer: Date
timestampEnded: Date
timestampCancelled: Date
timestampRevoked: Date
timestampExpired: Date
}
type MarketplaceEntity @entity {
id: ID!
marketplaceId: String! @index
owner: String! @index
kind: String!
commissionFeeType: String
commissionFee: String
commissionFeeRounded: Float
listingFeeType: String
listingFee: String
listingFeeRounded: Float
accountList: [String]
offchainData: String
collectionList: [String]
createdAt: Date!
updatedAt: Date!
timestampCreated: Date!
}
type Bidder @jsonField {
bidder: String!
amount: String!
amountRounded: Float!
timestampBid: Date
}
type AuctionEntity @entity {
id: ID!
nftId: String! @index
marketplaceId: String
creator: String! @index
startPrice: String
startPriceRounded: Float
buyItNowPrice: String
buyItNowPriceRounded: Float
startBlockId: Int
endBlockId: Int
isCompleted: Boolean!
isCancelled: Boolean!
isExtendedPeriod: Boolean!
bidders: [Bidder]!
nbBidders: Int
topBidAmount: String
topBidAmountRounded: Float
typeOfSale: String
timestampCreated: Date!
timestampEnded: Date
timestampLastBid: Date
timestampCancelled: Date
}
type AccountEntity @entity {
id: ID!
capsAmount: String
capsAmountFrozen: String
capsAmountTotal: String
capsAmountRounded: Float
capsAmountFrozenRounded: Float
capsAmountTotalRounded: Float
createdAt: Date!
updatedAt: Date!
}
type AggregateResultEntity @entity {
id: ID!
occurences: Int!
}
type TransmissionEntity @entity {
id: ID!
nftId: String! @index
from: String!
to: String!
isActive: Boolean!
isThresholdReached: Boolean!
protocol: String!
endBlock: Int
consentList: [String]
currentConsent: [String]
threshold: Int
cancellation: String
cancellationBlock: Int
createdAt: Date!
updatedAt: Date!
timestampCreated: Date!
timestampRemoved: Date
timestampUpdated: Date
timestampTransmitted: Date
}