Skip to content

feat: contract monitoring dashboard, invariant/security tests & audit prep#915

Merged
Devsol-01 merged 1 commit into
Devsol-01:mainfrom
euniceotowo:feature/contract-monitoring-tests-audit
Jun 2, 2026
Merged

feat: contract monitoring dashboard, invariant/security tests & audit prep#915
Devsol-01 merged 1 commit into
Devsol-01:mainfrom
euniceotowo:feature/contract-monitoring-tests-audit

Conversation

@euniceotowo

Copy link
Copy Markdown
Contributor

Summary

Resolves four contract-related issues in one cohesive PR.

Changes

#880 – Contract Invariant Tests

  • Added contracts/tests/invariant_tests.rs with 13 tests
  • Covers: non-negative balances, exact net-amount tracking, zero/negative/overdraft rejection, fee ≤ deposit, property-based testing, overflow catch, pause blocking

#881 – Integration Tests with Backend

  • Added backend/test/contract-backend-integration.e2e-spec.ts with 15 tests
  • Tests full path: IndexerService init → event processing → DLQ routing → API endpoints
  • StellarService is Jest-mocked (no live network required)

#884 – Contract Monitoring Dashboard

  • Added frontend/app/dashboard/contract-monitor/page.tsx
  • Live/offline status, auto-refresh every 15s, stat cards, event table, alert banners
  • Added GET /blockchain/indexer/status endpoint to blockchain.controller.ts
  • Added Contract Monitor nav link to Sidebar.tsx

#885 – Security Audit Preparation

  • Added contracts/tests/security_tests.rs with 11 security-focused tests
  • Added contracts/docs/THREAT_MODEL.md: full STRIDE threat table, attack scenarios, known issues, pre-audit checklist

Closes

Closes #880
Closes #881
Closes #884
Closes #885

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nestera Error Error Jun 2, 2026 3:05am

@drips-wave

drips-wave Bot commented Jun 2, 2026

Copy link
Copy Markdown

@euniceotowo 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

@Devsol-01 Devsol-01 merged commit a99f174 into Devsol-01:main Jun 2, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants