0.1.9 • Published 2 years ago

hardhat-insight v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago