登录 注册

template-ethereum-contracts

去点 Star
其他
531
Stars
121
Forks
5
Watchers
—
Open Issues
Unlicense
许可证
Solidity
语言
2020-10-23
创建时间
2026-10-28
最近更新

项目能做什么

用于开发以太坊智能合约的项目模板。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Ethereum Smart Contract Development Template

A production-ready template for developing EVM smart contracts using [Hardhat v3](https://hardhat.org/) and [hardhat-deploy v2](https://rocketh.dev/hardhat-deploy/) with the [rocketh](https://rocketh.dev/documentation/) deployment system.

The documentation of what this template uses is at [rocketh.dev/hardhat-deploy](https://rocketh.dev/hardhat-deploy/), whose guides are written from this template.

## Why This Template?

### hardhat-deploy + rocketh vs Ignition

While Hardhat's official [Ignition](https://hardhat.org/ignition) plugin offers a robust deployment system, it comes with a rigid DSL that limits flexibility. This template uses **hardhat-deploy + rocketh** which provides:

- **Hot Contract Replacement (HCR)**: The equivalent of HMR (Hot Module Replacement) for smart contracts. Edit your contracts and see changes live while developing your app or game. This uses proxy patterns with a set of conventions to make it work seamlessly (see [Development workflow](https://rocketh.dev/hardhat-deploy/development-workflow/)).
- **Intuitive Deployment Scripts**: Write deployment logic in plain TypeScript.
- **Flexible Proxy Patterns**: Declarative proxy deployment with `deployViaProxy` for upgradeable contracts.
- **Universal Deploy Scripts**: Thanks to rocketh, the deploy script can run in any environment, nide, browser, etc...

### Monorepo Structure

This template is organized as a monorepo, making it easy to:

- Add a web frontend in a separate `web/` folder
- Import contract artifacts, ABIs, and types from the `contracts` package
- Share deployment information across packages
- Publish contracts as an npm package for external consumption

## Project Structure

```
.
├── contracts/                    # Smart contracts package
│   ├── src/                      # Solidity source files
│   ├── deploy/                   # Deployment scripts
│   ├── deployments/              # Deployment artifacts per network
│   ├── generated/                # Auto-generated artifacts and ABIs
│   ├── rocketh/                  # Rocketh configuration
│   │   ├── config.ts             # Account & extension configuration
│   │   ├── deploy.ts             # Deploy script setup
│   │   └── environment.ts        # Environment setup for tests/scripts
│   ├── scripts/                  # Utility scripts
│   └── test/                     # TypeScript tests
├── package.json                  # Root monorepo configuration
└── pnpm-workspace.yaml           # PNPM workspace definition
```

## Initial Setup

### Prerequisites

- [Node.js](https://nodejs.org/) (v22+)
- [pnpm](https://pnpm.io/)

### Installation

```bash
pnpm i
```

We also recommend installing [Zellij](https://zellij.dev/) for an optimal development experience with `pnpm start`.

## Usage

### Compile Contracts

```bash
pnpm contracts:compile
```

This runs both Solidity and TypeScript compilation.

### Watch Mode (Auto-Rebuild)

Run in a separate terminal for automa
阅读完整原文

项目深度分析 AI 生成

全栈 DApp 生产级商业 Starter Kit

产品构想基于该模版扩展出集成了主流 Web3 前端框架(Next.js/Wagmi/RainbowKit)、认证授权、indexer、常见合约体系(ERC4337 账户抽象、动态 NFT、DeFi Vault)的付费 Starter Kit。
核心功能包含完整前端交互与后端索引的合约套件、多网络自动化 CI/CD 配置、权限管理与多签部署方案、一键生成 SDK。
目标用户个人独立开发者、中小 Web3 创业团队、外包工作室。
难度/周期中等 · 3-5 周 · 成本:极低(主要是开发机与测试网/轻量 RPC 成本)
收费模式一次性买断授权或订阅式更新(类似 ShipFast 模式)。
竞争风险市场同类开源竞品较多(如 Scaffold-ETH),需要极高的代码质量和差异化(如极速开发体验与深度企业级特性)才能获客。
依据 数据支持的判断

智能合约多链自动化部署与环境编排 SaaS

产品构想利用 rocketh 的通用部署特性,封装云端多链自动化部署、合约验证、热替换调试以及私钥/KMS 管理的流水线服务。
核心功能无秘钥云端多网络部署(集成 AWS KMS/GCP HSM)、部署状态追踪与版本回滚、自动化 Etherscan 验证看板、环境感知热替换调试代理。
目标用户智能合约开发团队、Web3 DevOps 工程师。
难度/周期高 · 2-3 个月 · 成本:中等(服务器、云 KMS、多链节点 RPC 额度)
收费模式SaaS 月费订阅(按项目数/部署调用次数分级计费)。
竞争风险运维与安全责任极高,私钥管理合规门槛高,容易引发信任危机。
依据 AI推测

Web3 团队定制工程化咨询与安全加固服务

产品构想围绕 hardhat-deploy、升级代理模式(Proxy Patterns)和 HCR 工作流,为加密项目团队提供架构落地、部署脚本审查与定制开发服务。
核心功能部署脚本安全性审查、可升级代理(Proxy)架构设计、团队 monorepo 工程流落地与 CI/CD 搭建。
目标用户刚融到资的 Web3 初创团队、传统企业转型 Web3 项目的技术负责人。
难度/周期低至中等 · 1-2 周/项目 · 成本:极低(纯人力时间交付)
收费模式项目制咨询费、阶段性服务费(Retainer)。
竞争风险项目获取不稳定,严重依赖个人行业人脉和 Web3 开发者圈内声誉,难以标准化规模化。
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
IDouble/Simple-Game-ERC-721-Token-Template 中文介绍暂未生成
🔮 Very Simple ERC-721 Smart Contract Template to create your
343 Solidity
uzyn/ethereum-webpack-example-dapp 中文介绍暂未生成
Template for Ethereum (Solidity) smart contract decentralize
108 JavaScript
cleanunicorn/ethereum-smartcontract-template 中文介绍暂未生成
Ethereum Smart Contract starting template
106 Solidity
IDouble/Simple-Cryptocurrency-ERC-20-Token-Template 中文介绍暂未生成
📝 Very Simple ERC-20 Smart Contract Template to create your
84 Solidity
IDouble/Simple-ERC-1155-Multi-Token-Template 中文介绍暂未生成
🌎 Very Simple ERC-1155 Smart Contract Template to create you
66 Solidity
IDouble/Simple-Vyper-ERC-20-Token-Template 中文介绍暂未生成
🐍 Very Simple ERC-20 Smart Contract Template written in Vype
31 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2020-10-23,近 30 天仍在推送
社区活跃Star 531 / Fork 121 / Issue 0(数据支持,可自行核实)
许可证Unlicense
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。