-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
44 lines (40 loc) · 932 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
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
require('dotenv').config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
const { API_URL, PRIVATE_KEY, ETHERSCAN } = process.env;
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337
},
rinkeby: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`]
},
mumbai: {
url: "https://polygon-mumbai.infura.io/v3/3d67dbef6f8b488780529a324416cb0d",
accounts: [`0x${PRIVATE_KEY}`]
},
matic: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`]
}
},
etherscan: {
// Your API key for polygonscan
// Obtain one at https://etherscan.io/
apiKey: `${ETHERSCAN}`
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}