Developer Ecosystem
Hardhat Tracer icon

Hardhat Tracer

Project

0xf5...6c51

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.

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.

Funding sources

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