0xWeb
Search…
⬇
Installation

The command ensures all manuall steps
$ 0xweb init --hardhat

  • Install dequanto πŸ“¦ library
  • Install hardhat​
    npm i hardhat
  • Install @0xweb/hardhat plugin and additional required plugins:
    npm i @nomiclabs/hardhat-web3
    npm i @nomiclabs/hardhat-waffle
    npm i @0xweb/hardhat
  • hardhat.config.js should look like this:
    require("@nomiclabs/hardhat-web3");
    require("@nomiclabs/hardhat-waffle");
    require("@nomiclabs/hardhat-etherscan");
    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: ""
    }
    };
    ​
    ​
Copy link
On this page