This is an exact copy of this Github discussion for wider visibility.
Hi all
TLDR
We just released a new @celo/contracts library.
We hope this helps you import (core) contracts in Solidity more conveniently and helps you leverage Celo’s core contracts more easily.Usage
Here is an example of how you can import core contracts into your solidity contract using
@celo/contracts
:pragma solidity ^0.5.13; import '@celo/contracts/common/UsingRegistryV2.sol'; contract Example is UsingRegistryV2 { constructor() public { require(getAccounts().createAccount()); } }
Next steps
Please let us know if you run into any issues or have any feature requests.
All comments and suggestions welcome!