Skip to content

feat: add paginated stream enumeration view#754

Merged
greatest0fallt1me merged 3 commits into
Streampay-Org:mainfrom
drips-projects:feature/streams-pagination
Jun 29, 2026
Merged

feat: add paginated stream enumeration view#754
greatest0fallt1me merged 3 commits into
Streampay-Org:mainfrom
drips-projects:feature/streams-pagination

Conversation

@Joeloo1

@Joeloo1 Joeloo1 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Implements read-only paginated stream enumeration views for off-chain consumers.

Features

  • 6 view functions with cursor-based pagination
  • Filter by sender, recipient, status, or combinations
  • Bounded page size (MAX_PAGE_SIZE = 100)
  • Comprehensive tests and documentation

New Entrypoints

  • list_streams(start_after, limit)
  • list_streams_by_sender(sender, start_after, limit)
  • list_streams_by_recipient(recipient, start_after, limit)
  • list_streams_by_status(status, start_after, limit)
  • list_streams_recipient_status(recipient, status, start_after, limit)
  • list_streams_sender_status(sender, status, start_after, limit)

Documentation

  • Complete API docs in VIEWS_API.md
  • Feature overview in PAGINATION_FEATURE.md
  • Verification checklist in VERIFICATION_CHECKLIST.md

Closes #606

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@Joeloo1 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

@Joeloo1

Joeloo1 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

The CI failures are from pre-existing test errors in
test.rs
(not modified by this PR).

The contract library builds successfully:

cargo build --lib # ✅ PASS
cargo build --target wasm32-unknown-unknown --release # ✅ PASS
CI fails because --all-targets includes already-broken tests. This PR's code is clean and ready to merge.

Joeloo1 added 2 commits June 29, 2026 16:24
- Fix Next.js build: remove server-only re-exports (errorResponse, ErrorCode,
  ErrorEnvelope) from client-safe errors barrel to prevent next/headers import
  in client components
- Fix Clippy pedantic: resolve 127 warnings/errors across 8 Rust contract files
  (doc_markdown, needless_pass_by_value, unused variables, cast_lossless,
  missing Ledger trait import, tuple destructuring, deprecated API)
- Fix security.yml: correct typo vunn.via -> vuln.via in dependency scan script
@greatest0fallt1me greatest0fallt1me merged commit c5fce88 into Streampay-Org:main Jun 29, 2026
1 of 2 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.

Add paginated stream enumeration view

2 participants