@celo/contracts

Smart contracts for the Celo protocols, including identity and stability.

Usage no npm install needed!

<script type="module">
  import celoContracts from 'https://cdn.skypack.dev/@celo/contracts';
</script>

README

Protocols

Smart contracts for the Celo protocols, including identity and stability.

Usage

  1. Target Release
RELEASE="celo-core-contracts-v2.mainnet"
URL="https://gitpkg.now.sh/celo-org/celo-monorepo/packages/protocol/contracts?$RELEASE"
  1. Installation

npm install $URL

or

yarn add $URL

  1. Development

Solidity

pragma solidity ^0.5.13;

import '@celo/contracts/common/UsingRegistry.sol';

contract Example is UsingRegistry {
  constructor() public {
    require(getAccounts().createAccount());
  }
}

License

The contents of this package are licensed under the terms of the GNU Lesser Public License V3