@arbitrum/nitro-contracts

中文文档
3.2.0发布于 2026/01/23BUSL-1.1近 30 天下载 10.3万

Layer 2 precompiles and rollup for Arbitrum Nitro

原始使用文档

Arbitrum Nitro Rollup Contracts

This is the package with the smart contract code that powers Arbitrum Nitro. It includes the rollup and fraud proof smart contracts, as well as interfaces for interacting with precompiles.

For more information see https://developer.arbitrum.io/intro

For the deployed addresses of these contracts for Arbitrum chains see https://docs.arbitrum.io/for-devs/dev-tools-and-resources/chain-info#core-contracts

For the token bridge contracts see https://github.com/OffchainLabs/token-bridge-contracts

Compile these contracts locally by running

git clone https://github.com/offchainlabs/nitro-contracts
cd nitro-contracts
yarn install
yarn build

License

Nitro is currently licensed under a Business Source License, similar to our friends at Uniswap and Aave, with an "Additional Use Grant" to ensure that everyone can have full comfort using and running nodes on all public Arbitrum chains.

The Additional Use Grant also permits the deployment of the Nitro software, in a permissionless fashion and without cost, as a new blockchain provided that the chain settles to either Arbitrum One or Arbitrum Nova.

For those that prefer to deploy the Nitro software either directly on Ethereum (i.e. an L2) or have it settle to another Layer-2 on top of Ethereum, the Arbitrum Expansion Program (the "AEP") was recently established. The AEP allows for the permissionless deployment in the aforementioned fashion provided that 10% of net revenue is contributed back to the Arbitrum community in accordance with the requirements of the AEP.

Contact

Discord: Arbitrum

Twitter: Arbitrum

版本与发布记录

@arbitrum/nitro-contracts 共发布 52 个版本,首次发布于 2022/04/08;过去 12 个月发布了 2 个版本。

版本发布日期距今
3.2.0latest2026/01/239 个月前
3.2.0-beta.0beta2025/12/0411 个月前
3.1.12025/06/181.4 年前
3.1.02025/04/111.6 年前
3.0.1-beta.12025/04/031.6 年前
3.0.1-beta.02025/02/071.7 年前

其他发布通道:alpha → 3.0.0-alpha.2,legacy → 2.1.3,beta → 3.2.0-beta.0。

关于 @arbitrum/nitro-contracts 的常见问题

@arbitrum/nitro-contracts 是什么?

Layer 2 precompiles and rollup for Arbitrum Nitro

如何安装 @arbitrum/nitro-contracts?

在项目目录运行 npm install @arbitrum/nitro-contracts,或使用 pnpm add / yarn add / bun add。

@arbitrum/nitro-contracts 支持 TypeScript 吗?

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

@arbitrum/nitro-contracts 可以商用吗?

@arbitrum/nitro-contracts 使用 BUSL-1.1 许可。声明的许可为 BUSL-1.1,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@arbitrum/nitro-contracts 的下载量有多少?

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

@arbitrum/nitro-contracts 还在维护吗?

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