Contract size printer
Name: contract-size
Prints contract bytecode sizes compared to EVM limits for both creation (initcode) and runtime bytecode.
Example
Parameters
Command-line name |
TOML name |
Type |
Default value |
Description |
--name (multiple) |
names |
List[str] |
[] |
Contract names to analyze (can be used multiple times). |
--all |
show_all |
bool |
False |
Include interfaces and libraries (default: contracts only). |
--details |
show_details |
bool |
False |
Show detailed information including full file paths. |
--files |
show_files |
bool |
False |
Show full source unit names. |
--sort-by |
sort_by |
str |
runtime |
Sort contracts by: runtime size (default), creation size, name , or file . |