@aragon/aragen

中文文档
5.4.3发布于 2020/01/21GPL-3.0CommonJS近 30 天下载 2323

Generate Aragon local dev environment snapshots

原始使用文档
文档目录4 节
  1. Requirements
  2. How to
  3. Using snapshots
  4. CI

AraGen Build Status npm

Generate an Aragon environment

Requirements

  • npm
  • git

How to

npm i
npm start

Yes, you are done. Happy hacking 🔥🦅!

If you happen to stop ganache, just:

npm run start-ganache

Using snapshots

The Aragen package published to NPM contains a ganache snapshot that can be used to quickly start a chain with the entire Aragon system ready.

By default it has set up:

  • ENS: 0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1
  • DAO_FACTORY: 0x5d94e3e7aec542ab0f9129b9a7badeb5b3ca0f77
  • MINIME_FACTORY: 0xd526b7aba39cccf76422835e7fd5327b98ad73c9
  • FIFResolvingRegistrar: 0xf1f8aac64036cdd399886b1c157b7e3b361093f3
  • APM: ens.addr('aragonpm.eth')
  • AragonID: ens.owner('aragonid.eth')
  • Aragon apps: As APM repos, e.g. apm.getLatest('voting.aragonpm.eth')
  • Templates: As APM repos, e.g. apm.getLatest('democracy-template.aragonpm.eth')

To use directly with ganache-cli:

npm install @aragon/aragen
npx aragen start

If you wish to access from code, for example to run ganache-core directly:

const aragonSnapshot = path.resolve(
  require.resolve("@aragon/aragen"),
  "../aragon-ganache"
);

CI

If you need to trigger the CI so a new snapshot is generated and publish to NPM, you need to tag the release by bumping the NPM version and commit to master.

npm version [major, minor, patch]

版本与发布记录

@aragon/aragen 共发布 55 个版本,首次发布于 2018/05/11;过去 12 个月发布了 0 个版本。

版本发布日期距今
5.4.3latest2020/01/216 年前
6.0.0-beta.12019/12/166 年前
5.4.22019/11/276 年前
5.4.12019/11/146 年前
5.4.02019/11/146 年前
5.3.62019/10/127 年前

其他发布通道:beta → 1.3.0-beta.1。

关于 @aragon/aragen 的常见问题

@aragon/aragen 是什么?

Generate Aragon local dev environment snapshots

如何安装 @aragon/aragen?

在项目目录运行 npm install @aragon/aragen,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 aragen,可以用 npx aragen 直接运行。

@aragon/aragen 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aragon__aragen 是否存在。

@aragon/aragen 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aragon/aragen 可以商用吗?

@aragon/aragen 使用 GPL-3.0 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@aragon/aragen 的下载量有多少?

根据 npm 官方下载统计,@aragon/aragen 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,323 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aragon/aragen 还在维护吗?

最新版本 5.4.3 发布于 2020/01/21(6 年前);至今共发布 55 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/05/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。