REPORT_GAS=true
COINMARKETCAP_API_KEY=[API key from]
GOERLI_ALCHEMY_API_KEY=[Goerli Alchemy API key]
GOERLI_PRIVATE_KEY=[Goerli Private key]
ROPSTEN_ALCHEMY_API_KEY=[Ropsten Alchemy API key]
ROPSTEN_PRIVATE_KEY=[Ropsten Private key]
RINKEBY_ALCHEMY_API_KEY=[Rinkeby Alchemy API key]
RINKEBY_PRIVATE_KEY=[Rinkeby Private key]
ETHERSCAN_API_KEY=[etherscan api key]
comment out REPORT_GAS (add # REPORT_GAS=true) if you don't want the gas thing
Typical task:
- make branch
- Make branch:
git checkout -b "<branch-name>"
- Make branch:
- write some code add and commit
- Add to commit:
git add . - Commit:
git commit -m "few word explanation"
- Add to commit:
- repeat step 2 until you finish task
- push the new branch
- Push:
git pushthen copy and past the command it returns and run it
- Push:
- ask Jonah to review the branch
- Jonah will merge the branch
- Switch back to the main branch
- See your current branch
git branch - Change branches
git switch <new branch name>
- See your current branch
- pull changes
- Pull changes
git pull
- Pull changes
If you find yourself tracking node_modules git rm -r --cached node_modules
- In Terminal, run
npx hardhat run scripts/deploy.js --network ropstento deploy the contract on ropsten (note you can run the command with goerli if perffered).
npx hardhat run scripts/deploy.js --network ropsten
run npx hardhat clean then npx hardhat verify --network [network name] [contract address]
npx hardhat coverage