forked from Snowfork/BTRST-Contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
51 lines (49 loc) · 1.11 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
48
49
50
51
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-truffle5");
require("hardhat-deploy");
require("@nomiclabs/hardhat-ethers");
const secrets = require('./secrets');
module.exports = {
solidity: {
compilers: [
{
version: "0.5.16"
},
{
version: "0.6.7",
}
]
},
networks: {
ropsten: {
url: `https://ropsten.infura.io/v3/${secrets.infuraProjectID}`,
gas: 5500000,
accounts: [`0x${secrets.deployerPrivateKey}`],
from: secrets.deployerAccount,
live: true,
gasPrice: 10000000000,
tags: ["staging"]
},
mainnet: {
url: `https://mainnet.infura.io/v3/${secrets.infuraProjectID}`,
gas: "auto",
accounts: [`0x${secrets.deployerPrivateKey}`],
from: secrets.deployerAccount,
live: true,
gasPrice: "auto",
tags: ["production"]
}
},
namedAccounts: {
deployer: {
default: 0, // default take the first account as deployer
},
foundationInitialAddress: {
default: 0,
}
},
etherscan: {
apiKey: ""
}
};