-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
46 lines (43 loc) · 1.07 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv/config")
require('@primitivefi/hardhat-dodoc'); // creates docs from every time one compiles
require("hardhat-gas-reporter");
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
forking: {
url: process.env.POLYGON_RPC_URL,
blockNumber: 38824166, // https://polygonscan.com/block/38824166 Feb-02-2023 01:30:00 PM +UTC
}
},
polygon: {
url: "https://polygon-rpc.com",
accounts: {
mnemonic: process.env.MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: "",
},
}
},
etherscan: {
apiKey: process.env.POLYGONSCAN_API_KEY
},
dodoc: {
runOnCompile: true,
debugMode: false,
exclude: ['interfaces', 'types', '@openzeppelin'],
},
gasReporter: {
currency: 'ETH',
gasPrice: 30,
enabled: true
}
};