naddison36 / sol2uml

Solidity contract visualisation tool
MIT License
1.16k stars 275 forks source link

Relationship with SOLIDITY 2 UML #30

Closed dtopia-me closed 3 years ago

dtopia-me commented 3 years ago

Hi there, what's the relationship between your package sol2uml and the solidity plug-in SOLIDITY 2 UML?

naddison36 commented 3 years ago

I don't know. Do you have a link to solidity plug-in SOLIDITY 2 UML? What's it a plug-in for?

dtopia-me commented 3 years ago

For a given smart contract in Remix IDE, the plug-in can give me a graph like this. Not exactly sure if I was doing it right. Hence googling to find confirmations.

image

naddison36 commented 3 years ago

That looks like sol2uml output so I'd say the Remix IDE plug-in is using sol2uml

naddison36 commented 3 years ago

Here's the proposal to add sol2uml as plug-in to Remix https://github.com/Machinalabs/remix-plugin-proposals/issues/4 I've haven't found where the source code for the plug-in is yet

dtopia-me commented 3 years ago

This could go big as the complexity of DApp smart contracts is getting higher.

naddison36 commented 3 years ago

Yes, it can get very big. That's why sol2uml has some options to filter stuff out. eg

  -b, --baseContractNames <value>              only output contracts connected to these comma separated base contract names
  -d, --depthLimit <depth>                     number of sub folders that will be recursively searched for Solidity files. Default -1 is unlimited (default: -1)
  -a, --hideAttributes                         hide class and interface attributes
  -p, --hideOperators                          hide class and interface operators/functions
  -e, --hideEnums                              hide enum types
  -s, --hideStructs                            hide data structures
  -l, --hideLibraries                          hide libraries
  -t, --hideInterfaces                         hide interfaces