# 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
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
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.