This project provides a Python script to generate a Mermaid.js diagram representing the inheritance relationships between Solidity contracts using Slither.
Before running the script, ensure you have the python installed:
- Python (>= 3.6)
-
Clone this repository (if applicable) or download the
generate_mermaid_diagram.py
script. -
Install required Python packages:
pip install slither-analyzer pip install solc-select
-
Change the target_path Make sure the target_path variable holds the path to your protocol.
-
Run script
python generate_inheritance_md.py