[Release] New @celo/abis library to conveniently import (core) contract ABIs

This is an exact copy of this Github discussion for wider visibility.

Hi all :wave:


We just released a new @celo/abis library.
We hope this helps you import (core) contract ABIs into your JS/TS application more conveniently and helps you access Celo’s core contracts more easily.


Here is an example of how you can import core contract ABIs using @celo/abis:

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

// ethers
import { Accounts } from '@celo/abis/types/ethers'

// web3
import Accounts from '@celo/abis/types/web3/Accounts'

// truffle
import { AccountsContract } from '@celo/abis/types/truffle'

Next steps

Please let us know if you run into any issues or have any feature requests.
All comments and suggestions welcome! :pray: