0.1.9 • Published 8 months ago

hardhat-insight v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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

8 months ago

0.1.8

11 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago