Skip to content

Commit

Permalink
edited schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowpuffpuff authored Jun 1, 2024
1 parent c86ee04 commit 84acbee
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions packages/subgraph/build/schema.graphql
Original file line number Diff line number Diff line change
@@ -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!
}

0 comments on commit 84acbee

Please sign in to comment.