{"repo":"zemse/hardhat-tracer","free":true,"listed":false,"github":"https://github.com/zemse/hardhat-tracer","clone":"git clone https://github.com/zemse/hardhat-tracer.git","description":"🕵️ allows you to see internal calls, events and storage operations in the console","language":"TypeScript","stars":364,"topics":["ethereum","hardhat","blockchain","solidity","events","trace","logs","evm"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"hardhat-tracer 🕵️ Allows you to see events, calls and storage operations when running your tests. - Installation - Usage - Test - Trace Tx - Trace Call - Calldata decoder - Address name tags - State overrides - Chai util - Programatically access trace info - Register --trace option to custom tasks - Print debug logs - Config parameters Installation Step 1: Install the package Step 2: Add to your hardhat.config.js file Usage Test You can just enable trace some code snippet in your tests: Trace Tx You can trace a mainnet transaction and ABIs/artifacts in your project and 4byte directory will be used to decode the internal message calls. Note: you can also use state overrides to override any state, e.g. things like adding console logs to the contracts involved in the trace or change balances. Trace Call You can trace a call on mainnet and ABIs/artifacts in your project and 4byte directory will be used to decode the internal message calls. Note: you can also use state overrides to override any state, e.g. things like adding console logs to the contracts involved in the trace or change balances. Calldata decoder If you are just looking for a quick decode of calldata, return data or Solidity\"s Custom Error: For decoding logs Address name tags You can set display names / name tags for unknown addresses by adding new entry to hre.tracer.nameTags object in your test cases, see following example: or can be set in hardhat config State overrides These state overrides are applied when th","default_branch":null,"files":null,"tree":[],"storefront":"/r/zemse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zemse/hardhat-tracer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}