scsr

Solidity Contract Size Reporter

Usage no npm install needed!

<script type="module">
  import scsr from 'https://cdn.skypack.dev/scsr';
</script>

README

SCSR: Solidity Contract Size Reporter

This command-line utility calculates the bytecode length of your solidity contracts and warns you if you are approaching maximum contract size limit.

Solidity Contract Size Reporter

Getting Started

sudo npm install scsr -g

CLI Arguments

  1. Path to truffle project (or similar) root. string
  2. Show detailed report. false or true

How to Use Solidity Contract Size Reporter?

Edit your package json and add an entry under scripts section.

  "scripts": {
    "compile": "truffle compile && scsr ./ true",
  },

and run

npm run compile