-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
41 lines (40 loc) · 1.09 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
require("@nomicfoundation/hardhat-toolbox");
require('@openzeppelin/hardhat-upgrades');
require('dotenv').config()
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.goerliApiKey}`,
accounts: [process.env.PRIVATE_KEY2]
},
// hardhat: {
// forking: {
// // url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.poygonApiKey}`,
// // url: `https://eth-goerli.g.alchemy.com/v2/${process.env.goerliApiKey}`,
// // blockNumber: 8894170,
// url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.mainnetApiKey}`,
// blockNumber: 17129400, //
// // 15226243 - at WBTC price low
// }
// },
},
etherscan: {
apiKey: {
polygonMumbai: process.env.ETHERSCAN_MUMBAI_API_KEY,
goerli: process.env.ETHERSCAN_GOERLI_API_KEY
}
},
mocha: {
timeout: 60000
}
};