Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EricR/sol-function-profiler
Solidity Contract Function Profiler
https://github.com/EricR/sol-function-profiler
ethereum solidity
Last synced: 2 months ago
JSON representation
Solidity Contract Function Profiler
- Host: GitHub
- URL: https://github.com/EricR/sol-function-profiler
- Owner: EricR
- License: mit
- Created: 2017-07-20T19:26:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T22:05:38.000Z (over 6 years ago)
- Last Synced: 2024-01-28T23:10:28.381Z (12 months ago)
- Topics: ethereum, solidity
- Language: JavaScript
- Size: 3.91 KB
- Stars: 80
- Watchers: 4
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- DeFi-Developer-Road-Map - Solidity function profiler - Solidity contract function profiler (Roadmap)
README
# 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
.--------------------------------------------------------------------------------------------------------.
| ~/contracts/mytoken.sol |
|--------------------------------------------------------------------------------------------------------|
| Contract | Function | Visibility | Constant | Returns | Modifiers |
|---------------|-------------------------------|------------|----------|-----------|--------------------|
| MyToken | () | public | false | | payable |
| MyToken | initTokenHolder(address,uint) | public | false | | onlyOwner |
| MyToken | balance(address) | public | true | uint | |
| MyToken | transferAll(address,address) | external | false | | onlyTokenHolder |
| MyToken | kill() | internal | false | | |
'--------------------------------------------------------------------------------------------------------'
```