-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
55 lines (52 loc) · 1.26 KB
/
hardhat.config.js
File metadata and controls
55 lines (52 loc) · 1.26 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
require('dotenv').config();
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
console.log("ashdogahsdgsd", process.env.PRIVATE_KEY)
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
local: {
url: 'http://localhost:8545'
},
xdai: {
url: 'https://dai.poa.network',
accounts: [process.env.PRIVATE_KEY],
},
xdcapothem: {
url: 'https://rpc.apothem.network',
accounts: [process.env.XDCPRIVATE_KEY],
},
mumbai: {
url: 'https://rpc-mumbai.maticvigil.com/',
accounts: [process.env.PRIVATE_KEY],
},
rinkeby: {
url: 'https://rinkeby.infura.io/v3/8d4b9c6cf9a942bd9c0468942a96fce0',
accounts: [process.env.PRIVATE_KEY],
},
ropsten: {
url: 'https://ropsten.infura.io/v3/8d4b9c6cf9a942bd9c0468942a96fce0',
accounts: [process.env.PRIVATE_KEY],
}
},
paths: {
artifacts: "./app/src/artifacts"
}
};