Skip to content

A hardhat plugin that list routine size and gas consumption

License

Notifications You must be signed in to change notification settings

a-d-j-i/hardhat-insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hardhat

hardhat-insight

Prints contract details based on the source-mapping (compiler AST output) with Hardhat

Hardhat-Insight plugin example.

What

This plugin has two uses:

  • read the compiler output and prints the size used by each routine and and estimate of the gas used.
  • compare the storage slots of different contracts (similar to Storage Layout Plugin based on the AST so it can support old solidity versions ( <0.5.13 )

Installation

npm install hardhat-insight

And add the following statement to your hardhat.config.js:

import "hardhat-insight";

Required plugins

Nothing required

Tasks

This plugin adds the following tasks to Hardhat:

  • insight: execute it to get contract detailed information.
  • checkStorage: check the storage differences between contracts.

Usage

You can select which contracts to print by passing the --only argument or you can exclude some contracts using --except.

There are no additional steps you need to take for this plugin to work.

About

A hardhat plugin that list routine size and gas consumption

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published