Skip to content

Implement Soroban contract analysis tools: call graph, evolution tracker, metadata extractor, and rule suppression#566

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Ibinola:feat/soroban-contract-tools
Jun 28, 2026
Merged

Implement Soroban contract analysis tools: call graph, evolution tracker, metadata extractor, and rule suppression#566
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Ibinola:feat/soroban-contract-tools

Conversation

@Ibinola

@Ibinola Ibinola commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

Contract Call Graph Generator (#480)

  • Parses Soroban contract source to generate function call graphs
  • Detects entry points, orphan functions, and call depth
  • Configurable max depth and cycle detection

Contract Evolution Tracker (#470)

  • Tracks version changes from changelog entries in contract source
  • Calculates complexity trends and growth rates
  • Generates recommendations for managing technical debt

Contract Metadata Extractor (#469)

  • Extracts detailed metadata: functions, parameters, storage keys, traits, events
  • Infers contract descriptions from detected patterns
  • Provides a summary with key insights and risk indicators

Rule Suppression Framework (#475)

  • Supports inline suppression annotations (e.g., // gasguard-suppress: GG001)
  • Configuration-based suppressions with scope globs
  • Filters suppressed findings from reports with audit records

Testing

  • All new modules include Jest unit tests
  • Existing test suite continues to pass

Closes #480
Closes #475
Closes #470
Closes #469

…data extractor, rule suppression

Implements four Soroban analysis tools for GasGuard:

- Contract Call Graph Generator: Analyzes Soroban contract source to
  generate function call graphs, detect entry points and orphan functions

- Contract Evolution Tracker: Tracks version changes and complexity
  trends across contract development history

- Contract Metadata Extractor: Extracts detailed metadata including
  functions, storage keys, traits, events, and dependencies

- Rule Suppression Framework: Supports inline and configuration-based
  suppression of rule findings with audit records

Closes MDTechLabs#480
Closes MDTechLabs#475
Closes MDTechLabs#470
Closes MDTechLabs#469
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

@mijinummi mijinummi merged commit db44d7c into MDTechLabs:main Jun 28, 2026
7 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