aphd / solidity-metrics

6 stars 2 forks source link

Change to the API to generate the metrics #2

Closed apierr closed 5 years ago

apierr commented 5 years ago

Metric description

Parameter Description Data Type
Address The smart cotract Address on the ethereum blockchain address (20 bytes)
CV Compiler Version String
FS The First time the smart contract has been Seen on the blockchain Date
LS The Last time the smart contract has been Seen on the blockchain Date
NA Number of Asserts Number
NC Number of contracts Number
NCL Number of Comment Lines Number
NF Number of Functions Number
NFM Number of function modifiers Number
NM Number of Mapping types Number
NP Number of modifier Payable Number
NRq Number of requires Number
NRv Number of reverts Number
NSCL Number of Source Code Lines Number
McCC McCabe’s cyclomatic complexity Number
... ... ...

Output file

The output file of the script is a csv file with the parameters of the table listed above.

Address FS LS NA NC ...
0xd4d342fd...