Skip to content

feat: Enhance payout and status event filtering in the Human Protocol SDK#3314

Merged
portuu3 merged 2 commits intodevelopfrom
feat/sdk/get-payouts
May 5, 2025
Merged

feat: Enhance payout and status event filtering in the Human Protocol SDK#3314
portuu3 merged 2 commits intodevelopfrom
feat/sdk/get-payouts

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented May 5, 2025

Issue tracking

#3310

Context behind the change

  • Added chain_id parameter to PayoutFilter and StatusEventFilter classes for better network specificity.
  • Introduced pagination support (first, skip) and order direction in PayoutFilter.
  • Updated GraphQL queries to accommodate new filter parameters for payouts.
  • Implemented new StatusEventFilter class for filtering status events based on various criteria.
  • Enhanced EscrowUtils with methods to retrieve payouts, including validation for addresses and chain IDs.
  • Added comprehensive unit tests for the new payout functionality and updated existing tests for status events.
  • Refactored existing code to improve clarity and maintainability.

How has this been tested?

Executed some local tests and also ran unit tests

Release plan

Deploy new SDK version

Potential risks; What to monitor; Rollback plan

Check if syncJobStuses cron job is executed properly in Job Launcher

… SDK

- Added chain_id parameter to PayoutFilter and StatusEventFilter classes for better network specificity.
- Introduced pagination support (first, skip) and order direction in PayoutFilter.
- Updated GraphQL queries to accommodate new filter parameters for payouts.
- Implemented new StatusEventFilter class for filtering status events based on various criteria.
- Enhanced EscrowUtils with methods to retrieve payouts, including validation for addresses and chain IDs.
- Added comprehensive unit tests for the new payout functionality and updated existing tests for status events.
- Refactored existing code to improve clarity and maintainability.
@vercel
Copy link
Copy Markdown

vercel bot commented May 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
human-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 11:42am
human-dashboard-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 11:42am
staking-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 11:42am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview May 5, 2025 11:42am
faucet-server ⬜️ Ignored (Inspect) Visit Preview May 5, 2025 11:42am

@portuu3 portuu3 merged commit cc26284 into develop May 5, 2025
22 checks passed
@portuu3 portuu3 deleted the feat/sdk/get-payouts branch May 5, 2025 15:31
@portuu3 portuu3 mentioned this pull request May 5, 2025
15 tasks
flopez7 added a commit that referenced this pull request May 21, 2025
… SDK (#3314)

* feat: Enhance payout and status event filtering in the Human Protocol SDK

- Added chain_id parameter to PayoutFilter and StatusEventFilter classes for better network specificity.
- Introduced pagination support (first, skip) and order direction in PayoutFilter.
- Updated GraphQL queries to accommodate new filter parameters for payouts.
- Implemented new StatusEventFilter class for filtering status events based on various criteria.
- Enhanced EscrowUtils with methods to retrieve payouts, including validation for addresses and chain IDs.
- Added comprehensive unit tests for the new payout functionality and updated existing tests for status events.
- Refactored existing code to improve clarity and maintainability.

* Update docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants