Shared Ownership Validator

This repository contains the smart contracts for stake.fish shared ownership validator.

Development environment

  • Node v16.8.0

Install dependencies by running:

npm intall

Set the rpc url to the arcive node in the .env file:

ARCHIVE_NODE_RPC_URL=https://....

Functional tests

Tests are written using ethers.js, chai assertion library and smart contract testing library waffle.

You can find tests under test folder and run all the tests using npx hardhat test command, it will start an instance of Hardhat Network that forks ethereum mainnet to run the tests.

You can configure the Hardhat Network settings in hardhat.config.js.

Code coverage

You can test code coverage by running npx hardhat coverage.