Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Japanese version: /ja/doc/contracts/tooling.html

Tooling (Hardhat/Foundry/ethers/viem)

TL;DR

  • Smoke tests for ethers/viem/foundry are available in the repository.
  • Start with a minimal set: reads + call/estimate + receipt monitoring.

Minimal Flow

  • viem: tools/rpc-gateway/smoke/viem_smoke.ts
  • ethers: tools/rpc-gateway/smoke/ethers_smoke.ts
  • foundry: tools/rpc-gateway/smoke/foundry_smoke.sh

Pitfalls

  • Dropping revert data and losing root-cause visibility
  • Not storing tx hash and losing observability

Sources

  • tools/rpc-gateway/smoke/viem_smoke.ts
  • tools/rpc-gateway/smoke/ethers_smoke.ts
  • tools/rpc-gateway/smoke/foundry_smoke.sh