Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 2.03 KB

CONTRIBUTING.md

File metadata and controls

83 lines (55 loc) · 2.03 KB

Contributing to OptriSpace Smart Contracts

Tests Lint Slither Spell

The development branch is master.
This is the default branch that all Pull Requests (PR) should be made against.

Requirements:

Developing locally

Please follow instructions below to install Smart Contracts locally.

  1. Fork this repository to your own GitHub account

  2. Clone it to your local device

  3. Update submodules:

    git submodule update --init --recursive
  4. Create a new branch:

    git checkout -b YOUR_BRANCH_NAME
  5. Install the dependencies with:

    make setup
  6. Copy the environment variables:

    cp .env.example .env
  7. In a new terminal session start local blockchain node:

    make run_node
  8. Deploy contracts to local blockchain node:

    make deploy_hardhat
  9. Take a look into previous command output to configure your frontend repo.

Running tests

make test

Linting

To check the formatting of your code:

make lint

If you get errors, you can fix them with:

make fix