-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
43 lines (37 loc) · 1.35 KB
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
// Go to https://www.alchemyapi.io, sign up, create
// a new App in its dashboard, and replace "KEY" with its key
const ALCHEMY_API_KEY = "KEY";
// Replace this private key with your Ropsten account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Be aware of NEVER putting real Ether into testing accounts
const ROPSTEN_PRIVATE_KEY = "YOUR ROPSTEN PRIVATE KEY";
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
const INFURA_PROJECT_ID = "c1c972354fc0452e8252003c81722dc4";
const PRIVATE_KEY= "d4bdf53786045fc2fea2b1e00d4bc0678bef2baa290c17bb01747cd6f70ccd30";
const ETHERSCAN_API_KEY= "29T29ITKDKHA6C18GJAAPFC9EVH8NTGVME";
module.exports = {
solidity: "0.7.3",
networks: {
// ropsten: {
// url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
// accounts: [`0x${ROPSTEN_PRIVATE_KEY}`]
// },
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
}
};