一键导入
gas-report
Run gas analysis on contract functions and report costs. Use when the user asks about gas usage, optimization, or contract efficiency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run gas analysis on contract functions and report costs. Use when the user asks about gas usage, optimization, or contract efficiency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Comprehensive security audit of SaThuCoin contract, dependencies, deployment scripts, and scraper code. Only invoke manually — never auto-trigger.
Compile Solidity contracts and run the full test suite. Use when the user asks to test, run tests, or verify changes work.
| name | gas-report |
| description | Run gas analysis on contract functions and report costs. Use when the user asks about gas usage, optimization, or contract efficiency. |
| allowed-tools | Bash(npm run compile), Bash(npm run test:gas), Bash(npm run size) |
Run the full gas analysis pipeline for SaThuCoin and produce a clear summary.
npm run compile to ensure contracts are compilednpm run test:gas (sets REPORT_GAS=true and runs all tests)npm run size to get contract size informationProduce a structured summary with:
For each contract function (mint, mintForDeed, transfer, transferFrom, approve), report:
hardhat-contract-sizer outputUsing approximate Base chain gas prices:
Highlight any of the following if observed:
deed string parameter in mintForDeed — note that longer strings cost more gas due to calldatacontracts/SaThuCoin.sol (ERC20 + Ownable, 49 lines)hardhat.config.js)hardhat-gas-reporter is bundled with @nomicfoundation/hardhat-toolboxhardhat-contract-sizer is installed as a devDependency