@arkecosystem/crypto-networks

中文文档
2.0.2发布于 2026/08/19MITTypeScriptCommonJS零依赖构建来源已验证近 30 天下载 2183

Network configurations for the ARK Blockchain. Developed for TypeScript.

原始使用文档
文档目录7 节
  1. Installation
  2. Usage
  3. Development
  4. Releasing
  5. Security
  6. Credits
  7. License

ARK TypeScript Crypto - Network Configurations

Network Configurations for the ARK Blockchain. Developed for TypeScript.

Installation

npm install @arkecosystem/crypto-networks

Usage

Each network exposes its exceptions, genesisBlock, milestones and network configuration.

import { devnet, mainnet, testnet } from "@arkecosystem/crypto-networks";

mainnet.network.client.symbol; // "Ѧ"
mainnet.milestones[0].height; // 1

Development

The toolchain version is pinned in .nvmrc and used by CI.

npm ci        # install dependencies
npm run build # compile src to dist
npm run lint  # check formatting
npm run format # apply formatting

Network configuration lives in src/ as plain JSON; each network's index.ts only re-exports it.

Releasing

Publishing is automated by .github/workflows/publish.yml, which runs when a commit whose message starts with release: lands on master:

npm version 2.0.0 --no-git-tag-version   # updates package.json and package-lock.json
git commit -am "release: 2.0.0"
git push origin master

The workflow builds and runs npm publish --access public, using the NPM_TOKEN repository secret. Every release publishes to the latest dist-tag.

Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © ARK Ecosystem

版本与发布记录

@arkecosystem/crypto-networks 共发布 21 个版本,首次发布于 2020/10/07;过去 12 个月发布了 9 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.0.2latest2026/08/192 个月前
2.0.12026/08/182 个月前
2.0.02026/08/182 个月前
1.9.02026/08/172 个月前
1.8.22026/05/135 个月前
1.8.12026/05/135 个月前

关于 @arkecosystem/crypto-networks 的常见问题

@arkecosystem/crypto-networks 是什么?

Network configurations for the ARK Blockchain. Developed for TypeScript.

如何安装 @arkecosystem/crypto-networks?

在项目目录运行 npm install @arkecosystem/crypto-networks,或使用 pnpm add / yarn add / bun add。

@arkecosystem/crypto-networks 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@arkecosystem/crypto-networks 支持 ESM 还是 CommonJS?

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

@arkecosystem/crypto-networks 可以商用吗?

@arkecosystem/crypto-networks 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@arkecosystem/crypto-networks 的下载量有多少?

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

@arkecosystem/crypto-networks 还在维护吗?

最新版本 2.0.2 发布于 2026/08/19(2 个月前);至今共发布 21 个版本,其中过去 12 个月发布了 9 个;首次发布于 2020/10/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。