@celo/abis
v12.0.2
Published
Smart contracts ABIS for the Celo protocol.
Downloads
88,392
Keywords
Readme
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.