Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 59 additions & 66 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,49 @@ type Arbitrator @entity {
id: ID!
}

type LArbitrator @entity {
"The address of the arbitrator"
id: ID!
}

type EvidenceGroup @entity {
"evidenceGroupId@tcrAddress"
id: ID!
"Evidences posted to this evidenceGroupId"
evidences: [Evidence!]! @derivedFrom(field: "evidenceGroup")
"Number of evidences posted in this group"
numberOfEvidence: BigInt!
}

type Evidence @entity {
"evidenceGroupId@tcrAddress-number"
id: ID!
"The arbitrator's address."
arbitrator: Bytes!
"The evidence group"
evidenceGroup: EvidenceGroup!
"The address of the party that sent this piece of evidence."
party: Bytes!
"The URI of the evidence file."
URI: String!
"This is the <number>th evidence submitted (starting at 0) for <request>."
number: BigInt!
"When was this evidence posted"
timestamp: BigInt!
"Tx hash of the evidence submission"
txHash: Bytes!
"Name of the evidence"
name: String
"Title of the evidence"
title: String
"Description of the evidence"
description: String
"URI of the attached file"
fileURI: String
"File extension of the attached file"
fileTypeExtension: String
}

type Registry @entity {
"The registry address"
id: ID!
Expand Down Expand Up @@ -77,62 +120,6 @@ type MetaEvidence @entity {
URI: String!
}

type Evidence @entity {
"<Request.id>-<evidence number>"
id: ID!
"The arbitrator's address."
arbitrator: Bytes!
"The ID of the evidence group (see {L,}Request.evidenceGroupID)."
evidenceGroupID: BigInt!
"The address of the party that sent this piece of evidence."
party: Bytes!
"The URI of the evidence file."
URI: String!
"The item this evidence was submitted to."
item: Item!
"The latest request when this evidence was submitted."
request: Request
"This is the <number>th evidence submitted (starting at 0) for <request>."
number: BigInt!
"When was this evidence posted"
timestamp: BigInt!
}

type LEvidence @entity {
"<Request.id>-<evidence number>"
id: ID!
"The arbitrator's address."
arbitrator: Bytes!
"The ID of the evidence group (see {L,}Request.evidenceGroupID)."
evidenceGroupID: BigInt!
"The address of the party that sent this piece of evidence."
party: Bytes!
"The URI of the evidence file."
URI: String!
"The item this evidence was submitted to."
item: LItem!
"The latest request when this evidence was submitted."
request: LRequest
"This is the <number>th evidence submitted (starting at 0) for <request>."
number: BigInt!
"When was this evidence posted"
timestamp: BigInt!
}

type EvidenceGroupIDToLRequest @entity {
"<EvidenceGroupID>@<contract address>"
id: ID!
"LRequest ID"
request: LRequest!
}

type EvidenceGroupIDToRequest @entity {
"<EvidenceGroupID>@<contract address>"
id: ID!
"Request ID"
request: Request!
}

type LItem @entity {
"The id of the item in the subgraph entity. Format: <itemID>@<listaddress_lowercase>"
id: ID!
Expand Down Expand Up @@ -219,18 +206,14 @@ type LRequest @entity {
disputeOutcome: Ruling!
"Tracks each round of a dispute in the form rounds[roundID]."
rounds: [LRound!]! @derivedFrom(field: "request")
"The ID of the evidence group for this request."
evidenceGroupID: BigInt!
"The evidence group for this request."
evidenceGroup: EvidenceGroup!
"The total number of rounds on this request."
numberOfRounds: BigInt!
"Whether it was requested to add or remove the item to/from the list."
requestType: Status!
"The URI to the meta evidence used for this request."
metaEvidence: MetaEvidence!
"Evidence provided regarding this request (matching evidenceGroupID)."
evidences: [LEvidence!]! @derivedFrom(field: "request")
"Number of evidences."
numberOfEvidence: BigInt!
"The item this request belongs to."
item: LItem!
"The registry where this request was submitted."
Expand Down Expand Up @@ -273,6 +256,10 @@ type LRound @entity {
rulingTime: BigInt!
"The ruling given by the arbitrator."
ruling: Ruling!
"The tx hash of the moment appealing became possible"
txHashAppealPossible: Bytes
"The tx hash of the moment the round was appealed"
txHashAppealDecision: Bytes
"The moment the round was created."
creationTime: BigInt!
"The contributions made to this round."
Expand Down Expand Up @@ -321,6 +308,10 @@ type Round @entity {
rulingTime: BigInt!
"The ruling given by the arbitrator."
ruling: Ruling!
"The tx hash of the moment appealing became possible"
txHashAppealPossible: Bytes
"The tx hash of the moment the round was appealed"
txHashAppealDecision: Bytes
"The moment the round was created."
creationTime: BigInt!
"Whether this round was appealed"
Expand Down Expand Up @@ -383,16 +374,14 @@ type Request @entity {
disputeOutcome: Ruling!
"Tracks each round of a dispute in the form rounds[roundID]."
rounds: [Round!]! @derivedFrom(field: "request")
"The ID of the evidence group for this request."
evidenceGroupID: BigInt!
"The evidence group for this request."
evidenceGroup: EvidenceGroup!
"The total number of rounds on this request."
numberOfRounds: BigInt!
"Whether it was requested to add or remove the item to/from the list."
requestType: Status!
"The URI to the meta evidence used for this request."
metaEvidence: MetaEvidence!
"Number of evidences."
numberOfEvidence: BigInt!
"The item this request belongs to."
item: Item!
"The registry where this request was submitted."
Expand All @@ -403,6 +392,10 @@ type Request @entity {
resolutionTime: BigInt!
"Only set if the request was settled by a dispute. Used by the twitter bot"
finalRuling: BigInt
"The hash of the transaction that created this request."
creationTx: Bytes!
"The hash of the transaction that solved this request."
resolutionTx: Bytes
}

type HasPaidAppealFee @entity {
Expand Down
Loading