Skip to content

Instantly share code, notes, and snippets.

@alkavan
Created December 12, 2020 10:37
Show Gist options
  • Save alkavan/017242ddea26d37564dd6bf9509e1314 to your computer and use it in GitHub Desktop.
Save alkavan/017242ddea26d37564dd6bf9509e1314 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