Setting up your environment

Using Hardhat:

Link to template

  • We can start by cloning our template project, you can go to our repository and click the [Use this template] button at the top of the page to create a new repository with this repo as the initial state or simply follow the current steps:

    git clone https://github.com/Inco-fhevm/fhevm-hardhat-template-rivest 
    cd fhevm-hardhat-template-rivest
  • Change the directly to the repository and install the project dependencies:

    pnpm install 
  • Set an .env file with your mnemonics:

    If you don't already have a mnemonic, you can use this website to generate one, or you can use our default set of accounts.

    cp .env.example .env
  • After installation, run the pre-launch script to setup the environment:

    sh pre-launch.sh
  • To deploy the contracts on the rivest network, run the following command:

    pnpm deploy:contracts --network rivest
  • To run the tests on the rivest network, run the following command:

    pnpm test:rivest

Hooyah! Default contracts have been deployed on Rivest! Let's understand them now ->

Last updated