forked from markcarey/tokenvesting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
47 lines (47 loc) · 1.12 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
44
45
46
47
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('dotenv').config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-web3");
const { API_URL, RINKEBY_API_URL, PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
module.exports = {
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 1000
}
}
},
defaultNetwork: "mumbai",
networks: {
hardhat: {
accounts: [{ privateKey: `0x${PRIVATE_KEY}`, balance: "10000000000000000000000"}],
forking: {
url: API_URL,
blockNumber: 20935392 // assumes polygon fork
},
loggingEnabled: true,
gasMultiplier: 5,
gasPrice: 1000000000 * 7
},
mumbai: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`],
gasMultiplier: 3,
gasPrice: 1000000000 * 2
},
rinkeby: {
url: RINKEBY_API_URL,
accounts: [`0x${PRIVATE_KEY}`],
gasMultiplier: 3,
gasPrice: 1000000000 * 2
}
},
etherscan: {
apiKey: ETHERSCAN_API_KEY
}
}