Skip to content

Commit

Permalink
feat: Add labels to space queries (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Sep 28, 2024
1 parent c764455 commit 5ace7c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function formatSpace({
}
space.validation = space.validation || { name: 'any', params: {} };
space.treasuries = space.treasuries || [];
space.labels = space.labels || [];

space.verified = verified ?? null;
space.flagged = flagged ?? null;
Expand Down
8 changes: 8 additions & 0 deletions src/graphql/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ type Space {
voteValidation: Validation
delegationPortal: DelegationPortal
treasuries: [Treasury]
labels: [Label]
activeProposals: Int
proposalsCount: Int
proposalsCount1d: Int
Expand Down Expand Up @@ -614,6 +615,13 @@ type Treasury {
network: String
}

type Label {
id: String
name: String
description: String
color: String
}

type BoostSettings {
enabled: Boolean
bribeEnabled: Boolean
Expand Down

0 comments on commit 5ace7c0

Please sign in to comment.