-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
43 lines (40 loc) · 940 Bytes
/
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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('dotenv').config();
require("@nomiclabs/hardhat-waffle");
require("@typechain/hardhat");
require("@nomiclabs/hardhat-ethers")
require("@nomiclabs/hardhat-etherscan");
require("./tasks/faucet");
require("./tasks/USDC_faucet");
const { POLYGON_MAIN_URL, MUMBAI_URL, PRIVATE_KEY, POLYSCAN_API_KEY } = process.env;
module.exports = {
solidity: {
compilers: [{version: '0.8.7'}],
},
etherscan: {
apiKey: {
polygon: POLYSCAN_API_KEY,
polygonMumbai: POLYSCAN_API_KEY
}
},
networks: {
hardhat: {
forking:{
url: POLYGON_MAIN_URL
}
},
polygon: {
url: POLYGON_MAIN_URL,
accounts: [`0x${PRIVATE_KEY}`]
},
mumbai: {
url: MUMBAI_URL,
accounts: [`0x${PRIVATE_KEY}`]
}
},
typechain: {
outDir: 'frontend/typechain',
}
};