Sector#3 smart contracts
https://github.com/sector-3/protocol/milestones
After you make contributions to this repo, report them in the Sector#3 dApp: Protocol Development 👷♀️
Set environment variables:
cp .env.sample .env
Install dependencies, and compile source code:
npm install
npx hardhat clean
npx hardhat compile
export REPORT_GAS=true
npx hardhat test
npx hardhat coverage
open coverage/index.html
Check if coverage threshold has been met:
npx istanbul check-coverage --lines 90
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>
- Optimism: https://optimistic.etherscan.io/address/0x8087dE46076212A21EA5cD8b4368BCbd826d7B32
- Mainnet: https://etherscan.io/address/0x1c9a7ced4cadb9c5a65e564e73091912aaec7494