14

Hardhat and OpenZeppelin project bootstrap for Ethereum contract development

 2 years ago
source link: https://gist.github.com/alkavan/017242ddea26d37564dd6bf9509e1314
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK