·solidity-hardhat-development
!

solidity-hardhat-development

Solidity 智能合约的 Hardhat 3 开发工作流程。使用 Hardhat 3.x(hardhat、ignition、EDR)进行构建、测试或部署时使用。涵盖 ESM-first 项目设置、defineConfig、Solidity 原生测试、TypeScript 测试、多链支持、Harhat Ignition 部署和基于钩子的插件系统。触发涉及安全帽初始化、安全帽构建、安全帽测试、安全帽点火或基于安全帽的 Solidity 开发的任务。

13安装·2热度·@whackur

安装

$npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-hardhat-development

如何安装 solidity-hardhat-development

通过命令行快速安装 solidity-hardhat-development AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-hardhat-development
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:whackur/solidity-agent-toolkit。

SKILL.md

查看原文

Run npx hardhat --init to start. Hardhat 3 requires ESM, so set "type": "module" in your package.json. You need Node.js v22.10 or newer. Use defineConfig from hardhat/config for your configuration file.

The defineConfig pattern organizes your setup with solidity, networks, and plugins keys. Networks use type: "edr-simulated" for local testing or type: "http" for remote connections. Specify chainType as "l1", "op", or "generic". Use configVariable("KEY") for secrets to keep them out of your code. Build profiles allow different settings for production, like enabling the optimizer. Plugins must be explicitly listed...

Solidity tests use a Rust-powered runner and .t.sol files. These tests inherit from forge-std/Test.sol and support full vm cheatcodes like vm.prank and vm.deal. Fuzz testing works out of the box. TypeScript tests can use the Node.js test runner with Viem or Mocha with Ethers.js. Access network helpers through the networkHelpers property. Run npx hardhat test for all tests or npx hardhat test solidity for just Soli...

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-hardhat-development
分类
!安全工具
认证
收录时间
2026-02-21
更新时间
2026-03-10

Browse more skills from whackur/solidity-agent-toolkit

快速解答

什么是 solidity-hardhat-development?

Solidity 智能合约的 Hardhat 3 开发工作流程。使用 Hardhat 3.x(hardhat、ignition、EDR)进行构建、测试或部署时使用。涵盖 ESM-first 项目设置、defineConfig、Solidity 原生测试、TypeScript 测试、多链支持、Harhat Ignition 部署和基于钩子的插件系统。触发涉及安全帽初始化、安全帽构建、安全帽测试、安全帽点火或基于安全帽的 Solidity 开发的任务。 来源:whackur/solidity-agent-toolkit。

如何安装 solidity-hardhat-development?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-hardhat-development 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/whackur/solidity-agent-toolkit