Skip to content

feat(graphql): add SavingsGhoIncentiveQuery#162

Merged
mgrabina merged 5 commits intoSDK-779-rewards-hooksfrom
feat/savings-gho-incentive-v2
May 7, 2026
Merged

feat(graphql): add SavingsGhoIncentiveQuery#162
mgrabina merged 5 commits intoSDK-779-rewards-hooksfrom
feat/savings-gho-incentive-v2

Conversation

@mgrabina
Copy link
Copy Markdown
Contributor

@mgrabina mgrabina commented May 5, 2026

Summary

Adds SDK support for the savingsGhoIncentive backend query (merged in aave-v3-backend#208).

  • Sync schema.graphql + graphql-env.d.ts from staging
  • New MeritSavingsGhoIncentiveFragment in fragments/incentives.ts
  • SavingsGhoIncentiveQuery added to incentives.ts

This lets the UI replace its raw useQuery GraphQL call with the typed SDK query.

Usage

import { SavingsGhoIncentiveQuery } from '@aave/graphql';

const result = await client.query(SavingsGhoIncentiveQuery, { chainId: 1 });
// result.value is MeritSavingsGhoIncentive | null

Test plan

  • Verify SavingsGhoIncentiveQuery resolves correctly against staging
  • Confirm MeritSavingsGhoIncentive type has apr, claimLink, customMessage, customForumLink

- Download latest schema from staging (adds savingsGhoIncentive query
  and MeritSavingsGhoIncentive type)
- Add MeritSavingsGhoIncentiveFragment in fragments/incentives.ts
- Add SavingsGhoIncentiveQuery to incentives.ts
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 91e77f95b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/graphql/src/incentives.ts
Comment thread packages/graphql/src/fragments/reserve.ts
@mgrabina
Copy link
Copy Markdown
Contributor Author

mgrabina commented May 6, 2026

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

AGMASO and others added 2 commits May 7, 2026 13:08
feat: adds react hook useSavingsGhoIncentive & simplified request
@mgrabina mgrabina merged commit cf6ec54 into SDK-779-rewards-hooks May 7, 2026
1 check passed
@mgrabina mgrabina deleted the feat/savings-gho-incentive-v2 branch May 7, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants