yarn
-
Option 1: export environment variable
export WEB3_INFURA_PROJECT_ID=YourProjectID export ETHERSCAN_API_KEY=YourApiToken
-
Option 2: Use .env file
cp .env.default .env
fill in these values
WEB3_INFURA_PROJECT_ID= ETHERSCAN_API_KEY= DEPLOY_PRIVATE_KEY= // Require only for production deployment
npx hardhat compile
See CreamFi/cream-deployment on how to write scripts.
npx hardhat run scripts/myScript.ts --network <NETWORK>
See CreamFi/comptroller-upgrade on how to write tests.
npx hardhat test test/myTest.js
See CreamFi/cream-deployment on how to write deployment script.
npx hardhat deploy --tags <TAGS> --network <NETWORK>
Avaliable options: Read here
Commit deployments/
into git after deployment.
npx hardhat etherscan-verify --network <NETWORK>
Avaliable options: Read here