This repository contains the smart contracts for stake.fish shared ownership validator.
- 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://....
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
.
You can test code coverage by running npx hardhat coverage
.