CLI Tool to List & Store Solidity Smart Contract Methods Attributes
MIT License
sol-profiler lists down the properties of all the contract methods which helps to visualize and review the definition of various contract methods involved at one glance. This is easy to use and user-friendly.
Note: sol-profiler does not ensure/guarantee any kind of security or correctness of any smart-contract.
profiles
in a .txt
file named with suffix _Profile
node_modules
abstract
and fallback
functionslibrary
and interface
contractsnpm install --global sol-profiler
or
npm install --save-dev sol-profiler
For DApp, one can provide its contract directory path and profile will be stored for each contract which can be referred in future to get the knowledge of the methods defined in various contract.
sol-profiler <dapp/contracts/or/any/directory/path>
It can be used for individual file as:
sol-profiler <solidity/contract/file/path>
It can also be added in the package.json
as:
{
"scripts": {
"generateProfile": "sol-profiler ./contracts/"
},
}
We have attached an extensive example i.e. sample.sol. For this, profiler result will be same as in below image :
Generated profile which get stored in .txt
file can be seen here.
sol-profiler is also available as Visual Studio Code Extension
Any kind of suggestion/feedback/contribution is most welcome!