-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
50 lines (47 loc) · 1.26 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('dotenv').config()
const INFURA_API_KEY = process.env.INFURA_API_KEY;
const RINKEBY_PRIVATE_KEY = process.env.RINKEBY_PRIVATE_KEY;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
const PK_2 = process.env.PK_2;
const MATIC_DEPLOYER = process.env.MATIC_DEPLOYER;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
networks: {
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${RINKEBY_PRIVATE_KEY}`]
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${RINKEBY_PRIVATE_KEY}`]
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${RINKEBY_PRIVATE_KEY}`]
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${RINKEBY_PRIVATE_KEY}`, `${PK_2}`]
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${MATIC_DEPLOYER}`]
}
},
etherscan: {
apiKey: `${ETHERSCAN_API_KEY}`
}
};