

Hardhat and OpenZeppelin project bootstrap for Ethereum contract development
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.

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
-
48
README.md
-
19
原文链接 使用 OpenZeppelin升级插件 部署的智能合约可以通过
-
14
How to Use OpenZeppelin’s New AccessControl ContractUsing the latest version of the gold standard smart contract library
-
8
sushiswap源码不能正常运行 npx hardhat node 20 sushiswap源码不能正常运行 npx hardhat node...
-
14
Introducing the OpenZeppelin Secure Development SeriesFor the last six years, OpenZeppelin has worked to secure the open economy. Through Contracts,
-
7
OpenZeppelin Upgrades教程: 在Hardhat下如何进行合约升级OpenZeppelin Upgrades教程: 在Hardhat下如何进行合约升级 ...
-
4
使用hardhat upgrades进行升级时报错Error: The requested contract was not found. Make sure the source code is available for compilation at getContractNameAndRunValidation...
-
5
@luisacervLuisAcervWriting colorful characters in text files since 2011
-
2
Stephen Webber | April 19, 2023 Base Developers Can Now Access OpenZeppelin’s Smart Contract Security...
-
3
March 31, 2023 This security assessment was prepared by OpenZeppelin. Table of Contents Introduction Review Summary The securi...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK