Skip to content

Traverse

Static analysis tools for Solidity smart contracts. Creates call graphs, generates tests, analyzes storage patterns.

Visualize Your Contracts

Analysis of a production DeFi escrow platform (17 contracts, 580 functions, 790 edges):

Call Graph

DOT Call Graph

Sequence Diagram

Mermaid Sequence Diagram

Quick Start

bash
brew tap calltrace/tap && brew install traverse
sol2cg contracts/*.sol -o graph.dot
dot -Tsvg graph.dot -o graph.svg

Tools

ToolPurpose
sol2cgGenerate call graphs (DOT/Mermaid)
sol2testGenerate Foundry test stubs
sol-storage-analyzerMap storage reads/writes
storage-traceCompare storage access between functions
sol2bndGenerate interface bindings from Natspec

Performance

Smart Invoice benchmark (17 contracts, 580 functions, Apple M3):

  • Full analysis: ~500ms
  • DOT output: 206KB
  • Auto-chunks large Mermaid diagrams

Use Cases

Security Auditors: Map contract interactions, identify call patterns, assess storage vulnerabilities.

Developers: Visualize architecture, generate test suites, validate upgrades.

Protocol Teams: Document interactions, analyze call flows, ensure upgrade safety.

Editor Integration

What's Next