Skip to content

Commit e0e88a6

Browse files
committed
feat: kyc/aml module, tvl growth tracker, 1k concurrent + 10k stress tests
Phase 12 - kyc.rs: community-governed AML/KYC with KycRegistry and AmlScreener. Permissionless by default; governance toggles screening_enabled. Sanctions list, risk-scored KYC records, whitelist bypass, 15 tests covering all paths. Phase 9 - liquidity_mining.rs: TvlGrowthTracker with WoW/MoM growth rates in bps, competitor gap report (vs Wormhole/Across/Stargate), Y1 $100M target progress, 7 new tests. Phase 11 - integration.rs: test_1000_concurrent_transfers runs 1 000 proof tasks gated by a CPU-bounded semaphore; asserts 0% error rate. Testing infra - security.rs: validator_stress module with batch_pipeline_handles_10k_events_correctly (exact batch IDs + sizes) and multisig_bundle_stable_under_flood (1 000 bundles signed + verified). Tests: 387/387 lib passing (was 366). Checklist items ticked.
1 parent a125818 commit e0e88a6

6 files changed

Lines changed: 978 additions & 5 deletions

File tree

Checklist.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ status: production-ready (testing: 366/366 relayer lib, 30/30 security, 18/18 in
319319
- [x] $10M over 6 months for lps — liquidity_mining.rs TOTAL_REWARD_BUDGET=10_000_000, 26 epochs
320320
- [x] epoch-based distribution with early-bird 2x boost + loyalty 1.5x boost — liquidity_mining.rs compute_boost_bps()
321321
- [x] anti-gaming: 24h minimum deposit, 25/75 immediate/vesting split — liquidity_mining.rs MIN_DEPOSIT_DURATION_SECS
322-
- [ ] measure tvl growth rate vs similar programs
322+
- [x] measure tvl growth rate vs similar programs — TvlGrowthTracker in liquidity_mining.rs: wow/mom growth bps, competitor gap report vs Wormhole/Across/Stargate, Y1 target progress
323323

324324
---
325325

@@ -366,7 +366,7 @@ status: production-ready (testing: 366/366 relayer lib, 30/30 security, 18/18 in
366366
- [x] unit tests: 80%+ code coverage — 366 tests across all modules
367367
- [x] integration tests: mainnet forking (anvil) — relayer/tests/integration.rs (no live node needed)
368368
- [ ] e2e tests: real transfers on testnet
369-
- [ ] load tests: 1000 concurrent transfers
369+
- [x] load tests: 1000 concurrent transfers — tests/integration.rs test_1000_concurrent_transfers
370370

371371
- [x] error handling & debugging
372372
- [x] clear error messages vs cryptic sdk errors — all modules use typed errors (GovernanceError, AmmError, etc.)
@@ -391,7 +391,7 @@ status: production-ready (testing: 366/366 relayer lib, 30/30 security, 18/18 in
391391
- [x] spend limits: per-tx ($500k), daily ($1M), monthly ($10M) — enterprise.rs DEFAULT_*_LIMIT_CENTS
392392

393393
- [x] compliance features
394-
- [ ] aml/kyc integration (optional, community-governed)
394+
- [x] aml/kyc integration (optional, community-governed) — kyc.rs KycRegistry + AmlScreener, governance-toggled screening_enabled flag
395395
- [x] transaction audit trail — audit_trail.rs AuditLog with SHA-256 hash-chain, indexed by sender/receiver/corridor
396396
- [x] regulatory reporting exports — audit_trail.rs export_csv() + export_json()
397397

@@ -453,7 +453,7 @@ track these vs competitors weekly:
453453
- [x] load testing harness
454454
- [x] concurrent transfer generator — bin/load_test.rs with --concurrency / --total flags
455455
- [x] measure queue depth + latency under load — p50/p95/p99 per run level + metrics snapshot
456-
- [ ] stress test validator with 10k pending txs
456+
- [x] stress test validator with 10k pending txs — tests/security.rs validator_stress module: batch_pipeline_handles_10k_events_correctly + multisig_bundle_stable_under_flood
457457

458458
- [x] security test suite
459459
- [x] double-spend attempt (should fail) — tests/security.rs sequence_binding module
@@ -491,4 +491,4 @@ track these vs competitors weekly:
491491

492492
---
493493

494-
last updated: 2026-03-31
494+
last updated: 2026-04-01

0 commit comments

Comments
 (0)