Consensys / surya

A set of utilities for exploring Solidity contracts
Apache License 2.0
1.06k stars 118 forks source link

I love this project! and have a suggestion #166

Closed LuozhuZhang closed 1 year ago

LuozhuZhang commented 2 years ago

According to my current use, surya can only export the relationship between contract calls

Nevertheless, this feature is already very useful

But I found another requirement when reading the contract source code:

Like the zkSync v1 contract source code, I'm looking to find the entry file when I read it, so maybe surya can do a graph between the import files and export files

This way I can clearly see which solidity file is the base file and which solidity file calls other files. Very useful for reading source code

Just like this 👇

WechatIMG17369

GNSPS commented 2 years ago

Hey @LuozhuZhang! 😊 👋

We do have the inheritance graph command that already presents you with the inheritance order. Is this something that fits your needs or were you looking for something else?