web3-testing

Automate Solidity contract testing with Hardhat and Foundry.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/vorynkavitaliy/openclaw-assistent --skill web3-testing-vorynkavitaliy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: web3-testing
Source: https://github.com/vorynkavitaliy/openclaw-assistent/tree/main/.agents/skills/web3-testing
Command: npx skills add https://github.com/vorynkavitaliy/openclaw-assistent --skill web3-testing-vorynkavitaliy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Testing robust, realistic smart contracts is challenging; this skill provides a structured framework to validate Solidity code with Hardhat and Foundry, enabling reliable local and forked testing.

Core Features & Use Cases

  • Comprehensive unit and integration testing patterns for Solidity contracts.
  • Mainnet forking, fuzzing, and realistic scenario testing across local and forked networks.
  • Gas usage measurement, test coverage reporting, and verification workflows with CI readiness.
  • Use case: Validate a DeFi protocol by running end-to-end tests on a forked mainnet.

Quick Start

Run the full test suite to validate your Solidity contracts locally.

Frequently Asked Questions about web3-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Solidity smart contracts using Hardhat and Foundry together?▼

Test Solidity smart contracts by running unit and integration tests across local and forked networks. This framework combines Hardhat and Foundry to enforce consistent configuration while supporting fuzzing and verification workflows.

What is mainnet forking for smart contract testing and when do I need it?▼

Mainnet forking replicates live blockchain state locally to validate realistic scenarios. You need mainnet forking when testing DeFi protocols or complex integrations that depend on actual deployed contract states and liquidity.

How do I set up CI for Solidity testing with Hardhat and Foundry?▼

Set up CI integration by configuring automated test suites that run unit, integration, and fuzz tests on each commit. This framework provides verification workflows and gas usage measurement to ensure contract reliability before deployment.

Does this testing framework support fuzzing and gas usage measurement for smart contracts?▼

Yes, the framework supports fuzzing to identify edge cases and measures gas usage for contract optimization. It also generates test coverage reports to validate Solidity code comprehensively across both local and forked networks.

Do I need both Hardhat and Foundry installed to run these smart contract tests?▼

Yes, this framework requires both Hardhat and Foundry setups to function. It leverages the strengths of both environments to provide comprehensive testing patterns, including mainnet forking and verification workflows.

What's the best way to validate a DeFi protocol on a forked mainnet?▼

Run end-to-end tests on a forked mainnet to validate your DeFi protocol. This approach uses realistic scenario testing to ensure your Solidity contracts interact correctly with live network states and dependencies.