Skip to content

fix: resolve issues #499 #500 #501 #502 - #573

Merged
legend-esc merged 2 commits into
legend-esc:mainfrom
Chuks-coderr:fix/issues-499-500-501-502
Jul 25, 2026
Merged

fix: resolve issues #499 #500 #501 #502#573
legend-esc merged 2 commits into
legend-esc:mainfrom
Chuks-coderr:fix/issues-499-500-501-502

Conversation

@Chuks-coderr

Copy link
Copy Markdown
Contributor

#499 — Add THROTTLER_SKIP_IPS env var (comma-separated CIDR list) to ThrottlerGuard. Requests from matched IPs bypass throttling silently (no bypass headers). Includes parseCidr/isInSkipList helpers and 6 new test cases in throttler.guard.spec.ts. .env.example updated.

#500 — Expand AdminComponent with methodology registration form, required-approvals slider (1–N), and contract pause/unpause section with confirmation modal. AdminService/Controller now expose:
POST /admin/methodologies
GET /admin/nonce/:address
POST /admin/required-approvals
app.routes.ts /admin route now uses AdminComponent. api.service.ts updated with corresponding Angular methods. admin.component.spec.ts and updated admin.controller/service specs added.

#501 — Retire certificate endpoint refactored to use StreamableFile instead of @res() so NestJS interceptors remain active. Route renamed to GET /retirement/:id/certificate. Rate limit applied via Throttle({ limit: 10, ttl: 60_000 }). Spec verifies StreamableFile type, content-type, content-disposition, NotFoundException, and absence of @res() parameter.

#502 — OracleError codes renumbered from overlapping 119–129 range to canonical 400–410 range in contracts/mrv_oracle/src/lib.rs. oracle.service.ts gains mapOracleContractError() mapping codes 400–410 to HTTP exceptions. ERROR_CODES_REFERENCE.md created with full error table for all four contracts and migration notes.

chore — .gitignore pattern updated from test_snapshots/ to **/test_snapshots/ (covers all depths). All tracked Soroban test snapshot JSON files removed from the index (files remain on disk).

Summary

Changes

Layer(s) affected

  • Smart contracts (Rust / Soroban)
  • API (NestJS)
  • Frontend (Angular)
  • Shared types
  • Docs / config

Testing

  • cargo test passes
  • npm run test passes (api)
  • npm run test passes (frontend)
  • Manually tested on testnet

Checklist

  • No private keys or secrets committed
  • New functions have at least one test
  • Error codes follow the stable range (100–120)
  • Breaking changes documented below

Breaking changes

closes
closes #499
closese #500
closes #501
closes #502

…nd-esc#502

legend-esc#499 — Add THROTTLER_SKIP_IPS env var (comma-separated CIDR list) to
ThrottlerGuard. Requests from matched IPs bypass throttling silently
(no bypass headers). Includes parseCidr/isInSkipList helpers and 6
new test cases in throttler.guard.spec.ts. .env.example updated.

legend-esc#500 — Expand AdminComponent with methodology registration form,
required-approvals slider (1–N), and contract pause/unpause section
with confirmation modal. AdminService/Controller now expose:
  POST /admin/methodologies
  GET  /admin/nonce/:address
  POST /admin/required-approvals
app.routes.ts /admin route now uses AdminComponent. api.service.ts
updated with corresponding Angular methods. admin.component.spec.ts
and updated admin.controller/service specs added.

legend-esc#501 — Retire certificate endpoint refactored to use StreamableFile
instead of @res() so NestJS interceptors remain active. Route renamed
to GET /retirement/:id/certificate. Rate limit applied via
Throttle({ limit: 10, ttl: 60_000 }). Spec verifies StreamableFile
type, content-type, content-disposition, NotFoundException, and
absence of @res() parameter.

legend-esc#502 — OracleError codes renumbered from overlapping 119–129 range
to canonical 400–410 range in contracts/mrv_oracle/src/lib.rs.
oracle.service.ts gains mapOracleContractError() mapping codes
400–410 to HTTP exceptions. ERROR_CODES_REFERENCE.md created with
full error table for all four contracts and migration notes.

chore — .gitignore pattern updated from test_snapshots/ to
**/test_snapshots/ (covers all depths). All tracked Soroban test
snapshot JSON files removed from the index (files remain on disk).
@Chuks-coderr
Chuks-coderr requested a review from legend-esc as a code owner July 25, 2026 06:03
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Chuks-coderr 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

@legend-esc
legend-esc merged commit c565171 into legend-esc:main Jul 25, 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