Skip to content

internal balance tracking#159

Open
Opeyemi01-del wants to merge 56 commits into
MissBlue00:mainfrom
Opeyemi01-del:main
Open

internal balance tracking#159
Opeyemi01-del wants to merge 56 commits into
MissBlue00:mainfrom
Opeyemi01-del:main

Conversation

@Opeyemi01-del
Copy link
Copy Markdown

@Opeyemi01-del Opeyemi01-del commented May 28, 2026

Closes #18


Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

MissBlue00 and others added 30 commits March 24, 2026 10:51
feat(api): implement system health check endpoint GET /health
- Add @nestjs/passport and passport-jwt for JWT authentication
- Create JwtStrategy extracting merchant_id from token payload
- Implement global JwtAuthGuard with @public() bypass decorator
- Add @CurrentMerchant() decorator to access req.user
- Mark health and root endpoints as public
feat(api): implement JWT authentication strategy and guards
- Add GET /treasury/reserves endpoint for public transparency
- Create TreasuryModule, TreasuryService, TreasuryController
- Include reserve ratio calculation for each asset
- Add TODO stubs for on-chain Stellar queries
- Add .env.example with required environment variables
Resolve conflicts:
- Keep TreasuryModule and AuthModule in app.module.ts
- Keep @stellar/stellar-sdk, passport, and passport-jwt in dependencies
feat(api): implement Proof-of-Reserves (PoR) API
- Add @nestjs/throttler for rate limiting protection
- Create ThrottlerRedisGuard tracking by merchant_id for auth routes
- Create ThrottlerStorageRedisService with TODO for Redis implementation
- Configure 100 req/min for public, 1000 req/min for auth routes
- Happy path: Registration -> Payment -> Confirmation -> Mint
- Error paths: invalid signatures, insufficient balances, rate limits
- Uses Jest and Supertest with real JwtAuthGuard/JwtStrategy
- Install jsonwebtoken as dev dep for test token generation
feat(api): implement rate limiting middleware
Document backup/restore, PITR, cross-region replication, and runbooks
for common payment gateway failures. Add dry-run drill scripts for
Windows PowerShell and POSIX shells.

Made-with: Cursor
…ger--openapi-documentation

feat: add swagger docs and route to /docs
…ntainers

feat(infra): configure multi-stage pnpm docker builds
- Fix unescaped quotes in checkout page
- Replace impure Math.random with stable state
- Remove unused imports
- Replace img tags with Next.js Image
MissBlue00 and others added 26 commits March 27, 2026 22:33
…uite

test: add comprehensive integration e2e test suite
Adds StellarService to payments-engine for blockchain transfers. Introduces a scheduled worker in the API to process pending redemptions using a mock Repository pattern until Prisma is fully integrated. Closes MissBlue00#20.
…drawal-processor

feat[MissBlue00#20]: implement withdrawal processor worker for pending redemptions
Made-with: Cursor
docs: add comprehensive API documentation for StellarPay backend
docs: add comprehensive SDK documentation for @stellar-pay/sdk-js
docs: add deployment and configuration guide
…idation

feat: setup global request validation and payment DTOs
feat: Implemented Add PaymentIntentType interface
feat(database): add prisma migrations, deploy scripts, and seed data
…-22-audit-logging

feat(api): implement centralized audit logging
…-recovery-procedures

Add disaster recovery procedures for the payment gateway
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

@Rocket1960 is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Opeyemi01-del 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

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.

Treasury: Implement internal balance tracking and accounting