GraphQL Schema
Market
type Market @entity {
id: ID!
factory: Bytes!
creator: Bytes!
marketName: String!
rules: String!
outcomes: [String!]!
outcomesSupply: BigInt!
lowerBound: BigInt!
upperBound: BigInt!
parentCollectionId: Bytes!
parentOutcome: BigInt!
parentMarket: Bytes!
conditionId: Bytes!
questionId: Bytes!
questionsIds: [Bytes!]!
templateId: BigInt!
encodedQuestions: [String!]!
payoutReported: Boolean!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
questions: [MarketQuestion!]! @derivedFrom(field: "market")
openingTs: BigInt!
hasAnswers: Boolean!
" finalizeTs is equal to 33260976000 (random big number) if there is any unanswered question, otherwise it contains the finalizeTs value of the lattest question. This allows us to filter multi scalar markets using `finalizeTs > now` for markets with pending answers, and `finalizeTs < now` for markets with pending execution "
finalizeTs: BigInt!
questionsInArbitration: BigInt!
index: BigInt!
}MarketsCount
Question
MarketQuestion
Condition
Position
Last updated