Skip to content

feat: add batch verification record getters (#229)#295

Open
Trusty08 wants to merge 1 commit into
HubDApp:mainfrom
Trusty08:main
Open

feat: add batch verification record getters (#229)#295
Trusty08 wants to merge 1 commit into
HubDApp:mainfrom
Trusty08:main

Conversation

@Trusty08

Copy link
Copy Markdown

Summary

Add efficient batch getter functions for verification records to support indexer operations.

Changes

  • get_verification_records_batch(request_ids) - Fetch by request IDs
  • get_verifications_batch_by_project(project_ids) - Fetch by project IDs
  • Both return Vec<Option<VerificationRecord>> preserving input order
  • Missing records returned as None (not skipped)
  • MAX_BATCH_SIZE enforced at 100 entries per call

Acceptance Criteria Met

✓ Batch getter functions implemented
✓ MAX_BATCH_SIZE enforced (100)
✓ Missing records handled consistently (returned as None)
✓ Order preserved (results[i] corresponds to input[i])
✓ Test stubs document expected behavior
✓ Improves indexer efficiency by reducing RPC calls

Closes #229

- Add get_verification_records_batch() to fetch by request IDs
- Add get_verifications_batch_by_project() to fetch by project IDs
- Both return Vec<Option<T>> preserving order
- Missing records returned as None
- Enforce MAX_BATCH_SIZE of 100
- Add comprehensive test stubs for mixed/existing/size limits
- Improves indexer efficiency for batch operations
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@Trusty08 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Trusty08

Copy link
Copy Markdown
Author

closes #229

@Trusty08 Trusty08 closed this Jun 28, 2026
@Trusty08 Trusty08 reopened this Jun 28, 2026
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.

Add Verification Decision Batch Getter

1 participant