You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the proposed schema. @nenadjaja needs this to work on the front end with mock data. It will need input from @yanivtal
typeProject {
id: ID! # From IPFS / off chain storagename: String!description: String!website: Stringtwitter: Stringgithub: String # Make sure we call it github or something elseavatar: Stringimage: StringipfsHash: String!categories: [Category!]! # From smart contracts directlyowner: UserisChallenged: Boolchallenges: [Challenge]
isWhitelistedProject: Bool! # check with BrandoncreatedAt: Int! # This would allow you to know when it will become a full member toodelegateAddress: Bytes # Null if no delegate is setisRepresentative: Bool # Derived from smart contract eventstotalVotes: Int!reputation: Int! # All votes a Project has madevotes: [Vote] @derivedFrom(field: "projectID")
}
typeCategory {
id: ID!name: String!description: String!slug: String!projects: [Project]
subcategories: [Category] @derivedFrom(field: "ID")
}
typeChallenge {
id: ID!description: StringcreatedAt: Int!votesFor: Int!votesAgainst: Int!project: Project!owner: Bytes!resolved: Bool! # means it's a past challengevotes: [Vote] @derivedFrom(field: "challengeID")
}
# For global variablestypeEverest {
id: ID!period: Int! # how long the challenge will lastvotingPeriodDuration: Int!whitelistPeriodDuration: Int!challengeDeposit: BigInt!applicationFee: BigInt!approvedToken: Bytes!reserveBank: Bytes!registry: Bytes!
}
typeVote {
id: ID! # concatenation of challenge ID and voter addresschallenge: Challenge!choice: Choice!
}
enumChoice {
RemoveProject KeepProject
}
# Decide what we want to show from 3box (example: https://3box.io/0xbeb1faa6e7e39c7d9bdab03a7a362fe9d73d7c61/details)typeUser {
id: ID!name: Stringbio: Stringprojects: [Project]
challenges: [Challenge] # challenges you startedvotes: [Project] # participation in other people's challenges
}
The text was updated successfully, but these errors were encountered:
Below is the proposed schema. @nenadjaja needs this to work on the front end with mock data. It will need input from @yanivtal
The text was updated successfully, but these errors were encountered: