From 84acbee7c8d1335ad3723d6cfd114050046deba9 Mon Sep 17 00:00:00 2001 From: rainbowpuffpuff <83903147+rainbowpuffpuff@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:44:32 +0200 Subject: [PATCH] edited schema --- packages/subgraph/build/schema.graphql | 50 ++++++++++++++++++++------ 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/packages/subgraph/build/schema.graphql b/packages/subgraph/build/schema.graphql index 11b0c71..9ef60f5 100644 --- a/packages/subgraph/build/schema.graphql +++ b/packages/subgraph/build/schema.graphql @@ -1,17 +1,45 @@ -type Greeting @entity { +type Bounty @entity { id: ID! - sender: Sender! - greeting: String! - premium: Boolean - value: BigInt - createdAt: BigInt! - transactionHash: String! + name: String! + description: String! + mediaURIHash: String! + reward: BigInt! + duration: BigInt! + judgeTime: BigInt! + maxProgress: BigInt! + creationBlock: BigInt! + creator: Bytes! + isActive: Boolean! + submissions: [Submission!] @derivedFrom(field: "bounty") + completed: Boolean! + numAcceptedSubmissions: BigInt! } -type Sender @entity { +type Submission @entity { + id: ID! + bounty: Bounty! + submitter: Bytes! + eegDataHash: Bytes! +} + +type Deposit @entity { + id: ID! + sender: Bytes! + amount: BigInt! +} + +type Payment @entity { + id: ID! + bounty: Bounty! + submission: Submission! + amount: BigInt! +} + +type User @entity { id: ID! address: Bytes! - greetings: [Greeting!] @derivedFrom(field: "sender") - createdAt: BigInt! - greetingCount: BigInt! + submissionCount: BigInt! + depositCount: BigInt! + paymentReceivedCount: BigInt! } +