Skip to content

gtorterolo-zircon/Contracts

 
 

Repository files navigation

Contracts

CementDAO Smart contracts

Preparation

You must have npm and yarn on your system. We also recommend using npx globally to avoid having to adapt platform-dependent commands. From there, you can:

  • Install the dependencies yarn install.
  • Build the smart contract to ensure they are syntax-error free: npx truffle build.

Usage

This is built using openzeppelin-solidity.

  • You can run the whole test suite by running yarn test.
  • To make sure solidity code is linted properly, issue yarn lint:solidity.
  • To make sure js code is linted properly, issue yarn lint:js.
  • To make sure all code is linted properly, issue yarn lint.
  • To run security checks in solidity code, make sure to have docker and run yarn security*
  • To see coverage results, use yarn coverage.
  • To generate contracts graphics using surya, run yarn graph (yarn describe also available)

NOTE: all this command should be run from the project root folder.

  • If you get an error like WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. don't get scared.

Important notes

The contracts in /test folder are not part of this project business' logic and are only used during tests.

About

Smart contracts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 68.3%
  • Solidity 29.4%
  • Python 2.2%
  • HCL 0.1%