Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 20 additions & 39 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,30 @@
## Summary
## πŸ”— Related Issue
Closes #issue-number

Closes #[issue number]
---

Briefly describe what this PR does in 2-3 sentences.
## πŸ”– Title
<!-- Brief and clear. Describe the specific task -->

## This repo is for the NestJS backend API only
---

Before submitting, confirm your changes belong here:
## πŸ“ Description
<!-- Describe the changes made in this PR. What problem does it solve? -->

- [ ] My changes are inside src/ or test/
- [ ] I have NOT added React, React Native,
or frontend component files
- [ ] I have NOT added Rust or Soroban contract code
- [ ] This is NestJS/TypeScript backend work
---

## Type of change
## πŸ”„ Changes Made
<!-- List the main changes in this PR -->
- [ ] <!-- Change 1 -->
- [ ] <!-- Change 2 -->
- [ ] <!-- Change 3 -->

- [ ] Bug fix
- [ ] New endpoint
- [ ] New service or module
- [ ] Database migration
- [ ] Background job
- [ ] Test coverage
---

## Testing
## πŸ“Έ Screenshots (if applicable)
<!-- Add screenshots or GIFs if the changes affect the UI -->

- [ ] npm run build passes with zero TypeScript errors
- [ ] npm test passes β€” all 184+ existing tests pass
- [ ] No new `any` types introduced anywhere
- [ ] Swagger decorators added to every new endpoint
- [ ] Migration file created for any schema changes
- [ ] New unit tests written for new service methods
---

## Context files reviewed

- [ ] context/architecture-context.md
- [ ] context/code-standards.md
- [ ] context/progress-tracker.md updated

## Mandatory before requesting review

Running these must all exit 0:
npm run build
npm test

If either fails, fix it before opening this PR.
PRs with failing CI checks will be closed without review.
PRs that reduce the test count will be rejected.
## πŸ—’οΈ Additional Notes
<!-- Any additional information, concerns, or context for reviewers -->
10 changes: 10 additions & 0 deletions context/progress-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ pure chore/docs commits). Direct pushes to main must also be logged here.

---

## 2026-07-19

- Wired `LiquidityContractClient` (restored under `src/blockchain/contracts/liquidity-contract.client.ts`) into `LiquidityService` constructor.
- Read contract ID from `ConfigService` under `LIQUIDITY_POOL_CONTRACT_ID`.
- Replaced placeholder deposit/withdraw XDR strings in `LiquidityService` with real transaction simulation and assembly (`buildUnsignedXdr`).
- Mapped smart contract simulation errors (e.g., custom error codes like 100-104) to HTTP 400 (`BadRequestException`) with typed error codes.
- Added E2E test `test/e2e/liquidity.e2e-spec.ts` asserting transaction XDR parsing and contract simulation error mapping.
- Updated existing `test/e2e/modules/liquidity/liquidity-flow.e2e-spec.ts` to mock the new `LiquidityContractClient` structure.
- Updated `test/unit/modules/liquidity/liquidity.service.spec.ts` unit tests.

## 2026-07-16

- Added wallet-bound user roles (sponsor/vendor/mentor): `role` column
Expand Down
11 changes: 11 additions & 0 deletions src/blockchain/blockchain.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { SorobanService } from './soroban/soroban.service';
import { LiquidityContractClient } from './contracts/liquidity-contract.client';

@Module({
imports: [ConfigModule],
providers: [SorobanService, LiquidityContractClient],
exports: [SorobanService, LiquidityContractClient],
})
export class BlockchainModule {}
Loading
Loading