JSPM

@celo/abis

12.0.0-dev.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21421
  • Score
    100M100P100Q147943F
  • License LGPL-3.0

Package Exports

    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.