Skip to content

Latest commit

 

History

History
93 lines (60 loc) · 1.95 KB

README.md

File metadata and controls

93 lines (60 loc) · 1.95 KB

Sector#3 Protocol

Sector#3 smart contracts

Milestones

https://github.com/sector-3/protocol/milestones

Contributions

After you make contributions to this repo, report them in the Sector#3 dApp: Protocol Development 👷‍♀️

Build

Set environment variables:

cp .env.sample .env

Install dependencies, and compile source code:

npm install
npx hardhat clean
npx hardhat compile

Test

export REPORT_GAS=true
npx hardhat test

Coverage

codecov

npx hardhat coverage
open coverage/index.html

Check if coverage threshold has been met:

npx istanbul check-coverage --lines 90

Deploy

Start a local node:

npx hardhat node

Deploy a smart contract to the local network:

npx hardhat run --network localhost scripts/deploy-<contract>.ts

Deploy a smart contract to the Sepolia test network:

npx hardhat run --network sepolia scripts/deploy-<contract>.ts

Verify a contract on Etherscan:

npx hardhat verify --network <network> <contract address> <constructor parameters>

Deployments

Governance

Protocol V1

Token