logo
ProposalsVoters
©

2025 Agora, the onchain governance company

/
Twitter
/
Github
/
About
Developer Ecosystem
Hardhat Tracer icon

Hardhat Tracer

Project

0xf5...6c51
github.com

Allows to see internal message calls and more on Hardhat framework.

Appears in
34 ballots

Contribution

Problem: Debugging smart contracts was a huge pain for smart contract engineers back in 201x era. Solution: A hardhat plugin called "hardhat-tracer" has made debugging smart contracts on hardhat easier by allowing the developer to see the call tree with parsed calldata/returndata along with events, storage ops, and more EVM opcodes while running the tests. It also gives programmatic access to the trace information for writing more advanced tests. I've started this in 2019 for my personal use (even before Solidity console.log existed) and this tool was open-sourced as an installable hardhat plugin in 2020. It was again rewritten in 2022 to improve performance and add more features.

Contribution links

    github

    GitHub repository URL of hardhat-tracer plugin.

    world

    1inch code

    world

    Aave code

    world

    LayerZero code

    world

    Rainbow swaps code

    world

    Rari Capital code

    world

    Sushiswap code

    world

    PR Testimony by UMA for adding hardhat-tracer

    world

    Tweet Testimony by Weeb mentioning hardhat-tracer

    world

    Tweet Testimony by Euler Labs discovering unexpected gas costs

    world

    Tweet Testimony by Nick Addison mentioning hardhat-tracer

    world

    Tweet Testimony by Amadi Michaels mentioning hardhat-tracer

Impact

This tool has improved the ease of inspecting many situations on the EVM like finding revert causes during mainnet fork, unnecessary storage access, discovering unintended behaviour, various gas optimisations and more use cases. It has saved hours of debugging. Hence, it has gained adoption among numerous smart contract teams like 1inch, Aura Finance, Graph Protocol, Immunefi, LayerZero, Lyra Finance, Rainbow Wallet, Rareskills, Stargate, SushiSwap, UMA etc, just to name few who are related to the Optimism Collective.

Impact Metrics

  • # of downloads per week
    7K
  • # of github stars
    290
  • # of github dependents
    1.9K
  • Funding sources

    Other
    I was offered a grant in 1inch gov tokens (worth 5k$ now, I am hodling).
    10,000.00 USD