Skip to content

Conversation

@foodaka
Copy link
Collaborator

@foodaka foodaka commented Sep 2, 2025

@linear
Copy link

linear bot commented Sep 2, 2025

AAVE-1467 userHistory - React hook and SDK logic

API Endpoint:

userHistory(request: UserHistoryRequest!): PaginatedUserHistoryResult!

Reference the main ticket to see full request and response types.

@linear
Copy link

linear bot commented Sep 2, 2025

AAVE-1451 userSummaryHistory - React hook and SDK logic

API Endpoint:

userSummaryHistory(request: UserSummaryHistoryRequest!): [UserSummaryHistoryItem]!

Reference the main ticket to see full request and response types.

* ```ts
* const result = await userSummaryHistory(client, {
* user: evmAddress('0x742d35cc…'),
* window: 'LAST_WEEK',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's define an enum, bind it in the graphql.ts to the corresponding scalar name, and use it here.

Copy link
Collaborator

@cesarenaldi cesarenaldi Sep 2, 2025

Choose a reason for hiding this comment

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

I believe TimeWindow enum might already exist unless we deleted it, not sure if contains 'all' variant.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah i think we had itt

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, updated in 5c988ec

@linear
Copy link

linear bot commented Sep 2, 2025

AAVE-1511 hubAssets - React hook and SDK logic

API Endpoint:

hubAssets(request: HubAssetsRequest!): [HubAsset!]!

Reference the main ticket to see full request and response types.

* user: evmAddress('0x742d35cc…'),
* chainId: chainId(1),
* activityTypes: ['SUPPLY', 'BORROW', 'WITHDRAW', 'REPAY'],
* pageSize: 'FIFTY',
Copy link
Collaborator

Choose a reason for hiding this comment

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

enum to use PageSize (probably already defined)

* const { data, error, loading } = useUserHistory({
* user: evmAddress('0x742d35cc…'),
* chainId: chainId(1),
* activityTypes: ['SUPPLY', 'BORROW', 'WITHDRAW', 'REPAY'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

new enum to define and use in the example

@foodaka foodaka merged commit 5734f66 into main Sep 3, 2025
4 of 6 checks passed
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.

3 participants