Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SeptiyanAndika/e7f53dccc84dea8462e975ce86bde81f to your computer and use it in GitHub Desktop.
Save SeptiyanAndika/e7f53dccc84dea8462e975ce86bde81f to your computer and use it in GitHub Desktop.
Hardhat and OpenZeppelin project bootstrap for Ethereum contract development

Install Instructions

Install Hardhat

npm install --save-dev hardhat

Initiate a new Hardhat project (in empty directory)

npx hardhat

Install OpenZeppelin upgrades plugin

npm install --save-dev @openzeppelin/hardhat-upgrades

Install OpenZeppelin contracts

npm install @openzeppelin/contracts

Run Instructions

Compile contracts

npx hardhat compile

Test contracts

npx hardhat test

Run network node

npx hardhat node

Deploy contract to the local running node

npx hardhat run scripts/sample-script.js --network localhost

References

Hardhat Getting Started Hardhat Upgrades Plugin OpenZeppelin and Hardhat Upgrades Tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment