Ready to test functionality, monitor gas-usage, and deploy contracts. All of the direct dependencies use their latest available version and the architecture is clean and easy to extend. Have fun BUIDLing! 🤙
- Clone this repo:
git clone https://github.com/Accretence/smooth-hardhat-boilerplate
- Install dependencies using:
npm install
- Create your
.env
file according to thesample.env
provided file.
MAINNET_PRIVATE_KEY=
RINKEBY_PRIVATE_KEY=
ALCHEMY_RINKEBY_ENDPOINT=
ALCHEMY_MAINNET_ENDPOINT=
CMC_KEY=
ETHERSCAN_KEY=
- Test the contract:
There are exhaustive tests provided in the Test.js
file. You can run the file using this command:
npx hardhat test
You can deploy this contract to Rinkeby testnet. This requires funding a wallet and registering API keys with Alchemy and Etherscan
npm run rinkeby
You can also use the verify
scripts to verify the contract on Etherscan.
npx hardhat verify --network rinkeby <YOUR_CONTRACT_ADDRESS>
Substitute mainnet
for rinkeby
to deploy for realsies. good luck!