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
16 changes: 16 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ jobs:
NODE_ENV: test
DATABASE_URL: postgresql://user:pass@localhost:5432/db
WALLET_ENCRYPTION_KEY: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2
# Non-secret stubs required by env.ts at module-load time
STELLAR_NETWORK: testnet
STELLAR_RPC_URL: https://rpc.example.com
STELLAR_AGENT_SECRET_KEY: SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VAULT_CONTRACT_ID: CDUMMYVAULTCONTRACTID
USDC_TOKEN_ADDRESS: CDUMMYUSDC
ANTHROPIC_API_KEY: smoke-anthropic-key
JWT_SEED: smoke-jwt-seed
JWT_SESSION_TTL_HOURS: '24'
JWT_NONCE_TTL_MS: '300000'
JWT_CLEANUP_INTERVAL_MS: '86400000'
TWILIO_AUTH_TOKEN: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
INTERNAL_SERVICE_TOKEN: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TRUSTED_IPS: 127.0.0.1
CORS_ORIGINS: '*'
HTTP_CLIENT_TIMEOUT_MS: '1000'

steps:
# Checkout repository
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

Express + TypeScript REST API for the NeuroWealth platform — AI-assisted portfolio management backed by Stellar smart contracts.

## Documentation

- **API Documentation**: [`docs/openapi.yaml`](docs/openapi.yaml) - Full OpenAPI 3.1 specification
- **SLO Guidance**: [`docs/SLO_GUIDANCE.md`](docs/SLO_GUIDANCE.md) - Latency budgets and performance targets
- **Observability**: [`docs/OBSERVABILITY.md`](docs/OBSERVABILITY.md) - Monitoring and alerting guidance
- **Runbook**: [`docs/RUNBOOK.md`](docs/RUNBOOK.md) - Production operations and incident response
- **Troubleshooting**: [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md) - Local development troubleshooting guide

## API Documentation

The full OpenAPI 3.1 specification lives at [`docs/openapi.yaml`](docs/openapi.yaml).
Expand Down Expand Up @@ -49,8 +41,6 @@ npm install
npm run dev
```

**Troubleshooting**: If you encounter issues during setup, see the [Troubleshooting Guide](docs/TROUBLESHOOTING.md) for common problems and solutions.

## Running tests

```bash
Expand Down
14 changes: 14 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# TODO - #219 Integration tests for deposit/withdraw flows

- [x] Inspect remaining code paths for deposit/withdraw + event cursor/DLQ handling

- [x] Implement integration test: happy-path deposit + withdraw with DB assertions

- [x] Implement integration test: error-path deposit/withdraw where event processing fails → DLQ row created

- [ ] Add/adjust Jest mocks for Stellar RPC and event listener handling so tests are deterministic
- [ ] Ensure test DB seeding creates: User, CustodialWallet (or wallet fixture), Session, EventCursor
- [ ] Update CI workflow (.github/workflows/node-ci.yml) env vars needed at module-load time for tests
- [ ] Run tests locally (jest) and ensure lint/typecheck passes
- [ ] Update TODO checklist to completed when green

Loading