Socket
Socket
Sign inDemoInstall

buidler-contract-sizer

Package Overview
Dependencies
393
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    buidler-contract-sizer

Output Solidity contract sizes with Buidler


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Install size
159 kB
Created
Weekly downloads
 

Readme

Source

Buidler Contract Sizer

Output Solidity contract sizes with Buidler.

Installation

yarn add --dev buidler-contract-sizer

Usage

Load plugin in Buidler config:

usePlugin('buidler-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
contractSizer: {
  alphaSort: true,
  runOnCompile: true,
}

Run the included Buidler task to output compiled contract sizes:

yarn run buidler size-contracts

TypeScript Support

For TypeScript compatibility, add 'node_modules/buidler-contract-sizer/type-extensions.d.ts' to the files array in tsconfig.json.

Keywords

FAQs

Last updated on 11 Sep 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc