Skip to content

sector-3/protocol

 
 

Repository files navigation

Sector#3 Protocol

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>

About

Sector#3 smart contracts

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors