Giter Site home page Giter Site logo

hardhat-insight's Introduction

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.

hardhat-insight's People

Contributors

a-d-j-i avatar

Stargazers

Maxime Vanmeerbeck avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.