Hardhat
Getting Started
npm install --save-dev hardhat
npx hardhat init
npm install @openzeppelin/contracts
- How to install OpenZepplin in Hardhat.js
- How to write and deploy a ERC20 token using Hardhat.js
- How to write and deploy a ERC721 token using Hardhat.js
TODO
Reminders
Integrations
Basics
- Hardhat | Ethereum development environment for professionals by Nomic Labs
- 7. Deploying to a live network | Hardhat | Ethereum development environment for professionals by Nomic Labs
Flatten
- [hardhat-flatten] Removing duplicated SPDX identifier · Issue #1050 · nomiclabs/hardhat
- feat: flatten licenses flag by nachomazzara · Pull Request #1223 · nomiclabs/hardhat
Run a local testing blockchain node
npx hardhat node
npx hardhat --network localhost test
For hardhat-deploy, where do you put extra arguments to constructors? - Ethereum Stack Exchange
Tutorials
Events
module.exports = {
networks: {
react: {
providerPriority: ["web3modal", "hardhat"],
url: "http://localhost:3000"
},
hardhat: {
// Required for real DNS record tests
initialDate: "2019-03-15T14:06:45.000+13:00",
saveDeployments: true,
tags: ["test", "legacy", "use_root"],
}
}
}
Hardhat Hosted Blockchain
npx hardhat node
npx hardhat --network localhost test
npx hardhat --network localhost test
npm install --save-dev @ensdomains/dnssec-oracle
npm install --save-dev @ensdomains/buffer