Skip to content

akcaHalit/Solidity-HardhatFramework

Repository files navigation

Solidity-Hardhat-Framework

Firstly, USE THE INSTALLATION_README.md to install Hardhat and prepare the project to develop.

Preparing the hardhat.config.js

    //require("@nomiclabs/hardhat-ethers");
    require("@nomiclabs/hardhat-waffle");

    const PRIVATE_KEY = "PRIVATE_KEY";

    module.exports = {
        solidity: "0.8.2",
        networks: {
          mainnet: {
            url: `https://api.avax.network/ext/bc/C/rpc`,
              accounts: [`${PRIVATE_KEY}`]
          },
          fuji: {
            url: `https://api.avax-test.network/ext/bc/C/rpc`,
              accounts: [`${PRIVATE_KEY}`]
          }
        }
    };

Installation of the OpenZeppelin Contracts

    npm install @openzeppelin/contracts

There is a progression of codes in the History respectively.

Lock-1.sol and Token-1.sol are written.

How to compile:

    npx hardhat compile

About

How to use Hardhat Framework basically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published