hardhat.config.js 870 B

12345678910111213141516171819202122232425262728
  1. require("@nomiclabs/hardhat-waffle");
  2. require('@openzeppelin/hardhat-upgrades');
  3. // This is a sample Hardhat task. To learn how to create your own go to
  4. // https://hardhat.org/guides/create-task.html
  5. task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
  6. const accounts = await hre.ethers.getSigners();
  7. for (const account of accounts) {
  8. console.log(account.address);
  9. }
  10. });
  11. // You need to export an object to set up your config
  12. // Go to https://hardhat.org/config/ to learn more
  13. /**
  14. * @type import('hardhat/config').HardhatUserConfig
  15. * 0x221bd86B1198a32548Cd201D775a1E245C3DadF7
  16. */
  17. module.exports = {
  18. solidity: "0.8.0",
  19. networks: {
  20. rinkeby: {
  21. url: "https://eth-rinkeby.alchemyapi.io/v2/vfdcLFOQwECexXNSekfxb0ImvAH19PbQ",
  22. accounts: ["6084c2a5e39fa83d5a119c3a864a442e77287f4b03bad93cef38ec5f44bca630"]
  23. },
  24. },
  25. };