-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
38 lines (35 loc) · 1.04 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
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
module.exports = {
solidity: {
compilers: [
{ version: "0.8.0" }
]
},
mocha: {
timeout: 60000 // Here is 2min but can be whatever timeout is suitable for you.
},
networks: {
mainnet: {
url: String(`https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`),
accounts: [`${process.env.PRIVATE_KEY}`,]
},
rinkeby: {
url: String(`https://eth-rinkeby.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`),
accounts: [`${process.env.PRIVATE_KEY}`,]
}
},
etherscan: {
url: String(`https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`),
apiKey: process.env.ETHERSCAN_KEY
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
}
}