Firstly, USE THE INSTALLATION_README.md to install Hardhat and prepare the project to develop.
//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}`]
}
}
};
npm install @openzeppelin/contracts
Lock-1.sol and Token-1.sol are written.
npx hardhat compile