-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
58 lines (57 loc) · 1.44 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
57
58
require("@nomicfoundation/hardhat-toolbox");
require('solidity-coverage');
require("@nomiclabs/hardhat-etherscan");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-gas-reporter");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 1000
}
}
},
networks: {
mumbai: {
url: process.env.MUMBAI_RPC,
accounts: [process.env.PRIVATE_KEY]
},
polygon: {
url: process.env.POLYGON_RPC,
accounts: [process.env.PRIVATE_KEY]
},
goerli: {
url: process.env.GOERLI_RPC,
accounts: [process.env.PRIVATE_KEY]
},
sepolia: {
url: process.env.SEPOLIA_RPC,
accounts: [process.env.PRIVATE_KEY]
},
'truffle-dashboard': {
url: "http://localhost:24012/rpc"
}
},
etherscan: {
apiKey: {
polygon: process.env.POLYGONSCAN_API_KEY,
polygonMumbai: process.env.POLYGONSCAN_API_KEY,
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
mainnet: process.env.ETHERSCAN_API_KEY
}
},
gasReporter: {
currency: 'USD',
token: "MATIC",
gasPrice: 250,
// gasPriceApi: "https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice",
enabled: false,
coinmarketcap: process.env.COINMARKETCAP_API_KEY
},
// plugins: ["solidity-coverage"]
};