@celo/abis

中文文档
17.0.4发布于 2026/06/17LGPL-3.0TypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 3.6万

Smart contracts ABIS for the Celo protocol.

原始使用文档
文档目录5 节
  1. Usage
  2. Installation
  3. In your javascript or ts
  4. CommonJS syntax
  5. License

Celo core contracts ABIS

Smart contracts ABIS for the Celo protocol.

Usage

Installation

npm install @celo/abis

or

yarn add @celo/abis

In your javascript or ts

// abi in json
import AccountsABI from '@celo/abis/Accounts.json'

// abi in js/ts for viem, wagmi, etc
import { accountsABI }  from '@celo/abis'

// abi in js/ts for viem, wagmi, etc (with moduleResolution and module set to "Node16" in your tsconfig.json file)
import { accountsABI }  from '@celo/abis/Accounts'

// abi in js/ts for use with contractkit
import { type Accounts, newAccounts, ABI } from '@celo/abis/web3/Accounts'

CommonJS syntax

const { accountsABI } = require('@celo/abis');

// viem
const accounts = getContract({
  address: "0x...",
  abi: accountsABI,
  ...
})

License

All packages are licensed under the terms of the Apache 2.0 License unless otherwise specified in the LICENSE file at package's root.

版本与发布记录

@celo/abis 共发布 187 个版本,首次发布于 2023/05/05;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
17.0.4latest2026/06/174 个月前
17.0.32026/06/174 个月前
17.0.22026/06/174 个月前
17.0.12026/06/174 个月前
17.0.02026/06/174 个月前
14.0.12025/10/131.1 年前

其他发布通道:$RELEASE_TYPE → 10.0.0-beta.8,beta → 10.0.0-beta.10,rc → 10.0.0-rc.5,test → 11.0.0-test.1,alpha → 11.0.0-alpha.1,fee-currency-directory → 11.0.0-fee-currency-directory.0。

关于 @celo/abis 的常见问题

@celo/abis 是什么?

Smart contracts ABIS for the Celo protocol.

如何安装 @celo/abis?

在项目目录运行 npm install @celo/abis,或使用 pnpm add / yarn add / bun add。

@celo/abis 支持 TypeScript 吗?

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

@celo/abis 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@celo/abis 可以商用吗?

@celo/abis 使用 LGPL-3.0 许可。弱 Copyleft:作为库被调用时通常不要求开源你自己的代码,但修改库本身需以 LGPL 开源;前端打包合并后的适用边界存在不同理解。以上为概括,不构成法律意见,请以许可原文为准。

@celo/abis 的下载量有多少?

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

@celo/abis 还在维护吗?

最新版本 17.0.4 发布于 2026/06/17(4 个月前);至今共发布 187 个版本,其中过去 12 个月发布了 5 个;首次发布于 2023/05/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。