Skip to content

Hardhat

Getting Started


npm install --save-dev hardhat

npx hardhat init


npm install @openzeppelin/contracts

TODO

Reminders

Integrations

Basics

Flatten

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

Blockchain Mnemonic Accounts

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