Skip to content

[codex] test creator purchases, posts, wallet auth, and balance sync - #720

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
Obiajulu-gif:codex/accesslayer-integration-703-712-717-718
Jul 29, 2026
Merged

[codex] test creator purchases, posts, wallet auth, and balance sync#720
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
Obiajulu-gif:codex/accesslayer-integration-703-712-717-718

Conversation

@Obiajulu-gif

Copy link
Copy Markdown
Contributor

Summary

  • add XLM balance guarding for creator-key purchases and prevent submission when underfunded
  • add Prisma-backed creator posts with authenticated creation and public listing
  • add signed Stellar wallet challenge XDRs with unique nonce memos and web_auth_domain
  • add an injectable key-balance reconciliation worker with correction logging
  • cover all four paths with focused integration and unit tests

Why

The requested test targets were not present on main, so this PR includes the minimal production routes, persistence model, and worker required for the tests to exercise real behavior.

Validation

  • pnpm exec prisma generate
  • pnpm exec jest --runInBand --runTestsByPath src/jobs/key-balance-sync.worker.test.ts src/modules/creator/buy.integration.test.ts src/modules/creator/post.integration.test.ts src/modules/auth/stellar-challenge.integration.test.ts — 12 tests passed
  • pnpm build
  • pnpm lint

Closes #703
Closes #712
Closes #717
Closes #718

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Obiajulu-gif 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

@Obiajulu-gif
Obiajulu-gif marked this pull request as ready for review July 29, 2026 09:34
@Chucks1093
Chucks1093 merged commit 0d30e2c into accesslayerorg:main Jul 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment