-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
56 lines (54 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
52
53
54
55
56
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('@symblox/hardhat-abi-gen');
require("dotenv").config()
const { PRIVATEKEY, ETHERSCAN, POLYGONSCAN, FTMSCAN, APIKEY } = process.env;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
},
mumbai: {
networkId: 80001,
url: "https://matic-mumbai.chainstacklabs.com",
accounts: [PRIVATEKEY],
gasPrice: 35000000000,
}
},
etherscan: {
apiKey: {
mainnet: ETHERSCAN,
ropsten: ETHERSCAN,
rinkeby: ETHERSCAN,
goerli: ETHERSCAN,
kovan: ETHERSCAN,
// ftm
opera: FTMSCAN,
ftmTestnet: FTMSCAN,
// polygon
polygon: APIKEY,
polygonMumbai: APIKEY,
}
},
solidity: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 80000
}
};