Skip to content

Commit

Permalink
feat: Add boost fields to space query (#823)
Browse files Browse the repository at this point in the history
* feat: Add boost fields to space query

* Rename disabled to enabled
  • Loading branch information
ChaituVR authored Mar 15, 2024
1 parent 2f68ea4 commit a1853f3
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -83,6 +83,7 @@ export function formatSpace({
space.voting.hideAbstain = space.voting.hideAbstain || false;
space.voteValidation = space.voteValidation || { name: 'any', params: {} };
space.delegationPortal = space.delegationPortal || null;
space.boost = space.boost || { enabled: true, bribeEnabled: false };
space.strategies = space.strategies?.map(strategy => ({
...strategy,
// By default return space network if strategy network is not defined
Expand Down
6 changes: 6 additions & 0 deletions src/graphql/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ type Space {
hibernated: Boolean
turbo: Boolean
rank: Float
boost: BoostSettings
created: Int!
}

Expand Down Expand Up @@ -549,6 +550,11 @@ type Treasury {
network: String
}

type BoostSettings {
enabled: Boolean
bribeEnabled: Boolean
}

type Vp {
vp: Float
vp_by_strategy: [Float]
Expand Down

0 comments on commit a1853f3

Please sign in to comment.