@celo/abis
TypeScript icon, indicating that this package has built-in type declarations

11.0.0 • Public • Published

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.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @celo/abis

Weekly Downloads

1,982

Version

11.0.0

License

LGPL-3.0

Unpacked Size

3.93 MB

Total Files

292

Last publish

Collaborators

  • app-tooling
  • pputman684
  • soloseng
  • aaron-clabs
  • nicolasbrugneaux
  • timmoreton
  • mcortesi
  • alecps