internal balance tracking#159
Open
Opeyemi01-del wants to merge 56 commits into
Open
Conversation
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
…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
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
multi-chain-validator
Feat/ci cd pipeline
|
@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. |
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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 Configuration:
Checklist: