-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
51 lines (50 loc) · 1.39 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
require('@nomicfoundation/hardhat-toolbox')
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-truffle5')
require('@openzeppelin/hardhat-upgrades')
require('@nomiclabs/hardhat-etherscan')
require('dotenv').config()
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "matic",
networks: {
hardhat: {
// chainId: 1337,
// chainId: 80001
},
// goerli: {
// url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
// accounts: [process.env.PRIVATE_KEY],
// },
// mumbai: {
// // Infura
// url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
// // url: 'https://rpc-mumbai.maticvigil.com',
// accounts: [process.env.PRIVATE_KEY],
// },
// mainnet: {
// // Infura
// url: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
// // url: 'https://rpc-mainnet.maticvigil.com',
// accounts: [process.env.PRIVATE_KEY],
// },
matic: {
url: "https://rpc-mumbai.maticvigil.com",
accounts: [process.env.PRIVATE_KEY],
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY,
},
solidity: {
version: '0.8.9',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
}