Hardhat
Hardhat is a development environment used for compiling, deploying, testing, and debugging smart contracts.
Check out Hardhat for installation details and an overview.
Hardhat Configuration for Lycan
Update the configuration file with the changes shown below for Lycan Chain, providing examples for both JavaScript and TypeScript.
require("@nomiclabs/hardhat-waffle");
const fs = require("fs");
const mnemonic = fs.readFileSync(".secret").toString().trim();
let accounts = { mnemonic: mnemonic };
module.exports = {
defaultNetwork: "lycan",
solidity: "0.8.4",
networks: {
lycan: {
url: "https://rpc.lycanchain.com",
accounts: accounts,
},
},
};
Compile your contract
npx hardhat compile
Deploy your contract
npx hardhat run scripts/deploy.js --network lycan
View your deployed contract on any of the explorers.
Last updated