Skip to content

feat: add creator key trading operations - #790

Merged
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
Akanimoh12:feat/key-trading-operations
Aug 26, 2026
Merged

feat: add creator key trading operations#790
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
Akanimoh12:feat/key-trading-operations

Conversation

@Akanimoh12

Copy link
Copy Markdown
Contributor

Summary

Implements the creator-key operational controls, persistence, price history, and Horizon settlement flow as one cohesive trade lifecycle change.

  • Adds JWT-admin protected pause and resume endpoints for creator keys, with audit events.
  • Rejects buy and multi-buy requests while a key is paused.
  • Persists circulatingSupply from confirmed buy/sell activity with three-attempt exponential retry.
  • Adds price-history retrieval at GET /api/v1/keys/:keyId/price-history with validated ranges, supported intervals, and a 500-point cap.
  • Adds signed Horizon webhook processing for pending purchase memos and ownership transfer audit events.
  • Adds Prisma schema and SQL migration for key operation state and pending purchases.

Validation

  • Editor diagnostics reported no errors in the touched TypeScript files.
  • pnpm exec prisma generate && pnpm build was attempted, but execution was cancelled by the local environment before it ran.

Closes #777
Closes #781
Closes #782
Closes #783

@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@Akanimoh12 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 8476900 into accesslayerorg:main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment