/sol-function-profiler

Solidity Contract Function Profiler

Primary LanguageJavaScriptMIT LicenseMIT

Solidity Function Profiler

A command line tool that generates a human-consumable report listing a contract's functions. This is useful during manual code review to understand what functions are made public, use which modifiers, and so on.

Usage Example:

$ npm install
...
$ node index.js ~/contracts/mytoken.sol
Contract Function Visibility Constant Returns Modifiers Static Analysis Test Coverage Functional Analysis
Managed Managed() public false ✅ ☑️
Managed transferManagement(address) public false managerOnly ✅ ☑️
Managed acceptManagement() public false ✅ ☑️

Note that you may have to delete the title and some lines to make it looks like the table above.