Skip to content

Add integration tests for held_since per-holder timestamp in creator holders endpoint - #498

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
10xwhoman:test/holders-held-since-integration
Jun 27, 2026
Merged

Add integration tests for held_since per-holder timestamp in creator holders endpoint#498
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
10xwhoman:test/holders-held-since-integration

Conversation

@10xwhoman

Copy link
Copy Markdown
Contributor

Summary

  • Adds creator-holders-held-since.integration.test.ts with 6 tests for the GET /creators/:id/holders endpoint
  • Verifies each holder's held_since reflects their first-buy createdAt timestamp (not updated on subsequent buys)
  • Tests ISO 8601 format, distinct timestamps across holders, and correct forwarding of sort=held_since query param

Test plan

  • npm test -- creator-holders-held-since passes (6 tests)
  • Covers: first-buy timestamp preserved, second-buy doesn't update held_since, ISO 8601 format, 3-wallet distinct timestamps, sort param forwarding

Closes #493

…tamp per holder

Verifies that GET /creators/:id/holders returns held_since equal to
the KeyOwnership.createdAt of each wallet's first buy, including:
- Three wallets with distinct first-buy timestamps each show their own
- A wallet that bought twice shows the earliest buy timestamp, not the latest
- held_since values serialise to ISO 8601 format
- sort=held_since passes the correct query parameter to the service

Closes accesslayerorg#493
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@10xwhoman 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

@Chucks1093
Chucks1093 merged commit 1bf5ac9 into accesslayerorg:main Jun 27, 2026
1 check 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 integration test for key holders list returning correct held_since for each wallet

2 participants