mirror of
https://github.com/rjNemo/epicNFT
synced 2026-06-06 01:46:38 +00:00
31 lines
693 B
JavaScript
31 lines
693 B
JavaScript
require("@nomiclabs/hardhat-waffle");
|
|
require("@nomiclabs/hardhat-etherscan");
|
|
require("dotenv").config();
|
|
|
|
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);
|
|
}
|
|
});
|
|
|
|
/**
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
*/
|
|
module.exports = {
|
|
solidity: "0.8.4",
|
|
networks: {
|
|
rinkeby: {
|
|
url: process.env.STAGING_URL,
|
|
accounts: [process.env.PRIVATE_KEY],
|
|
},
|
|
mainnet: {
|
|
url: process.env.PROD_URL,
|
|
accounts: [process.env.PRIVATE_KEY],
|
|
},
|
|
},
|
|
etherscan: {
|
|
apiKey: process.env.ETHERSCAN_KEY,
|
|
},
|
|
};
|