- Node
- NPM
Create an .env
file and configure the following env variables:
GOERLI_RPC_URL=<URL_TO_GOERLI_NETWORK>
PRIVATE_KEY=<YOUR_PRIVATE_KEY>
ETHERSCAN_API_KEY=<KEY_FROM_ETHERSCAN>
COINMARKETCAP_API_KEY=<KEY_FROM_COINMARKETCAP>
Create accounts on Alchemy, Etherscan and CoinMarketCap if you don't have them.
cd hardhat-smart-contract-example
yarn
yarn hardhat run scripts/deploy.js
yarn hardhat test
to run the tests with the gas reporter:
REPORT_GAS=true yarn hardhat test
yarn hardhat console
yarn hardhat clean