-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (34 loc) · 879 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
const path = require('path')
require('@nomiclabs/hardhat-waffle')
require('dotenv').config({ path: path.join(__dirname, '/.env.local') })
require('hardhat-gas-reporter')
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 1337
},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.ACCOUNT_PRIVATE_KEY, process.env.ACCOUNT2_PRIVATE_KEY],
gas: 5500000,
gasPrice: 7000000000
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_ID}`,
accounts: [process.env.ACCOUNT_PRIVATE_KEY, process.env.ACCOUNT2_PRIVATE_KEY]
}
},
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}