⬇️Installation

Automatically

The command ensures all manual steps

$ 0xweb init --hardhat

Manually

  • Install dequanto πŸ“¦ library

  • Install hardhat

    npm i hardhat
  • Install @0xweb/hardhat plugin

    npm i @0xweb/hardhat
  • hardhat.config.js should look like this:

    require("@0xweb/hardhat");
    
    module.exports = {
        solidity: {
            version: "0.8.2",
            settings: {
                optimizer: {
                    enabled: true,
                    runs: 200
                }
            }
        },
        networks: {
            hardhat: {
                chainId: 1337
            },
            localhost: {
                chainId: 1337
            },
            mainnet: {
                url: ``,
                accounts: [``]
            }
        },
        etherscan: {
            // One at https://etherscan.io/
            apiKey: ""
        }
    };
    
    

Last updated