0xWeb
  • 0xWeb
  • πŸ’»Installation
  • πŸ—ƒοΈBlockchains
  • πŸ“¦Package Manager
    • πŸ“‚Folder structure
    • πŸš€Dequanto dependency
    • πŸŽ†Installing contracts
    • πŸ”’Versioning
  • πŸ”Wallet
    • πŸ”‘Keys notice
    • πŸ™‚Accounts
  • πŸ’»CLI
    • Commands Overview
  • πŸ—„οΈGnosis Safe
    • πŸ™†β€β™‚οΈZero Trust Wallet
  • πŸš€Dequanto
    • ℹ️Info
    • πŸ•ΈοΈRPC Client Pool
    • πŸ—οΈTx Builder
    • πŸ“€Tx Writer
    • ⛓️Blockchain Explorers
    • πŸͺ™Token Services
    • πŸ—ƒοΈIndexer
    • ✨Utilities
  • ⛑️Hardhat
    • ℹ️Info
    • ⬇️Installation
    • 🧩Compile
    • πŸ’«Deploy
  • 0️Openzeppelin
    • Openzeppelin contracts
Powered by GitBook
On this page
  1. Hardhat

Installation

PreviousInfoNextCompile

Last updated 1 year ago

Automatically

The command ensures all manual steps

$ 0xweb init --hardhat

Manually

  • Install library

  • Install

    npm i hardhat
  • Install 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: ""
        }
    };
    
    
⛑️
⬇️
dequanto πŸ“¦
hardhat
@0xweb/hardhat