Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scootcho/b8e4bc70356ef83249e51c1a7b878b7e to your computer and use it in GitHub Desktop.
Save scootcho/b8e4bc70356ef83249e51c1a7b878b7e 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