-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
57 lines (50 loc) · 1.27 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
require("dotenv").config();
require("hardhat-contract-sizer");
require("hardhat-gas-reporter");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-chai-matchers");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-etherscan");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
mocha: {
timeout: 10000000
},
networks: {
hardhat: {
forking: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
blockNumber: 41403320 // migration : 41372001
}
},
mumbai: {
url: process.env.POLYGON_MUMBAI_RPC_PROVIDER,
accounts: [process.env.DEPLOYER_PRIVATE_KEY]
},
polygon: {
url: process.env.POLYGON_MAINNET_RPC_PROVIDER,
accounts: [process.env.DEPLOYER_PRIVATE_KEY]
}
},
etherscan: {
apiKey: process.env.POLYGONSCAN_API_KEY
},
gasReporter: {
enabled: true,
token: "MATIC",
gasPriceApi:
"https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice",
currency: "EUR",
coinmarketcap: process.env.COINMARKETCAP_KEY
}
};