返回顶部
w

web3-docs

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
231
下载量
0
收藏
概述
安装方式
版本历史

web3-docs

# Web3 Docs Current patterns and references for EVM development. Covers the full stack: contracts → testing → deployment → frontend integration. ## Stack Coverage | Layer | Tool | Reference | |-------|------|-----------| | Contracts | Solidity 0.8.x | `references/solidity.md` | | Framework | Foundry (forge/cast/anvil) | `references/foundry.md` | | Framework (alt) | Hardhat | `references/hardhat.md` | | Standards | OpenZeppelin 5.x | `references/openzeppelin.md` | | Standards | ERC-4626 (tokenized vaults) | `references/erc4626.md` | | Frontend (low-level) | Viem 2.x | `references/viem.md` | | Frontend (React) | Wagmi 2.x | `references/wagmi.md` | | Frontend (legacy) | ethers.js 6.x | `references/ethers.md` | ## Quick Lookup **Starting a new Foundry project:** See `references/foundry.md` → Project Setup **Starting a Hardhat project:** See `references/hardhat.md` → Installation **Writing an ERC-20:** See `references/openzeppelin.md` → ERC-20 **Building a yield vault (ERC-4626):** See `references/erc4626.md` → OpenZeppelin Implementation **First depositor attack on vaults:** See `references/erc4626.md` → First Depositor Attack **Connecting a wallet in React:** See `references/wagmi.md` → Quick Start **Reading contract state with Viem:** See `references/viem.md` → Read Contracts **Common Solidity errors:** See `references/solidity.md` → Error Reference **Deploying to Optimism/Base with Hardhat:** See `references/hardhat.md` → hardhat.config.ts ## Fetch Latest Docs `scripts/fetch-docs.js <topic>` pulls live docs from official sources when the reference files may be stale. ```bash node scripts/fetch-docs.js solidity # Solidity docs node scripts/fetch-docs.js foundry # Foundry book node scripts/fetch-docs.js viem # Viem docs node scripts/fetch-docs.js wagmi # Wagmi docs node scripts/fetch-docs.js openzeppelin # OZ docs node scripts/fetch-docs.js hardhat # Hardhat docs node scripts/fetch-docs.js erc4626 # ERC-4626 (OZ vault docs) ``` ## Gas Optimization Quick Rules 1. Use `calldata` instead of `memory` for read-only function params 2. Pack storage variables: multiple `uint128` in one slot beats two separate `uint256` 3. `unchecked` blocks for arithmetic that can't overflow (saves ~30 gas/op) 4. `immutable` > `constant` > storage for values set once 5. Events are cheaper than storage for historical data 6. Batch operations: one tx touching N items beats N txs

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 web3-docs-1776104960 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 web3-docs-1776104960 技能

通过命令行安装

skillhub install web3-docs-1776104960

下载 Zip 包

⬇ 下载 web3-docs v1.0.1

文件大小: 18.2 KB | 发布时间: 2026-4-14 13:22

v1.0.1 最新 2026-4-14 13:22
- Added documentation reference for ethers.js 6.x (`references/ethers.md`)
- Updated fetch-docs script to support ethers.js documentation retrieval
- Improved legacy frontend stack coverage by including ethers.js references

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部