Skip to content

Add profiling, architecture docs, health monitoring and delegation - #1221

Open
Muhammadcodes112 wants to merge 4 commits into
Stellar-split:mainfrom
Muhammadcodes112:fix/issue-batch-1
Open

Muhammadcodes112 wants to merge 4 commits into
Stellar-split:mainfrom
Muhammadcodes112:fix/issue-batch-1

Conversation

@Muhammadcodes112

Copy link
Copy Markdown
  • Implement contract performance profiling tools #1190: Added perf_profiling.rs, which turns the per-operation profiles from record_compute_usage into metrics (average cost, spread, estimate drift, accuracy), an actionable insight per operation, and a report tracker (samples, flagged operations, hottest operation).
  • Create advanced architecture documentation #1188: Added docs/ADVANCED_ARCHITECTURE.md with the contract's architecture patterns, Mermaid diagrams, code examples from the repo, an optimization guide and a reference table, linked from ARCHITECTURE.md.
  • Add contract monitoring and alerting #1187: Added contract_health.rs on top of the existing monitoring stats: it counts alerts and failed deliveries in a check window, assesses Healthy/Degraded/Critical against configurable thresholds, and logs each check and status change.
  • Add invoice delegation support #1185: Added invoice_delegation.rs: per-delegate permission levels (View/Manage/Full) mapped to invoice actions, optional expiry, single and bulk revocation, and grant/revoke tracking.

Each new module is declared in contracts/split/src/lib.rs and has unit tests. I checked the changes by reading the code paths and tracing the logic. I did not build the crate or run the tests.

Closes #1190
Closes #1188
Closes #1187
Closes #1185

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant