·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