Skip to content

Instantly share code, notes, and snippets.

@robksawyer
Created July 14, 2021 15:54
Show Gist options
  • Save robksawyer/1ce1fa38812a569581a4515e4b0aaaec to your computer and use it in GitHub Desktop.
Save robksawyer/1ce1fa38812a569581a4515e4b0aaaec to your computer and use it in GitHub Desktop.
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("hardhat-deploy-ethers");
require("hardhat-deploy");
require("@symfoni/hardhat-react");
require("hardhat-typechain");
require("@typechain/ethers-v5");
// require("@nomiclabs/hardhat-etherscan");
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
react: {
providerPriority: ["web3modal", "hardhat"],
skip: [],
handle: ["CryptoFrame"],
// providerOptions: {
// walletconnect: {
// options: {
// infuraId: "c229331f1d044c8f95e03f54b0ea2f26",
// },
// },
// },
// fallbackProvider: "hardhat",
},
paths: {
// artifacts: "../src/artifacts",
react: "./frontend/src/hardhat",
},
networks: {
hardhat: {
chainId: 1337,
},
},
solidity: "0.8.4",
typechain: {
outDir: "./frontend/src/hardhat/typechain",
target: "ethers-v5",
},
// etherscan: {
// // Your API key for Etherscan
// // Obtain one at https://etherscan.io/
// apiKey: process.env.ETHERSCAN_API_KEY,
// },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment