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

12.0.3 • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @celo/abis

Weekly Downloads

15,448

Version

12.0.3

License

LGPL-3.0

Unpacked Size

4.52 MB

Total Files

352

Last publish

Collaborators

  • app-tooling
  • mcortesi
  • aaron-clabs
  • nicolasbrugneaux
  • pputman684