Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hardhat-contract-sizer

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-contract-sizer

Output Solidity contract sizes with Hardhat

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38K
increased by7.11%
Maintainers
1
Weekly downloads
 
Created
Source

Hardhat Contract Sizer

Output Solidity contract sizes with Hardhat.

Versions of this plugin prior to 2.0.0 were released as buidler-contract-sizer.

Installation

yarn add --dev hardhat-contract-sizer

Usage

Load plugin in Hardhat config:

require('hardhat-contract-sizer');

Add configuration under the contractSizer key:

optiondescriptiondefault
alphaSortwhether to sort results table alphabetically (default sort is by contract size)false
runOnCompilewhether to output contract sizes automatically after compilationfalse
disambiguatePathswhether to output the full path to the compilation artifact (relative to the Hardhat root directory)false
contractSizer: {
  alphaSort: true,
  runOnCompile: true,
  disambiguatePaths: false,
}

Run the included Hardhat task to output compiled contract sizes:

yarn run hardhat size-contracts

Keywords

FAQs

Package last updated on 05 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc