Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.02 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.02 KB

Fairpool contracts

Setup

# Install NVM: https://github.com/nvm-sh/nvm#installing-and-updating
# Install yarn v1: https://classic.yarnpkg.com/en/docs/install
# Add .nvmrc autoload to ~/.bashrc (optional, recommended): https://gist.github.com/DenisGorbachev/0c321443d9fe684b6d2a9de785420a6a    
nvm install $(cat .nvmrc)
nvm use # loads version from .nvmrc
yarn install
yarn build

Tasks

Build the project

yarn build

Run tests

yarn test

Watch tests

yarn test:watch

Fork mainnet

set -o allexport; source .env; set +o allexport # Export .env vars
yarn fork
# switch to another console
export NETWORK=localhost # set NETWORK to local fork
# run any command with --network $NETWORK

Lint code

yarn lint

Generate coverage

yarn coverage

License

The code in this repository is provided for informational purposes only. If you want to use it for any other purpose, including production deployment, please contact us to discuss a partnership.