slither icon indicating copy to clipboard operation
slither copied to clipboard

Add storage variables and contract inheritance to `entry-points` printer

Open nisedo opened this issue 4 months ago • 1 comments

Summary

Enhances the entry-points printer to display state variables and contract inheritance alongside function entry points, providing a complete view of contract storage and entry points.

Changes

Added Features

  • State variables table with types, storage slots, and inheritance info
  • Full inheritance chain in contract headers (e.g., "Contract is Parent1 is Parent2")
  • Constructor, receive, and fallback functions (previously excluded, now included in purple color)

Output Example

Before:

Screenshot 2025-08-23 at 12 53 46

After:

Screenshot 2025-08-23 at 12 54 01

Files Changed

  • slither/printers/summary/entry_points.py - Enhanced implementation
  • README.md - Updated description

Same usage: slither . --print entry-points

nisedo avatar Aug 24 '25 08:08 nisedo

Removed the Storage Slots column for a cleaner output (8c1009a):

Screenshot 2025-08-24 at 14 22 49

nisedo avatar Aug 24 '25 12:08 nisedo