Skip to content

Instantly share code, notes, and snippets.

@ligi
Created January 24, 2020 04:23
Show Gist options
  • Save ligi/e4c3c8212fc5a6ae43a27adb9fecbccd to your computer and use it in GitHub Desktop.
Save ligi/e4c3c8212fc5a6ae43a27adb9fecbccd to your computer and use it in GitHub Desktop.
solidity files: 6331
contracts with a single sol file: 3879
all @notice's: 13941
unique @notice's: 3378
->tokenAmount: 23
->format Date: 3
->format since: 0
->ENS lookup: 0
->reverseENS lookup: 0
->Percentage formatting: 10
->radspec: 4
->ternary operator: 15
->bracket: 91
->multiplication: 5
->subtraction: 6
@tschubotz
Copy link

Hey @ligi,
Thanks for starting this. Could help me understand this data? I'm having some trouble.

solidity files: 6331

Does that mean there are 6331 verified contracts on Etherscan?

contracts with a single sol file: 3879
all @notice's: 13941

That's both clear.

unique @notice's: 3378

Is that the number of unique functions in those contracts that had a natspec annotation?

->tokenAmount: 23
->format Date: 3
->format since: 0
->ENS lookup: 0
->reverseENS lookup: 0
->Percentage formatting: 10
->radspec: 4
->ternary operator: 15
->bracket: 91
->multiplication: 5
->subtraction: 6

What do these numbers mean? I assume you tried to categorize the types of annotated contracts or functions.

cc @rmeissner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment