{"repo":"solidstate-network/hardhat-contract-sizer","free":true,"listed":false,"github":"https://github.com/solidstate-network/hardhat-contract-sizer","clone":"git clone https://github.com/solidstate-network/hardhat-contract-sizer.git","description":"Calculate Ethereum contract sizes with Hardhat 📐","language":"TypeScript","stars":74,"topics":["buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode","hardhat"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Hardhat Contract Sizer Output Solidity contract sizes with Hardhat. Versions of this plugin prior to 3.0.0 were released as hardhat-contract-sizer , outside of the @solidstate namespace. Versions of this plugin prior to 2.0.0 were released as buidler-contract-sizer . Installation Usage Load plugin in Hardhat config: Add configuration under the contractSizer key: option description default -------------- --------------------------------------------------------------------------------------------------------------------------- ------- alphaSort whether to sort results table alphabetically (default sort is by contract size) false runOnCompile whether to output contract sizes automatically after compilation false flat whether to hide the full path to the compilation artifact and output only the contract name false strict whether to throw an error if any contracts exceed the size limit false only Array of String matchers used to select included contracts, defaults to all contracts if length is 0 [] except Array of String matchers used to exclude contracts [] unit unit of measurement for the size of contracts, which can be expressed in 'B' (bytes), 'kB' (kilobytes) or 'KiB' (kibibytes) KiB Additional configuration options are provided by @solidstate/hardhat-git , which is included as a dependency. Run the included Hardhat task to output compiled contract sizes: By default, the hardhat compile task is run before sizing contracts. This behavior can be disabled with the --no-compile f","default_branch":null,"files":null,"tree":[],"storefront":"/r/solidstate-network","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/solidstate-network/hardhat-contract-sizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}